Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(hogql): make BETWEEN bounds bind tighter than AND/OR (#68226)

Robbiefefbbd46b8b7
diff --git a/common/hogql_parser/HogQLParser.cpp b/common/hogql_parser/HogQLParser.cpp
index 32964f2acd3f..d65a04b238c3 100644
--- a/common/hogql_parser/HogQLParser.cpp
+++ b/common/hogql_parser/HogQLParser.cpp
@@ -69,8 +69,8 @@ void hogqlparserParserInitialize() {
"winOrderByClause", "withinGroupClause", "winFrameClause", "winFrameExtend",
"winFrameBound", "expr", "columnTypeExpr", "columnTypeCastExpr", "columnTypeCastIdentifier",
"keywordForTypeCast", "columnExprList", "selectColumnExprListBeforeFrom",
- "selectColumnExprList", "selectColumnExpr", "columnExpr", "columnLambdaExpr",
- "columnsReplaceList", "columnsReplaceItem", "hogqlxChildElement",
+ "selectColumnExprList", "selectColumnExpr", "columnExpr", "columnExprValue",
+ "columnLambdaExpr", "columnsReplaceList", "columnsReplaceItem", "hogqlxChildElement",
"hogqlxText", "hogqlxTagElement", "hogqlxTagAttribute", "withExprList",
"withExpr", "withExprColumnNameList", "columnIdentifier", "nestedIdentifier",
"tableExpr", "pivotColumnList", "pivotColumn", "unpivotColumnList",
@@ -134,7 +134,7 @@ void hogqlparserParserInitialize() {
}
);
static const int32_t serializedATNSegment[] = {
- 4,1,207,2084,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,
+ 4,1,207,2094,2,0,7,0,2,1,7,1,2,2,7,2,2,3,7,3,2,4,7,4,2,5,7,5,2,6,7,6,
2,7,7,7,2,8,7,8,2,9,7,9,2,10,7,10,2,11,7,11,2,12,7,12,2,13,7,13,2,14,
7,14,2,15,7,15,2,16,7,16,2,17,7,17,2,18,7,18,2,19,7,19,2,20,7,20,2,21,
7,21,2,22,7,22,2,23,7,23,2,24,7,24,2,25,7,25,2,26,7,26,2,27,7,27,2,28,
@@ -151,795 +151,798 @@ void hogqlparserParserInitialize() {
7,98,2,99,7,99,2,100,7,100,2,101,7,101,2,102,7,102,2,103,7,103,2,104,
7,104,2,105,7,105,2,106,7,106,2,107,7,107,2,108,7,108,2,109,7,109,2,110,
7,110,2,111,7,111,2,112,7,112,2,113,7,113,2,114,7,114,2,115,7,115,2,116,
- 7,116,2,117,7,117,1,0,5,0,238,8,0,10,0,12,0,241,9,0,1,0,1,0,1,1,1,1,3,
- 1,247,8,1,1,2,1,2,1,3,1,3,1,3,1,3,3,3,255,8,3,1,4,1,4,1,4,5,4,260,8,4,
- 10,4,12,4,263,9,4,1,4,3,4,266,8,4,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,1,5,
- 1,5,1,5,3,5,279,8,5,1,6,1,6,3,6,283,8,6,1,6,3,6,286,8,6,1,7,1,7,1,7,3,
- 7,291,8,7,1,8,1,8,1,8,1,8,1,8,3,8,298,8,8,1,8,1,8,3,8,302,8,8,1,8,1,8,
- 1,9,1,9,1,9,5,9,309,8,9,10,9,12,9,312,9,9,1,9,1,9,3,9,316,8,9,1,10,1,
- 10,1,10,1,10,1,10,1,10,1,10,3,10,325,8,10,1,11,1,11,1,11,1,11,1,11,1,
- 11,3,11,333,8,11,1,12,1,12,1,12,1,12,1,12,3,12,340,8,12,1,12,1,12,3,12,
- 344,8,12,1,12,1,12,1,12,1,12,3,12,350,8,12,1,12,1,12,1,12,3,12,355,8,
- 12,1,13,1,13,1,13,1,13,1,13,1,13,3,13,363,8,13,1,13,1,13,1,13,1,13,1,
- 13,3,13,370,8,13,1,14,1,14,1,14,1,14,3,14,376,8,14,1,14,1,14,1,14,1,15,
- 1,15,1,15,1,15,1,16,1,16,1,16,3,16,388,8,16,1,16,3,16,391,8,16,1,17,1,
- 17,1,18,1,18,5,18,397,8,18,10,18,12,18,400,9,18,1,18,1,18,1,19,1,19,1,
- 19,1,19,1,20,1,20,1,20,5,20,411,8,20,10,20,12,20,414,9,20,1,20,3,20,417,
- 8,20,1,21,1,21,1,21,3,21,422,8,21,1,21,3,21,425,8,21,1,21,1,21,1,22,1,
- 22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,440,8,22,1,23,1,
- 23,1,23,1,23,3,23,446,8,23,1,23,1,23,1,23,3,23,451,8,23,1,23,1,23,1,23,
- 1,23,3,23,457,8,23,1,23,1,23,1,23,1,23,3,23,463,8,23,1,23,1,23,1,23,3,
- 23,468,8,23,1,23,1,23,1,23,1,23,3,23,474,8,23,1,23,1,23,1,23,1,23,3,23,
- 480,8,23,1,23,1,23,1,23,3,23,485,8,23,3,23,487,8,23,1,23,1,23,1,24,1,
- 24,5,24,493,8,24,10,24,12,24,496,9,24,1,24,3,24,499,8,24,1,24,3,24,502,
- 8,24,1,25,1,25,1,25,3,25,507,8,25,1,25,1,25,3,25,511,8,25,1,25,1,25,3,
- 25,515,8,25,1,25,1,25,1,25,3,25,520,8,25,1,25,1,25,3,25,524,8,25,1,25,
- 1,25,1,25,1,25,1,25,3,25,531,8,25,1,26,3,26,534,8,26,1,26,1,26,3,26,538,
- 8,26,1,26,3,26,541,8,26,1,26,1,26,3,26,545,8,26,1,26,3,26,548,8,26,1,
- 26,3,26,551,8,26,1,26,3,26,554,8,26,1,26,3,26,557,8,26,1,26,3,26,560,
- 8,26,1,26,3,26,563,8,26,1,26,1,26,3,26,567,8,26,1,26,1,26,3,26,571,8,
- 26,1,26,3,26,574,8,26,1,26,3,26,577,8,26,1,26,1,26,3,26,581,8,26,1,26,
- 3,26,584,8,26,1,26,3,26,587,8,26,1,26,3,26,590,8,26,1,26,1,26,3,26,594,
- 8,26,1,26,3,26,597,8,26,1,27,1,27,3,27,601,8,27,1,27,1,27,1,28,1,28,1,
- 28,1,28,3,28,609,8,28,1,29,1,29,1,29,1,30,3,30,615,8,30,1,30,1,30,1,30,
- 1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,
- 5,31,634,8,31,10,31,12,31,637,9,31,1,32,1,32,1,32,1,33,1,33,1,33,1,34,
- 1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,
- 3,34,660,8,34,1,35,1,35,1,35,5,35,665,8,35,10,35,12,35,668,9,35,1,36,
- 1,36,3,36,672,8,36,1,36,1,36,1,37,1,37,1,37,1,38,1,38,1,38,1,39,1,39,
- 1,39,1,39,3,39,686,8,39,1,40,1,40,1,40,1,40,1,40,5,40,693,8,40,10,40,
- 12,40,696,9,40,1,40,1,40,3,40,700,8,40,1,41,1,41,1,41,1,41,1,42,1,42,
- 1,42,1,42,1,42,1,43,1,43,1,43,3,43,714,8,43,1,43,1,43,3,43,718,8,43,1,
- 43,1,43,3,43,722,8,43,1,43,1,43,1,43,3,43,727,8,43,1,43,1,43,3,43,731,
- 8,43,1,43,1,43,1,43,3,43,736,8,43,1,44,1,44,1,44,1,45,1,45,1,45,1,46,
- 1,46,1,46,1,46,5,46,748,8,46,10,46,12,46,751,9,46,1,47,1,47,1,47,1,47,
- 5,47,757,8,47,10,47,12,47,760,9,47,1,47,1,47,1,48,1,48,1,48,3,48,767,
- 8,48,1,48,3,48,770,8,48,1,48,1,48,1,48,1,48,3,48,776,8,48,1,48,1,48,1,
- 48,1,48,1,48,1,48,3,48,784,8,48,1,48,3,48,787,8,48,1,48,1,48,1,48,3,48,
- 792,8,48,1,48,1,48,1,48,1,48,1,48,3,48,799,8,48,1,48,1,48,1,48,1,48,1,
- 48,1,48,1,48,1,48,3,48,809,8,48,1,48,1,48,1,48,1,48,1,48,1,48,3,48,817,
- 8,48,1,48,1,48,1,48,1,48,5,48,823,8,48,10,48,12,48,826,9,48,1,49,3,49,
- 829,8,49,1,49,1,49,1,49,3,49,834,8,49,1,49,1,49,1,49,1,49,1,49,3,49,841,
- 8,49,1,49,3,49,844,8,49,1,49,1,49,3,49,848,8,49,1,49,1,49,3,49,852,8,
- 49,1,49,3,49,855,8,49,1,49,1,49,1,49,1,49,3,49,861,8,49,3,49,863,8,49,
- 1,49,3,49,866,8,49,1,49,1,49,3,49,870,8,49,1,49,1,49,3,49,874,8,49,1,
- 49,3,49,877,8,49,3,49,879,8,49,3,49,881,8,49,1,50,1,50,1,50,3,50,886,
- 8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,897,8,51,1,52,
- 1,52,1,52,3,52,902,8,52,1,52,1,52,3,52,906,8,52,1,52,1,52,1,52,1,52,3,
- 52,912,8,52,1,53,1,53,1,53,3,53,917,8,53,1,54,1,54,1,54,5,54,922,8,54,
- 10,54,12,54,925,9,54,1,55,1,55,3,55,929,8,55,1,55,1,55,3,55,933,8,55,
- 1,55,1,55,3,55,937,8,55,1,55,3,55,940,8,55,1,56,1,56,1,56,1,56,3,56,946,
- 8,56,1,56,1,56,3,56,950,8,56,1,56,1,56,3,56,954,8,56,1,57,1,57,1,57,3,
- 57,959,8,57,1,58,1,58,1,58,1,58,3,58,965,8,58,3,58,967,8,58,1,59,1,59,
- 1,59,5,59,972,8,59,10,59,12,59,975,9,59,1,60,1,60,1,60,1,60,1,61,3,61,
- 982,8,61,1,61,3,61,985,8,61,1,61,3,61,988,8,61,1,62,1,62,1,62,1,62,1,
- 63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,1,66,1,
- 66,1,66,1,66,1,66,1,66,3,66,1013,8,66,1,67,1,67,1,67,1,67,1,67,1,67,1,
- 67,1,67,1,67,1,67,1,67,1,67,3,67,1027,8,67,1,68,1,68,1,68,1,69,1,69,1,
- 69,1,69,1,69,1,69,1,69,1,69,1,69,5,69,1041,8,69,10,69,12,69,1044,9,69,
- 1,69,3,69,1047,8,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,5,69,1056,8,69,
- 10,69,12,69,1059,9,69,1,69,3,69,1062,8,69,1,69,1,69,1,69,1,69,1,69,1,
- 69,1,69,5,69,1071,8,69,10,69,12,69,1074,9,69,1,69,3,69,1077,8,69,1,69,
- 1,69,1,69,1,69,1,69,3,69,1084,8,69,1,69,1,69,1,69,1,69,4,69,1090,8,69,
- 11,69,12,69,1091,1,69,3,69,1095,8,69,1,69,1,69,1,69,3,69,1100,8,69,1,
- 69,5,69,1103,8,69,10,69,12,69,1106,9,69,1,70,1,70,1,70,3,70,1111,8,70,
- 1,70,1,70,1,70,1,70,3,70,1117,8,70,1,71,1,71,1,71,1,71,3,71,1123,8,71,
- 1,72,1,72,1,73,1,73,1,73,5,73,1130,8,73,10,73,12,73,1133,9,73,1,73,3,
- 73,1136,8,73,1,74,1,74,1,74,5,74,1141,8,74,10,74,12,74,1144,9,74,1,74,
- 1,74,1,74,3,74,1149,8,74,1,75,1,75,1,75,5,75,1154,8,75,10,75,12,75,1157,
- 9,75,1,75,3,75,1160,8,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,76,
- 1,76,3,76,1172,8,76,1,77,1,77,1,77,3,77,1177,8,77,1,77,1,77,1,77,1,77,
- 1,77,4,77,1184,8,77,11,77,12,77,1185,1,77,1,77,3,77,1190,8,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,3,77,1223,8,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1271,8,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1299,8,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,3,77,1363,8,77,1,77,1,77,1,77,1,77,1,77,1,77,3,
- 77,1371,8,77,1,77,1,77,1,77,1,77,3,77,1377,8,77,1,77,3,77,1380,8,77,1,
- 77,3,77,1383,8,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1391,8,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1401,8,77,1,77,1,77,1,77,1,77,3,
- 77,1407,8,77,1,77,3,77,1410,8,77,1,77,3,77,1413,8,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,3,77,1421,8,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1429,8,
- 77,1,77,3,77,1432,8,77,1,77,1,77,3,77,1436,8,77,1,77,3,77,1439,8,77,1,
- 77,1,77,1,77,3,77,1444,8,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1453,
- 8,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1465,8,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,3,77,1473,8,77,1,77,1,77,1,77,1,77,5,77,
- 1479,8,77,10,77,12,77,1482,9,77,1,77,3,77,1485,8,77,1,77,1,77,1,77,1,
- 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1503,
- 8,77,1,77,1,77,3,77,1507,8,77,1,77,1,77,1,77,3,77,1512,8,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1523,8,77,1,77,1,77,1,77,1,77,
- 3,77,1529,8,77,1,77,1,77,1,77,1,77,1,77,3,77,1536,8,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1548,8,77,1,77,1,77,3,77,1552,
- 8,77,1,77,3,77,1555,8,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1564,
- 8,77,1,77,1,77,1,77,1,77,3,77,1570,8,77,1,77,1,77,1,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1589,8,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,3,77,1610,8,77,1,77,1,77,1,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,3,77,1621,8,77,1,77,1,77,3,77,1625,8,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,
- 1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1655,8,77,
- 1,77,1,77,1,77,1,77,1,77,3,77,1662,8,77,5,77,1664,8,77,10,77,12,77,1667,
- 9,77,1,78,1,78,1,78,1,78,5,78,1673,8,78,10,78,12,78,1676,9,78,1,78,3,
- 78,1679,8,78,1,78,1,78,1,78,1,78,1,78,5,78,1686,8,78,10,78,12,78,1689,
- 9,78,1,78,3,78,1692,8,78,1,78,1,78,3,78,1696,8,78,1,78,1,78,1,78,3,78,
- 1701,8,78,1,78,1,78,1,78,1,78,5,78,1707,8,78,10,78,12,78,1710,9,78,1,
- 78,3,78,1713,8,78,1,78,1,78,1,78,3,78,1718,8,78,1,79,1,79,1,79,5,79,1723,
- 8,79,10,79,12,79,1726,9,79,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,
- 81,1,81,3,81,1738,8,81,1,82,1,82,1,83,1,83,1,83,5,83,1745,8,83,10,83,
- 12,83,1748,9,83,1,83,1,83,1,83,1,83,1,83,5,83,1755,8,83,10,83,12,83,1758,
- 9,83,1,83,1,83,5,83,1762,8,83,10,83,12,83,1765,9,83,1,83,1,83,1,83,1,
- 83,3,83,1771,8,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,84,1,
- 84,3,84,1784,8,84,1,85,1,85,1,85,5,85,1789,8,85,10,85,12,85,1792,9,85,
- 1,85,3,85,1795,8,85,1,86,1,86,3,86,1799,8,86,1,86,1,86,1,86,3,86,1804,
- 8,86,1,86,1,86,3,86,1808,8,86,1,86,3,86,1811,8,86,1,86,1,86,1,86,1,86,
- 1,86,1,86,1,86,1,86,3,86,1821,8,86,1,87,1,87,1,87,1,87,5,87,1827,8,87,
- 10,87,12,87,1830,9,87,1,87,1,87,1,88,1,88,1,88,1,88,3,88,1838,8,88,1,
- 88,3,88,1841,8,88,1,89,1,89,1,89,5,89,1846,8,89,10,89,12,89,1849,9,89,
- 1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,3,90,
- 1864,8,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,3,90,1874,8,90,1,90,
- 1,90,1,90,1,90,1,90,1,90,3,90,1882,8,90,1,90,1,90,1,90,1,90,1,90,1,90,
- 1,90,1,90,3,90,1892,8,90,1,90,3,90,1895,8,90,5,90,1897,8,90,10,90,12,
- 90,1900,9,90,1,91,1,91,4,91,1904,8,91,11,91,12,91,1905,1,92,1,92,1,92,
- 1,92,1,92,1,92,1,93,1,93,1,93,5,93,1917,8,93,10,93,12,93,1920,9,93,1,
- 93,3,93,1923,8,93,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,94,1,
- 94,1,94,1,94,5,94,1938,8,94,10,94,12,94,1941,9,94,1,95,1,95,1,95,1,95,
- 1,95,3,95,1948,8,95,1,96,1,96,1,96,1,96,5,96,1954,8,96,10,96,12,96,1957,
- 9,96,1,96,1,96,1,97,1,97,1,97,3,97,1964,8,97,1,97,1,97,1,98,1,98,1,98,
- 3,98,1971,8,98,1,98,1,98,1,99,1,99,1,99,5,99,1978,8,99,10,99,12,99,1981,
- 9,99,1,99,3,99,1984,8,99,1,100,1,100,1,101,1,101,1,101,1,101,1,101,1,
- 101,3,101,1994,8,101,3,101,1996,8,101,1,102,3,102,1999,8,102,1,102,1,
- 102,1,102,1,102,1,102,1,102,1,102,1,102,3,102,2009,8,102,1,103,1,103,
- 1,103,3,103,2014,8,103,1,104,1,104,1,105,1,105,1,106,1,106,1,107,1,107,
- 1,108,1,108,1,108,3,108,2027,8,108,1,109,1,109,1,109,3,109,2032,8,109,
- 1,110,1,110,1,110,1,110,3,110,2038,8,110,1,111,1,111,1,111,1,111,1,112,
- 1,112,1,112,1,112,1,113,1,113,3,113,2050,8,113,1,114,1,114,5,114,2054,
- 8,114,10,114,12,114,2057,9,114,1,114,1,114,1,115,1,115,1,115,1,115,1,
- 115,3,115,2066,8,115,1,116,1,116,5,116,2070,8,116,10,116,12,116,2073,
- 9,116,1,116,1,116,1,117,1,117,1,117,1,117,1,117,3,117,2082,8,117,1,117,
- 0,4,96,138,154,180,118,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,
- 34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,78,
- 80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,118,
- 120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,154,
- 156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,190,
- 192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,226,
- 228,230,232,234,0,20,2,0,36,36,41,41,2,0,19,19,94,94,2,0,53,53,63,63,
- 3,0,1,1,4,4,8,8,2,0,3,3,100,100,4,0,1,1,3,4,8,8,100,100,2,0,63,63,93,
- 93,2,0,76,76,151,151,2,0,7,7,23,24,2,0,35,35,61,61,2,0,89,89,96,96,3,
- 0,21,21,56,56,108,109,3,0,10,10,62,62,115,115,2,0,48,48,65,65,1,0,138,
- 139,2,0,153,153,176,176,7,0,22,22,45,45,68,69,88,88,98,98,125,125,132,
- 132,20,0,1,13,15,21,23,27,29,33,35,35,37,40,42,44,46,51,53,53,55,63,65,
- 66,70,71,73,73,75,87,89,97,99,105,107,117,119,124,126,127,129,130,4,0,
- 21,21,35,35,46,46,59,59,8,0,7,7,15,15,21,21,24,24,31,31,46,46,92,92,113,
- 114,2366,0,239,1,0,0,0,2,246,1,0,0,0,4,248,1,0,0,0,6,250,1,0,0,0,8,256,
- 1,0,0,0,10,278,1,0,0,0,12,280,1,0,0,0,14,287,1,0,0,0,16,292,1,0,0,0,18,
- 305,1,0,0,0,20,317,1,0,0,0,22,326,1,0,0,0,24,334,1,0,0,0,26,356,1,0,0,
- 0,28,371,1,0,0,0,30,380,1,0,0,0,32,384,1,0,0,0,34,392,1,0,0,0,36,394,
- 1,0,0,0,38,403,1,0,0,0,40,407,1,0,0,0,42,421,1,0,0,0,44,439,1,0,0,0,46,
- 486,1,0,0,0,48,490,1,0,0,0,50,530,1,0,0,0,52,533,1,0,0,0,54,598,1,0,0,
- 0,56,604,1,0,0,0,58,610,1,0,0,0,60,614,1,0,0,0,62,620,1,0,0,0,64,638,
- 1,0,0,0,66,641,1,0,0,0,68,644,1,0,0,0,70,661,1,0,0,0,72,669,1,0,0,0,74,
- 675,1,0,0,0,76,678,1,0,0,0,78,681,1,0,0,0,80,687,1,0,0,0,82,701,1,0,0,
- 0,84,705,1,0,0,0,86,735,1,0,0,0,88,737,1,0,0,0,90,740,1,0,0,0,92,743,
- 1,0,0,0,94,752,1,0,0,0,96,775,1,0,0,0,98,880,1,0,0,0,100,885,1,0,0,0,
- 102,896,1,0,0,0,104,898,1,0,0,0,106,913,1,0,0,0,108,918,1,0,0,0,110,926,
- 1,0,0,0,112,941,1,0,0,0,114,955,1,0,0,0,116,966,1,0,0,0,118,968,1,0,0,
- 0,120,976,1,0,0,0,122,981,1,0,0,0,124,989,1,0,0,0,126,993,1,0,0,0,128,
- 997,1,0,0,0,130,1003,1,0,0,0,132,1012,1,0,0,0,134,1026,1,0,0,0,136,1028,
- 1,0,0,0,138,1094,1,0,0,0,140,1116,1,0,0,0,142,1122,1,0,0,0,144,1124,1,
- 0,0,0,146,1126,1,0,0,0,148,1148,1,0,0,0,150,1150,1,0,0,0,152,1171,1,0,
- 0,0,154,1522,1,0,0,0,156,1717,1,0,0,0,158,1719,1,0,0,0,160,1727,1,0,0,
- 0,162,1737,1,0,0,0,164,1739,1,0,0,0,166,1770,1,0,0,0,168,1783,1,0,0,0,
- 170,1785,1,0,0,0,172,1820,1,0,0,0,174,1822,1,0,0,0,176,1840,1,0,0,0,178,
- 1842,1,0,0,0,180,1863,1,0,0,0,182,1901,1,0,0,0,184,1907,1,0,0,0,186,1913,
- 1,0,0,0,188,1924,1,0,0,0,190,1947,1,0,0,0,192,1949,1,0,0,0,194,1960,1,
- 0,0,0,196,1970,1,0,0,0,198,1974,1,0,0,0,200,1985,1,0,0,0,202,1995,1,0,
- 0,0,204,1998,1,0,0,0,206,2013,1,0,0,0,208,2015,1,0,0,0,210,2017,1,0,0,
- 0,212,2019,1,0,0,0,214,2021,1,0,0,0,216,2026,1,0,0,0,218,2031,1,0,0,0,
- 220,2037,1,0,0,0,222,2039,1,0,0,0,224,2043,1,0,0,0,226,2049,1,0,0,0,228,
- 2051,1,0,0,0,230,2065,1,0,0,0,232,2067,1,0,0,0,234,2081,1,0,0,0,236,238,
- 3,2,1,0,237,236,1,0,0,0,238,241,1,0,0,0,239,237,1,0,0,0,239,240,1,0,0,
- 0,240,242,1,0,0,0,241,239,1,0,0,0,242,243,5,0,0,1,243,1,1,0,0,0,244,247,
- 3,6,3,0,245,247,3,10,5,0,246,244,1,0,0,0,246,245,1,0,0,0,247,3,1,0,0,
- 0,248,249,3,154,77,0,249,5,1,0,0,0,250,251,5,64,0,0,251,254,3,220,110,
- 0,252,253,5,149,0,0,253,255,3,4,2,0,254,252,1,0,0,0,254,255,1,0,0,0,255,
- 7,1,0,0,0,256,261,3,178,89,0,257,258,5,151,0,0,258,260,3,178,89,0,259,
- 257,1,0,0,0,260,263,1,0,0,0,261,259,1,0,0,0,261,262,1,0,0,0,262,265,1,
- 0,0,0,263,261,1,0,0,0,264,266,5,151,0,0,265,264,1,0,0,0,265,266,1,0,0,
- 0,266,9,1,0,0,0,267,279,3,12,6,0,268,279,3,14,7,0,269,279,3,18,9,0,270,
- 279,3,20,10,0,271,279,3,22,11,0,272,279,3,26,13,0,273,279,3,24,12,0,274,
- 279,3,28,14,0,275,279,3,36,18,0,276,279,3,32,16,0,277,279,3,34,17,0,278,
- 267,1,0,0,0,278,268,1,0,0,0,278,269,1,0,0,0,278,270,1,0,0,0,278,271,1,
- 0,0,0,278,272,1,0,0,0,278,273,1,0,0,0,278,274,1,0,0,0,278,275,1,0,0,0,
- 278,276,1,0,0,0,278,277,1,0,0,0,279,11,1,0,0,0,280,282,5,92,0,0,281,283,
- 3,4,2,0,282,281,1,0,0,0,282,283,1,0,0,0,283,285,1,0,0,0,284,286,5,187,
- 0,0,285,284,1,0,0,0,285,286,1,0,0,0,286,13,1,0,0,0,287,288,5,106,0,0,
- 288,290,3,4,2,0,289,291,5,187,0,0,290,289,1,0,0,0,290,291,1,0,0,0,291,
- 15,1,0,0,0,292,301,5,14,0,0,293,294,5,165,0,0,294,297,3,220,110,0,295,
- 296,5,150,0,0,296,298,3,220,110,0,297,295,1,0,0,0,297,298,1,0,0,0,298,
- 299,1,0,0,0,299,300,5,186,0,0,300,302,1,0,0,0,301,293,1,0,0,0,301,302,
- 1,0,0,0,302,303,1,0,0,0,303,304,3,36,18,0,304,17,1,0,0,0,305,306,5,118,
- 0,0,306,310,3,36,18,0,307,309,3,16,8,0,308,307,1,0,0,0,309,312,1,0,0,
- 0,310,308,1,0,0,0,310,311,1,0,0,0,311,315,1,0,0,0,312,310,1,0,0,0,313,
- 314,5,34,0,0,314,316,3,36,18,0,315,313,1,0,0,0,315,316,1,0,0,0,316,19,
- 1,0,0,0,317,318,5,47,0,0,318,319,5,165,0,0,319,320,3,4,2,0,320,321,5,
- 186,0,0,321,324,3,10,5,0,322,323,5,26,0,0,323,325,3,10,5,0,324,322,1,
- 0,0,0,324,325,1,0,0,0,325,21,1,0,0,0,326,327,5,128,0,0,327,328,5,165,
- 0,0,328,329,3,4,2,0,329,330,5,186,0,0,330,332,3,10,5,0,331,333,5,187,
- 0,0,332,331,1,0,0,0,332,333,1,0,0,0,333,23,1,0,0,0,334,335,5,38,0,0,335,
- 339,5,165,0,0,336,340,3,6,3,0,337,340,3,30,15,0,338,340,3,4,2,0,339,336,
- 1,0,0,0,339,337,1,0,0,0,339,338,1,0,0,0,339,340,1,0,0,0,340,341,1,0,0,
- 0,341,343,5,187,0,0,342,344,3,4,2,0,343,342,1,0,0,0,343,344,1,0,0,0,344,
- 345,1,0,0,0,345,349,5,187,0,0,346,350,3,6,3,0,347,350,3,30,15,0,348,350,
- 3,4,2,0,349,346,1,0,0,0,349,347,1,0,0,0,349,348,1,0,0,0,349,350,1,0,0,
- 0,350,351,1,0,0,0,351,352,5,186,0,0,352,354,3,10,5,0,353,355,5,187,0,
- 0,354,353,1,0,0,0,354,355,1,0,0,0,355,25,1,0,0,0,356,357,5,38,0,0,357,
- 358,5,165,0,0,358,359,5,64,0,0,359,362,3,220,110,0,360,361,5,151,0,0,
- 361,363,3,220,110,0,362,360,1,0,0,0,362,363,1,0,0,0,363,364,1,0,0,0,364,
- 365,5,51,0,0,365,366,3,4,2,0,366,367,5,186,0,0,367,369,3,10,5,0,368,370,
- 5,187,0,0,369,368,1,0,0,0,369,370,1,0,0,0,370,27,1,0,0,0,371,372,7,0,
- 0,0,372,373,3,220,110,0,373,375,5,165,0,0,374,376,3,8,4,0,375,374,1,0,
- 0,0,375,376,1,0,0,0,376,377,1,0,0,0,377,378,5,186,0,0,378,379,3,36,18,
- 0,379,29,1,0,0,0,380,381,3,4,2,0,381,382,5,149,0,0,382,383,3,4,2,0,383,
- 31,1,0,0,0,384,387,3,4,2,0,385,386,5,149,0,0,386,388,3,4,2,0,387,385,
- 1,0,0,0,387,388,1,0,0,0,388,390,1,0,0,0,389,391,5,187,0,0,390,389,1,0,
- 0,0,390,391,1,0,0,0,391,33,1,0,0,0,392,393,5,187,0,0,393,35,1,0,0,0,394,
- 398,5,163,0,0,395,397,3,2,1,0,396,395,1,0,0,0,397,400,1,0,0,0,398,396,
- 1,0,0,0,398,399,1,0,0,0,399,401,1,0,0,0,400,398,1,0,0,0,401,402,5,184,
- 0,0,402,37,1,0,0,0,403,404,3,4,2,0,404,405,5,150,0,0,405,406,3,4,2,0,
- 406,39,1,0,0,0,407,412,3,38,19,0,408,409,5,151,0,0,409,411,3,38,19,0,
- 410,408,1,0,0,0,411,414,1,0,0,0,412,410,1,0,0,0,412,413,1,0,0,0,413,416,
- 1,0,0,0,414,412,1,0,0,0,415,417,5,151,0,0,416,415,1,0,0,0,416,417,1,0,
- 0,0,417,41,1,0,0,0,418,422,3,48,24,0,419,422,3,52,26,0,420,422,3,166,
- 83,0,421,418,1,0,0,0,421,419,1,0,0,0,421,420,1,0,0,0,422,424,1,0,0,0,
- 423,425,5,187,0,0,424,423,1,0,0,0,424,425,1,0,0,0,425,426,1,0,0,0,426,
- 427,5,0,0,1,427,43,1,0,0,0,428,440,3,52,26,0,429,430,3,54,27,0,430,431,
- 5,165,0,0,431,432,3,48,24,0,432,433,5,186,0,0,433,440,1,0,0,0,434,435,
- 5,165,0,0,435,436,3,48,24,0,436,437,5,186,0,0,437,440,1,0,0,0,438,440,
- 3,224,112,0,439,428,1,0,0,0,439,429,1,0,0,0,439,434,1,0,0,0,439,438,1,
- 0,0,0,440,45,1,0,0,0,441,442,5,28,0,0,442,445,5,1,0,0,443,444,5,11,0,
- 0,444,446,5,70,0,0,445,443,1,0,0,0,445,446,1,0,0,0,446,487,1,0,0,0,447,
- 450,5,28,0,0,448,449,5,11,0,0,449,451,5,70,0,0,450,448,1,0,0,0,450,451,
- 1,0,0,0,451,487,1,0,0,0,452,453,5,121,0,0,453,456,5,1,0,0,454,455,5,11,
- 0,0,455,457,5,70,0,0,456,454,1,0,0,0,456,457,1,0,0,0,457,487,1,0,0,0,
- 458,459,5,121,0,0,459,462,5,25,0,0,460,461,5,11,0,0,461,463,5,70,0,0,
- 462,460,1,0,0,0,462,463,1,0,0,0,463,487,1,0,0,0,464,467,5,121,0,0,465,
- 466,5,11,0,0,466,468,5,70,0,0,467,465,1,0,0,0,467,468,1,0,0,0,468,487,
- 1,0,0,0,469,470,5,54,0,0,470,473,5,1,0,0,471,472,5,11,0,0,472,474,5,70,
- 0,0,473,471,1,0,0,0,473,474,1,0,0,0,474,487,1,0,0,0,475,476,5,54,0,0,
- 476,479,5,25,0,0,477,478,5,11,0,0,478,480,5,70,0,0,479,477,1,0,0,0,479,
- 480,1,0,0,0,480,487,1,0,0,0,481,484,5,54,0,0,482,483,5,11,0,0,483,485,
- 5,70,0,0,484,482,1,0,0,0,484,485,1,0,0,0,485,487,1,0,0,0,486,441,1,0,
- 0,0,486,447,1,0,0,0,486,452,1,0,0,0,486,458,1,0,0,0,486,464,1,0,0,0,486,
- 469,1,0,0,0,486,475,1,0,0,0,486,481,1,0,0,0,487,488,1,0,0,0,488,489,3,
- 44,22,0,489,47,1,0,0,0,490,494,3,44,22,0,491,493,3,46,23,0,492,491,1,
- 0,0,0,493,496,1,0,0,0,494,492,1,0,0,0,494,495,1,0,0,0,495,498,1,0,0,0,
- 496,494,1,0,0,0,497,499,3,78,39,0,498,497,1,0,0,0,498,499,1,0,0,0,499,
- 501,1,0,0,0,500,502,3,50,25,0,501,500,1,0,0,0,501,502,1,0,0,0,502,49,
- 1,0,0,0,503,504,5,66,0,0,504,506,3,154,77,0,505,507,5,175,0,0,506,505,
- 1,0,0,0,506,507,1,0,0,0,507,510,1,0,0,0,508,509,5,151,0,0,509,511,3,154,
- 77,0,510,508,1,0,0,0,510,511,1,0,0,0,511,514,1,0,0,0,512,513,5,130,0,
- 0,513,515,5,107,0,0,514,512,1,0,0,0,514,515,1,0,0,0,515,531,1,0,0,0,516,
- 517,5,66,0,0,517,519,3,154,77,0,518,520,5,175,0,0,519,518,1,0,0,0,519,
- 520,1,0,0,0,520,523,1,0,0,0,521,522,5,130,0,0,522,524,5,107,0,0,523,521,
- 1,0,0,0,523,524,1,0,0,0,524,525,1,0,0,0,525,526,5,76,0,0,526,527,3,154,
- 77,0,527,531,1,0,0,0,528,529,5,76,0,0,529,531,3,154,77,0,530,503,1,0,
- 0,0,530,516,1,0,0,0,530,528,1,0,0,0,531,51,1,0,0,0,532,534,3,54,27,0,
- 533,532,1,0,0,0,533,534,1,0,0,0,534,535,1,0,0,0,535,537,5,99,0,0,536,
- 538,5,25,0,0,537,536,1,0,0,0,537,538,1,0,0,0,538,540,1,0,0,0,539,541,
- 3,56,28,0,540,539,1,0,0,0,540,541,1,0,0,0,541,542,1,0,0,0,542,544,3,148,
- 74,0,543,545,3,58,29,0,544,543,1,0,0,0,544,545,1,0,0,0,545,547,1,0,0,
- 0,546,548,3,60,30,0,547,546,1,0,0,0,547,548,1,0,0,0,548,550,1,0,0,0,549,
- 551,3,64,32,0,550,549,1,0,0,0,550,551,1,0,0,0,551,553,1,0,0,0,552,554,
- 3,66,33,0,553,552,1,0,0,0,553,554,1,0,0,0,554,559,1,0,0,0,555,557,5,123,
- 0,0,556,555,1,0,0,0,556,557,1,0,0,0,557,558,1,0,0,0,558,560,3,104,52,
- 0,559,556,1,0,0,0,559,560,1,0,0,0,560,562,1,0,0,0,561,563,3,68,34,0,562,
- 561,1,0,0,0,562,563,1,0,0,0,563,566,1,0,0,0,564,565,5,130,0,0,565,567,
- 7,1,0,0,566,564,1,0,0,0,566,567,1,0,0,0,567,570,1,0,0,0,568,569,5,130,
- 0,0,569,571,5,114,0,0,570,568,1,0,0,0,570,571,1,0,0,0,571,573,1,0,0,0,
- 572,574,3,74,37,0,573,572,1,0,0,0,573,574,1,0,0,0,574,576,1,0,0,0,575,
- 577,3,76,38,0,576,575,1,0,0,0,576,577,1,0,0,0,577,580,1,0,0,0,578,579,
- 5,123,0,0,579,581,3,104,52,0,580,578,1,0,0,0,580,581,1,0,0,0,581,583,
- 1,0,0,0,582,584,3,62,31,0,583,582,1,0,0,0,583,584,1,0,0,0,584,586,1,0,
- 0,0,585,587,3,78,39,0,586,585,1,0,0,0,586,587,1,0,0,0,587,589,1,0,0,0,
- 588,590,3,84,42,0,589,588,1,0,0,0,589,590,1,0,0,0,590,593,1,0,0,0,591,
- 594,3,86,43,0,592,594,3,88,44,0,593,591,1,0,0,0,593,592,1,0,0,0,593,594,
- 1,0,0,0,594,596,1,0,0,0,595,597,3,90,45,0,596,595,1,0,0,0,596,597,1,0,
- 0,0,597,53,1,0,0,0,598,600,5,130,0,0,599,601,5,90,0,0,600,599,1,0,0,0,
- 600,601,1,0,0,0,601,602,1,0,0,0,602,603,3,170,85,0,603,55,1,0,0,0,604,
- 605,5,113,0,0,605,608,5,139,0,0,606,607,5,130,0,0,607,609,5,107,0,0,608,
- 606,1,0,0,0,608,609,1,0,0,0,609,57,1,0,0,0,610,611,5,39,0,0,611,612,3,
- 96,48,0,612,59,1,0,0,0,613,615,7,2,0,0,614,613,1,0,0,0,614,615,1,0,0,
- 0,615,616,1,0,0,0,616,617,5,5,0,0,617,618,5,58,0,0,618,619,3,146,73,0,
- 619,61,1,0,0,0,620,621,5,129,0,0,621,622,3,220,110,0,622,623,5,6,0,0,
- 623,624,5,165,0,0,624,625,3,122,61,0,625,635,5,186,0,0,626,627,5,151,
- 0,0,627,628,3,220,110,0,628,629,5,6,0,0,629,630,5,165,0,0,630,631,3,122,
- 61,0,631,632,5,186,0,0,632,634,1,0,0,0,633,626,1,0,0,0,634,637,1,0,0,
- 0,635,633,1,0,0,0,635,636,1,0,0,0,636,63,1,0,0,0,637,635,1,0,0,0,638,
- 639,5,86,0,0,639,640,3,154,77,0,640,65,1,0,0,0,641,642,5,127,0,0,642,
- 643,3,154,77,0,643,67,1,0,0,0,644,645,5,42,0,0,645,659,5,11,0,0,646,660,
- 5,1,0,0,647,648,7,1,0,0,648,649,5,165,0,0,649,650,3,146,73,0,650,651,
- 5,186,0,0,651,660,1,0,0,0,652,653,5,43,0,0,653,654,5,101,0,0,654,655,
- 5,165,0,0,655,656,3,70,35,0,656,657,5,186,0,0,657,660,1,0,0,0,658,660,
- 3,146,73,0,659,646,1,0,0,0,659,647,1,0,0,0,659,652,1,0,0,0,659,658,1,
- 0,0,0,660,69,1,0,0,0,661,666,3,72,36,0,662,663,5,151,0,0,663,665,3,72,
- 36,0,664,662,1,0,0,0,665,668,1,0,0,0,666,664,1,0,0,0,666,667,1,0,0,0,
- 667,71,1,0,0,0,668,666,1,0,0,0,669,671,5,165,0,0,670,672,3,146,73,0,671,
- 670,1,0,0,0,671,672,1,0,0,0,672,673,1,0,0,0,673,674,5,186,0,0,674,73,
- 1,0,0,0,675,676,5,44,0,0,676,677,3,154,77,0,677,75,1,0,0,0,678,679,5,
- 87,0,0,679,680,3,154,77,0,680,77,1,0,0,0,681,682,5,79,0,0,682,683,5,11,
- 0,0,683,685,3,108,54,0,684,686,3,80,40,0,685,684,1,0,0,0,685,686,1,0,
- 0,0,686,79,1,0,0,0,687,699,5,55,0,0,688,689,5,165,0,0,689,694,3,114,57,
- 0,690,691,5,151,0,0,691,693,3,114,57,0,692,690,1,0,0,0,693,696,1,0,0,
- 0,694,692,1,0,0,0,694,695,1,0,0,0,695,697,1,0,0,0,696,694,1,0,0,0,697,
- 698,5,186,0,0,698,700,1,0,0,0,699,688,1,0,0,0,699,700,1,0,0,0,700,81,
- 1,0,0,0,701,702,5,79,0,0,702,703,5,11,0,0,703,704,3,146,73,0,704,83,1,
- 0,0,0,705,706,5,66,0,0,706,707,3,106,53,0,707,708,5,11,0,0,708,709,3,
- 146,73,0,709,85,1,0,0,0,710,711,5,66,0,0,711,713,3,154,77,0,712,714,5,
- 175,0,0,713,712,1,0,0,0,713,714,1,0,0,0,714,717,1,0,0,0,715,716,5,151,
- 0,0,716,718,3,154,77,0,717,715,1,0,0,0,717,718,1,0,0,0,718,721,1,0,0,
- 0,719,720,5,130,0,0,720,722,5,107,0,0,721,719,1,0,0,0,721,722,1,0,0,0,
- 722,736,1,0,0,0,723,724,5,66,0,0,724,726,3,154,77,0,725,727,5,175,0,0,
- 726,725,1,0,0,0,726,727,1,0,0,0,727,730,1,0,0,0,728,729,5,130,0,0,729,
- 731,5,107,0,0,730,728,1,0,0,0,730,731,1,0,0,0,731,732,1,0,0,0,732,733,
- 5,76,0,0,733,734,3,154,77,0,734,736,1,0,0,0,735,710,1,0,0,0,735,723,1,
- 0,0,0,736,87,1,0,0,0,737,738,5,76,0,0,738,739,3,154,77,0,739,89,1,0,0,
- 0,740,741,5,102,0,0,741,742,3,118,59,0,742,91,1,0,0,0,743,744,5,124,0,
- 0,744,749,3,94,47,0,745,746,5,151,0,0,746,748,3,94,47,0,747,745,1,0,0,
- 0,748,751,1,0,0,0,749,747,1,0,0,0,749,750,1,0,0,0,750,93,1,0,0,0,751,
- 749,1,0,0,0,752,753,5,165,0,0,753,758,3,154,77,0,754,755,5,151,0,0,755,
- 757,3,154,77,0,756,754,1,0,0,0,757,760,1,0,0,0,758,756,1,0,0,0,758,759,
- 1,0,0,0,759,761,1,0,0,0,760,758,1,0,0,0,761,762,5,186,0,0,762,95,1,0,
- 0,0,763,764,6,48,-1,0,764,766,3,180,90,0,765,767,5,31,0,0,766,765,1,0,
- 0,0,766,767,1,0,0,0,767,769,1,0,0,0,768,770,3,104,52,0,769,768,1,0,0,
- 0,769,770,1,0,0,0,770,776,1,0,0,0,771,772,5,165,0,0,772,773,3,96,48,0,
- 773,774,5,186,0,0,774,776,1,0,0,0,775,763,1,0,0,0,775,771,1,0,0,0,776,
- 824,1,0,0,0,777,778,10,5,0,0,778,779,3,100,50,0,779,780,3,96,48,6,780,
- 823,1,0,0,0,781,783,10,7,0,0,782,784,5,71,0,0,783,782,1,0,0,0,783,784,
- 1,0,0,0,784,786,1,0,0,0,785,787,3,98,49,0,786,785,1,0,0,0,786,787,1,0,
- 0,0,787,788,1,0,0,0,788,789,5,58,0,0,789,791,3,96,48,0,790,792,3,102,
- 51,0,791,790,1,0,0,0,791,792,1,0,0,0,792,823,1,0,0,0,793,794,10,6,0,0,
- 794,795,5,84,0,0,795,796,5,58,0,0,796,798,3,96,48,0,797,799,3,102,51,
- 0,798,797,1,0,0,0,798,799,1,0,0,0,799,823,1,0,0,0,800,801,10,4,0,0,801,
- 802,5,83,0,0,802,803,5,165,0,0,803,804,3,146,73,0,804,808,3,182,91,0,
- 805,806,5,42,0,0,806,807,5,11,0,0,807,809,3,146,73,0,808,805,1,0,0,0,
- 808,809,1,0,0,0,809,810,1,0,0,0,810,811,5,186,0,0,811,823,1,0,0,0,812,
- 813,10,3,0,0,813,816,5,122,0,0,814,815,5,50,0,0,815,817,5,75,0,0,816,
- 814,1,0,0,0,816,817,1,0,0,0,817,818,1,0,0,0,818,819,5,165,0,0,819,820,
- 3,186,93,0,820,821,5,186,0,0,821,823,1,0,0,0,822,777,1,0,0,0,822,781,
- 1,0,0,0,822,793,1,0,0,0,822,800,1,0,0,0,822,812,1,0,0,0,823,826,1,0,0,
- 0,824,822,1,0,0,0,824,825,1,0,0,0,825,97,1,0,0,0,826,824,1,0,0,0,827,
- 829,7,3,0,0,828,827,1,0,0,0,828,829,1,0,0,0,829,830,1,0,0,0,830,841,5,
- 53,0,0,831,833,5,53,0,0,832,834,7,3,0,0,833,832,1,0,0,0,833,834,1,0,0,
- 0,834,841,1,0,0,0,835,841,7,3,0,0,836,841,5,3,0,0,837,841,5,100,0,0,838,
- 839,5,8,0,0,839,841,7,4,0,0,840,828,1,0,0,0,840,831,1,0,0,0,840,835,1,
- 0,0,0,840,836,1,0,0,0,840,837,1,0,0,0,840,838,1,0,0,0,841,881,1,0,0,0,
- 842,844,7,5,0,0,843,842,1,0,0,0,843,844,1,0,0,0,844,845,1,0,0,0,845,847,
- 7,6,0,0,846,848,5,80,0,0,847,846,1,0,0,0,847,848,1,0,0,0,848,863,1,0,
- 0,0,849,851,7,6,0,0,850,852,5,80,0,0,851,850,1,0,0,0,851,852,1,0,0,0,
- 852,854,1,0,0,0,853,855,7,5,0,0,854,853,1,0,0,0,854,855,1,0,0,0,855,863,
- 1,0,0,0,856,857,5,8,0,0,857,858,7,4,0,0,858,860,7,6,0,0,859,861,5,80,
- 0,0,860,859,1,0,0,0,860,861,1,0,0,0,861,863,1,0,0,0,862,843,1,0,0,0,862,
- 849,1,0,0,0,862,856,1,0,0,0,863,881,1,0,0,0,864,866,7,3,0,0,865,864,1,
- 0,0,0,865,866,1,0,0,0,866,867,1,0,0,0,867,869,5,40,0,0,868,870,5,80,0,
- 0,869,868,1,0,0,0,869,870,1,0,0,0,870,879,1,0,0,0,871,873,5,40,0,0,872,
- 874,5,80,0,0,873,872,1,0,0,0,873,874,1,0,0,0,874,876,1,0,0,0,875,877,
- 7,3,0,0,876,875,1,0,0,0,876,877,1,0,0,0,877,879,1,0,0,0,878,865,1,0,0,
- 0,878,871,1,0,0,0,879,881,1,0,0,0,880,840,1,0,0,0,880,862,1,0,0,0,880,
- 878,1,0,0,0,881,99,1,0,0,0,882,883,5,18,0,0,883,886,5,58,0,0,884,886,
- 5,151,0,0,885,882,1,0,0,0,885,884,1,0,0,0,886,101,1,0,0,0,887,888,5,77,
- 0,0,888,897,3,146,73,0,889,890,5,123,0,0,890,891,5,165,0,0,891,892,3,
- 146,73,0,892,893,5,186,0,0,893,897,1,0,0,0,894,895,5,123,0,0,895,897,
- 3,146,73,0,896,887,1,0,0,0,896,889,1,0,0,0,896,894,1,0,0,0,897,103,1,
- 0,0,0,898,899,5,97,0,0,899,901,3,116,58,0,900,902,5,175,0,0,901,900,1,
- 0,0,0,901,902,1,0,0,0,902,905,1,0,0,0,903,904,5,76,0,0,904,906,3,116,
- 58,0,905,903,1,0,0,0,905,906,1,0,0,0,906,911,1,0,0,0,907,908,5,165,0,
- 0,908,909,3,220,110,0,909,910,5,186,0,0,910,912,1,0,0,0,911,907,1,0,0,
- 0,911,912,1,0,0,0,912,105,1,0,0,0,913,916,3,154,77,0,914,915,7,7,0,0,
- 915,917,3,154,77,0,916,914,1,0,0,0,916,917,1,0,0,0,917,107,1,0,0,0,918,
- 923,3,110,55,0,919,920,5,151,0,0,920,922,3,110,55,0,921,919,1,0,0,0,922,
- 925,1,0,0,0,923,921,1,0,0,0,923,924,1,0,0,0,924,109,1,0,0,0,925,923,1,
- 0,0,0,926,928,3,154,77,0,927,929,7,8,0,0,928,927,1,0,0,0,928,929,1,0,
- 0,0,929,932,1,0,0,0,930,931,5,75,0,0,931,933,7,9,0,0,932,930,1,0,0,0,
- 932,933,1,0,0,0,933,936,1,0,0,0,934,935,5,16,0,0,935,937,5,143,0,0,936,
- 934,1,0,0,0,936,937,1,0,0,0,937,939,1,0,0,0,938,940,3,112,56,0,939,938,
- 1,0,0,0,939,940,1,0,0,0,940,111,1,0,0,0,941,942,5,130,0,0,942,945,5,32,
- 0,0,943,944,5,39,0,0,944,946,3,154,77,0,945,943,1,0,0,0,945,946,1,0,0,
- 0,946,949,1,0,0,0,947,948,5,112,0,0,948,950,3,154,77,0,949,947,1,0,0,
- 0,949,950,1,0,0,0,950,953,1,0,0,0,951,952,5,103,0,0,952,954,3,154,77,
- 0,953,951,1,0,0,0,953,954,1,0,0,0,954,113,1,0,0,0,955,958,3,154,77,0,
- 956,957,5,6,0,0,957,959,3,154,77,0,958,956,1,0,0,0,958,959,1,0,0,0,959,
- 115,1,0,0,0,960,967,3,224,112,0,961,964,3,204,102,0,962,963,5,188,0,0,
- 963,965,3,204,102,0,964,962,1,0,0,0,964,965,1,0,0,0,965,967,1,0,0,0,966,
- 960,1,0,0,0,966,961,1,0,0,0,967,117,1,0,0,0,968,973,3,120,60,0,969,970,
- 5,151,0,0,970,972,3,120,60,0,971,969,1,0,0,0,972,975,1,0,0,0,973,971,
- 1,0,0,0,973,974,1,0,0,0,974,119,1,0,0,0,975,973,1,0,0,0,976,977,3,220,
- 110,0,977,978,5,157,0,0,978,979,3,206,103,0,979,121,1,0,0,0,980,982,3,
- 124,62,0,981,980,1,0,0,0,981,982,1,0,0,0,982,984,1,0,0,0,983,985,3,126,
- 63,0,984,983,1,0,0,0,984,985,1,0,0,0,985,987,1,0,0,0,986,988,3,130,65,
- 0,987,986,1,0,0,0,987,988,1,0,0,0,988,123,1,0,0,0,989,990,5,82,0,0,990,
- 991,5,11,0,0,991,992,3,146,73,0,992,125,1,0,0,0,993,994,5,79,0,0,994,
- 995,5,11,0,0,995,996,3,108,54,0,996,127,1,0,0,0,997,998,5,131,0,0,998,
- 999,5,42,0,0,999,1000,5,165,0,0,1000,1001,3,78,39,0,1001,1002,5,186,0,
- 0,1002,129,1,0,0,0,1003,1004,7,10,0,0,1004,1005,3,132,66,0,1005,131,1,
- 0,0,0,1006,1013,3,134,67,0,1007,1008,5,9,0,0,1008,1009,3,134,67,0,1009,
- 1010,5,2,0,0,1010,1011,3,134,67,0,1011,1013,1,0,0,0,1012,1006,1,0,0,0,
- 1012,1007,1,0,0,0,1013,133,1,0,0,0,1014,1015,5,20,0,0,1015,1027,5,95,
- 0,0,1016,1017,5,120,0,0,1017,1027,5,85,0,0,1018,1019,5,120,0,0,1019,1027,
- 5,37,0,0,1020,1021,3,154,77,0,1021,1022,5,85,0,0,1022,1027,1,0,0,0,1023,
- 1024,3,154,77,0,1024,1025,5,37,0,0,1025,1027,1,0,0,0,1026,1014,1,0,0,
- 0,1026,1016,1,0,0,0,1026,1018,1,0,0,0,1026,1020,1,0,0,0,1026,1023,1,0,
- 0,0,1027,135,1,0,0,0,1028,1029,3,154,77,0,1029,1030,5,0,0,1,1030,137,
- 1,0,0,0,1031,1032,6,69,-1,0,1032,1033,3,220,110,0,1033,1034,5,165,0,0,
- 1034,1035,3,220,110,0,1035,1042,3,138,69,0,1036,1037,5,151,0,0,1037,1038,
- 3,220,110,0,1038,1039,3,138,69,0,1039,1041,1,0,0,0,1040,1036,1,0,0,0,
- 1041,1044,1,0,0,0,1042,1040,1,0,0,0,1042,1043,1,0,0,0,1043,1046,1,0,0,
- 0,1044,1042,1,0,0,0,1045,1047,5,151,0,0,1046,1045,1,0,0,0,1046,1047,1,
- 0,0,0,1047,1048,1,0,0,0,1048,1049,5,186,0,0,1049,1095,1,0,0,0,1050,1051,
- 3,220,110,0,1051,1052,5,165,0,0,1052,1057,3,222,111,0,1053,1054,5,151,
- 0,0,1054,1056,3,222,111,0,1055,1053,1,0,0,0,1056,1059,1,0,0,0,1057,1055,
- 1,0,0,0,1057,1058,1,0,0,0,1058,1061,1,0,0,0,1059,1057,1,0,0,0,1060,1062,
- 5,151,0,0,1061,1060,1,0,0,0,1061,1062,1,0,0,0,1062,1063,1,0,0,0,1063,
- 1064,5,186,0,0,1064,1095,1,0,0,0,1065,1066,3,220,110,0,1066,1067,5,165,
- 0,0,1067,1072,3,138,69,0,1068,1069,5,151,0,0,1069,1071,3,138,69,0,1070,
- 1068,1,0,0,0,1071,1074,1,0,0,0,1072,1070,1,0,0,0,1072,1073,1,0,0,0,1073,
- 1076,1,0,0,0,1074,1072,1,0,0,0,1075,1077,5,151,0,0,1076,1075,1,0,0,0,
- 1076,1077,1,0,0,0,1077,1078,1,0,0,0,1078,1079,5,186,0,0,1079,1095,1,0,
- 0,0,1080,1081,3,220,110,0,1081,1083,5,165,0,0,1082,1084,3,146,73,0,1083,
- 1082,1,0,0,0,1083,1084,1,0,0,0,1084,1085,1,0,0,0,1085,1086,5,186,0,0,
- 1086,1095,1,0,0,0,1087,1089,3,220,110,0,1088,1090,3,220,110,0,1089,1088,
- 1,0,0,0,1090,1091,1,0,0,0,1091,1089,1,0,0,0,1091,1092,1,0,0,0,1092,1095,
- 1,0,0,0,1093,1095,3,220,110,0,1094,1031,1,0,0,0,1094,1050,1,0,0,0,1094,
- 1065,1,0,0,0,1094,1080,1,0,0,0,1094,1087,1,0,0,0,1094,1093,1,0,0,0,1095,
- 1104,1,0,0,0,1096,1097,10,7,0,0,1097,1099,5,164,0,0,1098,1100,5,139,0,
- 0,1099,1098,1,0,0,0,1099,1100,1,0,0,0,1100,1101,1,0,0,0,1101,1103,5,185,
- 0,0,1102,1096,1,0,0,0,1103,1106,1,0,0,0,1104,1102,1,0,0,0,1104,1105,1,
- 0,0,0,1105,139,1,0,0,0,1106,1104,1,0,0,0,1107,1108,3,142,71,0,1108,1110,
- 5,130,0,0,1109,1111,5,110,0,0,1110,1109,1,0,0,0,1110,1111,1,0,0,0,1111,
- 1112,1,0,0,0,1112,1113,5,109,0,0,1113,1114,5,111,0,0,1114,1117,1,0,0,
- 0,1115,1117,3,142,71,0,1116,1107,1,0,0,0,1116,1115,1,0,0,0,1117,141,1,
- 0,0,0,1118,1123,5,134,0,0,1119,1123,5,135,0,0,1120,1123,3,208,104,0,1121,
- 1123,3,144,72,0,1122,1118,1,0,0,0,1122,1119,1,0,0,0,1122,1120,1,0,0,0,
- 1122,1121,1,0,0,0,1123,143,1,0,0,0,1124,1125,7,11,0,0,1125,145,1,0,0,
- 0,1126,1131,3,154,77,0,1127,1128,5,151,0,0,1128,1130,3,154,77,0,1129,
- 1127,1,0,0,0,1130,1133,1,0,0,0,1131,1129,1,0,0,0,1131,1132,1,0,0,0,1132,
- 1135,1,0,0,0,1133,1131,1,0,0,0,1134,1136,5,151,0,0,1135,1134,1,0,0,0,
- 1135,1136,1,0,0,0,1136,147,1,0,0,0,1137,1142,3,152,76,0,1138,1139,5,151,
- 0,0,1139,1141,3,152,76,0,1140,1138,1,0,0,0,1141,1144,1,0,0,0,1142,1140,
- 1,0,0,0,1142,1143,1,0,0,0,1143,1145,1,0,0,0,1144,1142,1,0,0,0,1145,1146,
- 5,151,0,0,1146,1149,1,0,0,0,1147,1149,3,150,75,0,1148,1137,1,0,0,0,1148,
- 1147,1,0,0,0,1149,149,1,0,0,0,1150,1155,3,152,76,0,1151,1152,5,151,0,
- 0,1152,1154,3,152,76,0,1153,1151,1,0,0,0,1154,1157,1,0,0,0,1155,1153,
- 1,0,0,0,1155,1156,1,0,0,0,1156,1159,1,0,0,0,1157,1155,1,0,0,0,1158,1160,
- 5,151,0,0,1159,1158,1,0,0,0,1159,1160,1,0,0,0,1160,151,1,0,0,0,1161,1162,
- 3,220,110,0,1162,1163,5,150,0,0,1163,1164,3,154,77,0,1164,1172,1,0,0,
- 0,1165,1166,5,39,0,0,1166,1172,3,218,109,0,1167,1172,3,154,77,0,1168,
- 1169,3,154,77,0,1169,1170,3,218,109,0,1170,1172,1,0,0,0,1171,1161,1,0,
- 0,0,1171,1165,1,0,0,0,1171,1167,1,0,0,0,1171,1168,1,0,0,0,1172,153,1,
- 0,0,0,1173,1174,6,77,-1,0,1174,1176,5,12,0,0,1175,1177,3,154,77,0,1176,
- 1175,1,0,0,0,1176,1177,1,0,0,0,1177,1183,1,0,0,0,1178,1179,5,126,0,0,
- 1179,1180,3,154,77,0,1180,1181,5,105,0,0,1181,1182,3,154,77,0,1182,1184,
- 1,0,0,0,1183,1178,1,0,0,0,1184,1185,1,0,0,0,1185,1183,1,0,0,0,1185,1186,
- 1,0,0,0,1186,1189,1,0,0,0,1187,1188,5,26,0,0,1188,1190,3,154,77,0,1189,
- 1187,1,0,0,0,1189,1190,1,0,0,0,1190,1191,1,0,0,0,1191,1192,5,27,0,0,1192,
- 1523,1,0,0,0,1193,1194,5,13,0,0,1194,1195,5,165,0,0,1195,1196,3,154,77,
- 0,1196,1197,5,6,0,0,1197,1198,3,138,69,0,1198,1199,5,186,0,0,1199,1523,
- 1,0,0,0,1200,1201,5,119,0,0,1201,1202,5,165,0,0,1202,1203,3,154,77,0,
- 1203,1204,5,6,0,0,1204,1205,3,138,69,0,1205,1206,5,186,0,0,1206,1523,
- 1,0,0,0,1207,1208,5,21,0,0,1208,1523,5,143,0,0,1209,1210,5,56,0,0,1210,
- 1211,3,154,77,0,1211,1212,3,208,104,0,1212,1523,1,0,0,0,1213,1214,5,56,
- 0,0,1214,1523,5,143,0,0,1215,1216,5,104,0,0,1216,1217,5,165,0,0,1217,
- 1218,3,154,77,0,1218,1219,5,39,0,0,1219,1222,3,154,77,0,1220,1221,5,38,
- 0,0,1221,1223,3,154,77,0,1222,1220,1,0,0,0,1222,1223,1,0,0,0,1223,1224,
- 1,0,0,0,1224,1225,5,186,0,0,1225,1523,1,0,0,0,1226,1227,5,108,0,0,1227,
- 1523,5,143,0,0,1228,1229,5,116,0,0,1229,1230,5,165,0,0,1230,1231,7,12,
- 0,0,1231,1232,3,226,113,0,1232,1233,5,39,0,0,1233,1234,3,154,77,0,1234,
- 1235,5,186,0,0,1235,1523,1,0,0,0,1236,1237,5,17,0,0,1237,1238,5,165,0,
- 0,1238,1239,5,143,0,0,1239,1523,5,186,0,0,1240,1241,5,17,0,0,1241,1242,
- 5,165,0,0,1242,1243,3,146,73,0,1243,1244,5,186,0,0,1244,1523,1,0,0,0,
- 1245,1246,5,17,0,0,1246,1247,5,165,0,0,1247,1248,5,145,0,0,1248,1249,
- 5,29,0,0,1249,1250,5,165,0,0,1250,1251,3,8,4,0,1251,1252,5,186,0,0,1252,
- 1253,5,91,0,0,1253,1254,5,165,0,0,1254,1255,3,158,79,0,1255,1256,5,186,
- 0,0,1256,1257,5,186,0,0,1257,1271,1,0,0,0,1258,1259,5,165,0,0,1259,1260,
- 5,145,0,0,1260,1261,5,29,0,0,1261,1262,5,165,0,0,1262,1263,3,8,4,0,1263,
- 1264,5,186,0,0,1264,1265,5,91,0,0,1265,1266,5,165,0,0,1266,1267,3,158,
- 79,0,1267,1268,5,186,0,0,1268,1269,5,186,0,0,1269,1271,1,0,0,0,1270,1245,
- 1,0,0,0,1270,1258,1,0,0,0,1271,1523,1,0,0,0,1272,1273,5,17,0,0,1273,1274,
- 5,165,0,0,1274,1275,5,145,0,0,1275,1276,5,29,0,0,1276,1277,5,165,0,0,
- 1277,1278,3,8,4,0,1278,1279,5,186,0,0,1279,1280,5,186,0,0,1280,1523,1,
- 0,0,0,1281,1282,5,17,0,0,1282,1283,5,165,0,0,1283,1284,5,145,0,0,1284,
- 1285,5,91,0,0,1285,1286,5,165,0,0,1286,1287,3,158,79,0,1287,1288,5,186,
- 0,0,1288,1289,5,186,0,0,1289,1299,1,0,0,0,1290,1291,5,165,0,0,1291,1292,
- 5,145,0,0,1292,1293,5,91,0,0,1293,1294,5,165,0,0,1294,1295,3,158,79,0,
- 1295,1296,5,186,0,0,1296,1297,5,186,0,0,1297,1299,1,0,0,0,1298,1281,1,
- 0,0,0,1298,1290,1,0,0,0,1299,1523,1,0,0,0,1300,1301,5,17,0,0,1301,1302,
- 5,165,0,0,1302,1303,5,145,0,0,1303,1523,5,186,0,0,1304,1305,5,17,0,0,
- 1305,1306,5,165,0,0,1306,1307,3,220,110,0,1307,1308,5,155,0,0,1308,1309,
- 5,145,0,0,1309,1310,5,29,0,0,1310,1311,5,165,0,0,1311,1312,3,8,4,0,1312,
- 1313,5,186,0,0,1313,1314,5,91,0,0,1314,1315,5,165,0,0,1315,1316,3,158,
- 79,0,1316,1317,5,186,0,0,1317,1318,5,186,0,0,1318,1523,1,0,0,0,1319,1320,
- 5,17,0,0,1320,1321,5,165,0,0,1321,1322,3,220,110,0,1322,1323,5,155,0,
- 0,1323,1324,5,145,0,0,1324,1325,5,29,0,0,1325,1326,5,165,0,0,1326,1327,
- 3,8,4,0,1327,1328,5,186,0,0,1328,1329,5,186,0,0,1329,1523,1,0,0,0,1330,
- 1331,5,17,0,0,1331,1332,5,165,0,0,1332,1333,3,220,110,0,1333,1334,5,155,
- 0,0,1334,1335,5,145,0,0,1335,1336,5,91,0,0,1336,1337,5,165,0,0,1337,1338,
- 3,158,79,0,1338,1339,5,186,0,0,1339,1340,5,186,0,0,1340,1523,1,0,0,0,
- 1341,1342,5,17,0,0,1342,1343,5,165,0,0,1343,1344,3,220,110,0,1344,1345,
- 5,155,0,0,1345,1346,5,145,0,0,1346,1347,5,186,0,0,1347,1523,1,0,0,0,1348,
- 1349,5,145,0,0,1349,1350,5,17,0,0,1350,1351,5,165,0,0,1351,1352,5,143,
- 0,0,1352,1523,5,186,0,0,1353,1354,5,145,0,0,1354,1355,5,17,0,0,1355,1356,
- 5,165,0,0,1356,1357,3,146,73,0,1357,1358,5,186,0,0,1358,1523,1,0,0,0,
- 1359,1360,3,220,110,0,1360,1362,5,165,0,0,1361,1363,3,146,73,0,1362,1361,
- 1,0,0,0,1362,1363,1,0,0,0,1363,1364,1,0,0,0,1364,1365,5,186,0,0,1365,
- 1366,3,128,64,0,1366,1523,1,0,0,0,1367,1368,3,220,110,0,1368,1370,5,165,
- 0,0,1369,1371,3,146,73,0,1370,1369,1,0,0,0,1370,1371,1,0,0,0,1371,1372,
- 1,0,0,0,1372,1373,5,186,0,0,1373,1382,1,0,0,0,1374,1376,5,165,0,0,1375,
- 1377,5,25,0,0,1376,1375,1,0,0,0,1376,1377,1,0,0,0,1377,1379,1,0,0,0,1378,
- 1380,3,146,73,0,1379,1378,1,0,0,0,1379,1380,1,0,0,0,1380,1381,1,0,0,0,
- 1381,1383,5,186,0,0,1382,1374,1,0,0,0,1382,1383,1,0,0,0,1383,1390,1,0,
- 0,0,1384,1385,5,33,0,0,1385,1386,5,165,0,0,1386,1387,5,127,0,0,1387,1388,
- 3,154,77,0,1388,1389,5,186,0,0,1389,1391,1,0,0,0,1390,1384,1,0,0,0,1390,
- 1391,1,0,0,0,1391,1392,1,0,0,0,1392,1393,5,81,0,0,1393,1394,5,165,0,0,
- 1394,1395,3,122,61,0,1395,1396,5,186,0,0,1396,1523,1,0,0,0,1397,1398,
- 3,220,110,0,1398,1400,5,165,0,0,1399,1401,3,146,73,0,1400,1399,1,0,0,
- 0,1400,1401,1,0,0,0,1401,1402,1,0,0,0,1402,1403,5,186,0,0,1403,1412,1,
- 0,0,0,1404,1406,5,165,0,0,1405,1407,5,25,0,0,1406,1405,1,0,0,0,1406,1407,
- 1,0,0,0,1407,1409,1,0,0,0,1408,1410,3,146,73,0,1409,1408,1,0,0,0,1409,
- 1410,1,0,0,0,1410,1411,1,0,0,0,1411,1413,5,186,0,0,1412,1404,1,0,0,0,
- 1412,1413,1,0,0,0,1413,1420,1,0,0,0,1414,1415,5,33,0,0,1415,1416,5,165,
- 0,0,1416,1417,5,127,0,0,1417,1418,3,154,77,0,1418,1419,5,186,0,0,1419,
- 1421,1,0,0,0,1420,1414,1,0,0,0,1420,1421,1,0,0,0,1421,1422,1,0,0,0,1422,
- 1423,5,81,0,0,1423,1424,3,220,110,0,1424,1523,1,0,0,0,1425,1431,3,220,
- 110,0,1426,1428,5,165,0,0,1427,1429,3,146,73,0,1428,1427,1,0,0,0,1428,
- 1429,1,0,0,0,1429,1430,1,0,0,0,1430,1432,5,186,0,0,1431,1426,1,0,0,0,
- 1431,1432,1,0,0,0,1432,1433,1,0,0,0,1433,1435,5,165,0,0,1434,1436,5,25,
- 0,0,1435,1434,1,0,0,0,1435,1436,1,0,0,0,1436,1438,1,0,0,0,1437,1439,3,
- 146,73,0,1438,1437,1,0,0,0,1438,1439,1,0,0,0,1439,1443,1,0,0,0,1440,1441,
- 5,79,0,0,1441,1442,5,11,0,0,1442,1444,3,108,54,0,1443,1440,1,0,0,0,1443,
- 1444,1,0,0,0,1444,1445,1,0,0,0,1445,1452,5,186,0,0,1446,1447,5,33,0,0,
- 1447,1448,5,165,0,0,1448,1449,5,127,0,0,1449,1450,3,154,77,0,1450,1451,
- 5,186,0,0,1451,1453,1,0,0,0,1452,1446,1,0,0,0,1452,1453,1,0,0,0,1453,
- 1523,1,0,0,0,1454,1523,3,166,83,0,1455,1523,3,228,114,0,1456,1523,3,206,
- 103,0,1457,1458,5,153,0,0,1458,1523,3,154,77,26,1459,1460,5,73,0,0,1460,
- 1523,3,154,77,17,1461,1462,3,196,98,0,1462,1463,5,155,0,0,1463,1465,1,
- 0,0,0,1464,1461,1,0,0,0,1464,1465,1,0,0,0,1465,1466,1,0,0,0,1466,1472,
- 5,145,0,0,1467,1468,5,29,0,0,1468,1469,5,165,0,0,1469,1470,3,8,4,0,1470,
- 1471,5,186,0,0,1471,1473,1,0,0,0,1472,1467,1,0,0,0,1472,1473,1,0,0,0,
- 1473,1523,1,0,0,0,1474,1475,5,60,0,0,1475,1480,3,220,110,0,1476,1477,
- 5,151,0,0,1477,1479,3,220,110,0,1478,1476,1,0,0,0,1479,1482,1,0,0,0,1480,
- 1478,1,0,0,0,1480,1481,1,0,0,0,1481,1484,1,0,0,0,1482,1480,1,0,0,0,1483,
- 1485,5,151,0,0,1484,1483,1,0,0,0,1484,1485,1,0,0,0,1485,1486,1,0,0,0,
- 1486,1487,5,150,0,0,1487,1488,3,154,77,10,1488,1523,1,0,0,0,1489,1490,
- 5,165,0,0,1490,1491,3,48,24,0,1491,1492,5,186,0,0,1492,1523,1,0,0,0,1493,
- 1494,5,165,0,0,1494,1495,3,154,77,0,1495,1496,5,186,0,0,1496,1523,1,0,
- 0,0,1497,1498,5,165,0,0,1498,1499,3,146,73,0,1499,1500,5,186,0,0,1500,
- 1523,1,0,0,0,1501,1503,5,5,0,0,1502,1501,1,0,0,0,1502,1503,1,0,0,0,1503,
- 1504,1,0,0,0,1504,1506,5,164,0,0,1505,1507,3,146,73,0,1506,1505,1,0,0,
- 0,1506,1507,1,0,0,0,1507,1508,1,0,0,0,1508,1523,5,185,0,0,1509,1511,5,
- 163,0,0,1510,1512,3,40,20,0,1511,1510,1,0,0,0,1511,1512,1,0,0,0,1512,
- 1513,1,0,0,0,1513,1523,5,184,0,0,1514,1523,3,156,78,0,1515,1516,3,220,
- 110,0,1516,1517,5,149,0,0,1517,1518,3,154,77,3,1518,1523,1,0,0,0,1519,
- 1520,5,160,0,0,1520,1523,5,139,0,0,1521,1523,3,176,88,0,1522,1173,1,0,
- 0,0,1522,1193,1,0,0,0,1522,1200,1,0,0,0,1522,1207,1,0,0,0,1522,1209,1,
- 0,0,0,1522,1213,1,0,0,0,1522,1215,1,0,0,0,1522,1226,1,0,0,0,1522,1228,
- 1,0,0,0,1522,1236,1,0,0,0,1522,1240,1,0,0,0,1522,1270,1,0,0,0,1522,1272,
- 1,0,0,0,1522,1298,1,0,0,0,1522,1300,1,0,0,0,1522,1304,1,0,0,0,1522,1319,
- 1,0,0,0,1522,1330,1,0,0,0,1522,1341,1,0,0,0,1522,1348,1,0,0,0,1522,1353,
- 1,0,0,0,1522,1359,1,0,0,0,1522,1367,1,0,0,0,1522,1397,1,0,0,0,1522,1425,
- 1,0,0,0,1522,1454,1,0,0,0,1522,1455,1,0,0,0,1522,1456,1,0,0,0,1522,1457,
- 1,0,0,0,1522,1459,1,0,0,0,1522,1464,1,0,0,0,1522,1474,1,0,0,0,1522,1489,
- 1,0,0,0,1522,1493,1,0,0,0,1522,1497,1,0,0,0,1522,1502,1,0,0,0,1522,1509,
- 1,0,0,0,1522,1514,1,0,0,0,1522,1515,1,0,0,0,1522,1519,1,0,0,0,1522,1521,
- 1,0,0,0,1523,1665,1,0,0,0,1524,1528,10,25,0,0,1525,1529,5,145,0,0,1526,
- 1529,5,188,0,0,1527,1529,5,175,0,0,1528,1525,1,0,0,0,1528,1526,1,0,0,
- 0,1528,1527,1,0,0,0,1529,1530,1,0,0,0,1530,1664,3,154,77,26,1531,1535,
- 10,24,0,0,1532,1536,5,176,0,0,1533,1536,5,153,0,0,1534,1536,5,152,0,0,
- 1535,1532,1,0,0,0,1535,1533,1,0,0,0,1535,1534,1,0,0,0,1536,1537,1,0,0,
- 0,1537,1664,3,154,77,25,1538,1563,10,23,0,0,1539,1564,5,156,0,0,1540,
- 1564,5,157,0,0,1541,1564,5,170,0,0,1542,1564,5,167,0,0,1543,1564,5,168,
- 0,0,1544,1564,5,158,0,0,1545,1564,5,159,0,0,1546,1548,5,73,0,0,1547,1546,
- 1,0,0,0,1547,1548,1,0,0,0,1548,1549,1,0,0,0,1549,1551,5,51,0,0,1550,1552,
- 5,15,0,0,1551,1550,1,0,0,0,1551,1552,1,0,0,0,1552,1564,1,0,0,0,1553,1555,
- 5,73,0,0,1554,1553,1,0,0,0,1554,1555,1,0,0,0,1555,1556,1,0,0,0,1556,1564,
- 7,13,0,0,1557,1564,5,182,0,0,1558,1564,5,183,0,0,1559,1564,5,172,0,0,
- 1560,1564,5,161,0,0,1561,1564,5,162,0,0,1562,1564,5,171,0,0,1563,1539,
- 1,0,0,0,1563,1540,1,0,0,0,1563,1541,1,0,0,0,1563,1542,1,0,0,0,1563,1543,
- 1,0,0,0,1563,1544,1,0,0,0,1563,1545,1,0,0,0,1563,1547,1,0,0,0,1563,1554,
- 1,0,0,0,1563,1557,1,0,0,0,1563,1558,1,0,0,0,1563,1559,1,0,0,0,1563,1560,
- 1,0,0,0,1563,1561,1,0,0,0,1563,1562,1,0,0,0,1564,1565,1,0,0,0,1565,1664,
- 3,154,77,24,1566,1567,10,20,0,0,1567,1569,5,57,0,0,1568,1570,5,73,0,0,
- 1569,1568,1,0,0,0,1569,1570,1,0,0,0,1570,1571,1,0,0,0,1571,1572,5,25,
- 0,0,1572,1573,5,39,0,0,1573,1664,3,154,77,21,1574,1575,10,19,0,0,1575,
- 1576,5,166,0,0,1576,1664,3,154,77,20,1577,1578,10,18,0,0,1578,1579,5,
- 174,0,0,1579,1664,3,154,77,19,1580,1581,10,16,0,0,1581,1582,5,2,0,0,1582,
- 1664,3,154,77,17,1583,1584,10,15,0,0,1584,1585,5,78,0,0,1585,1664,3,154,
- 77,16,1586,1588,10,14,0,0,1587,1589,5,73,0,0,1588,1587,1,0,0,0,1588,1589,
- 1,0,0,0,1589,1590,1,0,0,0,1590,1591,5,9,0,0,1591,1592,3,154,77,0,1592,
- 1593,5,2,0,0,1593,1594,3,154,77,15,1594,1664,1,0,0,0,1595,1596,10,13,
- 0,0,1596,1597,5,177,0,0,1597,1598,3,154,77,0,1598,1599,5,150,0,0,1599,
- 1600,3,154,77,13,1600,1664,1,0,0,0,1601,1602,10,39,0,0,1602,1603,5,165,
- 0,0,1603,1604,3,48,24,0,1604,1605,5,186,0,0,1605,1664,1,0,0,0,1606,1607,
- 10,38,0,0,1607,1609,5,165,0,0,1608,1610,3,146,73,0,1609,1608,1,0,0,0,
- 1609,1610,1,0,0,0,1610,1611,1,0,0,0,1611,1664,5,186,0,0,1612,1613,10,
- 34,0,0,1613,1614,5,164,0,0,1614,1615,3,154,77,0,1615,1616,5,185,0,0,1616,
- 1664,1,0,0,0,1617,1618,10,33,0,0,1618,1620,5,164,0,0,1619,1621,3,154,
- 77,0,1620,1619,1,0,0,0,1620,1621,1,0,0,0,1621,1622,1,0,0,0,1622,1624,
- 5,150,0,0,1623,1625,3,154,77,0,1624,1623,1,0,0,0,1624,1625,1,0,0,0,1625,
- 1626,1,0,0,0,1626,1664,5,185,0,0,1627,1628,10,32,0,0,1628,1629,5,155,
- 0,0,1629,1664,5,139,0,0,1630,1631,10,31,0,0,1631,1632,5,155,0,0,1632,
- 1664,3,220,110,0,1633,1634,10,30,0,0,1634,1635,5,173,0,0,1635,1636,5,
- 164,0,0,1636,1637,3,154,77,0,1637,1638,5,185,0,0,1638,1664,1,0,0,0,1639,
- 1640,10,29,0,0,1640,1641,5,173,0,0,1641,1664,5,139,0,0,1642,1643,10,28,
- 0,0,1643,1644,5,173,0,0,1644,1664,3,220,110,0,1645,1646,10,27,0,0,1646,
- 1647,5,148,0,0,1647,1664,3,140,70,0,1648,1649,10,22,0,0,1649,1650,5,49,
- 0,0,1650,1664,5,75,0,0,1651,1652,10,21,0,0,1652,1654,5,57,0,0,1653,1655,
- 5,73,0,0,1654,1653,1,0,0,0,1654,1655,1,0,0,0,1655,1656,1,0,0,0,1656,1664,
- 5,74,0,0,1657,1658,10,12,0,0,1658,1661,5,6,0,0,1659,1662,3,220,110,0,
- 1660,1662,5,143,0,0,1661,1659,1,0,0,0,1661,1660,1,0,0,0,1662,1664,1,0,
- 0,0,1663,1524,1,0,0,0,1663,1531,1,0,0,0,1663,1538,1,0,0,0,1663,1566,1,
- 0,0,0,1663,1574,1,0,0,0,1663,1577,1,0,0,0,1663,1580,1,0,0,0,1663,1583,
- 1,0,0,0,1663,1586,1,0,0,0,1663,1595,1,0,0,0,1663,1601,1,0,0,0,1663,1606,
- 1,0,0,0,1663,1612,1,0,0,0,1663,1617,1,0,0,0,1663,1627,1,0,0,0,1663,1630,
- 1,0,0,0,1663,1633,1,0,0,0,1663,1639,1,0,0,0,1663,1642,1,0,0,0,1663,1645,
- 1,0,0,0,1663,1648,1,0,0,0,1663,1651,1,0,0,0,1663,1657,1,0,0,0,1664,1667,
- 1,0,0,0,1665,1663,1,0,0,0,1665,1666,1,0,0,0,1666,155,1,0,0,0,1667,1665,
- 1,0,0,0,1668,1669,5,165,0,0,1669,1674,3,220,110,0,1670,1671,5,151,0,0,
- 1671,1673,3,220,110,0,1672,1670,1,0,0,0,1673,1676,1,0,0,0,1674,1672,1,
- 0,0,0,1674,1675,1,0,0,0,1675,1678,1,0,0,0,1676,1674,1,0,0,0,1677,1679,
- 5,151,0,0,1678,1677,1,0,0,0,1678,1679,1,0,0,0,1679,1680,1,0,0,0,1680,
- 1681,5,186,0,0,1681,1696,1,0,0,0,1682,1687,3,220,110,0,1683,1684,5,151,
- 0,0,1684,1686,3,220,110,0,1685,1683,1,0,0,0,1686,1689,1,0,0,0,1687,1685,
- 1,0,0,0,1687,1688,1,0,0,0,1688,1691,1,0,0,0,1689,1687,1,0,0,0,1690,1692,
- 5,151,0,0,1691,1690,1,0,0,0,1691,1692,1,0,0,0,1692,1696,1,0,0,0,1693,
- 1694,5,165,0,0,1694,1696,5,186,0,0,1695,1668,1,0,0,0,1695,1682,1,0,0,
- 0,1695,1693,1,0,0,0,1696,1697,1,0,0,0,1697,1700,5,144,0,0,1698,1701,3,
- 154,77,0,1699,1701,3,36,18,0,1700,1698,1,0,0,0,1700,1699,1,0,0,0,1701,
- 1718,1,0,0,0,1702,1703,5,60,0,0,1703,1708,3,220,110,0,1704,1705,5,151,
- 0,0,1705,1707,3,220,110,0,1706,1704,1,0,0,0,1707,1710,1,0,0,0,1708,1706,
- 1,0,0,0,1708,1709,1,0,0,0,1709,1712,1,0,0,0,1710,1708,1,0,0,0,1711,1713,
- 5,151,0,0,1712,1711,1,0,0,0,1712,1713,1,0,0,0,1713,1714,1,0,0,0,1714,
- 1715,5,150,0,0,1715,1716,3,154,77,0,1716,1718,1,0,0,0,1717,1695,1,0,0,
- 0,1717,1702,1,0,0,0,1718,157,1,0,0,0,1719,1724,3,160,80,0,1720,1721,5,
- 151,0,0,1721,1723,3,160,80,0,1722,1720,1,0,0,0,1723,1726,1,0,0,0,1724,
- 1722,1,0,0,0,1724,1725,1,0,0,0,1725,159,1,0,0,0,1726,1724,1,0,0,0,1727,
- 1728,3,154,77,0,1728,1729,5,6,0,0,1729,1730,3,220,110,0,1730,161,1,0,
- 0,0,1731,1738,3,166,83,0,1732,1738,3,164,82,0,1733,1734,5,163,0,0,1734,
- 1735,3,154,77,0,1735,1736,5,184,0,0,1736,1738,1,0,0,0,1737,1731,1,0,0,
- 0,1737,1732,1,0,0,0,1737,1733,1,0,0,0,1738,163,1,0,0,0,1739,1740,5,206,
- 0,0,1740,165,1,0,0,0,1741,1742,5,168,0,0,1742,1746,3,220,110,0,1743,1745,
- 3,168,84,0,1744,1743,1,0,0,0,1745,1748,1,0,0,0,1746,1744,1,0,0,0,1746,
- 1747,1,0,0,0,1747,1749,1,0,0,0,1748,1746,1,0,0,0,1749,1750,5,189,0,0,
- 1750,1771,1,0,0,0,1751,1752,5,168,0,0,1752,1756,3,220,110,0,1753,1755,
- 3,168,84,0,1754,1753,1,0,0,0,1755,1758,1,0,0,0,1756,1754,1,0,0,0,1756,
- 1757,1,0,0,0,1757,1759,1,0,0,0,1758,1756,1,0,0,0,1759,1763,5,159,0,0,
- 1760,1762,3,162,81,0,1761,1760,1,0,0,0,1762,1765,1,0,0,0,1763,1761,1,
- 0,0,0,1763,1764,1,0,0,0,1764,1766,1,0,0,0,1765,1763,1,0,0,0,1766,1767,
- 5,169,0,0,1767,1768,3,220,110,0,1768,1769,5,159,0,0,1769,1771,1,0,0,0,
- 1770,1741,1,0,0,0,1770,1751,1,0,0,0,1771,167,1,0,0,0,1772,1773,3,220,
- 110,0,1773,1774,5,157,0,0,1774,1775,3,226,113,0,1775,1784,1,0,0,0,1776,
- 1777,3,220,110,0,1777,1778,5,157,0,0,1778,1779,5,163,0,0,1779,1780,3,
- 154,77,0,1780,1781,5,184,0,0,1781,1784,1,0,0,0,1782,1784,3,220,110,0,
- 1783,1772,1,0,0,0,1783,1776,1,0,0,0,1783,1782,1,0,0,0,1784,169,1,0,0,
- 0,1785,1790,3,172,86,0,1786,1787,5,151,0,0,1787,1789,3,172,86,0,1788,
- 1786,1,0,0,0,1789,1792,1,0,0,0,1790,1788,1,0,0,0,1790,1791,1,0,0,0,1791,
- 1794,1,0,0,0,1792,1790,1,0,0,0,1793,1795,5,151,0,0,1794,1793,1,0,0,0,
- 1794,1795,1,0,0,0,1795,171,1,0,0,0,1796,1798,3,220,110,0,1797,1799,3,
- 174,87,0,1798,1797,1,0,0,0,1798,1799,1,0,0,0,1799,1803,1,0,0,0,1800,1801,
- 5,123,0,0,1801,1802,5,59,0,0,1802,1804,3,174,87,0,1803,1800,1,0,0,0,1803,
- 1804,1,0,0,0,1804,1805,1,0,0,0,1805,1810,5,6,0,0,1806,1808,5,73,0,0,1807,
- 1806,1,0,0,0,1807,1808,1,0,0,0,1808,1809,1,0,0,0,1809,1811,5,67,0,0,1810,
- 1807,1,0,0,0,1810,1811,1,0,0,0,1811,1812,1,0,0,0,1812,1813,5,165,0,0,
- 1813,1814,3,48,24,0,1814,1815,5,186,0,0,1815,1821,1,0,0,0,1816,1817,3,
- 154,77,0,1817,1818,5,6,0,0,1818,1819,3,220,110,0,1819,1821,1,0,0,0,1820,
- 1796,1,0,0,0,1820,1816,1,0,0,0,1821,173,1,0,0,0,1822,1823,5,165,0,0,1823,
- 1828,3,220,110,0,1824,1825,5,151,0,0,1825,1827,3,220,110,0,1826,1824,
- 1,0,0,0,1827,1830,1,0,0,0,1828,1826,1,0,0,0,1828,1829,1,0,0,0,1829,1831,
- 1,0,0,0,1830,1828,1,0,0,0,1831,1832,5,186,0,0,1832,175,1,0,0,0,1833,1841,
- 3,224,112,0,1834,1835,3,196,98,0,1835,1836,5,155,0,0,1836,1838,1,0,0,
- 0,1837,1834,1,0,0,0,1837,1838,1,0,0,0,1838,1839,1,0,0,0,1839,1841,3,178,
- 89,0,1840,1833,1,0,0,0,1840,1837,1,0,0,0,1841,177,1,0,0,0,1842,1847,3,
- 220,110,0,1843,1844,5,155,0,0,1844,1846,3,220,110,0,1845,1843,1,0,0,0,
- 1846,1849,1,0,0,0,1847,1845,1,0,0,0,1847,1848,1,0,0,0,1848,179,1,0,0,
- 0,1849,1847,1,0,0,0,1850,1851,6,90,-1,0,1851,1864,3,196,98,0,1852,1864,
- 3,194,97,0,1853,1854,5,165,0,0,1854,1855,3,48,24,0,1855,1856,5,186,0,
- 0,1856,1864,1,0,0,0,1857,1858,5,165,0,0,1858,1859,3,92,46,0,1859,1860,
- 5,186,0,0,1860,1864,1,0,0,0,1861,1864,3,166,83,0,1862,1864,3,224,112,
- 0,1863,1850,1,0,0,0,1863,1852,1,0,0,0,1863,1853,1,0,0,0,1863,1857,1,0,
- 0,0,1863,1861,1,0,0,0,1863,1862,1,0,0,0,1864,1898,1,0,0,0,1865,1866,10,
- 5,0,0,1866,1867,5,83,0,0,1867,1868,5,165,0,0,1868,1869,3,146,73,0,1869,
- 1873,3,182,91,0,1870,1871,5,42,0,0,1871,1872,5,11,0,0,1872,1874,3,146,
- 73,0,1873,1870,1,0,0,0,1873,1874,1,0,0,0,1874,1875,1,0,0,0,1875,1876,
- 5,186,0,0,1876,1897,1,0,0,0,1877,1878,10,4,0,0,1878,1881,5,122,0,0,1879,
- 1880,5,50,0,0,1880,1882,5,75,0,0,1881,1879,1,0,0,0,1881,1882,1,0,0,0,
- 1882,1883,1,0,0,0,1883,1884,5,165,0,0,1884,1885,3,186,93,0,1885,1886,
- 5,186,0,0,1886,1897,1,0,0,0,1887,1891,10,3,0,0,1888,1892,3,216,108,0,
- 1889,1890,5,6,0,0,1890,1892,3,220,110,0,1891,1888,1,0,0,0,1891,1889,1,
- 0,0,0,1892,1894,1,0,0,0,1893,1895,3,192,96,0,1894,1893,1,0,0,0,1894,1895,
- 1,0,0,0,1895,1897,1,0,0,0,1896,1865,1,0,0,0,1896,1877,1,0,0,0,1896,1887,
- 1,0,0,0,1897,1900,1,0,0,0,1898,1896,1,0,0,0,1898,1899,1,0,0,0,1899,181,
- 1,0,0,0,1900,1898,1,0,0,0,1901,1903,5,38,0,0,1902,1904,3,184,92,0,1903,
- 1902,1,0,0,0,1904,1905,1,0,0,0,1905,1903,1,0,0,0,1905,1906,1,0,0,0,1906,
- 183,1,0,0,0,1907,1908,3,190,95,0,1908,1909,5,51,0,0,1909,1910,5,165,0,
- 0,1910,1911,3,146,73,0,1911,1912,5,186,0,0,1912,185,1,0,0,0,1913,1918,
- 3,188,94,0,1914,1915,5,151,0,0,1915,1917,3,188,94,0,1916,1914,1,0,0,0,
- 1917,1920,1,0,0,0,1918,1916,1,0,0,0,1918,1919,1,0,0,0,1919,1922,1,0,0,
- 0,1920,1918,1,0,0,0,1921,1923,5,151,0,0,1922,1921,1,0,0,0,1922,1923,1,
- 0,0,0,1923,187,1,0,0,0,1924,1925,3,190,95,0,1925,1926,5,38,0,0,1926,1927,
- 3,190,95,0,1927,1928,5,51,0,0,1928,1929,5,165,0,0,1929,1930,3,146,73,
- 0,1930,1939,5,186,0,0,1931,1932,3,190,95,0,1932,1933,5,51,0,0,1933,1934,
- 5,165,0,0,1934,1935,3,146,73,0,1935,1936,5,186,0,0,1936,1938,1,0,0,0,
- 1937,1931,1,0,0,0,1938,1941,1,0,0,0,1939,1937,1,0,0,0,1939,1940,1,0,0,
- 0,1940,189,1,0,0,0,1941,1939,1,0,0,0,1942,1943,5,165,0,0,1943,1944,3,
- 146,73,0,1944,1945,5,186,0,0,1945,1948,1,0,0,0,1946,1948,3,154,77,0,1947,
- 1942,1,0,0,0,1947,1946,1,0,0,0,1948,191,1,0,0,0,1949,1950,5,165,0,0,1950,
- 1955,3,220,110,0,1951,1952,5,151,0,0,1952,1954,3,220,110,0,1953,1951,
- 1,0,0,0,1954,1957,1,0,0,0,1955,1953,1,0,0,0,1955,1956,1,0,0,0,1956,1958,
- 1,0,0,0,1957,1955,1,0,0,0,1958,1959,5,186,0,0,1959,193,1,0,0,0,1960,1961,
- 3,220,110,0,1961,1963,5,165,0,0,1962,1964,3,198,99,0,1963,1962,1,0,0,
- 0,1963,1964,1,0,0,0,1964,1965,1,0,0,0,1965,1966,5,186,0,0,1966,195,1,
- 0,0,0,1967,1968,3,200,100,0,1968,1969,5,155,0,0,1969,1971,1,0,0,0,1970,
- 1967,1,0,0,0,1970,1971,1,0,0,0,1971,1972,1,0,0,0,1972,1973,3,178,89,0,
- 1973,197,1,0,0,0,1974,1979,3,154,77,0,1975,1976,5,151,0,0,1976,1978,3,
- 154,77,0,1977,1975,1,0,0,0,1978,1981,1,0,0,0,1979,1977,1,0,0,0,1979,1980,
- 1,0,0,0,1980,1983,1,0,0,0,1981,1979,1,0,0,0,1982,1984,5,151,0,0,1983,
- 1982,1,0,0,0,1983,1984,1,0,0,0,1984,199,1,0,0,0,1985,1986,3,220,110,0,
- 1986,201,1,0,0,0,1987,1996,5,136,0,0,1988,1989,5,155,0,0,1989,1996,7,
- 14,0,0,1990,1991,5,139,0,0,1991,1993,5,155,0,0,1992,1994,7,14,0,0,1993,
- 1992,1,0,0,0,1993,1994,1,0,0,0,1994,1996,1,0,0,0,1995,1987,1,0,0,0,1995,
- 1988,1,0,0,0,1995,1990,1,0,0,0,1996,203,1,0,0,0,1997,1999,7,15,0,0,1998,
- 1997,1,0,0,0,1998,1999,1,0,0,0,1999,2008,1,0,0,0,2000,2009,3,202,101,
- 0,2001,2009,5,137,0,0,2002,2009,5,138,0,0,2003,2009,5,141,0,0,2004,2009,
- 5,139,0,0,2005,2009,5,140,0,0,2006,2009,5,52,0,0,2007,2009,5,72,0,0,2008,
- 2000,1,0,0,0,2008,2001,1,0,0,0,2008,2002,1,0,0,0,2008,2003,1,0,0,0,2008,
- 2004,1,0,0,0,2008,2005,1,0,0,0,2008,2006,1,0,0,0,2008,2007,1,0,0,0,2009,
- 205,1,0,0,0,2010,2014,3,204,102,0,2011,2014,5,143,0,0,2012,2014,5,74,
- 0,0,2013,2010,1,0,0,0,2013,2011,1,0,0,0,2013,2012,1,0,0,0,2014,207,1,
- 0,0,0,2015,2016,7,16,0,0,2016,209,1,0,0,0,2017,2018,7,17,0,0,2018,211,
- 1,0,0,0,2019,2020,7,18,0,0,2020,213,1,0,0,0,2021,2022,7,19,0,0,2022,215,
- 1,0,0,0,2023,2027,5,134,0,0,2024,2027,5,135,0,0,2025,2027,3,212,106,0,
- 2026,2023,1,0,0,0,2026,2024,1,0,0,0,2026,2025,1,0,0,0,2027,217,1,0,0,
- 0,2028,2032,5,134,0,0,2029,2032,5,135,0,0,2030,2032,3,214,107,0,2031,
- 2028,1,0,0,0,2031,2029,1,0,0,0,2031,2030,1,0,0,0,2032,219,1,0,0,0,2033,
- 2038,5,134,0,0,2034,2038,5,135,0,0,2035,2038,3,208,104,0,2036,2038,3,
- 210,105,0,2037,2033,1,0,0,0,2037,2034,1,0,0,0,2037,2035,1,0,0,0,2037,
- 2036,1,0,0,0,2038,221,1,0,0,0,2039,2040,3,226,113,0,2040,2041,5,157,0,
- 0,2041,2042,3,204,102,0,2042,223,1,0,0,0,2043,2044,5,163,0,0,2044,2045,
- 3,154,77,0,2045,2046,5,184,0,0,2046,225,1,0,0,0,2047,2050,5,143,0,0,2048,
- 2050,3,228,114,0,2049,2047,1,0,0,0,2049,2048,1,0,0,0,2050,227,1,0,0,0,
- 2051,2055,5,179,0,0,2052,2054,3,230,115,0,2053,2052,1,0,0,0,2054,2057,
- 1,0,0,0,2055,2053,1,0,0,0,2055,2056,1,0,0,0,2056,2058,1,0,0,0,2057,2055,
- 1,0,0,0,2058,2059,5,181,0,0,2059,229,1,0,0,0,2060,2061,5,197,0,0,2061,
- 2062,3,154,77,0,2062,2063,5,184,0,0,2063,2066,1,0,0,0,2064,2066,5,196,
- 0,0,2065,2060,1,0,0,0,2065,2064,1,0,0,0,2066,231,1,0,0,0,2067,2071,5,
- 180,0,0,2068,2070,3,234,117,0,2069,2068,1,0,0,0,2070,2073,1,0,0,0,2071,
- 2069,1,0,0,0,2071,2072,1,0,0,0,2072,2074,1,0,0,0,2073,2071,1,0,0,0,2074,
- 2075,5,0,0,1,2075,233,1,0,0,0,2076,2077,5,199,0,0,2077,2078,3,154,77,
- 0,2078,2079,5,184,0,0,2079,2082,1,0,0,0,2080,2082,5,198,0,0,2081,2076,
- 1,0,0,0,2081,2080,1,0,0,0,2082,235,1,0,0,0,259,239,246,254,261,265,278,
- 282,285,290,297,301,310,315,324,332,339,343,349,354,362,369,375,387,390,
- 398,412,416,421,424,439,445,450,456,462,467,473,479,484,486,494,498,501,
- 506,510,514,519,523,530,533,537,540,544,547,550,553,556,559,562,566,570,
- 573,576,580,583,586,589,593,596,600,608,614,635,659,666,671,685,694,699,
- 713,717,721,726,730,735,749,758,766,769,775,783,786,791,798,808,816,822,
- 824,828,833,840,843,847,851,854,860,862,865,869,873,876,878,880,885,896,
- 901,905,911,916,923,928,932,936,939,945,949,953,958,964,966,973,981,984,
- 987,1012,1026,1042,1046,1057,1061,1072,1076,1083,1091,1094,1099,1104,
- 1110,1116,1122,1131,1135,1142,1148,1155,1159,1171,1176,1185,1189,1222,
- 1270,1298,1362,1370,1376,1379,1382,1390,1400,1406,1409,1412,1420,1428,
- 1431,1435,1438,1443,1452,1464,1472,1480,1484,1502,1506,1511,1522,1528,
- 1535,1547,1551,1554,1563,1569,1588,1609,1620,1624,1654,1661,1663,1665,
- 1674,1678,1687,1691,1695,1700,1708,1712,1717,1724,1737,1746,1756,1763,
- 1770,1783,1790,1794,1798,1803,1807,1810,1820,1828,1837,1840,1847,1863,
- 1873,1881,1891,1894,1896,1898,1905,1918,1922,1939,1947,1955,1963,1970,
- 1979,1983,1993,1995,1998,2008,2013,2026,2031,2037,2049,2055,2065,2071,
- 2081
+ 7,116,2,117,7,117,2,118,7,118,1,0,5,0,240,8,0,10,0,12,0,243,9,0,1,0,1,
+ 0,1,1,1,1,3,1,249,8,1,1,2,1,2,1,3,1,3,1,3,1,3,3,3,257,8,3,1,4,1,4,1,4,
+ 5,4,262,8,4,10,4,12,4,265,9,4,1,4,3,4,268,8,4,1,5,1,5,1,5,1,5,1,5,1,5,
+ 1,5,1,5,1,5,1,5,1,5,3,5,281,8,5,1,6,1,6,3,6,285,8,6,1,6,3,6,288,8,6,1,
+ 7,1,7,1,7,3,7,293,8,7,1,8,1,8,1,8,1,8,1,8,3,8,300,8,8,1,8,1,8,3,8,304,
+ 8,8,1,8,1,8,1,9,1,9,1,9,5,9,311,8,9,10,9,12,9,314,9,9,1,9,1,9,3,9,318,
+ 8,9,1,10,1,10,1,10,1,10,1,10,1,10,1,10,3,10,327,8,10,1,11,1,11,1,11,1,
+ 11,1,11,1,11,3,11,335,8,11,1,12,1,12,1,12,1,12,1,12,3,12,342,8,12,1,12,
+ 1,12,3,12,346,8,12,1,12,1,12,1,12,1,12,3,12,352,8,12,1,12,1,12,1,12,3,
+ 12,357,8,12,1,13,1,13,1,13,1,13,1,13,1,13,3,13,365,8,13,1,13,1,13,1,13,
+ 1,13,1,13,3,13,372,8,13,1,14,1,14,1,14,1,14,3,14,378,8,14,1,14,1,14,1,
+ 14,1,15,1,15,1,15,1,15,1,16,1,16,1,16,3,16,390,8,16,1,16,3,16,393,8,16,
+ 1,17,1,17,1,18,1,18,5,18,399,8,18,10,18,12,18,402,9,18,1,18,1,18,1,19,
+ 1,19,1,19,1,19,1,20,1,20,1,20,5,20,413,8,20,10,20,12,20,416,9,20,1,20,
+ 3,20,419,8,20,1,21,1,21,1,21,3,21,424,8,21,1,21,3,21,427,8,21,1,21,1,
+ 21,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,1,22,3,22,442,8,
+ 22,1,23,1,23,1,23,1,23,3,23,448,8,23,1,23,1,23,1,23,3,23,453,8,23,1,23,
+ 1,23,1,23,1,23,3,23,459,8,23,1,23,1,23,1,23,1,23,3,23,465,8,23,1,23,1,
+ 23,1,23,3,23,470,8,23,1,23,1,23,1,23,1,23,3,23,476,8,23,1,23,1,23,1,23,
+ 1,23,3,23,482,8,23,1,23,1,23,1,23,3,23,487,8,23,3,23,489,8,23,1,23,1,
+ 23,1,24,1,24,5,24,495,8,24,10,24,12,24,498,9,24,1,24,3,24,501,8,24,1,
+ 24,3,24,504,8,24,1,25,1,25,1,25,3,25,509,8,25,1,25,1,25,3,25,513,8,25,
+ 1,25,1,25,3,25,517,8,25,1,25,1,25,1,25,3,25,522,8,25,1,25,1,25,3,25,526,
+ 8,25,1,25,1,25,1,25,1,25,1,25,3,25,533,8,25,1,26,3,26,536,8,26,1,26,1,
+ 26,3,26,540,8,26,1,26,3,26,543,8,26,1,26,1,26,3,26,547,8,26,1,26,3,26,
+ 550,8,26,1,26,3,26,553,8,26,1,26,3,26,556,8,26,1,26,3,26,559,8,26,1,26,
+ 3,26,562,8,26,1,26,3,26,565,8,26,1,26,1,26,3,26,569,8,26,1,26,1,26,3,
+ 26,573,8,26,1,26,3,26,576,8,26,1,26,3,26,579,8,26,1,26,1,26,3,26,583,
+ 8,26,1,26,3,26,586,8,26,1,26,3,26,589,8,26,1,26,3,26,592,8,26,1,26,1,
+ 26,3,26,596,8,26,1,26,3,26,599,8,26,1,27,1,27,3,27,603,8,27,1,27,1,27,
+ 1,28,1,28,1,28,1,28,3,28,611,8,28,1,29,1,29,1,29,1,30,3,30,617,8,30,1,
+ 30,1,30,1,30,1,30,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,31,1,
+ 31,1,31,1,31,5,31,636,8,31,10,31,12,31,639,9,31,1,32,1,32,1,32,1,33,1,
+ 33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,34,1,
+ 34,1,34,1,34,3,34,662,8,34,1,35,1,35,1,35,5,35,667,8,35,10,35,12,35,670,
+ 9,35,1,36,1,36,3,36,674,8,36,1,36,1,36,1,37,1,37,1,37,1,38,1,38,1,38,
+ 1,39,1,39,1,39,1,39,3,39,688,8,39,1,40,1,40,1,40,1,40,1,40,5,40,695,8,
+ 40,10,40,12,40,698,9,40,1,40,1,40,3,40,702,8,40,1,41,1,41,1,41,1,41,1,
+ 42,1,42,1,42,1,42,1,42,1,43,1,43,1,43,3,43,716,8,43,1,43,1,43,3,43,720,
+ 8,43,1,43,1,43,3,43,724,8,43,1,43,1,43,1,43,3,43,729,8,43,1,43,1,43,3,
+ 43,733,8,43,1,43,1,43,1,43,3,43,738,8,43,1,44,1,44,1,44,1,45,1,45,1,45,
+ 1,46,1,46,1,46,1,46,5,46,750,8,46,10,46,12,46,753,9,46,1,47,1,47,1,47,
+ 1,47,5,47,759,8,47,10,47,12,47,762,9,47,1,47,1,47,1,48,1,48,1,48,3,48,
+ 769,8,48,1,48,3,48,772,8,48,1,48,1,48,1,48,1,48,3,48,778,8,48,1,48,1,
+ 48,1,48,1,48,1,48,1,48,3,48,786,8,48,1,48,3,48,789,8,48,1,48,1,48,1,48,
+ 3,48,794,8,48,1,48,1,48,1,48,1,48,1,48,3,48,801,8,48,1,48,1,48,1,48,1,
+ 48,1,48,1,48,1,48,1,48,3,48,811,8,48,1,48,1,48,1,48,1,48,1,48,1,48,3,
+ 48,819,8,48,1,48,1,48,1,48,1,48,5,48,825,8,48,10,48,12,48,828,9,48,1,
+ 49,3,49,831,8,49,1,49,1,49,1,49,3,49,836,8,49,1,49,1,49,1,49,1,49,1,49,
+ 3,49,843,8,49,1,49,3,49,846,8,49,1,49,1,49,3,49,850,8,49,1,49,1,49,3,
+ 49,854,8,49,1,49,3,49,857,8,49,1,49,1,49,1,49,1,49,3,49,863,8,49,3,49,
+ 865,8,49,1,49,3,49,868,8,49,1,49,1,49,3,49,872,8,49,1,49,1,49,3,49,876,
+ 8,49,1,49,3,49,879,8,49,3,49,881,8,49,3,49,883,8,49,1,50,1,50,1,50,3,
+ 50,888,8,50,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,899,8,51,
+ 1,52,1,52,1,52,3,52,904,8,52,1,52,1,52,3,52,908,8,52,1,52,1,52,1,52,1,
+ 52,3,52,914,8,52,1,53,1,53,1,53,3,53,919,8,53,1,54,1,54,1,54,5,54,924,
+ 8,54,10,54,12,54,927,9,54,1,55,1,55,3,55,931,8,55,1,55,1,55,3,55,935,
+ 8,55,1,55,1,55,3,55,939,8,55,1,55,3,55,942,8,55,1,56,1,56,1,56,1,56,3,
+ 56,948,8,56,1,56,1,56,3,56,952,8,56,1,56,1,56,3,56,956,8,56,1,57,1,57,
+ 1,57,3,57,961,8,57,1,58,1,58,1,58,1,58,3,58,967,8,58,3,58,969,8,58,1,
+ 59,1,59,1,59,5,59,974,8,59,10,59,12,59,977,9,59,1,60,1,60,1,60,1,60,1,
+ 61,3,61,984,8,61,1,61,3,61,987,8,61,1,61,3,61,990,8,61,1,62,1,62,1,62,
+ 1,62,1,63,1,63,1,63,1,63,1,64,1,64,1,64,1,64,1,64,1,64,1,65,1,65,1,65,
+ 1,66,1,66,1,66,1,66,1,66,1,66,3,66,1015,8,66,1,67,1,67,1,67,1,67,1,67,
+ 1,67,1,67,1,67,1,67,1,67,1,67,1,67,3,67,1029,8,67,1,68,1,68,1,68,1,69,
+ 1,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,5,69,1043,8,69,10,69,12,69,1046,
+ 9,69,1,69,3,69,1049,8,69,1,69,1,69,1,69,1,69,1,69,1,69,1,69,5,69,1058,
+ 8,69,10,69,12,69,1061,9,69,1,69,3,69,1064,8,69,1,69,1,69,1,69,1,69,1,
+ 69,1,69,1,69,5,69,1073,8,69,10,69,12,69,1076,9,69,1,69,3,69,1079,8,69,
+ 1,69,1,69,1,69,1,69,1,69,3,69,1086,8,69,1,69,1,69,1,69,1,69,4,69,1092,
+ 8,69,11,69,12,69,1093,1,69,3,69,1097,8,69,1,69,1,69,1,69,3,69,1102,8,
+ 69,1,69,5,69,1105,8,69,10,69,12,69,1108,9,69,1,70,1,70,1,70,3,70,1113,
+ 8,70,1,70,1,70,1,70,1,70,3,70,1119,8,70,1,71,1,71,1,71,1,71,3,71,1125,
+ 8,71,1,72,1,72,1,73,1,73,1,73,5,73,1132,8,73,10,73,12,73,1135,9,73,1,
+ 73,3,73,1138,8,73,1,74,1,74,1,74,5,74,1143,8,74,10,74,12,74,1146,9,74,
+ 1,74,1,74,1,74,3,74,1151,8,74,1,75,1,75,1,75,5,75,1156,8,75,10,75,12,
+ 75,1159,9,75,1,75,3,75,1162,8,75,1,76,1,76,1,76,1,76,1,76,1,76,1,76,1,
+ 76,1,76,1,76,3,76,1174,8,76,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,
+ 77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,1,77,3,77,1195,8,77,5,
+ 77,1197,8,77,10,77,12,77,1200,9,77,1,78,1,78,1,78,3,78,1205,8,78,1,78,
+ 1,78,1,78,1,78,1,78,4,78,1212,8,78,11,78,12,78,1213,1,78,1,78,3,78,1218,
+ 8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,3,78,1251,8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1299,8,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1327,
+ 8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1391,8,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,3,78,1399,8,78,1,78,1,78,1,78,1,78,3,78,1405,8,78,1,78,3,78,
+ 1408,8,78,1,78,3,78,1411,8,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1419,
+ 8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1429,8,78,1,78,1,78,
+ 1,78,1,78,3,78,1435,8,78,1,78,3,78,1438,8,78,1,78,3,78,1441,8,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,3,78,1449,8,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 3,78,1457,8,78,1,78,3,78,1460,8,78,1,78,1,78,3,78,1464,8,78,1,78,3,78,
+ 1467,8,78,1,78,1,78,1,78,3,78,1472,8,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,3,78,1481,8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 3,78,1493,8,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1501,8,78,1,78,1,78,
+ 1,78,1,78,5,78,1507,8,78,10,78,12,78,1510,9,78,1,78,3,78,1513,8,78,1,
+ 78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,
+ 78,1,78,3,78,1531,8,78,1,78,1,78,3,78,1535,8,78,1,78,1,78,1,78,3,78,1540,
+ 8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1551,8,78,1,78,
+ 1,78,1,78,1,78,3,78,1557,8,78,1,78,1,78,1,78,1,78,1,78,3,78,1564,8,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1576,8,78,1,78,
+ 1,78,3,78,1580,8,78,1,78,3,78,1583,8,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,3,78,1592,8,78,1,78,1,78,1,78,1,78,3,78,1598,8,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1611,8,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1626,8,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,3,78,1637,8,78,1,78,1,78,3,78,
+ 1641,8,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,1,78,
+ 1,78,1,78,3,78,1671,8,78,1,78,5,78,1674,8,78,10,78,12,78,1677,9,78,1,
+ 79,1,79,1,79,1,79,5,79,1683,8,79,10,79,12,79,1686,9,79,1,79,3,79,1689,
+ 8,79,1,79,1,79,1,79,1,79,1,79,5,79,1696,8,79,10,79,12,79,1699,9,79,1,
+ 79,3,79,1702,8,79,1,79,1,79,3,79,1706,8,79,1,79,1,79,1,79,3,79,1711,8,
+ 79,1,79,1,79,1,79,1,79,5,79,1717,8,79,10,79,12,79,1720,9,79,1,79,3,79,
+ 1723,8,79,1,79,1,79,1,79,3,79,1728,8,79,1,80,1,80,1,80,5,80,1733,8,80,
+ 10,80,12,80,1736,9,80,1,81,1,81,1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,
+ 82,3,82,1748,8,82,1,83,1,83,1,84,1,84,1,84,5,84,1755,8,84,10,84,12,84,
+ 1758,9,84,1,84,1,84,1,84,1,84,1,84,5,84,1765,8,84,10,84,12,84,1768,9,
+ 84,1,84,1,84,5,84,1772,8,84,10,84,12,84,1775,9,84,1,84,1,84,1,84,1,84,
+ 3,84,1781,8,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,
+ 3,85,1794,8,85,1,86,1,86,1,86,5,86,1799,8,86,10,86,12,86,1802,9,86,1,
+ 86,3,86,1805,8,86,1,87,1,87,3,87,1809,8,87,1,87,1,87,1,87,3,87,1814,8,
+ 87,1,87,1,87,3,87,1818,8,87,1,87,3,87,1821,8,87,1,87,1,87,1,87,1,87,1,
+ 87,1,87,1,87,1,87,3,87,1831,8,87,1,88,1,88,1,88,1,88,5,88,1837,8,88,10,
+ 88,12,88,1840,9,88,1,88,1,88,1,89,1,89,1,89,1,89,3,89,1848,8,89,1,89,
+ 3,89,1851,8,89,1,90,1,90,1,90,5,90,1856,8,90,10,90,12,90,1859,9,90,1,
+ 91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,3,91,1874,
+ 8,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,3,91,1884,8,91,1,91,1,91,
+ 1,91,1,91,1,91,1,91,3,91,1892,8,91,1,91,1,91,1,91,1,91,1,91,1,91,1,91,
+ 1,91,3,91,1902,8,91,1,91,3,91,1905,8,91,5,91,1907,8,91,10,91,12,91,1910,
+ 9,91,1,92,1,92,4,92,1914,8,92,11,92,12,92,1915,1,93,1,93,1,93,1,93,1,
+ 93,1,93,1,94,1,94,1,94,5,94,1927,8,94,10,94,12,94,1930,9,94,1,94,3,94,
+ 1933,8,94,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,1,95,
+ 1,95,5,95,1948,8,95,10,95,12,95,1951,9,95,1,96,1,96,1,96,1,96,1,96,3,
+ 96,1958,8,96,1,97,1,97,1,97,1,97,5,97,1964,8,97,10,97,12,97,1967,9,97,
+ 1,97,1,97,1,98,1,98,1,98,3,98,1974,8,98,1,98,1,98,1,99,1,99,1,99,3,99,
+ 1981,8,99,1,99,1,99,1,100,1,100,1,100,5,100,1988,8,100,10,100,12,100,
+ 1991,9,100,1,100,3,100,1994,8,100,1,101,1,101,1,102,1,102,1,102,1,102,
+ 1,102,1,102,3,102,2004,8,102,3,102,2006,8,102,1,103,3,103,2009,8,103,
+ 1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,3,103,2019,8,103,1,104,
+ 1,104,1,104,3,104,2024,8,104,1,105,1,105,1,106,1,106,1,107,1,107,1,108,
+ 1,108,1,109,1,109,1,109,3,109,2037,8,109,1,110,1,110,1,110,3,110,2042,
+ 8,110,1,111,1,111,1,111,1,111,3,111,2048,8,111,1,112,1,112,1,112,1,112,
+ 1,113,1,113,1,113,1,113,1,114,1,114,3,114,2060,8,114,1,115,1,115,5,115,
+ 2064,8,115,10,115,12,115,2067,9,115,1,115,1,115,1,116,1,116,1,116,1,116,
+ 1,116,3,116,2076,8,116,1,117,1,117,5,117,2080,8,117,10,117,12,117,2083,
+ 9,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,3,118,2092,8,118,1,118,
+ 0,5,96,138,154,156,182,119,0,2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,
+ 32,34,36,38,40,42,44,46,48,50,52,54,56,58,60,62,64,66,68,70,72,74,76,
+ 78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,
+ 118,120,122,124,126,128,130,132,134,136,138,140,142,144,146,148,150,152,
+ 154,156,158,160,162,164,166,168,170,172,174,176,178,180,182,184,186,188,
+ 190,192,194,196,198,200,202,204,206,208,210,212,214,216,218,220,222,224,
+ 226,228,230,232,234,236,0,20,2,0,36,36,41,41,2,0,19,19,94,94,2,0,53,53,
+ 63,63,3,0,1,1,4,4,8,8,2,0,3,3,100,100,4,0,1,1,3,4,8,8,100,100,2,0,63,
+ 63,93,93,2,0,76,76,151,151,2,0,7,7,23,24,2,0,35,35,61,61,2,0,89,89,96,
+ 96,3,0,21,21,56,56,108,109,3,0,10,10,62,62,115,115,2,0,48,48,65,65,1,
+ 0,138,139,2,0,153,153,176,176,7,0,22,22,45,45,68,69,88,88,98,98,125,125,
+ 132,132,20,0,1,13,15,21,23,27,29,33,35,35,37,40,42,44,46,51,53,53,55,
+ 63,65,66,70,71,73,73,75,87,89,97,99,105,107,117,119,124,126,127,129,130,
+ 4,0,21,21,35,35,46,46,59,59,8,0,7,7,15,15,21,21,24,24,31,31,46,46,92,
+ 92,113,114,2375,0,241,1,0,0,0,2,248,1,0,0,0,4,250,1,0,0,0,6,252,1,0,0,
+ 0,8,258,1,0,0,0,10,280,1,0,0,0,12,282,1,0,0,0,14,289,1,0,0,0,16,294,1,
+ 0,0,0,18,307,1,0,0,0,20,319,1,0,0,0,22,328,1,0,0,0,24,336,1,0,0,0,26,
+ 358,1,0,0,0,28,373,1,0,0,0,30,382,1,0,0,0,32,386,1,0,0,0,34,394,1,0,0,
+ 0,36,396,1,0,0,0,38,405,1,0,0,0,40,409,1,0,0,0,42,423,1,0,0,0,44,441,
+ 1,0,0,0,46,488,1,0,0,0,48,492,1,0,0,0,50,532,1,0,0,0,52,535,1,0,0,0,54,
+ 600,1,0,0,0,56,606,1,0,0,0,58,612,1,0,0,0,60,616,1,0,0,0,62,622,1,0,0,
+ 0,64,640,1,0,0,0,66,643,1,0,0,0,68,646,1,0,0,0,70,663,1,0,0,0,72,671,
+ 1,0,0,0,74,677,1,0,0,0,76,680,1,0,0,0,78,683,1,0,0,0,80,689,1,0,0,0,82,
+ 703,1,0,0,0,84,707,1,0,0,0,86,737,1,0,0,0,88,739,1,0,0,0,90,742,1,0,0,
+ 0,92,745,1,0,0,0,94,754,1,0,0,0,96,777,1,0,0,0,98,882,1,0,0,0,100,887,
+ 1,0,0,0,102,898,1,0,0,0,104,900,1,0,0,0,106,915,1,0,0,0,108,920,1,0,0,
+ 0,110,928,1,0,0,0,112,943,1,0,0,0,114,957,1,0,0,0,116,968,1,0,0,0,118,
+ 970,1,0,0,0,120,978,1,0,0,0,122,983,1,0,0,0,124,991,1,0,0,0,126,995,1,
+ 0,0,0,128,999,1,0,0,0,130,1005,1,0,0,0,132,1014,1,0,0,0,134,1028,1,0,
+ 0,0,136,1030,1,0,0,0,138,1096,1,0,0,0,140,1118,1,0,0,0,142,1124,1,0,0,
+ 0,144,1126,1,0,0,0,146,1128,1,0,0,0,148,1150,1,0,0,0,150,1152,1,0,0,0,
+ 152,1173,1,0,0,0,154,1175,1,0,0,0,156,1550,1,0,0,0,158,1727,1,0,0,0,160,
+ 1729,1,0,0,0,162,1737,1,0,0,0,164,1747,1,0,0,0,166,1749,1,0,0,0,168,1780,
+ 1,0,0,0,170,1793,1,0,0,0,172,1795,1,0,0,0,174,1830,1,0,0,0,176,1832,1,
+ 0,0,0,178,1850,1,0,0,0,180,1852,1,0,0,0,182,1873,1,0,0,0,184,1911,1,0,
+ 0,0,186,1917,1,0,0,0,188,1923,1,0,0,0,190,1934,1,0,0,0,192,1957,1,0,0,
+ 0,194,1959,1,0,0,0,196,1970,1,0,0,0,198,1980,1,0,0,0,200,1984,1,0,0,0,
+ 202,1995,1,0,0,0,204,2005,1,0,0,0,206,2008,1,0,0,0,208,2023,1,0,0,0,210,
+ 2025,1,0,0,0,212,2027,1,0,0,0,214,2029,1,0,0,0,216,2031,1,0,0,0,218,2036,
+ 1,0,0,0,220,2041,1,0,0,0,222,2047,1,0,0,0,224,2049,1,0,0,0,226,2053,1,
+ 0,0,0,228,2059,1,0,0,0,230,2061,1,0,0,0,232,2075,1,0,0,0,234,2077,1,0,
+ 0,0,236,2091,1,0,0,0,238,240,3,2,1,0,239,238,1,0,0,0,240,243,1,0,0,0,
+ 241,239,1,0,0,0,241,242,1,0,0,0,242,244,1,0,0,0,243,241,1,0,0,0,244,245,
+ 5,0,0,1,245,1,1,0,0,0,246,249,3,6,3,0,247,249,3,10,5,0,248,246,1,0,0,
+ 0,248,247,1,0,0,0,249,3,1,0,0,0,250,251,3,154,77,0,251,5,1,0,0,0,252,
+ 253,5,64,0,0,253,256,3,222,111,0,254,255,5,149,0,0,255,257,3,4,2,0,256,
+ 254,1,0,0,0,256,257,1,0,0,0,257,7,1,0,0,0,258,263,3,180,90,0,259,260,
+ 5,151,0,0,260,262,3,180,90,0,261,259,1,0,0,0,262,265,1,0,0,0,263,261,
+ 1,0,0,0,263,264,1,0,0,0,264,267,1,0,0,0,265,263,1,0,0,0,266,268,5,151,
+ 0,0,267,266,1,0,0,0,267,268,1,0,0,0,268,9,1,0,0,0,269,281,3,12,6,0,270,
+ 281,3,14,7,0,271,281,3,18,9,0,272,281,3,20,10,0,273,281,3,22,11,0,274,
+ 281,3,26,13,0,275,281,3,24,12,0,276,281,3,28,14,0,277,281,3,36,18,0,278,
+ 281,3,32,16,0,279,281,3,34,17,0,280,269,1,0,0,0,280,270,1,0,0,0,280,271,
+ 1,0,0,0,280,272,1,0,0,0,280,273,1,0,0,0,280,274,1,0,0,0,280,275,1,0,0,
+ 0,280,276,1,0,0,0,280,277,1,0,0,0,280,278,1,0,0,0,280,279,1,0,0,0,281,
+ 11,1,0,0,0,282,284,5,92,0,0,283,285,3,4,2,0,284,283,1,0,0,0,284,285,1,
+ 0,0,0,285,287,1,0,0,0,286,288,5,187,0,0,287,286,1,0,0,0,287,288,1,0,0,
+ 0,288,13,1,0,0,0,289,290,5,106,0,0,290,292,3,4,2,0,291,293,5,187,0,0,
+ 292,291,1,0,0,0,292,293,1,0,0,0,293,15,1,0,0,0,294,303,5,14,0,0,295,296,
+ 5,165,0,0,296,299,3,222,111,0,297,298,5,150,0,0,298,300,3,222,111,0,299,
+ 297,1,0,0,0,299,300,1,0,0,0,300,301,1,0,0,0,301,302,5,186,0,0,302,304,
+ 1,0,0,0,303,295,1,0,0,0,303,304,1,0,0,0,304,305,1,0,0,0,305,306,3,36,
+ 18,0,306,17,1,0,0,0,307,308,5,118,0,0,308,312,3,36,18,0,309,311,3,16,
+ 8,0,310,309,1,0,0,0,311,314,1,0,0,0,312,310,1,0,0,0,312,313,1,0,0,0,313,
+ 317,1,0,0,0,314,312,1,0,0,0,315,316,5,34,0,0,316,318,3,36,18,0,317,315,
+ 1,0,0,0,317,318,1,0,0,0,318,19,1,0,0,0,319,320,5,47,0,0,320,321,5,165,
+ 0,0,321,322,3,4,2,0,322,323,5,186,0,0,323,326,3,10,5,0,324,325,5,26,0,
+ 0,325,327,3,10,5,0,326,324,1,0,0,0,326,327,1,0,0,0,327,21,1,0,0,0,328,
+ 329,5,128,0,0,329,330,5,165,0,0,330,331,3,4,2,0,331,332,5,186,0,0,332,
+ 334,3,10,5,0,333,335,5,187,0,0,334,333,1,0,0,0,334,335,1,0,0,0,335,23,
+ 1,0,0,0,336,337,5,38,0,0,337,341,5,165,0,0,338,342,3,6,3,0,339,342,3,
+ 30,15,0,340,342,3,4,2,0,341,338,1,0,0,0,341,339,1,0,0,0,341,340,1,0,0,
+ 0,341,342,1,0,0,0,342,343,1,0,0,0,343,345,5,187,0,0,344,346,3,4,2,0,345,
+ 344,1,0,0,0,345,346,1,0,0,0,346,347,1,0,0,0,347,351,5,187,0,0,348,352,
+ 3,6,3,0,349,352,3,30,15,0,350,352,3,4,2,0,351,348,1,0,0,0,351,349,1,0,
+ 0,0,351,350,1,0,0,0,351,352,1,0,0,0,352,353,1,0,0,0,353,354,5,186,0,0,
+ 354,356,3,10,5,0,355,357,5,187,0,0,356,355,1,0,0,0,356,357,1,0,0,0,357,
+ 25,1,0,0,0,358,359,5,38,0,0,359,360,5,165,0,0,360,361,5,64,0,0,361,364,
+ 3,222,111,0,362,363,5,151,0,0,363,365,3,222,111,0,364,362,1,0,0,0,364,
+ 365,1,0,0,0,365,366,1,0,0,0,366,367,5,51,0,0,367,368,3,4,2,0,368,369,
+ 5,186,0,0,369,371,3,10,5,0,370,372,5,187,0,0,371,370,1,0,0,0,371,372,
+ 1,0,0,0,372,27,1,0,0,0,373,374,7,0,0,0,374,375,3,222,111,0,375,377,5,
+ 165,0,0,376,378,3,8,4,0,377,376,1,0,0,0,377,378,1,0,0,0,378,379,1,0,0,
+ 0,379,380,5,186,0,0,380,381,3,36,18,0,381,29,1,0,0,0,382,383,3,4,2,0,
+ 383,384,5,149,0,0,384,385,3,4,2,0,385,31,1,0,0,0,386,389,3,4,2,0,387,
+ 388,5,149,0,0,388,390,3,4,2,0,389,387,1,0,0,0,389,390,1,0,0,0,390,392,
+ 1,0,0,0,391,393,5,187,0,0,392,391,1,0,0,0,392,393,1,0,0,0,393,33,1,0,
+ 0,0,394,395,5,187,0,0,395,35,1,0,0,0,396,400,5,163,0,0,397,399,3,2,1,
+ 0,398,397,1,0,0,0,399,402,1,0,0,0,400,398,1,0,0,0,400,401,1,0,0,0,401,
+ 403,1,0,0,0,402,400,1,0,0,0,403,404,5,184,0,0,404,37,1,0,0,0,405,406,
+ 3,4,2,0,406,407,5,150,0,0,407,408,3,4,2,0,408,39,1,0,0,0,409,414,3,38,
+ 19,0,410,411,5,151,0,0,411,413,3,38,19,0,412,410,1,0,0,0,413,416,1,0,
+ 0,0,414,412,1,0,0,0,414,415,1,0,0,0,415,418,1,0,0,0,416,414,1,0,0,0,417,
+ 419,5,151,0,0,418,417,1,0,0,0,418,419,1,0,0,0,419,41,1,0,0,0,420,424,
+ 3,48,24,0,421,424,3,52,26,0,422,424,3,168,84,0,423,420,1,0,0,0,423,421,
+ 1,0,0,0,423,422,1,0,0,0,424,426,1,0,0,0,425,427,5,187,0,0,426,425,1,0,
+ 0,0,426,427,1,0,0,0,427,428,1,0,0,0,428,429,5,0,0,1,429,43,1,0,0,0,430,
+ 442,3,52,26,0,431,432,3,54,27,0,432,433,5,165,0,0,433,434,3,48,24,0,434,
+ 435,5,186,0,0,435,442,1,0,0,0,436,437,5,165,0,0,437,438,3,48,24,0,438,
+ 439,5,186,0,0,439,442,1,0,0,0,440,442,3,226,113,0,441,430,1,0,0,0,441,
+ 431,1,0,0,0,441,436,1,0,0,0,441,440,1,0,0,0,442,45,1,0,0,0,443,444,5,
+ 28,0,0,444,447,5,1,0,0,445,446,5,11,0,0,446,448,5,70,0,0,447,445,1,0,
+ 0,0,447,448,1,0,0,0,448,489,1,0,0,0,449,452,5,28,0,0,450,451,5,11,0,0,
+ 451,453,5,70,0,0,452,450,1,0,0,0,452,453,1,0,0,0,453,489,1,0,0,0,454,
+ 455,5,121,0,0,455,458,5,1,0,0,456,457,5,11,0,0,457,459,5,70,0,0,458,456,
+ 1,0,0,0,458,459,1,0,0,0,459,489,1,0,0,0,460,461,5,121,0,0,461,464,5,25,
+ 0,0,462,463,5,11,0,0,463,465,5,70,0,0,464,462,1,0,0,0,464,465,1,0,0,0,
+ 465,489,1,0,0,0,466,469,5,121,0,0,467,468,5,11,0,0,468,470,5,70,0,0,469,
+ 467,1,0,0,0,469,470,1,0,0,0,470,489,1,0,0,0,471,472,5,54,0,0,472,475,
+ 5,1,0,0,473,474,5,11,0,0,474,476,5,70,0,0,475,473,1,0,0,0,475,476,1,0,
+ 0,0,476,489,1,0,0,0,477,478,5,54,0,0,478,481,5,25,0,0,479,480,5,11,0,
+ 0,480,482,5,70,0,0,481,479,1,0,0,0,481,482,1,0,0,0,482,489,1,0,0,0,483,
+ 486,5,54,0,0,484,485,5,11,0,0,485,487,5,70,0,0,486,484,1,0,0,0,486,487,
+ 1,0,0,0,487,489,1,0,0,0,488,443,1,0,0,0,488,449,1,0,0,0,488,454,1,0,0,
+ 0,488,460,1,0,0,0,488,466,1,0,0,0,488,471,1,0,0,0,488,477,1,0,0,0,488,
+ 483,1,0,0,0,489,490,1,0,0,0,490,491,3,44,22,0,491,47,1,0,0,0,492,496,
+ 3,44,22,0,493,495,3,46,23,0,494,493,1,0,0,0,495,498,1,0,0,0,496,494,1,
+ 0,0,0,496,497,1,0,0,0,497,500,1,0,0,0,498,496,1,0,0,0,499,501,3,78,39,
+ 0,500,499,1,0,0,0,500,501,1,0,0,0,501,503,1,0,0,0,502,504,3,50,25,0,503,
+ 502,1,0,0,0,503,504,1,0,0,0,504,49,1,0,0,0,505,506,5,66,0,0,506,508,3,
+ 154,77,0,507,509,5,175,0,0,508,507,1,0,0,0,508,509,1,0,0,0,509,512,1,
+ 0,0,0,510,511,5,151,0,0,511,513,3,154,77,0,512,510,1,0,0,0,512,513,1,
+ 0,0,0,513,516,1,0,0,0,514,515,5,130,0,0,515,517,5,107,0,0,516,514,1,0,
+ 0,0,516,517,1,0,0,0,517,533,1,0,0,0,518,519,5,66,0,0,519,521,3,154,77,
+ 0,520,522,5,175,0,0,521,520,1,0,0,0,521,522,1,0,0,0,522,525,1,0,0,0,523,
+ 524,5,130,0,0,524,526,5,107,0,0,525,523,1,0,0,0,525,526,1,0,0,0,526,527,
+ 1,0,0,0,527,528,5,76,0,0,528,529,3,154,77,0,529,533,1,0,0,0,530,531,5,
+ 76,0,0,531,533,3,154,77,0,532,505,1,0,0,0,532,518,1,0,0,0,532,530,1,0,
+ 0,0,533,51,1,0,0,0,534,536,3,54,27,0,535,534,1,0,0,0,535,536,1,0,0,0,
+ 536,537,1,0,0,0,537,539,5,99,0,0,538,540,5,25,0,0,539,538,1,0,0,0,539,
+ 540,1,0,0,0,540,542,1,0,0,0,541,543,3,56,28,0,542,541,1,0,0,0,542,543,
+ 1,0,0,0,543,544,1,0,0,0,544,546,3,148,74,0,545,547,3,58,29,0,546,545,
+ 1,0,0,0,546,547,1,0,0,0,547,549,1,0,0,0,548,550,3,60,30,0,549,548,1,0,
+ 0,0,549,550,1,0,0,0,550,552,1,0,0,0,551,553,3,64,32,0,552,551,1,0,0,0,
+ 552,553,1,0,0,0,553,555,1,0,0,0,554,556,3,66,33,0,555,554,1,0,0,0,555,
+ 556,1,0,0,0,556,561,1,0,0,0,557,559,5,123,0,0,558,557,1,0,0,0,558,559,
+ 1,0,0,0,559,560,1,0,0,0,560,562,3,104,52,0,561,558,1,0,0,0,561,562,1,
+ 0,0,0,562,564,1,0,0,0,563,565,3,68,34,0,564,563,1,0,0,0,564,565,1,0,0,
+ 0,565,568,1,0,0,0,566,567,5,130,0,0,567,569,7,1,0,0,568,566,1,0,0,0,568,
+ 569,1,0,0,0,569,572,1,0,0,0,570,571,5,130,0,0,571,573,5,114,0,0,572,570,
+ 1,0,0,0,572,573,1,0,0,0,573,575,1,0,0,0,574,576,3,74,37,0,575,574,1,0,
+ 0,0,575,576,1,0,0,0,576,578,1,0,0,0,577,579,3,76,38,0,578,577,1,0,0,0,
+ 578,579,1,0,0,0,579,582,1,0,0,0,580,581,5,123,0,0,581,583,3,104,52,0,
+ 582,580,1,0,0,0,582,583,1,0,0,0,583,585,1,0,0,0,584,586,3,62,31,0,585,
+ 584,1,0,0,0,585,586,1,0,0,0,586,588,1,0,0,0,587,589,3,78,39,0,588,587,
+ 1,0,0,0,588,589,1,0,0,0,589,591,1,0,0,0,590,592,3,84,42,0,591,590,1,0,
+ 0,0,591,592,1,0,0,0,592,595,1,0,0,0,593,596,3,86,43,0,594,596,3,88,44,
+ 0,595,593,1,0,0,0,595,594,1,0,0,0,595,596,1,0,0,0,596,598,1,0,0,0,597,
+ 599,3,90,45,0,598,597,1,0,0,0,598,599,1,0,0,0,599,53,1,0,0,0,600,602,
+ 5,130,0,0,601,603,5,90,0,0,602,601,1,0,0,0,602,603,1,0,0,0,603,604,1,
+ 0,0,0,604,605,3,172,86,0,605,55,1,0,0,0,606,607,5,113,0,0,607,610,5,139,
+ 0,0,608,609,5,130,0,0,609,611,5,107,0,0,610,608,1,0,0,0,610,611,1,0,0,
+ 0,611,57,1,0,0,0,612,613,5,39,0,0,613,614,3,96,48,0,614,59,1,0,0,0,615,
+ 617,7,2,0,0,616,615,1,0,0,0,616,617,1,0,0,0,617,618,1,0,0,0,618,619,5,
+ 5,0,0,619,620,5,58,0,0,620,621,3,146,73,0,621,61,1,0,0,0,622,623,5,129,
+ 0,0,623,624,3,222,111,0,624,625,5,6,0,0,625,626,5,165,0,0,626,627,3,122,
+ 61,0,627,637,5,186,0,0,628,629,5,151,0,0,629,630,3,222,111,0,630,631,
+ 5,6,0,0,631,632,5,165,0,0,632,633,3,122,61,0,633,634,5,186,0,0,634,636,
+ 1,0,0,0,635,628,1,0,0,0,636,639,1,0,0,0,637,635,1,0,0,0,637,638,1,0,0,
+ 0,638,63,1,0,0,0,639,637,1,0,0,0,640,641,5,86,0,0,641,642,3,154,77,0,
+ 642,65,1,0,0,0,643,644,5,127,0,0,644,645,3,154,77,0,645,67,1,0,0,0,646,
+ 647,5,42,0,0,647,661,5,11,0,0,648,662,5,1,0,0,649,650,7,1,0,0,650,651,
+ 5,165,0,0,651,652,3,146,73,0,652,653,5,186,0,0,653,662,1,0,0,0,654,655,
+ 5,43,0,0,655,656,5,101,0,0,656,657,5,165,0,0,657,658,3,70,35,0,658,659,
+ 5,186,0,0,659,662,1,0,0,0,660,662,3,146,73,0,661,648,1,0,0,0,661,649,
+ 1,0,0,0,661,654,1,0,0,0,661,660,1,0,0,0,662,69,1,0,0,0,663,668,3,72,36,
+ 0,664,665,5,151,0,0,665,667,3,72,36,0,666,664,1,0,0,0,667,670,1,0,0,0,
+ 668,666,1,0,0,0,668,669,1,0,0,0,669,71,1,0,0,0,670,668,1,0,0,0,671,673,
+ 5,165,0,0,672,674,3,146,73,0,673,672,1,0,0,0,673,674,1,0,0,0,674,675,
+ 1,0,0,0,675,676,5,186,0,0,676,73,1,0,0,0,677,678,5,44,0,0,678,679,3,154,
+ 77,0,679,75,1,0,0,0,680,681,5,87,0,0,681,682,3,154,77,0,682,77,1,0,0,
+ 0,683,684,5,79,0,0,684,685,5,11,0,0,685,687,3,108,54,0,686,688,3,80,40,
+ 0,687,686,1,0,0,0,687,688,1,0,0,0,688,79,1,0,0,0,689,701,5,55,0,0,690,
+ 691,5,165,0,0,691,696,3,114,57,0,692,693,5,151,0,0,693,695,3,114,57,0,
+ 694,692,1,0,0,0,695,698,1,0,0,0,696,694,1,0,0,0,696,697,1,0,0,0,697,699,
+ 1,0,0,0,698,696,1,0,0,0,699,700,5,186,0,0,700,702,1,0,0,0,701,690,1,0,
+ 0,0,701,702,1,0,0,0,702,81,1,0,0,0,703,704,5,79,0,0,704,705,5,11,0,0,
+ 705,706,3,146,73,0,706,83,1,0,0,0,707,708,5,66,0,0,708,709,3,106,53,0,
+ 709,710,5,11,0,0,710,711,3,146,73,0,711,85,1,0,0,0,712,713,5,66,0,0,713,
+ 715,3,154,77,0,714,716,5,175,0,0,715,714,1,0,0,0,715,716,1,0,0,0,716,
+ 719,1,0,0,0,717,718,5,151,0,0,718,720,3,154,77,0,719,717,1,0,0,0,719,
+ 720,1,0,0,0,720,723,1,0,0,0,721,722,5,130,0,0,722,724,5,107,0,0,723,721,
+ 1,0,0,0,723,724,1,0,0,0,724,738,1,0,0,0,725,726,5,66,0,0,726,728,3,154,
+ 77,0,727,729,5,175,0,0,728,727,1,0,0,0,728,729,1,0,0,0,729,732,1,0,0,
+ 0,730,731,5,130,0,0,731,733,5,107,0,0,732,730,1,0,0,0,732,733,1,0,0,0,
+ 733,734,1,0,0,0,734,735,5,76,0,0,735,736,3,154,77,0,736,738,1,0,0,0,737,
+ 712,1,0,0,0,737,725,1,0,0,0,738,87,1,0,0,0,739,740,5,76,0,0,740,741,3,
+ 154,77,0,741,89,1,0,0,0,742,743,5,102,0,0,743,744,3,118,59,0,744,91,1,
+ 0,0,0,745,746,5,124,0,0,746,751,3,94,47,0,747,748,5,151,0,0,748,750,3,
+ 94,47,0,749,747,1,0,0,0,750,753,1,0,0,0,751,749,1,0,0,0,751,752,1,0,0,
+ 0,752,93,1,0,0,0,753,751,1,0,0,0,754,755,5,165,0,0,755,760,3,154,77,0,
+ 756,757,5,151,0,0,757,759,3,154,77,0,758,756,1,0,0,0,759,762,1,0,0,0,
+ 760,758,1,0,0,0,760,761,1,0,0,0,761,763,1,0,0,0,762,760,1,0,0,0,763,764,
+ 5,186,0,0,764,95,1,0,0,0,765,766,6,48,-1,0,766,768,3,182,91,0,767,769,
+ 5,31,0,0,768,767,1,0,0,0,768,769,1,0,0,0,769,771,1,0,0,0,770,772,3,104,
+ 52,0,771,770,1,0,0,0,771,772,1,0,0,0,772,778,1,0,0,0,773,774,5,165,0,
+ 0,774,775,3,96,48,0,775,776,5,186,0,0,776,778,1,0,0,0,777,765,1,0,0,0,
+ 777,773,1,0,0,0,778,826,1,0,0,0,779,780,10,5,0,0,780,781,3,100,50,0,781,
+ 782,3,96,48,6,782,825,1,0,0,0,783,785,10,7,0,0,784,786,5,71,0,0,785,784,
+ 1,0,0,0,785,786,1,0,0,0,786,788,1,0,0,0,787,789,3,98,49,0,788,787,1,0,
+ 0,0,788,789,1,0,0,0,789,790,1,0,0,0,790,791,5,58,0,0,791,793,3,96,48,
+ 0,792,794,3,102,51,0,793,792,1,0,0,0,793,794,1,0,0,0,794,825,1,0,0,0,
+ 795,796,10,6,0,0,796,797,5,84,0,0,797,798,5,58,0,0,798,800,3,96,48,0,
+ 799,801,3,102,51,0,800,799,1,0,0,0,800,801,1,0,0,0,801,825,1,0,0,0,802,
+ 803,10,4,0,0,803,804,5,83,0,0,804,805,5,165,0,0,805,806,3,146,73,0,806,
+ 810,3,184,92,0,807,808,5,42,0,0,808,809,5,11,0,0,809,811,3,146,73,0,810,
+ 807,1,0,0,0,810,811,1,0,0,0,811,812,1,0,0,0,812,813,5,186,0,0,813,825,
+ 1,0,0,0,814,815,10,3,0,0,815,818,5,122,0,0,816,817,5,50,0,0,817,819,5,
+ 75,0,0,818,816,1,0,0,0,818,819,1,0,0,0,819,820,1,0,0,0,820,821,5,165,
+ 0,0,821,822,3,188,94,0,822,823,5,186,0,0,823,825,1,0,0,0,824,779,1,0,
+ 0,0,824,783,1,0,0,0,824,795,1,0,0,0,824,802,1,0,0,0,824,814,1,0,0,0,825,
+ 828,1,0,0,0,826,824,1,0,0,0,826,827,1,0,0,0,827,97,1,0,0,0,828,826,1,
+ 0,0,0,829,831,7,3,0,0,830,829,1,0,0,0,830,831,1,0,0,0,831,832,1,0,0,0,
+ 832,843,5,53,0,0,833,835,5,53,0,0,834,836,7,3,0,0,835,834,1,0,0,0,835,
+ 836,1,0,0,0,836,843,1,0,0,0,837,843,7,3,0,0,838,843,5,3,0,0,839,843,5,
+ 100,0,0,840,841,5,8,0,0,841,843,7,4,0,0,842,830,1,0,0,0,842,833,1,0,0,
+ 0,842,837,1,0,0,0,842,838,1,0,0,0,842,839,1,0,0,0,842,840,1,0,0,0,843,
+ 883,1,0,0,0,844,846,7,5,0,0,845,844,1,0,0,0,845,846,1,0,0,0,846,847,1,
+ 0,0,0,847,849,7,6,0,0,848,850,5,80,0,0,849,848,1,0,0,0,849,850,1,0,0,
+ 0,850,865,1,0,0,0,851,853,7,6,0,0,852,854,5,80,0,0,853,852,1,0,0,0,853,
+ 854,1,0,0,0,854,856,1,0,0,0,855,857,7,5,0,0,856,855,1,0,0,0,856,857,1,
+ 0,0,0,857,865,1,0,0,0,858,859,5,8,0,0,859,860,7,4,0,0,860,862,7,6,0,0,
+ 861,863,5,80,0,0,862,861,1,0,0,0,862,863,1,0,0,0,863,865,1,0,0,0,864,
+ 845,1,0,0,0,864,851,1,0,0,0,864,858,1,0,0,0,865,883,1,0,0,0,866,868,7,
+ 3,0,0,867,866,1,0,0,0,867,868,1,0,0,0,868,869,1,0,0,0,869,871,5,40,0,
+ 0,870,872,5,80,0,0,871,870,1,0,0,0,871,872,1,0,0,0,872,881,1,0,0,0,873,
+ 875,5,40,0,0,874,876,5,80,0,0,875,874,1,0,0,0,875,876,1,0,0,0,876,878,
+ 1,0,0,0,877,879,7,3,0,0,878,877,1,0,0,0,878,879,1,0,0,0,879,881,1,0,0,
+ 0,880,867,1,0,0,0,880,873,1,0,0,0,881,883,1,0,0,0,882,842,1,0,0,0,882,
+ 864,1,0,0,0,882,880,1,0,0,0,883,99,1,0,0,0,884,885,5,18,0,0,885,888,5,
+ 58,0,0,886,888,5,151,0,0,887,884,1,0,0,0,887,886,1,0,0,0,888,101,1,0,
+ 0,0,889,890,5,77,0,0,890,899,3,146,73,0,891,892,5,123,0,0,892,893,5,165,
+ 0,0,893,894,3,146,73,0,894,895,5,186,0,0,895,899,1,0,0,0,896,897,5,123,
+ 0,0,897,899,3,146,73,0,898,889,1,0,0,0,898,891,1,0,0,0,898,896,1,0,0,
+ 0,899,103,1,0,0,0,900,901,5,97,0,0,901,903,3,116,58,0,902,904,5,175,0,
+ 0,903,902,1,0,0,0,903,904,1,0,0,0,904,907,1,0,0,0,905,906,5,76,0,0,906,
+ 908,3,116,58,0,907,905,1,0,0,0,907,908,1,0,0,0,908,913,1,0,0,0,909,910,
+ 5,165,0,0,910,911,3,222,111,0,911,912,5,186,0,0,912,914,1,0,0,0,913,909,
+ 1,0,0,0,913,914,1,0,0,0,914,105,1,0,0,0,915,918,3,154,77,0,916,917,7,
+ 7,0,0,917,919,3,154,77,0,918,916,1,0,0,0,918,919,1,0,0,0,919,107,1,0,
+ 0,0,920,925,3,110,55,0,921,922,5,151,0,0,922,924,3,110,55,0,923,921,1,
+ 0,0,0,924,927,1,0,0,0,925,923,1,0,0,0,925,926,1,0,0,0,926,109,1,0,0,0,
+ 927,925,1,0,0,0,928,930,3,154,77,0,929,931,7,8,0,0,930,929,1,0,0,0,930,
+ 931,1,0,0,0,931,934,1,0,0,0,932,933,5,75,0,0,933,935,7,9,0,0,934,932,
+ 1,0,0,0,934,935,1,0,0,0,935,938,1,0,0,0,936,937,5,16,0,0,937,939,5,143,
+ 0,0,938,936,1,0,0,0,938,939,1,0,0,0,939,941,1,0,0,0,940,942,3,112,56,
+ 0,941,940,1,0,0,0,941,942,1,0,0,0,942,111,1,0,0,0,943,944,5,130,0,0,944,
+ 947,5,32,0,0,945,946,5,39,0,0,946,948,3,154,77,0,947,945,1,0,0,0,947,
+ 948,1,0,0,0,948,951,1,0,0,0,949,950,5,112,0,0,950,952,3,154,77,0,951,
+ 949,1,0,0,0,951,952,1,0,0,0,952,955,1,0,0,0,953,954,5,103,0,0,954,956,
+ 3,154,77,0,955,953,1,0,0,0,955,956,1,0,0,0,956,113,1,0,0,0,957,960,3,
+ 154,77,0,958,959,5,6,0,0,959,961,3,154,77,0,960,958,1,0,0,0,960,961,1,
+ 0,0,0,961,115,1,0,0,0,962,969,3,226,113,0,963,966,3,206,103,0,964,965,
+ 5,188,0,0,965,967,3,206,103,0,966,964,1,0,0,0,966,967,1,0,0,0,967,969,
+ 1,0,0,0,968,962,1,0,0,0,968,963,1,0,0,0,969,117,1,0,0,0,970,975,3,120,
+ 60,0,971,972,5,151,0,0,972,974,3,120,60,0,973,971,1,0,0,0,974,977,1,0,
+ 0,0,975,973,1,0,0,0,975,976,1,0,0,0,976,119,1,0,0,0,977,975,1,0,0,0,978,
+ 979,3,222,111,0,979,980,5,157,0,0,980,981,3,208,104,0,981,121,1,0,0,0,
+ 982,984,3,124,62,0,983,982,1,0,0,0,983,984,1,0,0,0,984,986,1,0,0,0,985,
+ 987,3,126,63,0,986,985,1,0,0,0,986,987,1,0,0,0,987,989,1,0,0,0,988,990,
+ 3,130,65,0,989,988,1,0,0,0,989,990,1,0,0,0,990,123,1,0,0,0,991,992,5,
+ 82,0,0,992,993,5,11,0,0,993,994,3,146,73,0,994,125,1,0,0,0,995,996,5,
+ 79,0,0,996,997,5,11,0,0,997,998,3,108,54,0,998,127,1,0,0,0,999,1000,5,
+ 131,0,0,1000,1001,5,42,0,0,1001,1002,5,165,0,0,1002,1003,3,78,39,0,1003,
+ 1004,5,186,0,0,1004,129,1,0,0,0,1005,1006,7,10,0,0,1006,1007,3,132,66,
+ 0,1007,131,1,0,0,0,1008,1015,3,134,67,0,1009,1010,5,9,0,0,1010,1011,3,
+ 134,67,0,1011,1012,5,2,0,0,1012,1013,3,134,67,0,1013,1015,1,0,0,0,1014,
+ 1008,1,0,0,0,1014,1009,1,0,0,0,1015,133,1,0,0,0,1016,1017,5,20,0,0,1017,
+ 1029,5,95,0,0,1018,1019,5,120,0,0,1019,1029,5,85,0,0,1020,1021,5,120,
+ 0,0,1021,1029,5,37,0,0,1022,1023,3,154,77,0,1023,1024,5,85,0,0,1024,1029,
+ 1,0,0,0,1025,1026,3,154,77,0,1026,1027,5,37,0,0,1027,1029,1,0,0,0,1028,
+ 1016,1,0,0,0,1028,1018,1,0,0,0,1028,1020,1,0,0,0,1028,1022,1,0,0,0,1028,
+ 1025,1,0,0,0,1029,135,1,0,0,0,1030,1031,3,154,77,0,1031,1032,5,0,0,1,
+ 1032,137,1,0,0,0,1033,1034,6,69,-1,0,1034,1035,3,222,111,0,1035,1036,
+ 5,165,0,0,1036,1037,3,222,111,0,1037,1044,3,138,69,0,1038,1039,5,151,
+ 0,0,1039,1040,3,222,111,0,1040,1041,3,138,69,0,1041,1043,1,0,0,0,1042,
+ 1038,1,0,0,0,1043,1046,1,0,0,0,1044,1042,1,0,0,0,1044,1045,1,0,0,0,1045,
+ 1048,1,0,0,0,1046,1044,1,0,0,0,1047,1049,5,151,0,0,1048,1047,1,0,0,0,
+ 1048,1049,1,0,0,0,1049,1050,1,0,0,0,1050,1051,5,186,0,0,1051,1097,1,0,
+ 0,0,1052,1053,3,222,111,0,1053,1054,5,165,0,0,1054,1059,3,224,112,0,1055,
+ 1056,5,151,0,0,1056,1058,3,224,112,0,1057,1055,1,0,0,0,1058,1061,1,0,
+ 0,0,1059,1057,1,0,0,0,1059,1060,1,0,0,0,1060,1063,1,0,0,0,1061,1059,1,
+ 0,0,0,1062,1064,5,151,0,0,1063,1062,1,0,0,0,1063,1064,1,0,0,0,1064,1065,
+ 1,0,0,0,1065,1066,5,186,0,0,1066,1097,1,0,0,0,1067,1068,3,222,111,0,1068,
+ 1069,5,165,0,0,1069,1074,3,138,69,0,1070,1071,5,151,0,0,1071,1073,3,138,
+ 69,0,1072,1070,1,0,0,0,1073,1076,1,0,0,0,1074,1072,1,0,0,0,1074,1075,
+ 1,0,0,0,1075,1078,1,0,0,0,1076,1074,1,0,0,0,1077,1079,5,151,0,0,1078,
+ 1077,1,0,0,0,1078,1079,1,0,0,0,1079,1080,1,0,0,0,1080,1081,5,186,0,0,
+ 1081,1097,1,0,0,0,1082,1083,3,222,111,0,1083,1085,5,165,0,0,1084,1086,
+ 3,146,73,0,1085,1084,1,0,0,0,1085,1086,1,0,0,0,1086,1087,1,0,0,0,1087,
+ 1088,5,186,0,0,1088,1097,1,0,0,0,1089,1091,3,222,111,0,1090,1092,3,222,
+ 111,0,1091,1090,1,0,0,0,1092,1093,1,0,0,0,1093,1091,1,0,0,0,1093,1094,
+ 1,0,0,0,1094,1097,1,0,0,0,1095,1097,3,222,111,0,1096,1033,1,0,0,0,1096,
+ 1052,1,0,0,0,1096,1067,1,0,0,0,1096,1082,1,0,0,0,1096,1089,1,0,0,0,1096,
+ 1095,1,0,0,0,1097,1106,1,0,0,0,1098,1099,10,7,0,0,1099,1101,5,164,0,0,
+ 1100,1102,5,139,0,0,1101,1100,1,0,0,0,1101,1102,1,0,0,0,1102,1103,1,0,
+ 0,0,1103,1105,5,185,0,0,1104,1098,1,0,0,0,1105,1108,1,0,0,0,1106,1104,
+ 1,0,0,0,1106,1107,1,0,0,0,1107,139,1,0,0,0,1108,1106,1,0,0,0,1109,1110,
+ 3,142,71,0,1110,1112,5,130,0,0,1111,1113,5,110,0,0,1112,1111,1,0,0,0,
+ 1112,1113,1,0,0,0,1113,1114,1,0,0,0,1114,1115,5,109,0,0,1115,1116,5,111,
+ 0,0,1116,1119,1,0,0,0,1117,1119,3,142,71,0,1118,1109,1,0,0,0,1118,1117,
+ 1,0,0,0,1119,141,1,0,0,0,1120,1125,5,134,0,0,1121,1125,5,135,0,0,1122,
+ 1125,3,210,105,0,1123,1125,3,144,72,0,1124,1120,1,0,0,0,1124,1121,1,0,
+ 0,0,1124,1122,1,0,0,0,1124,1123,1,0,0,0,1125,143,1,0,0,0,1126,1127,7,
+ 11,0,0,1127,145,1,0,0,0,1128,1133,3,154,77,0,1129,1130,5,151,0,0,1130,
+ 1132,3,154,77,0,1131,1129,1,0,0,0,1132,1135,1,0,0,0,1133,1131,1,0,0,0,
+ 1133,1134,1,0,0,0,1134,1137,1,0,0,0,1135,1133,1,0,0,0,1136,1138,5,151,
+ 0,0,1137,1136,1,0,0,0,1137,1138,1,0,0,0,1138,147,1,0,0,0,1139,1144,3,
+ 152,76,0,1140,1141,5,151,0,0,1141,1143,3,152,76,0,1142,1140,1,0,0,0,1143,
+ 1146,1,0,0,0,1144,1142,1,0,0,0,1144,1145,1,0,0,0,1145,1147,1,0,0,0,1146,
+ 1144,1,0,0,0,1147,1148,5,151,0,0,1148,1151,1,0,0,0,1149,1151,3,150,75,
+ 0,1150,1139,1,0,0,0,1150,1149,1,0,0,0,1151,149,1,0,0,0,1152,1157,3,152,
+ 76,0,1153,1154,5,151,0,0,1154,1156,3,152,76,0,1155,1153,1,0,0,0,1156,
+ 1159,1,0,0,0,1157,1155,1,0,0,0,1157,1158,1,0,0,0,1158,1161,1,0,0,0,1159,
+ 1157,1,0,0,0,1160,1162,5,151,0,0,1161,1160,1,0,0,0,1161,1162,1,0,0,0,
+ 1162,151,1,0,0,0,1163,1164,3,222,111,0,1164,1165,5,150,0,0,1165,1166,
+ 3,154,77,0,1166,1174,1,0,0,0,1167,1168,5,39,0,0,1168,1174,3,220,110,0,
+ 1169,1174,3,154,77,0,1170,1171,3,154,77,0,1171,1172,3,220,110,0,1172,
+ 1174,1,0,0,0,1173,1163,1,0,0,0,1173,1167,1,0,0,0,1173,1169,1,0,0,0,1173,
+ 1170,1,0,0,0,1174,153,1,0,0,0,1175,1176,6,77,-1,0,1176,1177,3,156,78,
+ 0,1177,1198,1,0,0,0,1178,1179,10,5,0,0,1179,1180,5,2,0,0,1180,1197,3,
+ 154,77,6,1181,1182,10,4,0,0,1182,1183,5,78,0,0,1183,1197,3,154,77,5,1184,
+ 1185,10,3,0,0,1185,1186,5,177,0,0,1186,1187,3,154,77,0,1187,1188,5,150,
+ 0,0,1188,1189,3,154,77,3,1189,1197,1,0,0,0,1190,1191,10,2,0,0,1191,1194,
+ 5,6,0,0,1192,1195,3,222,111,0,1193,1195,5,143,0,0,1194,1192,1,0,0,0,1194,
+ 1193,1,0,0,0,1195,1197,1,0,0,0,1196,1178,1,0,0,0,1196,1181,1,0,0,0,1196,
+ 1184,1,0,0,0,1196,1190,1,0,0,0,1197,1200,1,0,0,0,1198,1196,1,0,0,0,1198,
+ 1199,1,0,0,0,1199,155,1,0,0,0,1200,1198,1,0,0,0,1201,1202,6,78,-1,0,1202,
+ 1204,5,12,0,0,1203,1205,3,154,77,0,1204,1203,1,0,0,0,1204,1205,1,0,0,
+ 0,1205,1211,1,0,0,0,1206,1207,5,126,0,0,1207,1208,3,154,77,0,1208,1209,
+ 5,105,0,0,1209,1210,3,154,77,0,1210,1212,1,0,0,0,1211,1206,1,0,0,0,1212,
+ 1213,1,0,0,0,1213,1211,1,0,0,0,1213,1214,1,0,0,0,1214,1217,1,0,0,0,1215,
+ 1216,5,26,0,0,1216,1218,3,154,77,0,1217,1215,1,0,0,0,1217,1218,1,0,0,
+ 0,1218,1219,1,0,0,0,1219,1220,5,27,0,0,1220,1551,1,0,0,0,1221,1222,5,
+ 13,0,0,1222,1223,5,165,0,0,1223,1224,3,154,77,0,1224,1225,5,6,0,0,1225,
+ 1226,3,138,69,0,1226,1227,5,186,0,0,1227,1551,1,0,0,0,1228,1229,5,119,
+ 0,0,1229,1230,5,165,0,0,1230,1231,3,154,77,0,1231,1232,5,6,0,0,1232,1233,
+ 3,138,69,0,1233,1234,5,186,0,0,1234,1551,1,0,0,0,1235,1236,5,21,0,0,1236,
+ 1551,5,143,0,0,1237,1238,5,56,0,0,1238,1239,3,154,77,0,1239,1240,3,210,
+ 105,0,1240,1551,1,0,0,0,1241,1242,5,56,0,0,1242,1551,5,143,0,0,1243,1244,
+ 5,104,0,0,1244,1245,5,165,0,0,1245,1246,3,154,77,0,1246,1247,5,39,0,0,
+ 1247,1250,3,154,77,0,1248,1249,5,38,0,0,1249,1251,3,154,77,0,1250,1248,
+ 1,0,0,0,1250,1251,1,0,0,0,1251,1252,1,0,0,0,1252,1253,5,186,0,0,1253,
+ 1551,1,0,0,0,1254,1255,5,108,0,0,1255,1551,5,143,0,0,1256,1257,5,116,
+ 0,0,1257,1258,5,165,0,0,1258,1259,7,12,0,0,1259,1260,3,228,114,0,1260,
+ 1261,5,39,0,0,1261,1262,3,154,77,0,1262,1263,5,186,0,0,1263,1551,1,0,
+ 0,0,1264,1265,5,17,0,0,1265,1266,5,165,0,0,1266,1267,5,143,0,0,1267,1551,
+ 5,186,0,0,1268,1269,5,17,0,0,1269,1270,5,165,0,0,1270,1271,3,146,73,0,
+ 1271,1272,5,186,0,0,1272,1551,1,0,0,0,1273,1274,5,17,0,0,1274,1275,5,
+ 165,0,0,1275,1276,5,145,0,0,1276,1277,5,29,0,0,1277,1278,5,165,0,0,1278,
+ 1279,3,8,4,0,1279,1280,5,186,0,0,1280,1281,5,91,0,0,1281,1282,5,165,0,
+ 0,1282,1283,3,160,80,0,1283,1284,5,186,0,0,1284,1285,5,186,0,0,1285,1299,
+ 1,0,0,0,1286,1287,5,165,0,0,1287,1288,5,145,0,0,1288,1289,5,29,0,0,1289,
+ 1290,5,165,0,0,1290,1291,3,8,4,0,1291,1292,5,186,0,0,1292,1293,5,91,0,
+ 0,1293,1294,5,165,0,0,1294,1295,3,160,80,0,1295,1296,5,186,0,0,1296,1297,
+ 5,186,0,0,1297,1299,1,0,0,0,1298,1273,1,0,0,0,1298,1286,1,0,0,0,1299,
+ 1551,1,0,0,0,1300,1301,5,17,0,0,1301,1302,5,165,0,0,1302,1303,5,145,0,
+ 0,1303,1304,5,29,0,0,1304,1305,5,165,0,0,1305,1306,3,8,4,0,1306,1307,
+ 5,186,0,0,1307,1308,5,186,0,0,1308,1551,1,0,0,0,1309,1310,5,17,0,0,1310,
+ 1311,5,165,0,0,1311,1312,5,145,0,0,1312,1313,5,91,0,0,1313,1314,5,165,
+ 0,0,1314,1315,3,160,80,0,1315,1316,5,186,0,0,1316,1317,5,186,0,0,1317,
+ 1327,1,0,0,0,1318,1319,5,165,0,0,1319,1320,5,145,0,0,1320,1321,5,91,0,
+ 0,1321,1322,5,165,0,0,1322,1323,3,160,80,0,1323,1324,5,186,0,0,1324,1325,
+ 5,186,0,0,1325,1327,1,0,0,0,1326,1309,1,0,0,0,1326,1318,1,0,0,0,1327,
+ 1551,1,0,0,0,1328,1329,5,17,0,0,1329,1330,5,165,0,0,1330,1331,5,145,0,
+ 0,1331,1551,5,186,0,0,1332,1333,5,17,0,0,1333,1334,5,165,0,0,1334,1335,
+ 3,222,111,0,1335,1336,5,155,0,0,1336,1337,5,145,0,0,1337,1338,5,29,0,
+ 0,1338,1339,5,165,0,0,1339,1340,3,8,4,0,1340,1341,5,186,0,0,1341,1342,
+ 5,91,0,0,1342,1343,5,165,0,0,1343,1344,3,160,80,0,1344,1345,5,186,0,0,
+ 1345,1346,5,186,0,0,1346,1551,1,0,0,0,1347,1348,5,17,0,0,1348,1349,5,
+ 165,0,0,1349,1350,3,222,111,0,1350,1351,5,155,0,0,1351,1352,5,145,0,0,
+ 1352,1353,5,29,0,0,1353,1354,5,165,0,0,1354,1355,3,8,4,0,1355,1356,5,
+ 186,0,0,1356,1357,5,186,0,0,1357,1551,1,0,0,0,1358,1359,5,17,0,0,1359,
+ 1360,5,165,0,0,1360,1361,3,222,111,0,1361,1362,5,155,0,0,1362,1363,5,
+ 145,0,0,1363,1364,5,91,0,0,1364,1365,5,165,0,0,1365,1366,3,160,80,0,1366,
+ 1367,5,186,0,0,1367,1368,5,186,0,0,1368,1551,1,0,0,0,1369,1370,5,17,0,
+ 0,1370,1371,5,165,0,0,1371,1372,3,222,111,0,1372,1373,5,155,0,0,1373,
+ 1374,5,145,0,0,1374,1375,5,186,0,0,1375,1551,1,0,0,0,1376,1377,5,145,
+ 0,0,1377,1378,5,17,0,0,1378,1379,5,165,0,0,1379,1380,5,143,0,0,1380,1551,
+ 5,186,0,0,1381,1382,5,145,0,0,1382,1383,5,17,0,0,1383,1384,5,165,0,0,
+ 1384,1385,3,146,73,0,1385,1386,5,186,0,0,1386,1551,1,0,0,0,1387,1388,
+ 3,222,111,0,1388,1390,5,165,0,0,1389,1391,3,146,73,0,1390,1389,1,0,0,
+ 0,1390,1391,1,0,0,0,1391,1392,1,0,0,0,1392,1393,5,186,0,0,1393,1394,3,
+ 128,64,0,1394,1551,1,0,0,0,1395,1396,3,222,111,0,1396,1398,5,165,0,0,
+ 1397,1399,3,146,73,0,1398,1397,1,0,0,0,1398,1399,1,0,0,0,1399,1400,1,
+ 0,0,0,1400,1401,5,186,0,0,1401,1410,1,0,0,0,1402,1404,5,165,0,0,1403,
+ 1405,5,25,0,0,1404,1403,1,0,0,0,1404,1405,1,0,0,0,1405,1407,1,0,0,0,1406,
+ 1408,3,146,73,0,1407,1406,1,0,0,0,1407,1408,1,0,0,0,1408,1409,1,0,0,0,
+ 1409,1411,5,186,0,0,1410,1402,1,0,0,0,1410,1411,1,0,0,0,1411,1418,1,0,
+ 0,0,1412,1413,5,33,0,0,1413,1414,5,165,0,0,1414,1415,5,127,0,0,1415,1416,
+ 3,154,77,0,1416,1417,5,186,0,0,1417,1419,1,0,0,0,1418,1412,1,0,0,0,1418,
+ 1419,1,0,0,0,1419,1420,1,0,0,0,1420,1421,5,81,0,0,1421,1422,5,165,0,0,
+ 1422,1423,3,122,61,0,1423,1424,5,186,0,0,1424,1551,1,0,0,0,1425,1426,
+ 3,222,111,0,1426,1428,5,165,0,0,1427,1429,3,146,73,0,1428,1427,1,0,0,
+ 0,1428,1429,1,0,0,0,1429,1430,1,0,0,0,1430,1431,5,186,0,0,1431,1440,1,
+ 0,0,0,1432,1434,5,165,0,0,1433,1435,5,25,0,0,1434,1433,1,0,0,0,1434,1435,
+ 1,0,0,0,1435,1437,1,0,0,0,1436,1438,3,146,73,0,1437,1436,1,0,0,0,1437,
+ 1438,1,0,0,0,1438,1439,1,0,0,0,1439,1441,5,186,0,0,1440,1432,1,0,0,0,
+ 1440,1441,1,0,0,0,1441,1448,1,0,0,0,1442,1443,5,33,0,0,1443,1444,5,165,
+ 0,0,1444,1445,5,127,0,0,1445,1446,3,154,77,0,1446,1447,5,186,0,0,1447,
+ 1449,1,0,0,0,1448,1442,1,0,0,0,1448,1449,1,0,0,0,1449,1450,1,0,0,0,1450,
+ 1451,5,81,0,0,1451,1452,3,222,111,0,1452,1551,1,0,0,0,1453,1459,3,222,
+ 111,0,1454,1456,5,165,0,0,1455,1457,3,146,73,0,1456,1455,1,0,0,0,1456,
+ 1457,1,0,0,0,1457,1458,1,0,0,0,1458,1460,5,186,0,0,1459,1454,1,0,0,0,
+ 1459,1460,1,0,0,0,1460,1461,1,0,0,0,1461,1463,5,165,0,0,1462,1464,5,25,
+ 0,0,1463,1462,1,0,0,0,1463,1464,1,0,0,0,1464,1466,1,0,0,0,1465,1467,3,
+ 146,73,0,1466,1465,1,0,0,0,1466,1467,1,0,0,0,1467,1471,1,0,0,0,1468,1469,
+ 5,79,0,0,1469,1470,5,11,0,0,1470,1472,3,108,54,0,1471,1468,1,0,0,0,1471,
+ 1472,1,0,0,0,1472,1473,1,0,0,0,1473,1480,5,186,0,0,1474,1475,5,33,0,0,
+ 1475,1476,5,165,0,0,1476,1477,5,127,0,0,1477,1478,3,154,77,0,1478,1479,
+ 5,186,0,0,1479,1481,1,0,0,0,1480,1474,1,0,0,0,1480,1481,1,0,0,0,1481,
+ 1551,1,0,0,0,1482,1551,3,168,84,0,1483,1551,3,230,115,0,1484,1551,3,208,
+ 104,0,1485,1486,5,153,0,0,1486,1551,3,156,78,22,1487,1488,5,73,0,0,1488,
+ 1551,3,156,78,12,1489,1490,3,198,99,0,1490,1491,5,155,0,0,1491,1493,1,
+ 0,0,0,1492,1489,1,0,0,0,1492,1493,1,0,0,0,1493,1494,1,0,0,0,1494,1500,
+ 5,145,0,0,1495,1496,5,29,0,0,1496,1497,5,165,0,0,1497,1498,3,8,4,0,1498,
+ 1499,5,186,0,0,1499,1501,1,0,0,0,1500,1495,1,0,0,0,1500,1501,1,0,0,0,
+ 1501,1551,1,0,0,0,1502,1503,5,60,0,0,1503,1508,3,222,111,0,1504,1505,
+ 5,151,0,0,1505,1507,3,222,111,0,1506,1504,1,0,0,0,1507,1510,1,0,0,0,1508,
+ 1506,1,0,0,0,1508,1509,1,0,0,0,1509,1512,1,0,0,0,1510,1508,1,0,0,0,1511,
+ 1513,5,151,0,0,1512,1511,1,0,0,0,1512,1513,1,0,0,0,1513,1514,1,0,0,0,
+ 1514,1515,5,150,0,0,1515,1516,3,154,77,0,1516,1551,1,0,0,0,1517,1518,
+ 5,165,0,0,1518,1519,3,48,24,0,1519,1520,5,186,0,0,1520,1551,1,0,0,0,1521,
+ 1522,5,165,0,0,1522,1523,3,154,77,0,1523,1524,5,186,0,0,1524,1551,1,0,
+ 0,0,1525,1526,5,165,0,0,1526,1527,3,146,73,0,1527,1528,5,186,0,0,1528,
+ 1551,1,0,0,0,1529,1531,5,5,0,0,1530,1529,1,0,0,0,1530,1531,1,0,0,0,1531,
+ 1532,1,0,0,0,1532,1534,5,164,0,0,1533,1535,3,146,73,0,1534,1533,1,0,0,
+ 0,1534,1535,1,0,0,0,1535,1536,1,0,0,0,1536,1551,5,185,0,0,1537,1539,5,
+ 163,0,0,1538,1540,3,40,20,0,1539,1538,1,0,0,0,1539,1540,1,0,0,0,1540,
+ 1541,1,0,0,0,1541,1551,5,184,0,0,1542,1551,3,158,79,0,1543,1544,3,222,
+ 111,0,1544,1545,5,149,0,0,1545,1546,3,154,77,0,1546,1551,1,0,0,0,1547,
+ 1548,5,160,0,0,1548,1551,5,139,0,0,1549,1551,3,178,89,0,1550,1201,1,0,
+ 0,0,1550,1221,1,0,0,0,1550,1228,1,0,0,0,1550,1235,1,0,0,0,1550,1237,1,
+ 0,0,0,1550,1241,1,0,0,0,1550,1243,1,0,0,0,1550,1254,1,0,0,0,1550,1256,
+ 1,0,0,0,1550,1264,1,0,0,0,1550,1268,1,0,0,0,1550,1298,1,0,0,0,1550,1300,
+ 1,0,0,0,1550,1326,1,0,0,0,1550,1328,1,0,0,0,1550,1332,1,0,0,0,1550,1347,
+ 1,0,0,0,1550,1358,1,0,0,0,1550,1369,1,0,0,0,1550,1376,1,0,0,0,1550,1381,
+ 1,0,0,0,1550,1387,1,0,0,0,1550,1395,1,0,0,0,1550,1425,1,0,0,0,1550,1453,
+ 1,0,0,0,1550,1482,1,0,0,0,1550,1483,1,0,0,0,1550,1484,1,0,0,0,1550,1485,
+ 1,0,0,0,1550,1487,1,0,0,0,1550,1492,1,0,0,0,1550,1502,1,0,0,0,1550,1517,
+ 1,0,0,0,1550,1521,1,0,0,0,1550,1525,1,0,0,0,1550,1530,1,0,0,0,1550,1537,
+ 1,0,0,0,1550,1542,1,0,0,0,1550,1543,1,0,0,0,1550,1547,1,0,0,0,1550,1549,
+ 1,0,0,0,1551,1675,1,0,0,0,1552,1556,10,21,0,0,1553,1557,5,145,0,0,1554,
+ 1557,5,188,0,0,1555,1557,5,175,0,0,1556,1553,1,0,0,0,1556,1554,1,0,0,
+ 0,1556,1555,1,0,0,0,1557,1558,1,0,0,0,1558,1674,3,156,78,22,1559,1563,
+ 10,20,0,0,1560,1564,5,176,0,0,1561,1564,5,153,0,0,1562,1564,5,152,0,0,
+ 1563,1560,1,0,0,0,1563,1561,1,0,0,0,1563,1562,1,0,0,0,1564,1565,1,0,0,
+ 0,1565,1674,3,156,78,21,1566,1591,10,19,0,0,1567,1592,5,156,0,0,1568,
+ 1592,5,157,0,0,1569,1592,5,170,0,0,1570,1592,5,167,0,0,1571,1592,5,168,
+ 0,0,1572,1592,5,158,0,0,1573,1592,5,159,0,0,1574,1576,5,73,0,0,1575,1574,
+ 1,0,0,0,1575,1576,1,0,0,0,1576,1577,1,0,0,0,1577,1579,5,51,0,0,1578,1580,
+ 5,15,0,0,1579,1578,1,0,0,0,1579,1580,1,0,0,0,1580,1592,1,0,0,0,1581,1583,
+ 5,73,0,0,1582,1581,1,0,0,0,1582,1583,1,0,0,0,1583,1584,1,0,0,0,1584,1592,
+ 7,13,0,0,1585,1592,5,182,0,0,1586,1592,5,183,0,0,1587,1592,5,172,0,0,
+ 1588,1592,5,161,0,0,1589,1592,5,162,0,0,1590,1592,5,171,0,0,1591,1567,
+ 1,0,0,0,1591,1568,1,0,0,0,1591,1569,1,0,0,0,1591,1570,1,0,0,0,1591,1571,
+ 1,0,0,0,1591,1572,1,0,0,0,1591,1573,1,0,0,0,1591,1575,1,0,0,0,1591,1582,
+ 1,0,0,0,1591,1585,1,0,0,0,1591,1586,1,0,0,0,1591,1587,1,0,0,0,1591,1588,
+ 1,0,0,0,1591,1589,1,0,0,0,1591,1590,1,0,0,0,1592,1593,1,0,0,0,1593,1674,
+ 3,156,78,20,1594,1595,10,16,0,0,1595,1597,5,57,0,0,1596,1598,5,73,0,0,
+ 1597,1596,1,0,0,0,1597,1598,1,0,0,0,1598,1599,1,0,0,0,1599,1600,5,25,
+ 0,0,1600,1601,5,39,0,0,1601,1674,3,156,78,17,1602,1603,10,15,0,0,1603,
+ 1604,5,166,0,0,1604,1674,3,156,78,16,1605,1606,10,14,0,0,1606,1607,5,
+ 174,0,0,1607,1674,3,156,78,15,1608,1610,10,13,0,0,1609,1611,5,73,0,0,
+ 1610,1609,1,0,0,0,1610,1611,1,0,0,0,1611,1612,1,0,0,0,1612,1613,5,9,0,
+ 0,1613,1614,3,156,78,0,1614,1615,5,2,0,0,1615,1616,3,156,78,14,1616,1674,
+ 1,0,0,0,1617,1618,10,35,0,0,1618,1619,5,165,0,0,1619,1620,3,48,24,0,1620,
+ 1621,5,186,0,0,1621,1674,1,0,0,0,1622,1623,10,34,0,0,1623,1625,5,165,
+ 0,0,1624,1626,3,146,73,0,1625,1624,1,0,0,0,1625,1626,1,0,0,0,1626,1627,
+ 1,0,0,0,1627,1674,5,186,0,0,1628,1629,10,30,0,0,1629,1630,5,164,0,0,1630,
+ 1631,3,154,77,0,1631,1632,5,185,0,0,1632,1674,1,0,0,0,1633,1634,10,29,
+ 0,0,1634,1636,5,164,0,0,1635,1637,3,154,77,0,1636,1635,1,0,0,0,1636,1637,
+ 1,0,0,0,1637,1638,1,0,0,0,1638,1640,5,150,0,0,1639,1641,3,154,77,0,1640,
+ 1639,1,0,0,0,1640,1641,1,0,0,0,1641,1642,1,0,0,0,1642,1674,5,185,0,0,
+ 1643,1644,10,28,0,0,1644,1645,5,155,0,0,1645,1674,5,139,0,0,1646,1647,
+ 10,27,0,0,1647,1648,5,155,0,0,1648,1674,3,222,111,0,1649,1650,10,26,0,
+ 0,1650,1651,5,173,0,0,1651,1652,5,164,0,0,1652,1653,3,154,77,0,1653,1654,
+ 5,185,0,0,1654,1674,1,0,0,0,1655,1656,10,25,0,0,1656,1657,5,173,0,0,1657,
+ 1674,5,139,0,0,1658,1659,10,24,0,0,1659,1660,5,173,0,0,1660,1674,3,222,
+ 111,0,1661,1662,10,23,0,0,1662,1663,5,148,0,0,1663,1674,3,140,70,0,1664,
+ 1665,10,18,0,0,1665,1666,5,49,0,0,1666,1674,5,75,0,0,1667,1668,10,17,
+ 0,0,1668,1670,5,57,0,0,1669,1671,5,73,0,0,1670,1669,1,0,0,0,1670,1671,
+ 1,0,0,0,1671,1672,1,0,0,0,1672,1674,5,74,0,0,1673,1552,1,0,0,0,1673,1559,
+ 1,0,0,0,1673,1566,1,0,0,0,1673,1594,1,0,0,0,1673,1602,1,0,0,0,1673,1605,
+ 1,0,0,0,1673,1608,1,0,0,0,1673,1617,1,0,0,0,1673,1622,1,0,0,0,1673,1628,
+ 1,0,0,0,1673,1633,1,0,0,0,1673,1643,1,0,0,0,1673,1646,1,0,0,0,1673,1649,
+ 1,0,0,0,1673,1655,1,0,0,0,1673,1658,1,0,0,0,1673,1661,1,0,0,0,1673,1664,
+ 1,0,0,0,1673,1667,1,0,0,0,1674,1677,1,0,0,0,1675,1673,1,0,0,0,1675,1676,
+ 1,0,0,0,1676,157,1,0,0,0,1677,1675,1,0,0,0,1678,1679,5,165,0,0,1679,1684,
+ 3,222,111,0,1680,1681,5,151,0,0,1681,1683,3,222,111,0,1682,1680,1,0,0,
+ 0,1683,1686,1,0,0,0,1684,1682,1,0,0,0,1684,1685,1,0,0,0,1685,1688,1,0,
+ 0,0,1686,1684,1,0,0,0,1687,1689,5,151,0,0,1688,1687,1,0,0,0,1688,1689,
+ 1,0,0,0,1689,1690,1,0,0,0,1690,1691,5,186,0,0,1691,1706,1,0,0,0,1692,
+ 1697,3,222,111,0,1693,1694,5,151,0,0,1694,1696,3,222,111,0,1695,1693,
+ 1,0,0,0,1696,1699,1,0,0,0,1697,1695,1,0,0,0,1697,1698,1,0,0,0,1698,1701,
+ 1,0,0,0,1699,1697,1,0,0,0,1700,1702,5,151,0,0,1701,1700,1,0,0,0,1701,
+ 1702,1,0,0,0,1702,1706,1,0,0,0,1703,1704,5,165,0,0,1704,1706,5,186,0,
+ 0,1705,1678,1,0,0,0,1705,1692,1,0,0,0,1705,1703,1,0,0,0,1706,1707,1,0,
+ 0,0,1707,1710,5,144,0,0,1708,1711,3,154,77,0,1709,1711,3,36,18,0,1710,
+ 1708,1,0,0,0,1710,1709,1,0,0,0,1711,1728,1,0,0,0,1712,1713,5,60,0,0,1713,
+ 1718,3,222,111,0,1714,1715,5,151,0,0,1715,1717,3,222,111,0,1716,1714,
+ 1,0,0,0,1717,1720,1,0,0,0,1718,1716,1,0,0,0,1718,1719,1,0,0,0,1719,1722,
+ 1,0,0,0,1720,1718,1,0,0,0,1721,1723,5,151,0,0,1722,1721,1,0,0,0,1722,
+ 1723,1,0,0,0,1723,1724,1,0,0,0,1724,1725,5,150,0,0,1725,1726,3,154,77,
+ 0,1726,1728,1,0,0,0,1727,1705,1,0,0,0,1727,1712,1,0,0,0,1728,159,1,0,
+ 0,0,1729,1734,3,162,81,0,1730,1731,5,151,0,0,1731,1733,3,162,81,0,1732,
+ 1730,1,0,0,0,1733,1736,1,0,0,0,1734,1732,1,0,0,0,1734,1735,1,0,0,0,1735,
+ 161,1,0,0,0,1736,1734,1,0,0,0,1737,1738,3,154,77,0,1738,1739,5,6,0,0,
+ 1739,1740,3,222,111,0,1740,163,1,0,0,0,1741,1748,3,168,84,0,1742,1748,
+ 3,166,83,0,1743,1744,5,163,0,0,1744,1745,3,154,77,0,1745,1746,5,184,0,
+ 0,1746,1748,1,0,0,0,1747,1741,1,0,0,0,1747,1742,1,0,0,0,1747,1743,1,0,
+ 0,0,1748,165,1,0,0,0,1749,1750,5,206,0,0,1750,167,1,0,0,0,1751,1752,5,
+ 168,0,0,1752,1756,3,222,111,0,1753,1755,3,170,85,0,1754,1753,1,0,0,0,
+ 1755,1758,1,0,0,0,1756,1754,1,0,0,0,1756,1757,1,0,0,0,1757,1759,1,0,0,
+ 0,1758,1756,1,0,0,0,1759,1760,5,189,0,0,1760,1781,1,0,0,0,1761,1762,5,
+ 168,0,0,1762,1766,3,222,111,0,1763,1765,3,170,85,0,1764,1763,1,0,0,0,
+ 1765,1768,1,0,0,0,1766,1764,1,0,0,0,1766,1767,1,0,0,0,1767,1769,1,0,0,
+ 0,1768,1766,1,0,0,0,1769,1773,5,159,0,0,1770,1772,3,164,82,0,1771,1770,
+ 1,0,0,0,1772,1775,1,0,0,0,1773,1771,1,0,0,0,1773,1774,1,0,0,0,1774,1776,
+ 1,0,0,0,1775,1773,1,0,0,0,1776,1777,5,169,0,0,1777,1778,3,222,111,0,1778,
+ 1779,5,159,0,0,1779,1781,1,0,0,0,1780,1751,1,0,0,0,1780,1761,1,0,0,0,
+ 1781,169,1,0,0,0,1782,1783,3,222,111,0,1783,1784,5,157,0,0,1784,1785,
+ 3,228,114,0,1785,1794,1,0,0,0,1786,1787,3,222,111,0,1787,1788,5,157,0,
+ 0,1788,1789,5,163,0,0,1789,1790,3,154,77,0,1790,1791,5,184,0,0,1791,1794,
+ 1,0,0,0,1792,1794,3,222,111,0,1793,1782,1,0,0,0,1793,1786,1,0,0,0,1793,
+ 1792,1,0,0,0,1794,171,1,0,0,0,1795,1800,3,174,87,0,1796,1797,5,151,0,
+ 0,1797,1799,3,174,87,0,1798,1796,1,0,0,0,1799,1802,1,0,0,0,1800,1798,
+ 1,0,0,0,1800,1801,1,0,0,0,1801,1804,1,0,0,0,1802,1800,1,0,0,0,1803,1805,
+ 5,151,0,0,1804,1803,1,0,0,0,1804,1805,1,0,0,0,1805,173,1,0,0,0,1806,1808,
+ 3,222,111,0,1807,1809,3,176,88,0,1808,1807,1,0,0,0,1808,1809,1,0,0,0,
+ 1809,1813,1,0,0,0,1810,1811,5,123,0,0,1811,1812,5,59,0,0,1812,1814,3,
+ 176,88,0,1813,1810,1,0,0,0,1813,1814,1,0,0,0,1814,1815,1,0,0,0,1815,1820,
+ 5,6,0,0,1816,1818,5,73,0,0,1817,1816,1,0,0,0,1817,1818,1,0,0,0,1818,1819,
+ 1,0,0,0,1819,1821,5,67,0,0,1820,1817,1,0,0,0,1820,1821,1,0,0,0,1821,1822,
+ 1,0,0,0,1822,1823,5,165,0,0,1823,1824,3,48,24,0,1824,1825,5,186,0,0,1825,
+ 1831,1,0,0,0,1826,1827,3,154,77,0,1827,1828,5,6,0,0,1828,1829,3,222,111,
+ 0,1829,1831,1,0,0,0,1830,1806,1,0,0,0,1830,1826,1,0,0,0,1831,175,1,0,
+ 0,0,1832,1833,5,165,0,0,1833,1838,3,222,111,0,1834,1835,5,151,0,0,1835,
+ 1837,3,222,111,0,1836,1834,1,0,0,0,1837,1840,1,0,0,0,1838,1836,1,0,0,
+ 0,1838,1839,1,0,0,0,1839,1841,1,0,0,0,1840,1838,1,0,0,0,1841,1842,5,186,
+ 0,0,1842,177,1,0,0,0,1843,1851,3,226,113,0,1844,1845,3,198,99,0,1845,
+ 1846,5,155,0,0,1846,1848,1,0,0,0,1847,1844,1,0,0,0,1847,1848,1,0,0,0,
+ 1848,1849,1,0,0,0,1849,1851,3,180,90,0,1850,1843,1,0,0,0,1850,1847,1,
+ 0,0,0,1851,179,1,0,0,0,1852,1857,3,222,111,0,1853,1854,5,155,0,0,1854,
+ 1856,3,222,111,0,1855,1853,1,0,0,0,1856,1859,1,0,0,0,1857,1855,1,0,0,
+ 0,1857,1858,1,0,0,0,1858,181,1,0,0,0,1859,1857,1,0,0,0,1860,1861,6,91,
+ -1,0,1861,1874,3,198,99,0,1862,1874,3,196,98,0,1863,1864,5,165,0,0,1864,
+ 1865,3,48,24,0,1865,1866,5,186,0,0,1866,1874,1,0,0,0,1867,1868,5,165,
+ 0,0,1868,1869,3,92,46,0,1869,1870,5,186,0,0,1870,1874,1,0,0,0,1871,1874,
+ 3,168,84,0,1872,1874,3,226,113,0,1873,1860,1,0,0,0,1873,1862,1,0,0,0,
+ 1873,1863,1,0,0,0,1873,1867,1,0,0,0,1873,1871,1,0,0,0,1873,1872,1,0,0,
+ 0,1874,1908,1,0,0,0,1875,1876,10,5,0,0,1876,1877,5,83,0,0,1877,1878,5,
+ 165,0,0,1878,1879,3,146,73,0,1879,1883,3,184,92,0,1880,1881,5,42,0,0,
+ 1881,1882,5,11,0,0,1882,1884,3,146,73,0,1883,1880,1,0,0,0,1883,1884,1,
+ 0,0,0,1884,1885,1,0,0,0,1885,1886,5,186,0,0,1886,1907,1,0,0,0,1887,1888,
+ 10,4,0,0,1888,1891,5,122,0,0,1889,1890,5,50,0,0,1890,1892,5,75,0,0,1891,
+ 1889,1,0,0,0,1891,1892,1,0,0,0,1892,1893,1,0,0,0,1893,1894,5,165,0,0,
+ 1894,1895,3,188,94,0,1895,1896,5,186,0,0,1896,1907,1,0,0,0,1897,1901,
+ 10,3,0,0,1898,1902,3,218,109,0,1899,1900,5,6,0,0,1900,1902,3,222,111,
+ 0,1901,1898,1,0,0,0,1901,1899,1,0,0,0,1902,1904,1,0,0,0,1903,1905,3,194,
+ 97,0,1904,1903,1,0,0,0,1904,1905,1,0,0,0,1905,1907,1,0,0,0,1906,1875,
+ 1,0,0,0,1906,1887,1,0,0,0,1906,1897,1,0,0,0,1907,1910,1,0,0,0,1908,1906,
+ 1,0,0,0,1908,1909,1,0,0,0,1909,183,1,0,0,0,1910,1908,1,0,0,0,1911,1913,
+ 5,38,0,0,1912,1914,3,186,93,0,1913,1912,1,0,0,0,1914,1915,1,0,0,0,1915,
+ 1913,1,0,0,0,1915,1916,1,0,0,0,1916,185,1,0,0,0,1917,1918,3,192,96,0,
+ 1918,1919,5,51,0,0,1919,1920,5,165,0,0,1920,1921,3,146,73,0,1921,1922,
+ 5,186,0,0,1922,187,1,0,0,0,1923,1928,3,190,95,0,1924,1925,5,151,0,0,1925,
+ 1927,3,190,95,0,1926,1924,1,0,0,0,1927,1930,1,0,0,0,1928,1926,1,0,0,0,
+ 1928,1929,1,0,0,0,1929,1932,1,0,0,0,1930,1928,1,0,0,0,1931,1933,5,151,
+ 0,0,1932,1931,1,0,0,0,1932,1933,1,0,0,0,1933,189,1,0,0,0,1934,1935,3,
+ 192,96,0,1935,1936,5,38,0,0,1936,1937,3,192,96,0,1937,1938,5,51,0,0,1938,
+ 1939,5,165,0,0,1939,1940,3,146,73,0,1940,1949,5,186,0,0,1941,1942,3,192,
+ 96,0,1942,1943,5,51,0,0,1943,1944,5,165,0,0,1944,1945,3,146,73,0,1945,
+ 1946,5,186,0,0,1946,1948,1,0,0,0,1947,1941,1,0,0,0,1948,1951,1,0,0,0,
+ 1949,1947,1,0,0,0,1949,1950,1,0,0,0,1950,191,1,0,0,0,1951,1949,1,0,0,
+ 0,1952,1953,5,165,0,0,1953,1954,3,146,73,0,1954,1955,5,186,0,0,1955,1958,
+ 1,0,0,0,1956,1958,3,154,77,0,1957,1952,1,0,0,0,1957,1956,1,0,0,0,1958,
+ 193,1,0,0,0,1959,1960,5,165,0,0,1960,1965,3,222,111,0,1961,1962,5,151,
+ 0,0,1962,1964,3,222,111,0,1963,1961,1,0,0,0,1964,1967,1,0,0,0,1965,1963,
+ 1,0,0,0,1965,1966,1,0,0,0,1966,1968,1,0,0,0,1967,1965,1,0,0,0,1968,1969,
+ 5,186,0,0,1969,195,1,0,0,0,1970,1971,3,222,111,0,1971,1973,5,165,0,0,
+ 1972,1974,3,200,100,0,1973,1972,1,0,0,0,1973,1974,1,0,0,0,1974,1975,1,
+ 0,0,0,1975,1976,5,186,0,0,1976,197,1,0,0,0,1977,1978,3,202,101,0,1978,
+ 1979,5,155,0,0,1979,1981,1,0,0,0,1980,1977,1,0,0,0,1980,1981,1,0,0,0,
+ 1981,1982,1,0,0,0,1982,1983,3,180,90,0,1983,199,1,0,0,0,1984,1989,3,154,
+ 77,0,1985,1986,5,151,0,0,1986,1988,3,154,77,0,1987,1985,1,0,0,0,1988,
+ 1991,1,0,0,0,1989,1987,1,0,0,0,1989,1990,1,0,0,0,1990,1993,1,0,0,0,1991,
+ 1989,1,0,0,0,1992,1994,5,151,0,0,1993,1992,1,0,0,0,1993,1994,1,0,0,0,
+ 1994,201,1,0,0,0,1995,1996,3,222,111,0,1996,203,1,0,0,0,1997,2006,5,136,
+ 0,0,1998,1999,5,155,0,0,1999,2006,7,14,0,0,2000,2001,5,139,0,0,2001,2003,
+ 5,155,0,0,2002,2004,7,14,0,0,2003,2002,1,0,0,0,2003,2004,1,0,0,0,2004,
+ 2006,1,0,0,0,2005,1997,1,0,0,0,2005,1998,1,0,0,0,2005,2000,1,0,0,0,2006,
+ 205,1,0,0,0,2007,2009,7,15,0,0,2008,2007,1,0,0,0,2008,2009,1,0,0,0,2009,
+ 2018,1,0,0,0,2010,2019,3,204,102,0,2011,2019,5,137,0,0,2012,2019,5,138,
+ 0,0,2013,2019,5,141,0,0,2014,2019,5,139,0,0,2015,2019,5,140,0,0,2016,
+ 2019,5,52,0,0,2017,2019,5,72,0,0,2018,2010,1,0,0,0,2018,2011,1,0,0,0,
+ 2018,2012,1,0,0,0,2018,2013,1,0,0,0,2018,2014,1,0,0,0,2018,2015,1,0,0,
+ 0,2018,2016,1,0,0,0,2018,2017,1,0,0,0,2019,207,1,0,0,0,2020,2024,3,206,
+ 103,0,2021,2024,5,143,0,0,2022,2024,5,74,0,0,2023,2020,1,0,0,0,2023,2021,
+ 1,0,0,0,2023,2022,1,0,0,0,2024,209,1,0,0,0,2025,2026,7,16,0,0,2026,211,
+ 1,0,0,0,2027,2028,7,17,0,0,2028,213,1,0,0,0,2029,2030,7,18,0,0,2030,215,
+ 1,0,0,0,2031,2032,7,19,0,0,2032,217,1,0,0,0,2033,2037,5,134,0,0,2034,
+ 2037,5,135,0,0,2035,2037,3,214,107,0,2036,2033,1,0,0,0,2036,2034,1,0,
+ 0,0,2036,2035,1,0,0,0,2037,219,1,0,0,0,2038,2042,5,134,0,0,2039,2042,
+ 5,135,0,0,2040,2042,3,216,108,0,2041,2038,1,0,0,0,2041,2039,1,0,0,0,2041,
+ 2040,1,0,0,0,2042,221,1,0,0,0,2043,2048,5,134,0,0,2044,2048,5,135,0,0,
+ 2045,2048,3,210,105,0,2046,2048,3,212,106,0,2047,2043,1,0,0,0,2047,2044,
+ 1,0,0,0,2047,2045,1,0,0,0,2047,2046,1,0,0,0,2048,223,1,0,0,0,2049,2050,
+ 3,228,114,0,2050,2051,5,157,0,0,2051,2052,3,206,103,0,2052,225,1,0,0,
+ 0,2053,2054,5,163,0,0,2054,2055,3,154,77,0,2055,2056,5,184,0,0,2056,227,
+ 1,0,0,0,2057,2060,5,143,0,0,2058,2060,3,230,115,0,2059,2057,1,0,0,0,2059,
+ 2058,1,0,0,0,2060,229,1,0,0,0,2061,2065,5,179,0,0,2062,2064,3,232,116,
+ 0,2063,2062,1,0,0,0,2064,2067,1,0,0,0,2065,2063,1,0,0,0,2065,2066,1,0,
+ 0,0,2066,2068,1,0,0,0,2067,2065,1,0,0,0,2068,2069,5,181,0,0,2069,231,
+ 1,0,0,0,2070,2071,5,197,0,0,2071,2072,3,154,77,0,2072,2073,5,184,0,0,
+ 2073,2076,1,0,0,0,2074,2076,5,196,0,0,2075,2070,1,0,0,0,2075,2074,1,0,
+ 0,0,2076,233,1,0,0,0,2077,2081,5,180,0,0,2078,2080,3,236,118,0,2079,2078,
+ 1,0,0,0,2080,2083,1,0,0,0,2081,2079,1,0,0,0,2081,2082,1,0,0,0,2082,2084,
+ 1,0,0,0,2083,2081,1,0,0,0,2084,2085,5,0,0,1,2085,235,1,0,0,0,2086,2087,
+ 5,199,0,0,2087,2088,3,154,77,0,2088,2089,5,184,0,0,2089,2092,1,0,0,0,
+ 2090,2092,5,198,0,0,2091,2086,1,0,0,0,2091,2090,1,0,0,0,2092,237,1,0,
+ 0,0,261,241,248,256,263,267,280,284,287,292,299,303,312,317,326,334,341,
+ 345,351,356,364,371,377,389,392,400,414,418,423,426,441,447,452,458,464,
+ 469,475,481,486,488,496,500,503,508,512,516,521,525,532,535,539,542,546,
+ 549,552,555,558,561,564,568,572,575,578,582,585,588,591,595,598,602,610,
+ 616,637,661,668,673,687,696,701,715,719,723,728,732,737,751,760,768,771,
+ 777,785,788,793,800,810,818,824,826,830,835,842,845,849,853,856,862,864,
+ 867,871,875,878,880,882,887,898,903,907,913,918,925,930,934,938,941,947,
+ 951,955,960,966,968,975,983,986,989,1014,1028,1044,1048,1059,1063,1074,
+ 1078,1085,1093,1096,1101,1106,1112,1118,1124,1133,1137,1144,1150,1157,
+ 1161,1173,1194,1196,1198,1204,1213,1217,1250,1298,1326,1390,1398,1404,
+ 1407,1410,1418,1428,1434,1437,1440,1448,1456,1459,1463,1466,1471,1480,
+ 1492,1500,1508,1512,1530,1534,1539,1550,1556,1563,1575,1579,1582,1591,
+ 1597,1610,1625,1636,1640,1670,1673,1675,1684,1688,1697,1701,1705,1710,
+ 1718,1722,1727,1734,1747,1756,1766,1773,1780,1793,1800,1804,1808,1813,
+ 1817,1820,1830,1838,1847,1850,1857,1873,1883,1891,1901,1904,1906,1908,
+ 1915,1928,1932,1949,1957,1965,1973,1980,1989,1993,2003,2005,2008,2018,
+ 2023,2036,2041,2047,2059,2065,2075,2081,2091
};
staticData->serializedATN = antlr4::atn::SerializedATNView(serializedATNSegment, sizeof(serializedATNSegment) / sizeof(serializedATNSegment[0]));
@@ -1033,20 +1036,20 @@ HogQLParser::ProgramContext* HogQLParser::program() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(239);
+ setState(241);
_errHandler->sync(this);
_la = _input->LA(1);
while ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -18014415957803010) != 0) || ((((_la - 64) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 64)) & -9) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 128)) & 578995371586535383) != 0)) {
- setState(236);
+ setState(238);
declaration();
- setState(241);
+ setState(243);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(242);
+ setState(244);
match(HogQLParser::EOF);
}
@@ -1098,12 +1101,12 @@ HogQLParser::DeclarationContext* HogQLParser::declaration() {
exitRule();
});
try {
- setState(246);
+ setState(248);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::LET: {
enterOuterAlt(_localctx, 1);
- setState(244);
+ setState(246);
varDecl();
break;
}
@@ -1254,7 +1257,7 @@ HogQLParser::DeclarationContext* HogQLParser::declaration() {
case HogQLParser::QUOTE_SINGLE_TEMPLATE:
case HogQLParser::SEMICOLON: {
enterOuterAlt(_localctx, 2);
- setState(245);
+ setState(247);
statement();
break;
}
@@ -1309,7 +1312,7 @@ HogQLParser::ExpressionContext* HogQLParser::expression() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(248);
+ setState(250);
columnExpr(0);
}
@@ -1371,18 +1374,18 @@ HogQLParser::VarDeclContext* HogQLParser::varDecl() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(250);
+ setState(252);
match(HogQLParser::LET);
- setState(251);
+ setState(253);
identifier();
- setState(254);
+ setState(256);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COLONEQUALS) {
- setState(252);
+ setState(254);
match(HogQLParser::COLONEQUALS);
- setState(253);
+ setState(255);
expression();
}
@@ -1446,28 +1449,28 @@ HogQLParser::IdentifierListContext* HogQLParser::identifierList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(256);
+ setState(258);
nestedIdentifier();
- setState(261);
+ setState(263);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 3, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(257);
+ setState(259);
match(HogQLParser::COMMA);
- setState(258);
+ setState(260);
nestedIdentifier();
}
- setState(263);
+ setState(265);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 3, _ctx);
}
- setState(265);
+ setState(267);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(264);
+ setState(266);
match(HogQLParser::COMMA);
}
@@ -1556,82 +1559,82 @@ HogQLParser::StatementContext* HogQLParser::statement() {
exitRule();
});
try {
- setState(278);
+ setState(280);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 5, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(267);
+ setState(269);
returnStmt();
break;
}
case 2: {
enterOuterAlt(_localctx, 2);
- setState(268);
+ setState(270);
throwStmt();
break;
}
case 3: {
enterOuterAlt(_localctx, 3);
- setState(269);
+ setState(271);
tryCatchStmt();
break;
}
case 4: {
enterOuterAlt(_localctx, 4);
- setState(270);
+ setState(272);
ifStmt();
break;
}
case 5: {
enterOuterAlt(_localctx, 5);
- setState(271);
+ setState(273);
whileStmt();
break;
}
case 6: {
enterOuterAlt(_localctx, 6);
- setState(272);
+ setState(274);
forInStmt();
break;
}
case 7: {
enterOuterAlt(_localctx, 7);
- setState(273);
+ setState(275);
forStmt();
break;
}
case 8: {
enterOuterAlt(_localctx, 8);
- setState(274);
+ setState(276);
funcStmt();
break;
}
case 9: {
enterOuterAlt(_localctx, 9);
- setState(275);
+ setState(277);
block();
break;
}
case 10: {
enterOuterAlt(_localctx, 10);
- setState(276);
+ setState(278);
exprStmt();
break;
}
case 11: {
enterOuterAlt(_localctx, 11);
- setState(277);
+ setState(279);
emptyStmt();
break;
}
@@ -1694,14 +1697,14 @@ HogQLParser::ReturnStmtContext* HogQLParser::returnStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(280);
- match(HogQLParser::RETURN);
setState(282);
+ match(HogQLParser::RETURN);
+ setState(284);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 6, _ctx)) {
case 1: {
- setState(281);
+ setState(283);
expression();
break;
}
@@ -1709,12 +1712,12 @@ HogQLParser::ReturnStmtContext* HogQLParser::returnStmt() {
default:
break;
}
- setState(285);
+ setState(287);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 7, _ctx)) {
case 1: {
- setState(284);
+ setState(286);
match(HogQLParser::SEMICOLON);
break;
}
@@ -1777,16 +1780,16 @@ HogQLParser::ThrowStmtContext* HogQLParser::throwStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(287);
+ setState(289);
match(HogQLParser::THROW);
- setState(288);
- expression();
setState(290);
+ expression();
+ setState(292);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 8, _ctx)) {
case 1: {
- setState(289);
+ setState(291);
match(HogQLParser::SEMICOLON);
break;
}
@@ -1866,31 +1869,31 @@ HogQLParser::CatchBlockContext* HogQLParser::catchBlock() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(292);
+ setState(294);
match(HogQLParser::CATCH);
- setState(301);
+ setState(303);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LPAREN) {
- setState(293);
+ setState(295);
match(HogQLParser::LPAREN);
- setState(294);
+ setState(296);
antlrcpp::downCast<CatchBlockContext *>(_localctx)->catchVar = identifier();
- setState(297);
+ setState(299);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COLON) {
- setState(295);
+ setState(297);
match(HogQLParser::COLON);
- setState(296);
+ setState(298);
antlrcpp::downCast<CatchBlockContext *>(_localctx)->catchType = identifier();
}
- setState(299);
+ setState(301);
match(HogQLParser::RPAREN);
}
- setState(303);
+ setState(305);
antlrcpp::downCast<CatchBlockContext *>(_localctx)->catchStmt = block();
}
@@ -1960,28 +1963,28 @@ HogQLParser::TryCatchStmtContext* HogQLParser::tryCatchStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(305);
+ setState(307);
match(HogQLParser::TRY);
- setState(306);
+ setState(308);
antlrcpp::downCast<TryCatchStmtContext *>(_localctx)->tryStmt = block();
- setState(310);
+ setState(312);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::CATCH) {
- setState(307);
+ setState(309);
catchBlock();
- setState(312);
+ setState(314);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(315);
+ setState(317);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FINALLY) {
- setState(313);
+ setState(315);
match(HogQLParser::FINALLY);
- setState(314);
+ setState(316);
antlrcpp::downCast<TryCatchStmtContext *>(_localctx)->finallyStmt = block();
}
@@ -2055,24 +2058,24 @@ HogQLParser::IfStmtContext* HogQLParser::ifStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(317);
+ setState(319);
match(HogQLParser::IF);
- setState(318);
+ setState(320);
match(HogQLParser::LPAREN);
- setState(319);
+ setState(321);
expression();
- setState(320);
+ setState(322);
match(HogQLParser::RPAREN);
- setState(321);
+ setState(323);
statement();
- setState(324);
+ setState(326);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 13, _ctx)) {
case 1: {
- setState(322);
+ setState(324);
match(HogQLParser::ELSE);
- setState(323);
+ setState(325);
statement();
break;
}
@@ -2147,22 +2150,22 @@ HogQLParser::WhileStmtContext* HogQLParser::whileStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(326);
+ setState(328);
match(HogQLParser::WHILE);
- setState(327);
+ setState(329);
match(HogQLParser::LPAREN);
- setState(328);
+ setState(330);
expression();
- setState(329);
+ setState(331);
match(HogQLParser::RPAREN);
- setState(330);
- statement();
setState(332);
+ statement();
+ setState(334);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 14, _ctx)) {
case 1: {
- setState(331);
+ setState(333);
match(HogQLParser::SEMICOLON);
break;
}
@@ -2262,28 +2265,28 @@ HogQLParser::ForStmtContext* HogQLParser::forStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(334);
+ setState(336);
match(HogQLParser::FOR);
- setState(335);
+ setState(337);
match(HogQLParser::LPAREN);
- setState(339);
+ setState(341);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 15, _ctx)) {
case 1: {
- setState(336);
+ setState(338);
antlrcpp::downCast<ForStmtContext *>(_localctx)->initializerVarDeclr = varDecl();
break;
}
case 2: {
- setState(337);
+ setState(339);
antlrcpp::downCast<ForStmtContext *>(_localctx)->initializerVarAssignment = varAssignment();
break;
}
case 3: {
- setState(338);
+ setState(340);
antlrcpp::downCast<ForStmtContext *>(_localctx)->initializerExpression = expression();
break;
}
@@ -2291,9 +2294,9 @@ HogQLParser::ForStmtContext* HogQLParser::forStmt() {
default:
break;
}
- setState(341);
- match(HogQLParser::SEMICOLON);
setState(343);
+ match(HogQLParser::SEMICOLON);
+ setState(345);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -2301,29 +2304,29 @@ HogQLParser::ForStmtContext* HogQLParser::forStmt() {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(342);
+ setState(344);
antlrcpp::downCast<ForStmtContext *>(_localctx)->condition = expression();
}
- setState(345);
+ setState(347);
match(HogQLParser::SEMICOLON);
- setState(349);
+ setState(351);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 17, _ctx)) {
case 1: {
- setState(346);
+ setState(348);
antlrcpp::downCast<ForStmtContext *>(_localctx)->incrementVarDeclr = varDecl();
break;
}
case 2: {
- setState(347);
+ setState(349);
antlrcpp::downCast<ForStmtContext *>(_localctx)->incrementVarAssignment = varAssignment();
break;
}
case 3: {
- setState(348);
+ setState(350);
antlrcpp::downCast<ForStmtContext *>(_localctx)->incrementExpression = expression();
break;
}
@@ -2331,16 +2334,16 @@ HogQLParser::ForStmtContext* HogQLParser::forStmt() {
default:
break;
}
- setState(351);
+ setState(353);
match(HogQLParser::RPAREN);
- setState(352);
- statement();
setState(354);
+ statement();
+ setState(356);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 18, _ctx)) {
case 1: {
- setState(353);
+ setState(355);
match(HogQLParser::SEMICOLON);
break;
}
@@ -2436,38 +2439,38 @@ HogQLParser::ForInStmtContext* HogQLParser::forInStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(356);
+ setState(358);
match(HogQLParser::FOR);
- setState(357);
+ setState(359);
match(HogQLParser::LPAREN);
- setState(358);
+ setState(360);
match(HogQLParser::LET);
- setState(359);
+ setState(361);
identifier();
- setState(362);
+ setState(364);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(360);
+ setState(362);
match(HogQLParser::COMMA);
- setState(361);
+ setState(363);
identifier();
}
- setState(364);
+ setState(366);
match(HogQLParser::IN);
- setState(365);
+ setState(367);
expression();
- setState(366);
+ setState(368);
match(HogQLParser::RPAREN);
- setState(367);
- statement();
setState(369);
+ statement();
+ setState(371);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 20, _ctx)) {
case 1: {
- setState(368);
+ setState(370);
match(HogQLParser::SEMICOLON);
break;
}
@@ -2547,7 +2550,7 @@ HogQLParser::FuncStmtContext* HogQLParser::funcStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(371);
+ setState(373);
_la = _input->LA(1);
if (!(_la == HogQLParser::FN
@@ -2558,11 +2561,11 @@ HogQLParser::FuncStmtContext* HogQLParser::funcStmt() {
_errHandler->reportMatch(this);
consume();
}
- setState(372);
+ setState(374);
identifier();
- setState(373);
- match(HogQLParser::LPAREN);
setState(375);
+ match(HogQLParser::LPAREN);
+ setState(377);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -2570,12 +2573,12 @@ HogQLParser::FuncStmtContext* HogQLParser::funcStmt() {
((1ULL << _la) & -22520283327905794) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576778619) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 107) != 0)) {
- setState(374);
+ setState(376);
identifierList();
}
- setState(377);
+ setState(379);
match(HogQLParser::RPAREN);
- setState(378);
+ setState(380);
block();
}
@@ -2632,11 +2635,11 @@ HogQLParser::VarAssignmentContext* HogQLParser::varAssignment() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(380);
+ setState(382);
expression();
- setState(381);
+ setState(383);
match(HogQLParser::COLONEQUALS);
- setState(382);
+ setState(384);
expression();
}
@@ -2698,24 +2701,24 @@ HogQLParser::ExprStmtContext* HogQLParser::exprStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(384);
+ setState(386);
expression();
- setState(387);
+ setState(389);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COLONEQUALS) {
- setState(385);
+ setState(387);
match(HogQLParser::COLONEQUALS);
- setState(386);
+ setState(388);
expression();
}
- setState(390);
+ setState(392);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 23, _ctx)) {
case 1: {
- setState(389);
+ setState(391);
match(HogQLParser::SEMICOLON);
break;
}
@@ -2770,7 +2773,7 @@ HogQLParser::EmptyStmtContext* HogQLParser::emptyStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(392);
+ setState(394);
match(HogQLParser::SEMICOLON);
}
@@ -2832,22 +2835,22 @@ HogQLParser::BlockContext* HogQLParser::block() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(394);
+ setState(396);
match(HogQLParser::LBRACE);
- setState(398);
+ setState(400);
_errHandler->sync(this);
_la = _input->LA(1);
while ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -18014415957803010) != 0) || ((((_la - 64) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 64)) & -9) != 0) || ((((_la - 128) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 128)) & 578995371586535383) != 0)) {
- setState(395);
+ setState(397);
declaration();
- setState(400);
+ setState(402);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(401);
+ setState(403);
match(HogQLParser::RBRACE);
}
@@ -2904,11 +2907,11 @@ HogQLParser::KvPairContext* HogQLParser::kvPair() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(403);
+ setState(405);
expression();
- setState(404);
+ setState(406);
match(HogQLParser::COLON);
- setState(405);
+ setState(407);
expression();
}
@@ -2971,28 +2974,28 @@ HogQLParser::KvPairListContext* HogQLParser::kvPairList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(407);
+ setState(409);
kvPair();
- setState(412);
+ setState(414);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 25, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(408);
+ setState(410);
match(HogQLParser::COMMA);
- setState(409);
+ setState(411);
kvPair();
}
- setState(414);
+ setState(416);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 25, _ctx);
}
- setState(416);
+ setState(418);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(415);
+ setState(417);
match(HogQLParser::COMMA);
}
@@ -3059,23 +3062,23 @@ HogQLParser::SelectContext* HogQLParser::select() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(421);
+ setState(423);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 27, _ctx)) {
case 1: {
- setState(418);
+ setState(420);
selectSetStmt();
break;
}
case 2: {
- setState(419);
+ setState(421);
selectStmt();
break;
}
case 3: {
- setState(420);
+ setState(422);
hogqlxTagElement();
break;
}
@@ -3083,15 +3086,15 @@ HogQLParser::SelectContext* HogQLParser::select() {
default:
break;
}
- setState(424);
+ setState(426);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::SEMICOLON) {
- setState(423);
+ setState(425);
match(HogQLParser::SEMICOLON);
}
- setState(426);
+ setState(428);
match(HogQLParser::EOF);
}
@@ -3159,43 +3162,43 @@ HogQLParser::SelectStmtWithParensContext* HogQLParser::selectStmtWithParens() {
exitRule();
});
try {
- setState(439);
+ setState(441);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 29, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(428);
+ setState(430);
selectStmt();
break;
}
case 2: {
enterOuterAlt(_localctx, 2);
- setState(429);
+ setState(431);
withClause();
- setState(430);
+ setState(432);
match(HogQLParser::LPAREN);
- setState(431);
+ setState(433);
selectSetStmt();
- setState(432);
+ setState(434);
match(HogQLParser::RPAREN);
break;
}
case 3: {
enterOuterAlt(_localctx, 3);
- setState(434);
+ setState(436);
match(HogQLParser::LPAREN);
- setState(435);
+ setState(437);
selectSetStmt();
- setState(436);
+ setState(438);
match(HogQLParser::RPAREN);
break;
}
case 4: {
enterOuterAlt(_localctx, 4);
- setState(438);
+ setState(440);
placeholder();
break;
}
@@ -3279,142 +3282,142 @@ HogQLParser::SubsequentSelectSetClauseContext* HogQLParser::subsequentSelectSetC
});
try {
enterOuterAlt(_localctx, 1);
- setState(486);
+ setState(488);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 38, _ctx)) {
case 1: {
- setState(441);
+ setState(443);
match(HogQLParser::EXCEPT);
- setState(442);
+ setState(444);
match(HogQLParser::ALL);
- setState(445);
+ setState(447);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(443);
+ setState(445);
match(HogQLParser::BY);
- setState(444);
+ setState(446);
match(HogQLParser::NAME);
}
break;
}
case 2: {
- setState(447);
+ setState(449);
match(HogQLParser::EXCEPT);
- setState(450);
+ setState(452);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(448);
+ setState(450);
match(HogQLParser::BY);
- setState(449);
+ setState(451);
match(HogQLParser::NAME);
}
break;
}
case 3: {
- setState(452);
+ setState(454);
match(HogQLParser::UNION);
- setState(453);
+ setState(455);
match(HogQLParser::ALL);
- setState(456);
+ setState(458);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(454);
+ setState(456);
match(HogQLParser::BY);
- setState(455);
+ setState(457);
match(HogQLParser::NAME);
}
break;
}
case 4: {
- setState(458);
+ setState(460);
match(HogQLParser::UNION);
- setState(459);
+ setState(461);
match(HogQLParser::DISTINCT);
- setState(462);
+ setState(464);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(460);
+ setState(462);
match(HogQLParser::BY);
- setState(461);
+ setState(463);
match(HogQLParser::NAME);
}
break;
}
case 5: {
- setState(464);
+ setState(466);
match(HogQLParser::UNION);
- setState(467);
+ setState(469);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(465);
+ setState(467);
match(HogQLParser::BY);
- setState(466);
+ setState(468);
match(HogQLParser::NAME);
}
break;
}
case 6: {
- setState(469);
+ setState(471);
match(HogQLParser::INTERSECT);
- setState(470);
+ setState(472);
match(HogQLParser::ALL);
- setState(473);
+ setState(475);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(471);
+ setState(473);
match(HogQLParser::BY);
- setState(472);
+ setState(474);
match(HogQLParser::NAME);
}
break;
}
case 7: {
- setState(475);
+ setState(477);
match(HogQLParser::INTERSECT);
- setState(476);
+ setState(478);
match(HogQLParser::DISTINCT);
- setState(479);
+ setState(481);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(477);
+ setState(479);
match(HogQLParser::BY);
- setState(478);
+ setState(480);
match(HogQLParser::NAME);
}
break;
}
case 8: {
- setState(481);
+ setState(483);
match(HogQLParser::INTERSECT);
- setState(484);
+ setState(486);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::BY) {
- setState(482);
+ setState(484);
match(HogQLParser::BY);
- setState(483);
+ setState(485);
match(HogQLParser::NAME);
}
break;
@@ -3423,7 +3426,7 @@ HogQLParser::SubsequentSelectSetClauseContext* HogQLParser::subsequentSelectSetC
default:
break;
}
- setState(488);
+ setState(490);
selectStmtWithParens();
}
@@ -3489,36 +3492,36 @@ HogQLParser::SelectSetStmtContext* HogQLParser::selectSetStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(490);
+ setState(492);
selectStmtWithParens();
- setState(494);
+ setState(496);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::EXCEPT
|| _la == HogQLParser::INTERSECT || _la == HogQLParser::UNION) {
- setState(491);
+ setState(493);
subsequentSelectSetClause();
- setState(496);
+ setState(498);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(498);
+ setState(500);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::ORDER) {
- setState(497);
+ setState(499);
orderByClause();
}
- setState(501);
+ setState(503);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LIMIT
|| _la == HogQLParser::OFFSET) {
- setState(500);
+ setState(502);
limitAndOffsetClauseOptional();
}
@@ -3596,41 +3599,41 @@ HogQLParser::LimitAndOffsetClauseOptionalContext* HogQLParser::limitAndOffsetCla
exitRule();
});
try {
- setState(530);
+ setState(532);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 47, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(503);
+ setState(505);
match(HogQLParser::LIMIT);
- setState(504);
- columnExpr(0);
setState(506);
+ columnExpr(0);
+ setState(508);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PERCENT) {
- setState(505);
+ setState(507);
match(HogQLParser::PERCENT);
}
- setState(510);
+ setState(512);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(508);
+ setState(510);
match(HogQLParser::COMMA);
- setState(509);
+ setState(511);
columnExpr(0);
}
- setState(514);
+ setState(516);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(512);
+ setState(514);
match(HogQLParser::WITH);
- setState(513);
+ setState(515);
match(HogQLParser::TIES);
}
break;
@@ -3638,40 +3641,40 @@ HogQLParser::LimitAndOffsetClauseOptionalContext* HogQLParser::limitAndOffsetCla
case 2: {
enterOuterAlt(_localctx, 2);
- setState(516);
+ setState(518);
match(HogQLParser::LIMIT);
- setState(517);
- columnExpr(0);
setState(519);
+ columnExpr(0);
+ setState(521);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PERCENT) {
- setState(518);
+ setState(520);
match(HogQLParser::PERCENT);
}
- setState(523);
+ setState(525);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(521);
+ setState(523);
match(HogQLParser::WITH);
- setState(522);
+ setState(524);
match(HogQLParser::TIES);
}
- setState(525);
+ setState(527);
match(HogQLParser::OFFSET);
- setState(526);
+ setState(528);
columnExpr(0);
break;
}
case 3: {
enterOuterAlt(_localctx, 3);
- setState(528);
+ setState(530);
match(HogQLParser::OFFSET);
- setState(529);
+ setState(531);
columnExpr(0);
break;
}
@@ -3831,22 +3834,22 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(533);
+ setState(535);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(532);
+ setState(534);
antlrcpp::downCast<SelectStmtContext *>(_localctx)->with = withClause();
}
- setState(535);
- match(HogQLParser::SELECT);
setState(537);
+ match(HogQLParser::SELECT);
+ setState(539);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 49, _ctx)) {
case 1: {
- setState(536);
+ setState(538);
match(HogQLParser::DISTINCT);
break;
}
@@ -3854,12 +3857,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(540);
+ setState(542);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 50, _ctx)) {
case 1: {
- setState(539);
+ setState(541);
topClause();
break;
}
@@ -3867,55 +3870,55 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(542);
- antlrcpp::downCast<SelectStmtContext *>(_localctx)->columns = selectColumnExprListBeforeFrom();
setState(544);
+ antlrcpp::downCast<SelectStmtContext *>(_localctx)->columns = selectColumnExprListBeforeFrom();
+ setState(546);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FROM) {
- setState(543);
+ setState(545);
antlrcpp::downCast<SelectStmtContext *>(_localctx)->from = fromClause();
}
- setState(547);
+ setState(549);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -9214364837600034784) != 0)) {
- setState(546);
+ setState(548);
arrayJoinClause();
}
- setState(550);
+ setState(552);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PREWHERE) {
- setState(549);
+ setState(551);
prewhereClause();
}
- setState(553);
+ setState(555);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WHERE) {
- setState(552);
+ setState(554);
antlrcpp::downCast<SelectStmtContext *>(_localctx)->where = whereClause();
}
- setState(559);
+ setState(561);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 56, _ctx)) {
case 1: {
- setState(556);
+ setState(558);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::USING) {
- setState(555);
+ setState(557);
match(HogQLParser::USING);
}
- setState(558);
+ setState(560);
sampleClause();
break;
}
@@ -3923,22 +3926,22 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(562);
+ setState(564);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::GROUP) {
- setState(561);
+ setState(563);
groupByClause();
}
- setState(566);
+ setState(568);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 58, _ctx)) {
case 1: {
- setState(564);
+ setState(566);
match(HogQLParser::WITH);
- setState(565);
+ setState(567);
_la = _input->LA(1);
if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) {
_errHandler->recoverInline(this);
@@ -3953,56 +3956,56 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(570);
+ setState(572);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(568);
+ setState(570);
match(HogQLParser::WITH);
- setState(569);
+ setState(571);
match(HogQLParser::TOTALS);
}
- setState(573);
+ setState(575);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::HAVING) {
- setState(572);
+ setState(574);
havingClause();
}
- setState(576);
+ setState(578);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::QUALIFY) {
- setState(575);
+ setState(577);
qualifyClause();
}
- setState(580);
+ setState(582);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::USING) {
- setState(578);
+ setState(580);
match(HogQLParser::USING);
- setState(579);
+ setState(581);
sampleClause();
}
- setState(583);
+ setState(585);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WINDOW) {
- setState(582);
+ setState(584);
windowClause();
}
- setState(586);
+ setState(588);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 64, _ctx)) {
case 1: {
- setState(585);
+ setState(587);
orderByClause();
break;
}
@@ -4010,12 +4013,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(589);
+ setState(591);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 65, _ctx)) {
case 1: {
- setState(588);
+ setState(590);
limitByClause();
break;
}
@@ -4023,18 +4026,18 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(593);
+ setState(595);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 66, _ctx)) {
case 1: {
- setState(591);
+ setState(593);
limitAndOffsetClause();
break;
}
case 2: {
- setState(592);
+ setState(594);
offsetOnlyClause();
break;
}
@@ -4042,12 +4045,12 @@ HogQLParser::SelectStmtContext* HogQLParser::selectStmt() {
default:
break;
}
- setState(596);
+ setState(598);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::SETTINGS) {
- setState(595);
+ setState(597);
settingsClause();
}
@@ -4105,14 +4108,14 @@ HogQLParser::WithClauseContext* HogQLParser::withClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(598);
- match(HogQLParser::WITH);
setState(600);
+ match(HogQLParser::WITH);
+ setState(602);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 68, _ctx)) {
case 1: {
- setState(599);
+ setState(601);
match(HogQLParser::RECURSIVE);
break;
}
@@ -4120,7 +4123,7 @@ HogQLParser::WithClauseContext* HogQLParser::withClause() {
default:
break;
}
- setState(602);
+ setState(604);
withExprList();
}
@@ -4181,18 +4184,18 @@ HogQLParser::TopClauseContext* HogQLParser::topClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(604);
+ setState(606);
match(HogQLParser::TOP);
- setState(605);
+ setState(607);
match(HogQLParser::DECIMAL_LITERAL);
- setState(608);
+ setState(610);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 69, _ctx)) {
case 1: {
- setState(606);
+ setState(608);
match(HogQLParser::WITH);
- setState(607);
+ setState(609);
match(HogQLParser::TIES);
break;
}
@@ -4251,9 +4254,9 @@ HogQLParser::FromClauseContext* HogQLParser::fromClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(610);
+ setState(612);
match(HogQLParser::FROM);
- setState(611);
+ setState(613);
joinExpr(0);
}
@@ -4319,14 +4322,14 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(614);
+ setState(616);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::INNER
|| _la == HogQLParser::LEFT) {
- setState(613);
+ setState(615);
_la = _input->LA(1);
if (!(_la == HogQLParser::INNER
@@ -4338,11 +4341,11 @@ HogQLParser::ArrayJoinClauseContext* HogQLParser::arrayJoinClause() {
consume();
}
}
- setState(616);
+ setState(618);
match(HogQLParser::ARRAY);
- setState(617);
+ setState(619);
match(HogQLParser::JOIN);
- setState(618);
+ setState(620);
columnExprList();
}
@@ -4440,35 +4443,35 @@ HogQLParser::WindowClauseContext* HogQLParser::windowClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(620);
+ setState(622);
match(HogQLParser::WINDOW);
- setState(621);
+ setState(623);
identifier();
- setState(622);
+ setState(624);
match(HogQLParser::AS);
- setState(623);
+ setState(625);
match(HogQLParser::LPAREN);
- setState(624);
+ setState(626);
windowExpr();
- setState(625);
+ setState(627);
match(HogQLParser::RPAREN);
- setState(635);
+ setState(637);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(626);
+ setState(628);
match(HogQLParser::COMMA);
- setState(627);
+ setState(629);
identifier();
- setState(628);
+ setState(630);
match(HogQLParser::AS);
- setState(629);
+ setState(631);
match(HogQLParser::LPAREN);
- setState(630);
+ setState(632);
windowExpr();
- setState(631);
+ setState(633);
match(HogQLParser::RPAREN);
- setState(637);
+ setState(639);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -4523,9 +4526,9 @@ HogQLParser::PrewhereClauseContext* HogQLParser::prewhereClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(638);
+ setState(640);
match(HogQLParser::PREWHERE);
- setState(639);
+ setState(641);
columnExpr(0);
}
@@ -4578,9 +4581,9 @@ HogQLParser::WhereClauseContext* HogQLParser::whereClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(641);
+ setState(643);
match(HogQLParser::WHERE);
- setState(642);
+ setState(644);
columnExpr(0);
}
@@ -4670,21 +4673,21 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(644);
+ setState(646);
match(HogQLParser::GROUP);
- setState(645);
+ setState(647);
match(HogQLParser::BY);
- setState(659);
+ setState(661);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 72, _ctx)) {
case 1: {
- setState(646);
+ setState(648);
match(HogQLParser::ALL);
break;
}
case 2: {
- setState(647);
+ setState(649);
_la = _input->LA(1);
if (!(_la == HogQLParser::CUBE || _la == HogQLParser::ROLLUP)) {
_errHandler->recoverInline(this);
@@ -4693,31 +4696,31 @@ HogQLParser::GroupByClauseContext* HogQLParser::groupByClause() {
_errHandler->reportMatch(this);
consume();
}
- setState(648);
+ setState(650);
match(HogQLParser::LPAREN);
- setState(649);
+ setState(651);
columnExprList();
- setState(650);
+ setState(652);
match(HogQLParser::RPAREN);
break;
}
case 3: {
- setState(652);
+ setState(654);
match(HogQLParser::GROUPING);
- setState(653);
+ setState(655);
match(HogQLParser::SETS);
- setState(654);
+ setState(656);
match(HogQLParser::LPAREN);
- setState(655);
+ setState(657);
groupingSetList();
- setState(656);
+ setState(658);
match(HogQLParser::RPAREN);
break;
}
case 4: {
- setState(658);
+ setState(660);
columnExprList();
break;
}
@@ -4785,17 +4788,17 @@ HogQLParser::GroupingSetListContext* HogQLParser::groupingSetList() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(661);
+ setState(663);
groupingSet();
- setState(666);
+ setState(668);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(662);
+ setState(664);
match(HogQLParser::COMMA);
- setState(663);
+ setState(665);
groupingSet();
- setState(668);
+ setState(670);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -4855,9 +4858,9 @@ HogQLParser::GroupingSetContext* HogQLParser::groupingSet() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(669);
- match(HogQLParser::LPAREN);
setState(671);
+ match(HogQLParser::LPAREN);
+ setState(673);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -4865,10 +4868,10 @@ HogQLParser::GroupingSetContext* HogQLParser::groupingSet() {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(670);
+ setState(672);
columnExprList();
}
- setState(673);
+ setState(675);
match(HogQLParser::RPAREN);
}
@@ -4921,9 +4924,9 @@ HogQLParser::HavingClauseContext* HogQLParser::havingClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(675);
+ setState(677);
match(HogQLParser::HAVING);
- setState(676);
+ setState(678);
columnExpr(0);
}
@@ -4976,9 +4979,9 @@ HogQLParser::QualifyClauseContext* HogQLParser::qualifyClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(678);
+ setState(680);
match(HogQLParser::QUALIFY);
- setState(679);
+ setState(681);
columnExpr(0);
}
@@ -5040,18 +5043,18 @@ HogQLParser::OrderByClauseContext* HogQLParser::orderByClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(681);
+ setState(683);
match(HogQLParser::ORDER);
- setState(682);
+ setState(684);
match(HogQLParser::BY);
- setState(683);
- orderExprList();
setState(685);
+ orderExprList();
+ setState(687);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::INTERPOLATE) {
- setState(684);
+ setState(686);
interpolateClause();
}
@@ -5126,30 +5129,30 @@ HogQLParser::InterpolateClauseContext* HogQLParser::interpolateClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(687);
+ setState(689);
match(HogQLParser::INTERPOLATE);
- setState(699);
+ setState(701);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LPAREN) {
- setState(688);
+ setState(690);
match(HogQLParser::LPAREN);
- setState(689);
+ setState(691);
interpolateExpr();
- setState(694);
+ setState(696);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(690);
+ setState(692);
match(HogQLParser::COMMA);
- setState(691);
+ setState(693);
interpolateExpr();
- setState(696);
+ setState(698);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(697);
+ setState(699);
match(HogQLParser::RPAREN);
}
@@ -5207,11 +5210,11 @@ HogQLParser::ProjectionOrderByClauseContext* HogQLParser::projectionOrderByClaus
});
try {
enterOuterAlt(_localctx, 1);
- setState(701);
+ setState(703);
match(HogQLParser::ORDER);
- setState(702);
+ setState(704);
match(HogQLParser::BY);
- setState(703);
+ setState(705);
columnExprList();
}
@@ -5272,13 +5275,13 @@ HogQLParser::LimitByClauseContext* HogQLParser::limitByClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(705);
+ setState(707);
match(HogQLParser::LIMIT);
- setState(706);
+ setState(708);
limitExpr();
- setState(707);
+ setState(709);
match(HogQLParser::BY);
- setState(708);
+ setState(710);
columnExprList();
}
@@ -5355,41 +5358,41 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() {
exitRule();
});
try {
- setState(735);
+ setState(737);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 83, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(710);
+ setState(712);
match(HogQLParser::LIMIT);
- setState(711);
- columnExpr(0);
setState(713);
+ columnExpr(0);
+ setState(715);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PERCENT) {
- setState(712);
+ setState(714);
match(HogQLParser::PERCENT);
}
- setState(717);
+ setState(719);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(715);
+ setState(717);
match(HogQLParser::COMMA);
- setState(716);
+ setState(718);
columnExpr(0);
}
- setState(721);
+ setState(723);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(719);
+ setState(721);
match(HogQLParser::WITH);
- setState(720);
+ setState(722);
match(HogQLParser::TIES);
}
break;
@@ -5397,31 +5400,31 @@ HogQLParser::LimitAndOffsetClauseContext* HogQLParser::limitAndOffsetClause() {
case 2: {
enterOuterAlt(_localctx, 2);
- setState(723);
+ setState(725);
match(HogQLParser::LIMIT);
- setState(724);
- columnExpr(0);
setState(726);
+ columnExpr(0);
+ setState(728);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PERCENT) {
- setState(725);
+ setState(727);
match(HogQLParser::PERCENT);
}
- setState(730);
+ setState(732);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(728);
+ setState(730);
match(HogQLParser::WITH);
- setState(729);
+ setState(731);
match(HogQLParser::TIES);
}
- setState(732);
+ setState(734);
match(HogQLParser::OFFSET);
- setState(733);
+ setState(735);
columnExpr(0);
break;
}
@@ -5480,9 +5483,9 @@ HogQLParser::OffsetOnlyClauseContext* HogQLParser::offsetOnlyClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(737);
+ setState(739);
match(HogQLParser::OFFSET);
- setState(738);
+ setState(740);
columnExpr(0);
}
@@ -5535,9 +5538,9 @@ HogQLParser::SettingsClauseContext* HogQLParser::settingsClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(740);
+ setState(742);
match(HogQLParser::SETTINGS);
- setState(741);
+ setState(743);
settingExprList();
}
@@ -5603,19 +5606,19 @@ HogQLParser::ValuesClauseContext* HogQLParser::valuesClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(743);
+ setState(745);
match(HogQLParser::VALUES);
- setState(744);
+ setState(746);
valuesRow();
- setState(749);
+ setState(751);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(745);
+ setState(747);
match(HogQLParser::COMMA);
- setState(746);
+ setState(748);
valuesRow();
- setState(751);
+ setState(753);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -5687,23 +5690,23 @@ HogQLParser::ValuesRowContext* HogQLParser::valuesRow() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(752);
+ setState(754);
match(HogQLParser::LPAREN);
- setState(753);
+ setState(755);
columnExpr(0);
- setState(758);
+ setState(760);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(754);
+ setState(756);
match(HogQLParser::COMMA);
- setState(755);
+ setState(757);
columnExpr(0);
- setState(760);
+ setState(762);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(761);
+ setState(763);
match(HogQLParser::RPAREN);
}
@@ -5978,7 +5981,7 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(775);
+ setState(777);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 88, _ctx)) {
case 1: {
@@ -5986,14 +5989,14 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
_ctx = _localctx;
previousContext = _localctx;
- setState(764);
- tableExpr(0);
setState(766);
+ tableExpr(0);
+ setState(768);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 86, _ctx)) {
case 1: {
- setState(765);
+ setState(767);
match(HogQLParser::FINAL);
break;
}
@@ -6001,12 +6004,12 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
default:
break;
}
- setState(769);
+ setState(771);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 87, _ctx)) {
case 1: {
- setState(768);
+ setState(770);
sampleClause();
break;
}
@@ -6021,11 +6024,11 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
_localctx = _tracker.createInstance<JoinExprParensContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(771);
+ setState(773);
match(HogQLParser::LPAREN);
- setState(772);
+ setState(774);
joinExpr(0);
- setState(773);
+ setState(775);
match(HogQLParser::RPAREN);
break;
}
@@ -6034,7 +6037,7 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
break;
}
_ctx->stop = _input->LT(-1);
- setState(824);
+ setState(826);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 96, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
@@ -6042,19 +6045,19 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
if (!_parseListeners.empty())
triggerExitRuleEvent();
previousContext = _localctx;
- setState(822);
+ setState(824);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 95, _ctx)) {
case 1: {
auto newContext = _tracker.createInstance<JoinExprCrossOpContext>(_tracker.createInstance<JoinExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleJoinExpr);
- setState(777);
+ setState(779);
if (!(precpred(_ctx, 5))) throw FailedPredicateException(this, "precpred(_ctx, 5)");
- setState(778);
+ setState(780);
joinOpCross();
- setState(779);
+ setState(781);
joinExpr(6);
break;
}
@@ -6063,18 +6066,18 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
auto newContext = _tracker.createInstance<JoinExprOpContext>(_tracker.createInstance<JoinExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleJoinExpr);
- setState(781);
+ setState(783);
if (!(precpred(_ctx, 7))) throw FailedPredicateException(this, "precpred(_ctx, 7)");
- setState(783);
+ setState(785);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NATURAL) {
- setState(782);
+ setState(784);
match(HogQLParser::NATURAL);
}
- setState(786);
+ setState(788);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -6082,19 +6085,19 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
((1ULL << _la) & -9214363738088406758) != 0) || _la == HogQLParser::RIGHT
|| _la == HogQLParser::SEMI) {
- setState(785);
+ setState(787);
joinOp();
}
- setState(788);
+ setState(790);
match(HogQLParser::JOIN);
- setState(789);
- joinExpr(0);
setState(791);
+ joinExpr(0);
+ setState(793);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 91, _ctx)) {
case 1: {
- setState(790);
+ setState(792);
joinConstraintClause();
break;
}
@@ -6109,21 +6112,21 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
auto newContext = _tracker.createInstance<JoinExprPositionalContext>(_tracker.createInstance<JoinExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleJoinExpr);
- setState(793);
+ setState(795);
if (!(precpred(_ctx, 6))) throw FailedPredicateException(this, "precpred(_ctx, 6)");
- setState(794);
+ setState(796);
match(HogQLParser::POSITIONAL);
- setState(795);
+ setState(797);
match(HogQLParser::JOIN);
- setState(796);
- joinExpr(0);
setState(798);
+ joinExpr(0);
+ setState(800);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 92, _ctx)) {
case 1: {
- setState(797);
+ setState(799);
joinConstraintClause();
break;
}
@@ -6138,30 +6141,30 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
auto newContext = _tracker.createInstance<JoinExprPivotContext>(_tracker.createInstance<JoinExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleJoinExpr);
- setState(800);
+ setState(802);
if (!(precpred(_ctx, 4))) throw FailedPredicateException(this, "precpred(_ctx, 4)");
- setState(801);
+ setState(803);
match(HogQLParser::PIVOT);
- setState(802);
+ setState(804);
match(HogQLParser::LPAREN);
- setState(803);
+ setState(805);
columnExprList();
- setState(804);
+ setState(806);
pivotColumnList();
- setState(808);
+ setState(810);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::GROUP) {
- setState(805);
+ setState(807);
match(HogQLParser::GROUP);
- setState(806);
+ setState(808);
match(HogQLParser::BY);
- setState(807);
+ setState(809);
columnExprList();
}
- setState(810);
+ setState(812);
match(HogQLParser::RPAREN);
break;
}
@@ -6170,26 +6173,26 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
auto newContext = _tracker.createInstance<JoinExprUnpivotContext>(_tracker.createInstance<JoinExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleJoinExpr);
- setState(812);
+ setState(814);
if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)");
- setState(813);
+ setState(815);
match(HogQLParser::UNPIVOT);
- setState(816);
+ setState(818);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::INCLUDE) {
- setState(814);
+ setState(816);
match(HogQLParser::INCLUDE);
- setState(815);
+ setState(817);
match(HogQLParser::NULLS);
}
- setState(818);
+ setState(820);
match(HogQLParser::LPAREN);
- setState(819);
+ setState(821);
unpivotColumnList();
- setState(820);
+ setState(822);
match(HogQLParser::RPAREN);
break;
}
@@ -6198,7 +6201,7 @@ HogQLParser::JoinExprContext* HogQLParser::joinExpr(int precedence) {
break;
}
}
- setState(826);
+ setState(828);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 96, _ctx);
}
@@ -6348,23 +6351,23 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
exitRule();
});
try {
- setState(880);
+ setState(882);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 111, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::JoinOpInnerContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(840);
+ setState(842);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 99, _ctx)) {
case 1: {
- setState(828);
+ setState(830);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0)) {
- setState(827);
+ setState(829);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0))) {
@@ -6375,21 +6378,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
consume();
}
}
- setState(830);
+ setState(832);
match(HogQLParser::INNER);
break;
}
case 2: {
- setState(831);
- match(HogQLParser::INNER);
setState(833);
+ match(HogQLParser::INNER);
+ setState(835);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0)) {
- setState(832);
+ setState(834);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0))) {
@@ -6404,7 +6407,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
}
case 3: {
- setState(835);
+ setState(837);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0))) {
@@ -6418,21 +6421,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
}
case 4: {
- setState(836);
+ setState(838);
match(HogQLParser::ANTI);
break;
}
case 5: {
- setState(837);
+ setState(839);
match(HogQLParser::SEMI);
break;
}
case 6: {
- setState(838);
+ setState(840);
match(HogQLParser::ASOF);
- setState(839);
+ setState(841);
_la = _input->LA(1);
if (!(_la == HogQLParser::ANTI || _la == HogQLParser::SEMI)) {
_errHandler->recoverInline(this);
@@ -6453,17 +6456,17 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::JoinOpLeftRightContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(862);
+ setState(864);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 105, _ctx)) {
case 1: {
- setState(843);
+ setState(845);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 282) != 0) || _la == HogQLParser::SEMI) {
- setState(842);
+ setState(844);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 282) != 0) || _la == HogQLParser::SEMI)) {
@@ -6474,7 +6477,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
consume();
}
}
- setState(845);
+ setState(847);
_la = _input->LA(1);
if (!(_la == HogQLParser::LEFT
@@ -6485,19 +6488,19 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
_errHandler->reportMatch(this);
consume();
}
- setState(847);
+ setState(849);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OUTER) {
- setState(846);
+ setState(848);
match(HogQLParser::OUTER);
}
break;
}
case 2: {
- setState(849);
+ setState(851);
_la = _input->LA(1);
if (!(_la == HogQLParser::LEFT
@@ -6508,21 +6511,21 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
_errHandler->reportMatch(this);
consume();
}
- setState(851);
+ setState(853);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OUTER) {
- setState(850);
+ setState(852);
match(HogQLParser::OUTER);
}
- setState(854);
+ setState(856);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 282) != 0) || _la == HogQLParser::SEMI) {
- setState(853);
+ setState(855);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 282) != 0) || _la == HogQLParser::SEMI)) {
@@ -6537,9 +6540,9 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
}
case 3: {
- setState(856);
+ setState(858);
match(HogQLParser::ASOF);
- setState(857);
+ setState(859);
_la = _input->LA(1);
if (!(_la == HogQLParser::ANTI || _la == HogQLParser::SEMI)) {
_errHandler->recoverInline(this);
@@ -6548,7 +6551,7 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
_errHandler->reportMatch(this);
consume();
}
- setState(858);
+ setState(860);
_la = _input->LA(1);
if (!(_la == HogQLParser::LEFT
@@ -6559,12 +6562,12 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
_errHandler->reportMatch(this);
consume();
}
- setState(860);
+ setState(862);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OUTER) {
- setState(859);
+ setState(861);
match(HogQLParser::OUTER);
}
break;
@@ -6579,17 +6582,17 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
case 3: {
_localctx = _tracker.createInstance<HogQLParser::JoinOpFullContext>(_localctx);
enterOuterAlt(_localctx, 3);
- setState(878);
+ setState(880);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 110, _ctx)) {
case 1: {
- setState(865);
+ setState(867);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0)) {
- setState(864);
+ setState(866);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0))) {
@@ -6600,37 +6603,37 @@ HogQLParser::JoinOpContext* HogQLParser::joinOp() {
consume();
}
}
- setState(867);
- match(HogQLParser::FULL);
setState(869);
+ match(HogQLParser::FULL);
+ setState(871);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OUTER) {
- setState(868);
+ setState(870);
match(HogQLParser::OUTER);
}
break;
}
case 2: {
- setState(871);
- match(HogQLParser::FULL);
setState(873);
+ match(HogQLParser::FULL);
+ setState(875);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OUTER) {
- setState(872);
+ setState(874);
match(HogQLParser::OUTER);
}
- setState(876);
+ setState(878);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0)) {
- setState(875);
+ setState(877);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 274) != 0))) {
@@ -6707,21 +6710,21 @@ HogQLParser::JoinOpCrossContext* HogQLParser::joinOpCross() {
exitRule();
});
try {
- setState(885);
+ setState(887);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::CROSS: {
enterOuterAlt(_localctx, 1);
- setState(882);
+ setState(884);
match(HogQLParser::CROSS);
- setState(883);
+ setState(885);
match(HogQLParser::JOIN);
break;
}
case HogQLParser::COMMA: {
enterOuterAlt(_localctx, 2);
- setState(884);
+ setState(886);
match(HogQLParser::COMMA);
break;
}
@@ -6791,36 +6794,36 @@ HogQLParser::JoinConstraintClauseContext* HogQLParser::joinConstraintClause() {
exitRule();
});
try {
- setState(896);
+ setState(898);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 113, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(887);
+ setState(889);
match(HogQLParser::ON);
- setState(888);
+ setState(890);
columnExprList();
break;
}
case 2: {
enterOuterAlt(_localctx, 2);
- setState(889);
+ setState(891);
match(HogQLParser::USING);
- setState(890);
+ setState(892);
match(HogQLParser::LPAREN);
- setState(891);
+ setState(893);
columnExprList();
- setState(892);
+ setState(894);
match(HogQLParser::RPAREN);
break;
}
case 3: {
enterOuterAlt(_localctx, 3);
- setState(894);
+ setState(896);
match(HogQLParser::USING);
- setState(895);
+ setState(897);
columnExprList();
break;
}
@@ -6903,16 +6906,16 @@ HogQLParser::SampleClauseContext* HogQLParser::sampleClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(898);
+ setState(900);
match(HogQLParser::SAMPLE);
- setState(899);
- ratioExpr();
setState(901);
+ ratioExpr();
+ setState(903);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 114, _ctx)) {
case 1: {
- setState(900);
+ setState(902);
match(HogQLParser::PERCENT);
break;
}
@@ -6920,14 +6923,14 @@ HogQLParser::SampleClauseContext* HogQLParser::sampleClause() {
default:
break;
}
- setState(905);
+ setState(907);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 115, _ctx)) {
case 1: {
- setState(903);
+ setState(905);
match(HogQLParser::OFFSET);
- setState(904);
+ setState(906);
ratioExpr();
break;
}
@@ -6935,16 +6938,16 @@ HogQLParser::SampleClauseContext* HogQLParser::sampleClause() {
default:
break;
}
- setState(911);
+ setState(913);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 116, _ctx)) {
case 1: {
- setState(907);
+ setState(909);
match(HogQLParser::LPAREN);
- setState(908);
+ setState(910);
identifier();
- setState(909);
+ setState(911);
match(HogQLParser::RPAREN);
break;
}
@@ -7012,14 +7015,14 @@ HogQLParser::LimitExprContext* HogQLParser::limitExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(913);
+ setState(915);
columnExpr(0);
- setState(916);
+ setState(918);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::OFFSET || _la == HogQLParser::COMMA) {
- setState(914);
+ setState(916);
_la = _input->LA(1);
if (!(_la == HogQLParser::OFFSET || _la == HogQLParser::COMMA)) {
_errHandler->recoverInline(this);
@@ -7028,7 +7031,7 @@ HogQLParser::LimitExprContext* HogQLParser::limitExpr() {
_errHandler->reportMatch(this);
consume();
}
- setState(915);
+ setState(917);
columnExpr(0);
}
@@ -7091,17 +7094,17 @@ HogQLParser::OrderExprListContext* HogQLParser::orderExprList() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(918);
+ setState(920);
orderExpr();
- setState(923);
+ setState(925);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(919);
+ setState(921);
match(HogQLParser::COMMA);
- setState(920);
+ setState(922);
orderExpr();
- setState(925);
+ setState(927);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -7189,15 +7192,15 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(926);
- columnExpr(0);
setState(928);
+ columnExpr(0);
+ setState(930);
_errHandler->sync(this);
_la = _input->LA(1);
if ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 25165952) != 0)) {
- setState(927);
+ setState(929);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 25165952) != 0))) {
@@ -7208,14 +7211,14 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() {
consume();
}
}
- setState(932);
+ setState(934);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NULLS) {
- setState(930);
+ setState(932);
match(HogQLParser::NULLS);
- setState(931);
+ setState(933);
_la = _input->LA(1);
if (!(_la == HogQLParser::FIRST
@@ -7227,22 +7230,22 @@ HogQLParser::OrderExprContext* HogQLParser::orderExpr() {
consume();
}
}
- setState(936);
+ setState(938);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COLLATE) {
- setState(934);
+ setState(936);
match(HogQLParser::COLLATE);
- setState(935);
+ setState(937);
match(HogQLParser::STRING_LITERAL);
}
- setState(939);
+ setState(941);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::WITH) {
- setState(938);
+ setState(940);
withFillClause();
}
@@ -7317,38 +7320,38 @@ HogQLParser::WithFillClauseContext* HogQLParser::withFillClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(941);
+ setState(943);
match(HogQLParser::WITH);
- setState(942);
+ setState(944);
match(HogQLParser::FILL);
- setState(945);
+ setState(947);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FROM) {
- setState(943);
+ setState(945);
match(HogQLParser::FROM);
- setState(944);
+ setState(946);
columnExpr(0);
}
- setState(949);
+ setState(951);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::TO) {
- setState(947);
+ setState(949);
match(HogQLParser::TO);
- setState(948);
+ setState(950);
columnExpr(0);
}
- setState(953);
+ setState(955);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::STEP) {
- setState(951);
+ setState(953);
match(HogQLParser::STEP);
- setState(952);
+ setState(954);
columnExpr(0);
}
@@ -7407,16 +7410,16 @@ HogQLParser::InterpolateExprContext* HogQLParser::interpolateExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(955);
+ setState(957);
columnExpr(0);
- setState(958);
+ setState(960);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::AS) {
- setState(956);
+ setState(958);
match(HogQLParser::AS);
- setState(957);
+ setState(959);
columnExpr(0);
}
@@ -7477,12 +7480,12 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() {
exitRule();
});
try {
- setState(966);
+ setState(968);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::LBRACE: {
enterOuterAlt(_localctx, 1);
- setState(960);
+ setState(962);
placeholder();
break;
}
@@ -7499,16 +7502,16 @@ HogQLParser::RatioExprContext* HogQLParser::ratioExpr() {
case HogQLParser::DOT:
case HogQLParser::PLUS: {
enterOuterAlt(_localctx, 2);
- setState(961);
+ setState(963);
numberLiteral();
- setState(964);
+ setState(966);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 127, _ctx)) {
case 1: {
- setState(962);
+ setState(964);
match(HogQLParser::SLASH);
- setState(963);
+ setState(965);
numberLiteral();
break;
}
@@ -7582,17 +7585,17 @@ HogQLParser::SettingExprListContext* HogQLParser::settingExprList() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(968);
+ setState(970);
settingExpr();
- setState(973);
+ setState(975);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(969);
+ setState(971);
match(HogQLParser::COMMA);
- setState(970);
+ setState(972);
settingExpr();
- setState(975);
+ setState(977);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -7651,11 +7654,11 @@ HogQLParser::SettingExprContext* HogQLParser::settingExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(976);
+ setState(978);
identifier();
- setState(977);
+ setState(979);
match(HogQLParser::EQ_SINGLE);
- setState(978);
+ setState(980);
literal();
}
@@ -7713,30 +7716,30 @@ HogQLParser::WindowExprContext* HogQLParser::windowExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(981);
+ setState(983);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::PARTITION) {
- setState(980);
+ setState(982);
winPartitionByClause();
}
- setState(984);
+ setState(986);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::ORDER) {
- setState(983);
+ setState(985);
winOrderByClause();
}
- setState(987);
+ setState(989);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::RANGE
|| _la == HogQLParser::ROWS) {
- setState(986);
+ setState(988);
winFrameClause();
}
@@ -7794,11 +7797,11 @@ HogQLParser::WinPartitionByClauseContext* HogQLParser::winPartitionByClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(989);
+ setState(991);
match(HogQLParser::PARTITION);
- setState(990);
+ setState(992);
match(HogQLParser::BY);
- setState(991);
+ setState(993);
columnExprList();
}
@@ -7855,11 +7858,11 @@ HogQLParser::WinOrderByClauseContext* HogQLParser::winOrderByClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(993);
+ setState(995);
match(HogQLParser::ORDER);
- setState(994);
+ setState(996);
match(HogQLParser::BY);
- setState(995);
+ setState(997);
orderExprList();
}
@@ -7924,15 +7927,15 @@ HogQLParser::WithinGroupClauseContext* HogQLParser::withinGroupClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(997);
+ setState(999);
match(HogQLParser::WITHIN);
- setState(998);
+ setState(1000);
match(HogQLParser::GROUP);
- setState(999);
+ setState(1001);
match(HogQLParser::LPAREN);
- setState(1000);
+ setState(1002);
orderByClause();
- setState(1001);
+ setState(1003);
match(HogQLParser::RPAREN);
}
@@ -7990,7 +7993,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1003);
+ setState(1005);
_la = _input->LA(1);
if (!(_la == HogQLParser::RANGE
@@ -8001,7 +8004,7 @@ HogQLParser::WinFrameClauseContext* HogQLParser::winFrameClause() {
_errHandler->reportMatch(this);
consume();
}
- setState(1004);
+ setState(1006);
winFrameExtend();
}
@@ -8083,13 +8086,13 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() {
exitRule();
});
try {
- setState(1012);
+ setState(1014);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 133, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::FrameStartContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1006);
+ setState(1008);
winFrameBound();
break;
}
@@ -8097,13 +8100,13 @@ HogQLParser::WinFrameExtendContext* HogQLParser::winFrameExtend() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::FrameBetweenContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1007);
+ setState(1009);
match(HogQLParser::BETWEEN);
- setState(1008);
+ setState(1010);
winFrameBound();
- setState(1009);
+ setState(1011);
match(HogQLParser::AND);
- setState(1010);
+ setState(1012);
winFrameBound();
break;
}
@@ -8178,45 +8181,45 @@ HogQLParser::WinFrameBoundContext* HogQLParser::winFrameBound() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1026);
+ setState(1028);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 134, _ctx)) {
case 1: {
- setState(1014);
+ setState(1016);
match(HogQLParser::CURRENT);
- setState(1015);
+ setState(1017);
match(HogQLParser::ROW);
break;
}
case 2: {
- setState(1016);
+ setState(1018);
match(HogQLParser::UNBOUNDED);
- setState(1017);
+ setState(1019);
match(HogQLParser::PRECEDING);
break;
}
case 3: {
- setState(1018);
+ setState(1020);
match(HogQLParser::UNBOUNDED);
- setState(1019);
+ setState(1021);
match(HogQLParser::FOLLOWING);
break;
}
case 4: {
- setState(1020);
+ setState(1022);
columnExpr(0);
- setState(1021);
+ setState(1023);
match(HogQLParser::PRECEDING);
break;
}
case 5: {
- setState(1023);
+ setState(1025);
columnExpr(0);
- setState(1024);
+ setState(1026);
match(HogQLParser::FOLLOWING);
break;
}
@@ -8275,9 +8278,9 @@ HogQLParser::ExprContext* HogQLParser::expr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1028);
+ setState(1030);
columnExpr(0);
- setState(1029);
+ setState(1031);
match(HogQLParser::EOF);
}
@@ -8540,7 +8543,7 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1094);
+ setState(1096);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 143, _ctx)) {
case 1: {
@@ -8548,39 +8551,39 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_ctx = _localctx;
previousContext = _localctx;
- setState(1032);
- identifier();
- setState(1033);
- match(HogQLParser::LPAREN);
setState(1034);
identifier();
setState(1035);
+ match(HogQLParser::LPAREN);
+ setState(1036);
+ identifier();
+ setState(1037);
columnTypeExpr(0);
- setState(1042);
+ setState(1044);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 135, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1036);
+ setState(1038);
match(HogQLParser::COMMA);
- setState(1037);
+ setState(1039);
identifier();
- setState(1038);
+ setState(1040);
columnTypeExpr(0);
}
- setState(1044);
+ setState(1046);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 135, _ctx);
}
- setState(1046);
+ setState(1048);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1045);
+ setState(1047);
match(HogQLParser::COMMA);
}
- setState(1048);
+ setState(1050);
match(HogQLParser::RPAREN);
break;
}
@@ -8589,35 +8592,35 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_localctx = _tracker.createInstance<ColumnTypeExprEnumContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1050);
+ setState(1052);
identifier();
- setState(1051);
+ setState(1053);
match(HogQLParser::LPAREN);
- setState(1052);
+ setState(1054);
enumValue();
- setState(1057);
+ setState(1059);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 137, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1053);
+ setState(1055);
match(HogQLParser::COMMA);
- setState(1054);
+ setState(1056);
enumValue();
}
- setState(1059);
+ setState(1061);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 137, _ctx);
}
- setState(1061);
+ setState(1063);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1060);
+ setState(1062);
match(HogQLParser::COMMA);
}
- setState(1063);
+ setState(1065);
match(HogQLParser::RPAREN);
break;
}
@@ -8626,35 +8629,35 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_localctx = _tracker.createInstance<ColumnTypeExprComplexContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1065);
+ setState(1067);
identifier();
- setState(1066);
+ setState(1068);
match(HogQLParser::LPAREN);
- setState(1067);
+ setState(1069);
columnTypeExpr(0);
- setState(1072);
+ setState(1074);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 139, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1068);
+ setState(1070);
match(HogQLParser::COMMA);
- setState(1069);
+ setState(1071);
columnTypeExpr(0);
}
- setState(1074);
+ setState(1076);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 139, _ctx);
}
- setState(1076);
+ setState(1078);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1075);
+ setState(1077);
match(HogQLParser::COMMA);
}
- setState(1078);
+ setState(1080);
match(HogQLParser::RPAREN);
break;
}
@@ -8663,11 +8666,11 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_localctx = _tracker.createInstance<ColumnTypeExprParamContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1080);
+ setState(1082);
identifier();
- setState(1081);
- match(HogQLParser::LPAREN);
setState(1083);
+ match(HogQLParser::LPAREN);
+ setState(1085);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -8675,10 +8678,10 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1082);
+ setState(1084);
columnExprList();
}
- setState(1085);
+ setState(1087);
match(HogQLParser::RPAREN);
break;
}
@@ -8687,15 +8690,15 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_localctx = _tracker.createInstance<ColumnTypeExprCompoundContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1087);
+ setState(1089);
identifier();
- setState(1089);
+ setState(1091);
_errHandler->sync(this);
alt = 1;
do {
switch (alt) {
case 1: {
- setState(1088);
+ setState(1090);
identifier();
break;
}
@@ -8703,7 +8706,7 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
default:
throw NoViableAltException(this);
}
- setState(1091);
+ setState(1093);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 142, _ctx);
} while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER);
@@ -8714,7 +8717,7 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
_localctx = _tracker.createInstance<ColumnTypeExprSimpleContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1093);
+ setState(1095);
identifier();
break;
}
@@ -8723,7 +8726,7 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
break;
}
_ctx->stop = _input->LT(-1);
- setState(1104);
+ setState(1106);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 145, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
@@ -8734,23 +8737,23 @@ HogQLParser::ColumnTypeExprContext* HogQLParser::columnTypeExpr(int precedence)
auto newContext = _tracker.createInstance<ColumnTypeExprArrayContext>(_tracker.createInstance<ColumnTypeExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleColumnTypeExpr);
- setState(1096);
+ setState(1098);
if (!(precpred(_ctx, 7))) throw FailedPredicateException(this, "precpred(_ctx, 7)");
- setState(1097);
- match(HogQLParser::LBRACKET);
setState(1099);
+ match(HogQLParser::LBRACKET);
+ setState(1101);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::DECIMAL_LITERAL) {
- setState(1098);
+ setState(1100);
match(HogQLParser::DECIMAL_LITERAL);
}
- setState(1101);
+ setState(1103);
match(HogQLParser::RBRACKET);
}
- setState(1106);
+ setState(1108);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 145, _ctx);
}
@@ -8837,27 +8840,27 @@ HogQLParser::ColumnTypeCastExprContext* HogQLParser::columnTypeCastExpr() {
exitRule();
});
try {
- setState(1116);
+ setState(1118);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 147, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::ColumnTypeCastExprWithTimeZoneContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1107);
+ setState(1109);
columnTypeCastIdentifier();
- setState(1108);
- match(HogQLParser::WITH);
setState(1110);
+ match(HogQLParser::WITH);
+ setState(1112);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LOCAL) {
- setState(1109);
+ setState(1111);
match(HogQLParser::LOCAL);
}
- setState(1112);
+ setState(1114);
match(HogQLParser::TIME);
- setState(1113);
+ setState(1115);
match(HogQLParser::ZONE);
break;
}
@@ -8865,7 +8868,7 @@ HogQLParser::ColumnTypeCastExprContext* HogQLParser::columnTypeCastExpr() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::ColumnTypeCastExprSimpleContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1115);
+ setState(1117);
columnTypeCastIdentifier();
break;
}
@@ -8931,19 +8934,19 @@ HogQLParser::ColumnTypeCastIdentifierContext* HogQLParser::columnTypeCastIdentif
exitRule();
});
try {
- setState(1122);
+ setState(1124);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::IDENTIFIER: {
enterOuterAlt(_localctx, 1);
- setState(1118);
+ setState(1120);
match(HogQLParser::IDENTIFIER);
break;
}
case HogQLParser::QUOTED_IDENTIFIER: {
enterOuterAlt(_localctx, 2);
- setState(1119);
+ setState(1121);
match(HogQLParser::QUOTED_IDENTIFIER);
break;
}
@@ -8957,7 +8960,7 @@ HogQLParser::ColumnTypeCastIdentifierContext* HogQLParser::columnTypeCastIdentif
case HogQLParser::WEEK:
case HogQLParser::YEAR: {
enterOuterAlt(_localctx, 3);
- setState(1120);
+ setState(1122);
interval();
break;
}
@@ -8967,7 +8970,7 @@ HogQLParser::ColumnTypeCastIdentifierContext* HogQLParser::columnTypeCastIdentif
case HogQLParser::TIMESTAMP:
case HogQLParser::TIME: {
enterOuterAlt(_localctx, 4);
- setState(1121);
+ setState(1123);
keywordForTypeCast();
break;
}
@@ -9035,7 +9038,7 @@ HogQLParser::KeywordForTypeCastContext* HogQLParser::keywordForTypeCast() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1124);
+ setState(1126);
_la = _input->LA(1);
if (!(_la == HogQLParser::DATE
@@ -9108,28 +9111,28 @@ HogQLParser::ColumnExprListContext* HogQLParser::columnExprList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1126);
+ setState(1128);
columnExpr(0);
- setState(1131);
+ setState(1133);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 149, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1127);
+ setState(1129);
match(HogQLParser::COMMA);
- setState(1128);
+ setState(1130);
columnExpr(0);
}
- setState(1133);
+ setState(1135);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 149, _ctx);
}
- setState(1135);
+ setState(1137);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 150, _ctx)) {
case 1: {
- setState(1134);
+ setState(1136);
match(HogQLParser::COMMA);
break;
}
@@ -9218,29 +9221,29 @@ HogQLParser::SelectColumnExprListBeforeFromContext* HogQLParser::selectColumnExp
});
try {
size_t alt;
- setState(1148);
+ setState(1150);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 152, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::SelectColumnExprListBeforeFromTrailingCommaContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1137);
+ setState(1139);
selectColumnExpr();
- setState(1142);
+ setState(1144);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 151, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1138);
+ setState(1140);
match(HogQLParser::COMMA);
- setState(1139);
+ setState(1141);
selectColumnExpr();
}
- setState(1144);
+ setState(1146);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 151, _ctx);
}
- setState(1145);
+ setState(1147);
match(HogQLParser::COMMA);
break;
}
@@ -9248,7 +9251,7 @@ HogQLParser::SelectColumnExprListBeforeFromContext* HogQLParser::selectColumnExp
case 2: {
_localctx = _tracker.createInstance<HogQLParser::SelectColumnExprListBeforeFromPlainContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1147);
+ setState(1149);
selectColumnExprList();
break;
}
@@ -9317,28 +9320,28 @@ HogQLParser::SelectColumnExprListContext* HogQLParser::selectColumnExprList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1150);
+ setState(1152);
selectColumnExpr();
- setState(1155);
+ setState(1157);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 153, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1151);
+ setState(1153);
match(HogQLParser::COMMA);
- setState(1152);
+ setState(1154);
selectColumnExpr();
}
- setState(1157);
+ setState(1159);
_errHandler->sync(this);
alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 153, _ctx);
}
- setState(1159);
+ setState(1161);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1158);
+ setState(1160);
match(HogQLParser::COMMA);
}
@@ -9455,17 +9458,17 @@ HogQLParser::SelectColumnExprContext* HogQLParser::selectColumnExpr() {
exitRule();
});
try {
- setState(1171);
+ setState(1173);
_errHandler->sync(this);
switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 155, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::ColumnExprAliasBeforeContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1161);
+ setState(1163);
identifier();
- setState(1162);
+ setState(1164);
match(HogQLParser::COLON);
- setState(1163);
+ setState(1165);
columnExpr(0);
break;
}
@@ -9473,9 +9476,9 @@ HogQLParser::SelectColumnExprContext* HogQLParser::selectColumnExpr() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::ColumnExprInvalidFromImplicitAliasContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1165);
+ setState(1167);
match(HogQLParser::FROM);
- setState(1166);
+ setState(1168);
implicitAlias();
break;
}
@@ -9483,7 +9486,7 @@ HogQLParser::SelectColumnExprContext* HogQLParser::selectColumnExpr() {
case 3: {
_localctx = _tracker.createInstance<HogQLParser::ColumnExprSelectValueContext>(_localctx);
enterOuterAlt(_localctx, 3);
- setState(1167);
+ setState(1169);
columnExpr(0);
break;
}
@@ -9491,9 +9494,9 @@ HogQLParser::SelectColumnExprContext* HogQLParser::selectColumnExpr() {
case 4: {
_localctx = _tracker.createInstance<HogQLParser::ColumnExprAliasImplicitContext>(_localctx);
enterOuterAlt(_localctx, 4);
- setState(1168);
+ setState(1170);
columnExpr(0);
- setState(1169);
+ setState(1171);
implicitAlias();
break;
}
@@ -9527,33 +9530,6 @@ void HogQLParser::ColumnExprContext::copyFrom(ColumnExprContext *ctx) {
ParserRuleContext::copyFrom(ctx);
}
-//----------------- ColumnExprColumnsAllContext ------------------------------------------------------------------
-
-tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::COLUMNS() {
- return getToken(HogQLParser::COLUMNS, 0);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::LPAREN() {
- return getToken(HogQLParser::LPAREN, 0);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::ASTERISK() {
- return getToken(HogQLParser::ASTERISK, 0);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::RPAREN() {
- return getToken(HogQLParser::RPAREN, 0);
-}
-
-HogQLParser::ColumnExprColumnsAllContext::ColumnExprColumnsAllContext(ColumnExprContext *ctx) { copyFrom(ctx); }
-
-
-std::any HogQLParser::ColumnExprColumnsAllContext::accept(tree::ParseTreeVisitor *visitor) {
- if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprColumnsAll(this);
- else
- return visitor->visitChildren(this);
-}
//----------------- ColumnExprTernaryOpContext ------------------------------------------------------------------
std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprTernaryOpContext::columnExpr() {
@@ -9608,64 +9584,41 @@ std::any HogQLParser::ColumnExprAliasContext::accept(tree::ParseTreeVisitor *vis
else
return visitor->visitChildren(this);
}
-//----------------- ColumnExprNegateContext ------------------------------------------------------------------
+//----------------- ColumnExprAndContext ------------------------------------------------------------------
-tree::TerminalNode* HogQLParser::ColumnExprNegateContext::DASH() {
- return getToken(HogQLParser::DASH, 0);
+std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprAndContext::columnExpr() {
+ return getRuleContexts<HogQLParser::ColumnExprContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNegateContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprContext* HogQLParser::ColumnExprAndContext::columnExpr(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprContext>(i);
}
-HogQLParser::ColumnExprNegateContext::ColumnExprNegateContext(ColumnExprContext *ctx) { copyFrom(ctx); }
-
-
-std::any HogQLParser::ColumnExprNegateContext::accept(tree::ParseTreeVisitor *visitor) {
- if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprNegate(this);
- else
- return visitor->visitChildren(this);
-}
-//----------------- ColumnExprLiteralContext ------------------------------------------------------------------
-
-HogQLParser::LiteralContext* HogQLParser::ColumnExprLiteralContext::literal() {
- return getRuleContext<HogQLParser::LiteralContext>(0);
+tree::TerminalNode* HogQLParser::ColumnExprAndContext::AND() {
+ return getToken(HogQLParser::AND, 0);
}
-HogQLParser::ColumnExprLiteralContext::ColumnExprLiteralContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprAndContext::ColumnExprAndContext(ColumnExprContext *ctx) { copyFrom(ctx); }
-std::any HogQLParser::ColumnExprLiteralContext::accept(tree::ParseTreeVisitor *visitor) {
+std::any HogQLParser::ColumnExprAndContext::accept(tree::ParseTreeVisitor *visitor) {
if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprLiteral(this);
+ return parserVisitor->visitColumnExprAnd(this);
else
return visitor->visitChildren(this);
}
-//----------------- ColumnExprArrayContext ------------------------------------------------------------------
-
-tree::TerminalNode* HogQLParser::ColumnExprArrayContext::LBRACKET() {
- return getToken(HogQLParser::LBRACKET, 0);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprArrayContext::RBRACKET() {
- return getToken(HogQLParser::RBRACKET, 0);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprArrayContext::ARRAY() {
- return getToken(HogQLParser::ARRAY, 0);
-}
+//----------------- ColumnExprValuePassthroughContext ------------------------------------------------------------------
-HogQLParser::ColumnExprListContext* HogQLParser::ColumnExprArrayContext::columnExprList() {
- return getRuleContext<HogQLParser::ColumnExprListContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprValuePassthroughContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
-HogQLParser::ColumnExprArrayContext::ColumnExprArrayContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprValuePassthroughContext::ColumnExprValuePassthroughContext(ColumnExprContext *ctx) { copyFrom(ctx); }
-std::any HogQLParser::ColumnExprArrayContext::accept(tree::ParseTreeVisitor *visitor) {
+std::any HogQLParser::ColumnExprValuePassthroughContext::accept(tree::ParseTreeVisitor *visitor) {
if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprArray(this);
+ return parserVisitor->visitColumnExprValuePassthrough(this);
else
return visitor->visitChildren(this);
}
@@ -9692,60 +9645,418 @@ std::any HogQLParser::ColumnExprOrContext::accept(tree::ParseTreeVisitor *visito
else
return visitor->visitChildren(this);
}
-//----------------- ColumnExprPrecedence1Context ------------------------------------------------------------------
-
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprPrecedence1Context::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprPrecedence1Context::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprContext* HogQLParser::columnExpr() {
+ return columnExpr(0);
}
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::ASTERISK() {
- return getToken(HogQLParser::ASTERISK, 0);
-}
+HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
+ ParserRuleContext *parentContext = _ctx;
+ size_t parentState = getState();
+ HogQLParser::ColumnExprContext *_localctx = _tracker.createInstance<ColumnExprContext>(_ctx, parentState);
+ HogQLParser::ColumnExprContext *previousContext = _localctx;
+ (void)previousContext; // Silence compiler, in case the context is not used by generated code.
+ size_t startState = 154;
+ enterRecursionRule(_localctx, 154, HogQLParser::RuleColumnExpr, precedence);
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::SLASH() {
- return getToken(HogQLParser::SLASH, 0);
-}
+
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::PERCENT() {
- return getToken(HogQLParser::PERCENT, 0);
-}
+#if __cplusplus > 201703L
+ auto onExit = finally([=, this] {
+#else
+ auto onExit = finally([=] {
+#endif
+ unrollRecursionContexts(parentContext);
+ });
+ try {
+ size_t alt;
+ enterOuterAlt(_localctx, 1);
+ _localctx = _tracker.createInstance<ColumnExprValuePassthroughContext>(_localctx);
+ _ctx = _localctx;
+ previousContext = _localctx;
-HogQLParser::ColumnExprPrecedence1Context::ColumnExprPrecedence1Context(ColumnExprContext *ctx) { copyFrom(ctx); }
+ setState(1176);
+ columnExprValue(0);
+ _ctx->stop = _input->LT(-1);
+ setState(1198);
+ _errHandler->sync(this);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 158, _ctx);
+ while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
+ if (alt == 1) {
+ if (!_parseListeners.empty())
+ triggerExitRuleEvent();
+ previousContext = _localctx;
+ setState(1196);
+ _errHandler->sync(this);
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 157, _ctx)) {
+ case 1: {
+ auto newContext = _tracker.createInstance<ColumnExprAndContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExpr);
+ setState(1178);
+ if (!(precpred(_ctx, 5))) throw FailedPredicateException(this, "precpred(_ctx, 5)");
+ setState(1179);
+ match(HogQLParser::AND);
+ setState(1180);
+ columnExpr(6);
+ break;
+ }
-std::any HogQLParser::ColumnExprPrecedence1Context::accept(tree::ParseTreeVisitor *visitor) {
- if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprPrecedence1(this);
- else
- return visitor->visitChildren(this);
-}
-//----------------- ColumnExprPrecedence2Context ------------------------------------------------------------------
+ case 2: {
+ auto newContext = _tracker.createInstance<ColumnExprOrContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExpr);
+ setState(1181);
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprPrecedence2Context::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
+ if (!(precpred(_ctx, 4))) throw FailedPredicateException(this, "precpred(_ctx, 4)");
+ setState(1182);
+ match(HogQLParser::OR);
+ setState(1183);
+ columnExpr(5);
+ break;
+ }
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprPrecedence2Context::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
-}
+ case 3: {
+ auto newContext = _tracker.createInstance<ColumnExprTernaryOpContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExpr);
+ setState(1184);
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::PLUS() {
- return getToken(HogQLParser::PLUS, 0);
-}
+ if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)");
+ setState(1185);
+ match(HogQLParser::QUERY);
+ setState(1186);
+ columnExpr(0);
+ setState(1187);
+ match(HogQLParser::COLON);
+ setState(1188);
+ columnExpr(3);
+ break;
+ }
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::DASH() {
- return getToken(HogQLParser::DASH, 0);
-}
+ case 4: {
+ auto newContext = _tracker.createInstance<ColumnExprAliasContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExpr);
+ setState(1190);
-tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::CONCAT() {
- return getToken(HogQLParser::CONCAT, 0);
-}
+ if (!(precpred(_ctx, 2))) throw FailedPredicateException(this, "precpred(_ctx, 2)");
+ setState(1191);
+ match(HogQLParser::AS);
+ setState(1194);
+ _errHandler->sync(this);
+ switch (_input->LA(1)) {
+ case HogQLParser::ALL:
+ case HogQLParser::AND:
+ case HogQLParser::ANTI:
+ case HogQLParser::ANY:
+ case HogQLParser::ARRAY:
+ case HogQLParser::AS:
+ case HogQLParser::ASCENDING:
+ case HogQLParser::ASOF:
+ case HogQLParser::BETWEEN:
+ case HogQLParser::BOTH:
+ case HogQLParser::BY:
+ case HogQLParser::CASE:
+ case HogQLParser::CAST:
+ case HogQLParser::COHORT:
+ case HogQLParser::COLLATE:
+ case HogQLParser::COLUMNS:
+ case HogQLParser::CROSS:
+ case HogQLParser::CUBE:
+ case HogQLParser::CURRENT:
+ case HogQLParser::DATE:
+ case HogQLParser::DAY:
+ case HogQLParser::DESC:
+ case HogQLParser::DESCENDING:
+ case HogQLParser::DISTINCT:
+ case HogQLParser::ELSE:
+ case HogQLParser::END:
+ case HogQLParser::EXCLUDE:
+ case HogQLParser::EXTRACT:
+ case HogQLParser::FINAL:
+ case HogQLParser::FILL:
+ case HogQLParser::FILTER:
+ case HogQLParser::FIRST:
+ case HogQLParser::FOLLOWING:
+ case HogQLParser::FOR:
+ case HogQLParser::FROM:
+ case HogQLParser::FULL:
+ case HogQLParser::GROUP:
+ case HogQLParser::GROUPING:
+ case HogQLParser::HAVING:
+ case HogQLParser::HOUR:
+ case HogQLParser::ID:
+ case HogQLParser::IF:
+ case HogQLParser::ILIKE:
+ case HogQLParser::IGNORE:
+ case HogQLParser::INCLUDE:
+ case HogQLParser::IN:
+ case HogQLParser::INNER:
+ case HogQLParser::INTERPOLATE:
+ case HogQLParser::INTERVAL:
+ case HogQLParser::IS:
+ case HogQLParser::JOIN:
+ case HogQLParser::KEY:
+ case HogQLParser::LAMBDA:
+ case HogQLParser::LAST:
+ case HogQLParser::LEADING:
+ case HogQLParser::LEFT:
+ case HogQLParser::LIKE:
+ case HogQLParser::LIMIT:
+ case HogQLParser::MINUTE:
+ case HogQLParser::MONTH:
+ case HogQLParser::NAME:
+ case HogQLParser::NATURAL:
+ case HogQLParser::NOT:
+ case HogQLParser::NULLS:
+ case HogQLParser::OFFSET:
+ case HogQLParser::ON:
+ case HogQLParser::OR:
+ case HogQLParser::ORDER:
+ case HogQLParser::OUTER:
+ case HogQLParser::OVER:
+ case HogQLParser::PARTITION:
+ case HogQLParser::PIVOT:
+ case HogQLParser::POSITIONAL:
+ case HogQLParser::PRECEDING:
+ case HogQLParser::PREWHERE:
+ case HogQLParser::QUALIFY:
+ case HogQLParser::QUARTER:
+ case HogQLParser::RANGE:
+ case HogQLParser::RECURSIVE:
+ case HogQLParser::REPLACE:
+ case HogQLParser::RETURN:
+ case HogQLParser::RIGHT:
+ case HogQLParser::ROLLUP:
+ case HogQLParser::ROW:
+ case HogQLParser::ROWS:
+ case HogQLParser::SAMPLE:
+ case HogQLParser::SECOND:
+ case HogQLParser::SELECT:
+ case HogQLParser::SEMI:
+ case HogQLParser::SETS:
+ case HogQLParser::SETTINGS:
+ case HogQLParser::STEP:
+ case HogQLParser::SUBSTRING:
+ case HogQLParser::THEN:
+ case HogQLParser::TIES:
+ case HogQLParser::TIMESTAMP:
+ case HogQLParser::TIME:
+ case HogQLParser::LOCAL:
+ case HogQLParser::ZONE:
+ case HogQLParser::TO:
+ case HogQLParser::TOP:
+ case HogQLParser::TOTALS:
+ case HogQLParser::TRAILING:
+ case HogQLParser::TRIM:
+ case HogQLParser::TRUNCATE:
+ case HogQLParser::TRY_CAST:
+ case HogQLParser::UNBOUNDED:
+ case HogQLParser::UNION:
+ case HogQLParser::UNPIVOT:
+ case HogQLParser::USING:
+ case HogQLParser::VALUES:
+ case HogQLParser::WEEK:
+ case HogQLParser::WHEN:
+ case HogQLParser::WHERE:
+ case HogQLParser::WINDOW:
+ case HogQLParser::WITH:
+ case HogQLParser::YEAR:
+ case HogQLParser::IDENTIFIER:
+ case HogQLParser::QUOTED_IDENTIFIER: {
+ setState(1192);
+ identifier();
+ break;
+ }
-HogQLParser::ColumnExprPrecedence2Context::ColumnExprPrecedence2Context(ColumnExprContext *ctx) { copyFrom(ctx); }
+ case HogQLParser::STRING_LITERAL: {
+ setState(1193);
+ match(HogQLParser::STRING_LITERAL);
+ break;
+ }
+
+ default:
+ throw NoViableAltException(this);
+ }
+ break;
+ }
+
+ default:
+ break;
+ }
+ }
+ setState(1200);
+ _errHandler->sync(this);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 158, _ctx);
+ }
+ }
+ catch (RecognitionException &e) {
+ _errHandler->reportError(this, e);
+ _localctx->exception = std::current_exception();
+ _errHandler->recover(this, _localctx->exception);
+ }
+ return _localctx;
+}
+
+//----------------- ColumnExprValueContext ------------------------------------------------------------------
+
+HogQLParser::ColumnExprValueContext::ColumnExprValueContext(ParserRuleContext *parent, size_t invokingState)
+ : ParserRuleContext(parent, invokingState) {
+}
+
+
+size_t HogQLParser::ColumnExprValueContext::getRuleIndex() const {
+ return HogQLParser::RuleColumnExprValue;
+}
+
+void HogQLParser::ColumnExprValueContext::copyFrom(ColumnExprValueContext *ctx) {
+ ParserRuleContext::copyFrom(ctx);
+}
+
+//----------------- ColumnExprColumnsAllContext ------------------------------------------------------------------
+
+tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::COLUMNS() {
+ return getToken(HogQLParser::COLUMNS, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::LPAREN() {
+ return getToken(HogQLParser::LPAREN, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::ASTERISK() {
+ return getToken(HogQLParser::ASTERISK, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprColumnsAllContext::RPAREN() {
+ return getToken(HogQLParser::RPAREN, 0);
+}
+
+HogQLParser::ColumnExprColumnsAllContext::ColumnExprColumnsAllContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
+
+
+std::any HogQLParser::ColumnExprColumnsAllContext::accept(tree::ParseTreeVisitor *visitor) {
+ if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
+ return parserVisitor->visitColumnExprColumnsAll(this);
+ else
+ return visitor->visitChildren(this);
+}
+//----------------- ColumnExprNegateContext ------------------------------------------------------------------
+
+tree::TerminalNode* HogQLParser::ColumnExprNegateContext::DASH() {
+ return getToken(HogQLParser::DASH, 0);
+}
+
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNegateContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
+}
+
+HogQLParser::ColumnExprNegateContext::ColumnExprNegateContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
+
+
+std::any HogQLParser::ColumnExprNegateContext::accept(tree::ParseTreeVisitor *visitor) {
+ if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
+ return parserVisitor->visitColumnExprNegate(this);
+ else
+ return visitor->visitChildren(this);
+}
+//----------------- ColumnExprLiteralContext ------------------------------------------------------------------
+
+HogQLParser::LiteralContext* HogQLParser::ColumnExprLiteralContext::literal() {
+ return getRuleContext<HogQLParser::LiteralContext>(0);
+}
+
+HogQLParser::ColumnExprLiteralContext::ColumnExprLiteralContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
+
+
+std::any HogQLParser::ColumnExprLiteralContext::accept(tree::ParseTreeVisitor *visitor) {
+ if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
+ return parserVisitor->visitColumnExprLiteral(this);
+ else
+ return visitor->visitChildren(this);
+}
+//----------------- ColumnExprArrayContext ------------------------------------------------------------------
+
+tree::TerminalNode* HogQLParser::ColumnExprArrayContext::LBRACKET() {
+ return getToken(HogQLParser::LBRACKET, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprArrayContext::RBRACKET() {
+ return getToken(HogQLParser::RBRACKET, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprArrayContext::ARRAY() {
+ return getToken(HogQLParser::ARRAY, 0);
+}
+
+HogQLParser::ColumnExprListContext* HogQLParser::ColumnExprArrayContext::columnExprList() {
+ return getRuleContext<HogQLParser::ColumnExprListContext>(0);
+}
+
+HogQLParser::ColumnExprArrayContext::ColumnExprArrayContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
+
+
+std::any HogQLParser::ColumnExprArrayContext::accept(tree::ParseTreeVisitor *visitor) {
+ if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
+ return parserVisitor->visitColumnExprArray(this);
+ else
+ return visitor->visitChildren(this);
+}
+//----------------- ColumnExprPrecedence1Context ------------------------------------------------------------------
+
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprPrecedence1Context::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
+}
+
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprPrecedence1Context::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::ASTERISK() {
+ return getToken(HogQLParser::ASTERISK, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::SLASH() {
+ return getToken(HogQLParser::SLASH, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence1Context::PERCENT() {
+ return getToken(HogQLParser::PERCENT, 0);
+}
+
+HogQLParser::ColumnExprPrecedence1Context::ColumnExprPrecedence1Context(ColumnExprValueContext *ctx) { copyFrom(ctx); }
+
+
+std::any HogQLParser::ColumnExprPrecedence1Context::accept(tree::ParseTreeVisitor *visitor) {
+ if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
+ return parserVisitor->visitColumnExprPrecedence1(this);
+ else
+ return visitor->visitChildren(this);
+}
+//----------------- ColumnExprPrecedence2Context ------------------------------------------------------------------
+
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprPrecedence2Context::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
+}
+
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprPrecedence2Context::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::PLUS() {
+ return getToken(HogQLParser::PLUS, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::DASH() {
+ return getToken(HogQLParser::DASH, 0);
+}
+
+tree::TerminalNode* HogQLParser::ColumnExprPrecedence2Context::CONCAT() {
+ return getToken(HogQLParser::CONCAT, 0);
+}
+
+HogQLParser::ColumnExprPrecedence2Context::ColumnExprPrecedence2Context(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprPrecedence2Context::accept(tree::ParseTreeVisitor *visitor) {
@@ -9756,19 +10067,19 @@ std::any HogQLParser::ColumnExprPrecedence2Context::accept(tree::ParseTreeVisito
}
//----------------- ColumnExprNullSafeEqContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprNullSafeEqContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprNullSafeEqContext::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullSafeEqContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNullSafeEqContext::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
}
tree::TerminalNode* HogQLParser::ColumnExprNullSafeEqContext::NULL_SAFE_EQ() {
return getToken(HogQLParser::NULL_SAFE_EQ, 0);
}
-HogQLParser::ColumnExprNullSafeEqContext::ColumnExprNullSafeEqContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNullSafeEqContext::ColumnExprNullSafeEqContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNullSafeEqContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -9779,12 +10090,12 @@ std::any HogQLParser::ColumnExprNullSafeEqContext::accept(tree::ParseTreeVisitor
}
//----------------- ColumnExprPrecedence3Context ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprPrecedence3Context::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprPrecedence3Context::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprPrecedence3Context::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprPrecedence3Context::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
}
tree::TerminalNode* HogQLParser::ColumnExprPrecedence3Context::IN() {
@@ -9859,7 +10170,7 @@ tree::TerminalNode* HogQLParser::ColumnExprPrecedence3Context::NOT() {
return getToken(HogQLParser::NOT, 0);
}
-HogQLParser::ColumnExprPrecedence3Context::ColumnExprPrecedence3Context(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprPrecedence3Context::ColumnExprPrecedence3Context(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprPrecedence3Context::accept(tree::ParseTreeVisitor *visitor) {
@@ -9882,7 +10193,7 @@ HogQLParser::IntervalContext* HogQLParser::ColumnExprIntervalContext::interval()
return getRuleContext<HogQLParser::IntervalContext>(0);
}
-HogQLParser::ColumnExprIntervalContext::ColumnExprIntervalContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIntervalContext::ColumnExprIntervalContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIntervalContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -9893,8 +10204,8 @@ std::any HogQLParser::ColumnExprIntervalContext::accept(tree::ParseTreeVisitor *
}
//----------------- ColumnExprIsNullContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprIsNullContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprIsNullContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprIsNullContext::IS() {
@@ -9909,7 +10220,7 @@ tree::TerminalNode* HogQLParser::ColumnExprIsNullContext::NOT() {
return getToken(HogQLParser::NOT, 0);
}
-HogQLParser::ColumnExprIsNullContext::ColumnExprIsNullContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIsNullContext::ColumnExprIsNullContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIsNullContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -9972,7 +10283,7 @@ tree::TerminalNode* HogQLParser::ColumnExprWinFunctionTargetContext::DISTINCT()
return getToken(HogQLParser::DISTINCT, 0);
}
-HogQLParser::ColumnExprWinFunctionTargetContext::ColumnExprWinFunctionTargetContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprWinFunctionTargetContext::ColumnExprWinFunctionTargetContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprWinFunctionTargetContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -9995,7 +10306,7 @@ HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNamedArgContext::columnEx
return getRuleContext<HogQLParser::ColumnExprContext>(0);
}
-HogQLParser::ColumnExprNamedArgContext::ColumnExprNamedArgContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNamedArgContext::ColumnExprNamedArgContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNamedArgContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10006,8 +10317,8 @@ std::any HogQLParser::ColumnExprNamedArgContext::accept(tree::ParseTreeVisitor *
}
//----------------- ColumnExprNullPropertyAccessContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullPropertyAccessContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNullPropertyAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprNullPropertyAccessContext::NULL_PROPERTY() {
@@ -10018,7 +10329,7 @@ HogQLParser::IdentifierContext* HogQLParser::ColumnExprNullPropertyAccessContext
return getRuleContext<HogQLParser::IdentifierContext>(0);
}
-HogQLParser::ColumnExprNullPropertyAccessContext::ColumnExprNullPropertyAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNullPropertyAccessContext::ColumnExprNullPropertyAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNullPropertyAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10037,7 +10348,7 @@ tree::TerminalNode* HogQLParser::ColumnExprIntervalStringContext::STRING_LITERAL
return getToken(HogQLParser::STRING_LITERAL, 0);
}
-HogQLParser::ColumnExprIntervalStringContext::ColumnExprIntervalStringContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIntervalStringContext::ColumnExprIntervalStringContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIntervalStringContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10052,7 +10363,7 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::ColumnExprTagElementContext::
return getRuleContext<HogQLParser::HogqlxTagElementContext>(0);
}
-HogQLParser::ColumnExprTagElementContext::ColumnExprTagElementContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTagElementContext::ColumnExprTagElementContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTagElementContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10063,8 +10374,8 @@ std::any HogQLParser::ColumnExprTagElementContext::accept(tree::ParseTreeVisitor
}
//----------------- ColumnExprCallContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprCallContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprCallContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprCallContext::LPAREN() {
@@ -10079,7 +10390,7 @@ HogQLParser::ColumnExprListContext* HogQLParser::ColumnExprCallContext::columnEx
return getRuleContext<HogQLParser::ColumnExprListContext>(0);
}
-HogQLParser::ColumnExprCallContext::ColumnExprCallContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprCallContext::ColumnExprCallContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprCallContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10090,23 +10401,23 @@ std::any HogQLParser::ColumnExprCallContext::accept(tree::ParseTreeVisitor *visi
}
//----------------- ColumnExprArrayAccessContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprArrayAccessContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
-
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprArrayAccessContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprArrayAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprArrayAccessContext::LBRACKET() {
return getToken(HogQLParser::LBRACKET, 0);
}
+HogQLParser::ColumnExprContext* HogQLParser::ColumnExprArrayAccessContext::columnExpr() {
+ return getRuleContext<HogQLParser::ColumnExprContext>(0);
+}
+
tree::TerminalNode* HogQLParser::ColumnExprArrayAccessContext::RBRACKET() {
return getToken(HogQLParser::RBRACKET, 0);
}
-HogQLParser::ColumnExprArrayAccessContext::ColumnExprArrayAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprArrayAccessContext::ColumnExprArrayAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprArrayAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10117,12 +10428,12 @@ std::any HogQLParser::ColumnExprArrayAccessContext::accept(tree::ParseTreeVisito
}
//----------------- ColumnExprBetweenContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprBetweenContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprBetweenContext::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprBetweenContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprBetweenContext::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
}
tree::TerminalNode* HogQLParser::ColumnExprBetweenContext::BETWEEN() {
@@ -10137,7 +10448,7 @@ tree::TerminalNode* HogQLParser::ColumnExprBetweenContext::NOT() {
return getToken(HogQLParser::NOT, 0);
}
-HogQLParser::ColumnExprBetweenContext::ColumnExprBetweenContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprBetweenContext::ColumnExprBetweenContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprBetweenContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10160,7 +10471,7 @@ tree::TerminalNode* HogQLParser::ColumnExprParensContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprParensContext::ColumnExprParensContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprParensContext::ColumnExprParensContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprParensContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10179,7 +10490,7 @@ tree::TerminalNode* HogQLParser::ColumnExprTimestampContext::STRING_LITERAL() {
return getToken(HogQLParser::STRING_LITERAL, 0);
}
-HogQLParser::ColumnExprTimestampContext::ColumnExprTimestampContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTimestampContext::ColumnExprTimestampContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTimestampContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10188,29 +10499,6 @@ std::any HogQLParser::ColumnExprTimestampContext::accept(tree::ParseTreeVisitor
else
return visitor->visitChildren(this);
}
-//----------------- ColumnExprAndContext ------------------------------------------------------------------
-
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprAndContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
-
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprAndContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
-}
-
-tree::TerminalNode* HogQLParser::ColumnExprAndContext::AND() {
- return getToken(HogQLParser::AND, 0);
-}
-
-HogQLParser::ColumnExprAndContext::ColumnExprAndContext(ColumnExprContext *ctx) { copyFrom(ctx); }
-
-
-std::any HogQLParser::ColumnExprAndContext::accept(tree::ParseTreeVisitor *visitor) {
- if (auto parserVisitor = dynamic_cast<HogQLParserVisitor*>(visitor))
- return parserVisitor->visitColumnExprAnd(this);
- else
- return visitor->visitChildren(this);
-}
//----------------- ColumnExprColumnsQualifiedExcludeContext ------------------------------------------------------------------
tree::TerminalNode* HogQLParser::ColumnExprColumnsQualifiedExcludeContext::COLUMNS() {
@@ -10253,7 +10541,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsQualifiedExcludeContext::RPARE
return getToken(HogQLParser::RPAREN, i);
}
-HogQLParser::ColumnExprColumnsQualifiedExcludeContext::ColumnExprColumnsQualifiedExcludeContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsQualifiedExcludeContext::ColumnExprColumnsQualifiedExcludeContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsQualifiedExcludeContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10268,11 +10556,11 @@ tree::TerminalNode* HogQLParser::ColumnExprNotContext::NOT() {
return getToken(HogQLParser::NOT, 0);
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNotContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNotContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
-HogQLParser::ColumnExprNotContext::ColumnExprNotContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNotContext::ColumnExprNotContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNotContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10339,7 +10627,7 @@ HogQLParser::ColumnExprContext* HogQLParser::ColumnExprFunctionContext::columnEx
return getRuleContext<HogQLParser::ColumnExprContext>(0);
}
-HogQLParser::ColumnExprFunctionContext::ColumnExprFunctionContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprFunctionContext::ColumnExprFunctionContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprFunctionContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10362,7 +10650,7 @@ HogQLParser::KvPairListContext* HogQLParser::ColumnExprDictContext::kvPairList()
return getRuleContext<HogQLParser::KvPairListContext>(0);
}
-HogQLParser::ColumnExprDictContext::ColumnExprDictContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprDictContext::ColumnExprDictContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprDictContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10385,7 +10673,7 @@ tree::TerminalNode* HogQLParser::ColumnExprSubqueryContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprSubqueryContext::ColumnExprSubqueryContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprSubqueryContext::ColumnExprSubqueryContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprSubqueryContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10424,7 +10712,7 @@ tree::TerminalNode* HogQLParser::ColumnExprSubstringContext::FOR() {
return getToken(HogQLParser::FOR, 0);
}
-HogQLParser::ColumnExprSubstringContext::ColumnExprSubstringContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprSubstringContext::ColumnExprSubstringContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprSubstringContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10459,7 +10747,7 @@ tree::TerminalNode* HogQLParser::ColumnExprCastContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprCastContext::ColumnExprCastContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprCastContext::ColumnExprCastContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprCastContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10470,12 +10758,8 @@ std::any HogQLParser::ColumnExprCastContext::accept(tree::ParseTreeVisitor *visi
}
//----------------- ColumnExprArraySliceContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprArraySliceContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
-
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprArraySliceContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprArraySliceContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprArraySliceContext::LBRACKET() {
@@ -10490,7 +10774,15 @@ tree::TerminalNode* HogQLParser::ColumnExprArraySliceContext::RBRACKET() {
return getToken(HogQLParser::RBRACKET, 0);
}
-HogQLParser::ColumnExprArraySliceContext::ColumnExprArraySliceContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprArraySliceContext::columnExpr() {
+ return getRuleContexts<HogQLParser::ColumnExprContext>();
+}
+
+HogQLParser::ColumnExprContext* HogQLParser::ColumnExprArraySliceContext::columnExpr(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprContext>(i);
+}
+
+HogQLParser::ColumnExprArraySliceContext::ColumnExprArraySliceContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprArraySliceContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10541,7 +10833,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsQualifiedReplaceContext::RPARE
return getToken(HogQLParser::RPAREN, i);
}
-HogQLParser::ColumnExprColumnsQualifiedReplaceContext::ColumnExprColumnsQualifiedReplaceContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsQualifiedReplaceContext::ColumnExprColumnsQualifiedReplaceContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsQualifiedReplaceContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10552,8 +10844,8 @@ std::any HogQLParser::ColumnExprColumnsQualifiedReplaceContext::accept(tree::Par
}
//----------------- ColumnExprNullTupleAccessContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullTupleAccessContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNullTupleAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprNullTupleAccessContext::NULL_PROPERTY() {
@@ -10564,7 +10856,7 @@ tree::TerminalNode* HogQLParser::ColumnExprNullTupleAccessContext::DECIMAL_LITER
return getToken(HogQLParser::DECIMAL_LITERAL, 0);
}
-HogQLParser::ColumnExprNullTupleAccessContext::ColumnExprNullTupleAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNullTupleAccessContext::ColumnExprNullTupleAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNullTupleAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10595,7 +10887,7 @@ HogQLParser::ColumnExprListContext* HogQLParser::ColumnExprFunctionWithinGroupCo
return getRuleContext<HogQLParser::ColumnExprListContext>(0);
}
-HogQLParser::ColumnExprFunctionWithinGroupContext::ColumnExprFunctionWithinGroupContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprFunctionWithinGroupContext::ColumnExprFunctionWithinGroupContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprFunctionWithinGroupContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10614,7 +10906,7 @@ tree::TerminalNode* HogQLParser::ColumnExprPositionalContext::DECIMAL_LITERAL()
return getToken(HogQLParser::DECIMAL_LITERAL, 0);
}
-HogQLParser::ColumnExprPositionalContext::ColumnExprPositionalContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprPositionalContext::ColumnExprPositionalContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprPositionalContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10641,7 +10933,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsRegexContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprColumnsRegexContext::ColumnExprColumnsRegexContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsRegexContext::ColumnExprColumnsRegexContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsRegexContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10652,8 +10944,8 @@ std::any HogQLParser::ColumnExprColumnsRegexContext::accept(tree::ParseTreeVisit
}
//----------------- ColumnExprTypeCastContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprTypeCastContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprTypeCastContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprTypeCastContext::DOUBLECOLON() {
@@ -10664,7 +10956,7 @@ HogQLParser::ColumnTypeCastExprContext* HogQLParser::ColumnExprTypeCastContext::
return getRuleContext<HogQLParser::ColumnTypeCastExprContext>(0);
}
-HogQLParser::ColumnExprTypeCastContext::ColumnExprTypeCastContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTypeCastContext::ColumnExprTypeCastContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTypeCastContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10675,12 +10967,12 @@ std::any HogQLParser::ColumnExprTypeCastContext::accept(tree::ParseTreeVisitor *
}
//----------------- ColumnExprIsDistinctFromContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprIsDistinctFromContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprIsDistinctFromContext::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprIsDistinctFromContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprIsDistinctFromContext::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
}
tree::TerminalNode* HogQLParser::ColumnExprIsDistinctFromContext::IS() {
@@ -10699,7 +10991,7 @@ tree::TerminalNode* HogQLParser::ColumnExprIsDistinctFromContext::NOT() {
return getToken(HogQLParser::NOT, 0);
}
-HogQLParser::ColumnExprIsDistinctFromContext::ColumnExprIsDistinctFromContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIsDistinctFromContext::ColumnExprIsDistinctFromContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIsDistinctFromContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10730,7 +11022,7 @@ tree::TerminalNode* HogQLParser::ColumnExprSpreadColumnsListContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprSpreadColumnsListContext::ColumnExprSpreadColumnsListContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprSpreadColumnsListContext::ColumnExprSpreadColumnsListContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprSpreadColumnsListContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10781,7 +11073,7 @@ HogQLParser::ColumnsReplaceListContext* HogQLParser::ColumnExprColumnsExcludeRep
return getRuleContext<HogQLParser::ColumnsReplaceListContext>(0);
}
-HogQLParser::ColumnExprColumnsExcludeReplaceContext::ColumnExprColumnsExcludeReplaceContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsExcludeReplaceContext::ColumnExprColumnsExcludeReplaceContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsExcludeReplaceContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10840,7 +11132,7 @@ HogQLParser::ColumnsReplaceListContext* HogQLParser::ColumnExprColumnsQualifiedE
return getRuleContext<HogQLParser::ColumnsReplaceListContext>(0);
}
-HogQLParser::ColumnExprColumnsQualifiedExcludeReplaceContext::ColumnExprColumnsQualifiedExcludeReplaceContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsQualifiedExcludeReplaceContext::ColumnExprColumnsQualifiedExcludeReplaceContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsQualifiedExcludeReplaceContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10883,7 +11175,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsExcludeContext::RPAREN(size_t
return getToken(HogQLParser::RPAREN, i);
}
-HogQLParser::ColumnExprColumnsExcludeContext::ColumnExprColumnsExcludeContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsExcludeContext::ColumnExprColumnsExcludeContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsExcludeContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10922,7 +11214,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColonLambdaContext::COMMA(size_t i) {
return getToken(HogQLParser::COMMA, i);
}
-HogQLParser::ColumnExprColonLambdaContext::ColumnExprColonLambdaContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColonLambdaContext::ColumnExprColonLambdaContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColonLambdaContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10933,8 +11225,8 @@ std::any HogQLParser::ColumnExprColonLambdaContext::accept(tree::ParseTreeVisito
}
//----------------- ColumnExprCallSelectContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprCallSelectContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprCallSelectContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprCallSelectContext::LPAREN() {
@@ -10949,7 +11241,7 @@ tree::TerminalNode* HogQLParser::ColumnExprCallSelectContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprCallSelectContext::ColumnExprCallSelectContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprCallSelectContext::ColumnExprCallSelectContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprCallSelectContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -10984,7 +11276,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsQualifiedAllContext::RPAREN()
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprColumnsQualifiedAllContext::ColumnExprColumnsQualifiedAllContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsQualifiedAllContext::ColumnExprColumnsQualifiedAllContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsQualifiedAllContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11031,7 +11323,7 @@ tree::TerminalNode* HogQLParser::ColumnExprTrimContext::TRAILING() {
return getToken(HogQLParser::TRAILING, 0);
}
-HogQLParser::ColumnExprTrimContext::ColumnExprTrimContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTrimContext::ColumnExprTrimContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTrimContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11046,7 +11338,7 @@ HogQLParser::TemplateStringContext* HogQLParser::ColumnExprTemplateStringContext
return getRuleContext<HogQLParser::TemplateStringContext>(0);
}
-HogQLParser::ColumnExprTemplateStringContext::ColumnExprTemplateStringContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTemplateStringContext::ColumnExprTemplateStringContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTemplateStringContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11069,7 +11361,7 @@ tree::TerminalNode* HogQLParser::ColumnExprTupleContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprTupleContext::ColumnExprTupleContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTupleContext::ColumnExprTupleContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTupleContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11104,7 +11396,7 @@ tree::TerminalNode* HogQLParser::ColumnExprTryCastContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprTryCastContext::ColumnExprTryCastContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTryCastContext::ColumnExprTryCastContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTryCastContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11131,7 +11423,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsListContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprColumnsListContext::ColumnExprColumnsListContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsListContext::ColumnExprColumnsListContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsListContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11174,7 +11466,7 @@ tree::TerminalNode* HogQLParser::ColumnExprColumnsReplaceContext::RPAREN(size_t
return getToken(HogQLParser::RPAREN, i);
}
-HogQLParser::ColumnExprColumnsReplaceContext::ColumnExprColumnsReplaceContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprColumnsReplaceContext::ColumnExprColumnsReplaceContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprColumnsReplaceContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11205,7 +11497,7 @@ tree::TerminalNode* HogQLParser::ColumnExprSpreadColumnsRegexContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprSpreadColumnsRegexContext::ColumnExprSpreadColumnsRegexContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprSpreadColumnsRegexContext::ColumnExprSpreadColumnsRegexContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprSpreadColumnsRegexContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11216,8 +11508,8 @@ std::any HogQLParser::ColumnExprSpreadColumnsRegexContext::accept(tree::ParseTre
}
//----------------- ColumnExprPropertyAccessContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprPropertyAccessContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprPropertyAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprPropertyAccessContext::DOT() {
@@ -11228,7 +11520,7 @@ HogQLParser::IdentifierContext* HogQLParser::ColumnExprPropertyAccessContext::id
return getRuleContext<HogQLParser::IdentifierContext>(0);
}
-HogQLParser::ColumnExprPropertyAccessContext::ColumnExprPropertyAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprPropertyAccessContext::ColumnExprPropertyAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprPropertyAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11239,12 +11531,8 @@ std::any HogQLParser::ColumnExprPropertyAccessContext::accept(tree::ParseTreeVis
}
//----------------- ColumnExprNullArrayAccessContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprNullArrayAccessContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
-}
-
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullArrayAccessContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNullArrayAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprNullArrayAccessContext::NULL_PROPERTY() {
@@ -11255,11 +11543,15 @@ tree::TerminalNode* HogQLParser::ColumnExprNullArrayAccessContext::LBRACKET() {
return getToken(HogQLParser::LBRACKET, 0);
}
+HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullArrayAccessContext::columnExpr() {
+ return getRuleContext<HogQLParser::ColumnExprContext>(0);
+}
+
tree::TerminalNode* HogQLParser::ColumnExprNullArrayAccessContext::RBRACKET() {
return getToken(HogQLParser::RBRACKET, 0);
}
-HogQLParser::ColumnExprNullArrayAccessContext::ColumnExprNullArrayAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNullArrayAccessContext::ColumnExprNullArrayAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNullArrayAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11270,8 +11562,8 @@ std::any HogQLParser::ColumnExprNullArrayAccessContext::accept(tree::ParseTreeVi
}
//----------------- ColumnExprIgnoreNullsContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprIgnoreNullsContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprIgnoreNullsContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprIgnoreNullsContext::IGNORE() {
@@ -11282,7 +11574,7 @@ tree::TerminalNode* HogQLParser::ColumnExprIgnoreNullsContext::NULLS() {
return getToken(HogQLParser::NULLS, 0);
}
-HogQLParser::ColumnExprIgnoreNullsContext::ColumnExprIgnoreNullsContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIgnoreNullsContext::ColumnExprIgnoreNullsContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIgnoreNullsContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11293,19 +11585,19 @@ std::any HogQLParser::ColumnExprIgnoreNullsContext::accept(tree::ParseTreeVisito
}
//----------------- ColumnExprNullishContext ------------------------------------------------------------------
-std::vector<HogQLParser::ColumnExprContext *> HogQLParser::ColumnExprNullishContext::columnExpr() {
- return getRuleContexts<HogQLParser::ColumnExprContext>();
+std::vector<HogQLParser::ColumnExprValueContext *> HogQLParser::ColumnExprNullishContext::columnExprValue() {
+ return getRuleContexts<HogQLParser::ColumnExprValueContext>();
}
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprNullishContext::columnExpr(size_t i) {
- return getRuleContext<HogQLParser::ColumnExprContext>(i);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprNullishContext::columnExprValue(size_t i) {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(i);
}
tree::TerminalNode* HogQLParser::ColumnExprNullishContext::NULLISH() {
return getToken(HogQLParser::NULLISH, 0);
}
-HogQLParser::ColumnExprNullishContext::ColumnExprNullishContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprNullishContext::ColumnExprNullishContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprNullishContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11316,8 +11608,8 @@ std::any HogQLParser::ColumnExprNullishContext::accept(tree::ParseTreeVisitor *v
}
//----------------- ColumnExprTupleAccessContext ------------------------------------------------------------------
-HogQLParser::ColumnExprContext* HogQLParser::ColumnExprTupleAccessContext::columnExpr() {
- return getRuleContext<HogQLParser::ColumnExprContext>(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::ColumnExprTupleAccessContext::columnExprValue() {
+ return getRuleContext<HogQLParser::ColumnExprValueContext>(0);
}
tree::TerminalNode* HogQLParser::ColumnExprTupleAccessContext::DOT() {
@@ -11328,7 +11620,7 @@ tree::TerminalNode* HogQLParser::ColumnExprTupleAccessContext::DECIMAL_LITERAL()
return getToken(HogQLParser::DECIMAL_LITERAL, 0);
}
-HogQLParser::ColumnExprTupleAccessContext::ColumnExprTupleAccessContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprTupleAccessContext::ColumnExprTupleAccessContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprTupleAccessContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11375,7 +11667,7 @@ HogQLParser::ColumnExprContext* HogQLParser::ColumnExprCaseContext::columnExpr(s
return getRuleContext<HogQLParser::ColumnExprContext>(i);
}
-HogQLParser::ColumnExprCaseContext::ColumnExprCaseContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprCaseContext::ColumnExprCaseContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprCaseContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11394,7 +11686,7 @@ tree::TerminalNode* HogQLParser::ColumnExprDateContext::STRING_LITERAL() {
return getToken(HogQLParser::STRING_LITERAL, 0);
}
-HogQLParser::ColumnExprDateContext::ColumnExprDateContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprDateContext::ColumnExprDateContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprDateContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11457,7 +11749,7 @@ tree::TerminalNode* HogQLParser::ColumnExprWinFunctionContext::DISTINCT() {
return getToken(HogQLParser::DISTINCT, 0);
}
-HogQLParser::ColumnExprWinFunctionContext::ColumnExprWinFunctionContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprWinFunctionContext::ColumnExprWinFunctionContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprWinFunctionContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11472,7 +11764,7 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::ColumnExprLambdaContext::colu
return getRuleContext<HogQLParser::ColumnLambdaExprContext>(0);
}
-HogQLParser::ColumnExprLambdaContext::ColumnExprLambdaContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprLambdaContext::ColumnExprLambdaContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprLambdaContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11487,7 +11779,7 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::ColumnExprIdentifierContext::
return getRuleContext<HogQLParser::ColumnIdentifierContext>(0);
}
-HogQLParser::ColumnExprIdentifierContext::ColumnExprIdentifierContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprIdentifierContext::ColumnExprIdentifierContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprIdentifierContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11526,7 +11818,7 @@ tree::TerminalNode* HogQLParser::ColumnExprAsteriskContext::RPAREN() {
return getToken(HogQLParser::RPAREN, 0);
}
-HogQLParser::ColumnExprAsteriskContext::ColumnExprAsteriskContext(ColumnExprContext *ctx) { copyFrom(ctx); }
+HogQLParser::ColumnExprAsteriskContext::ColumnExprAsteriskContext(ColumnExprValueContext *ctx) { copyFrom(ctx); }
std::any HogQLParser::ColumnExprAsteriskContext::accept(tree::ParseTreeVisitor *visitor) {
@@ -11536,18 +11828,18 @@ std::any HogQLParser::ColumnExprAsteriskContext::accept(tree::ParseTreeVisitor *
return visitor->visitChildren(this);
}
-HogQLParser::ColumnExprContext* HogQLParser::columnExpr() {
- return columnExpr(0);
+HogQLParser::ColumnExprValueContext* HogQLParser::columnExprValue() {
+ return columnExprValue(0);
}
-HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
+HogQLParser::ColumnExprValueContext* HogQLParser::columnExprValue(int precedence) {
ParserRuleContext *parentContext = _ctx;
size_t parentState = getState();
- HogQLParser::ColumnExprContext *_localctx = _tracker.createInstance<ColumnExprContext>(_ctx, parentState);
- HogQLParser::ColumnExprContext *previousContext = _localctx;
+ HogQLParser::ColumnExprValueContext *_localctx = _tracker.createInstance<ColumnExprValueContext>(_ctx, parentState);
+ HogQLParser::ColumnExprValueContext *previousContext = _localctx;
(void)previousContext; // Silence compiler, in case the context is not used by generated code.
- size_t startState = 154;
- enterRecursionRule(_localctx, 154, HogQLParser::RuleColumnExpr, precedence);
+ size_t startState = 156;
+ enterRecursionRule(_localctx, 156, HogQLParser::RuleColumnExprValue, precedence);
size_t _la = 0;
@@ -11561,22 +11853,22 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1522);
+ setState(1550);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 186, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 189, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<ColumnExprCaseContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1174);
+ setState(1202);
match(HogQLParser::CASE);
- setState(1176);
+ setState(1204);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 156, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 159, _ctx)) {
case 1: {
- setState(1175);
+ setState(1203);
antlrcpp::downCast<ColumnExprCaseContext *>(_localctx)->caseExpr = columnExpr(0);
break;
}
@@ -11584,33 +11876,33 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1183);
+ setState(1211);
_errHandler->sync(this);
_la = _input->LA(1);
do {
- setState(1178);
+ setState(1206);
match(HogQLParser::WHEN);
- setState(1179);
+ setState(1207);
antlrcpp::downCast<ColumnExprCaseContext *>(_localctx)->whenExpr = columnExpr(0);
- setState(1180);
+ setState(1208);
match(HogQLParser::THEN);
- setState(1181);
+ setState(1209);
antlrcpp::downCast<ColumnExprCaseContext *>(_localctx)->thenExpr = columnExpr(0);
- setState(1185);
+ setState(1213);
_errHandler->sync(this);
_la = _input->LA(1);
} while (_la == HogQLParser::WHEN);
- setState(1189);
+ setState(1217);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::ELSE) {
- setState(1187);
+ setState(1215);
match(HogQLParser::ELSE);
- setState(1188);
+ setState(1216);
antlrcpp::downCast<ColumnExprCaseContext *>(_localctx)->elseExpr = columnExpr(0);
}
- setState(1191);
+ setState(1219);
match(HogQLParser::END);
break;
}
@@ -11619,17 +11911,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprCastContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1193);
+ setState(1221);
match(HogQLParser::CAST);
- setState(1194);
+ setState(1222);
match(HogQLParser::LPAREN);
- setState(1195);
+ setState(1223);
columnExpr(0);
- setState(1196);
+ setState(1224);
match(HogQLParser::AS);
- setState(1197);
+ setState(1225);
columnTypeExpr(0);
- setState(1198);
+ setState(1226);
match(HogQLParser::RPAREN);
break;
}
@@ -11638,17 +11930,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTryCastContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1200);
+ setState(1228);
match(HogQLParser::TRY_CAST);
- setState(1201);
+ setState(1229);
match(HogQLParser::LPAREN);
- setState(1202);
+ setState(1230);
columnExpr(0);
- setState(1203);
+ setState(1231);
match(HogQLParser::AS);
- setState(1204);
+ setState(1232);
columnTypeExpr(0);
- setState(1205);
+ setState(1233);
match(HogQLParser::RPAREN);
break;
}
@@ -11657,9 +11949,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprDateContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1207);
+ setState(1235);
match(HogQLParser::DATE);
- setState(1208);
+ setState(1236);
match(HogQLParser::STRING_LITERAL);
break;
}
@@ -11668,11 +11960,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprIntervalContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1209);
+ setState(1237);
match(HogQLParser::INTERVAL);
- setState(1210);
+ setState(1238);
columnExpr(0);
- setState(1211);
+ setState(1239);
interval();
break;
}
@@ -11681,9 +11973,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprIntervalStringContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1213);
+ setState(1241);
match(HogQLParser::INTERVAL);
- setState(1214);
+ setState(1242);
match(HogQLParser::STRING_LITERAL);
break;
}
@@ -11692,27 +11984,27 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprSubstringContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1215);
+ setState(1243);
match(HogQLParser::SUBSTRING);
- setState(1216);
+ setState(1244);
match(HogQLParser::LPAREN);
- setState(1217);
+ setState(1245);
columnExpr(0);
- setState(1218);
+ setState(1246);
match(HogQLParser::FROM);
- setState(1219);
+ setState(1247);
columnExpr(0);
- setState(1222);
+ setState(1250);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FOR) {
- setState(1220);
+ setState(1248);
match(HogQLParser::FOR);
- setState(1221);
+ setState(1249);
columnExpr(0);
}
- setState(1224);
+ setState(1252);
match(HogQLParser::RPAREN);
break;
}
@@ -11721,9 +12013,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTimestampContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1226);
+ setState(1254);
match(HogQLParser::TIMESTAMP);
- setState(1227);
+ setState(1255);
match(HogQLParser::STRING_LITERAL);
break;
}
@@ -11732,11 +12024,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTrimContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1228);
+ setState(1256);
match(HogQLParser::TRIM);
- setState(1229);
+ setState(1257);
match(HogQLParser::LPAREN);
- setState(1230);
+ setState(1258);
_la = _input->LA(1);
if (!(_la == HogQLParser::BOTH
@@ -11747,13 +12039,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_errHandler->reportMatch(this);
consume();
}
- setState(1231);
+ setState(1259);
string();
- setState(1232);
+ setState(1260);
match(HogQLParser::FROM);
- setState(1233);
+ setState(1261);
columnExpr(0);
- setState(1234);
+ setState(1262);
match(HogQLParser::RPAREN);
break;
}
@@ -11762,13 +12054,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsRegexContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1236);
+ setState(1264);
match(HogQLParser::COLUMNS);
- setState(1237);
+ setState(1265);
match(HogQLParser::LPAREN);
- setState(1238);
+ setState(1266);
match(HogQLParser::STRING_LITERAL);
- setState(1239);
+ setState(1267);
match(HogQLParser::RPAREN);
break;
}
@@ -11777,13 +12069,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsListContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1240);
+ setState(1268);
match(HogQLParser::COLUMNS);
- setState(1241);
+ setState(1269);
match(HogQLParser::LPAREN);
- setState(1242);
+ setState(1270);
columnExprList();
- setState(1243);
+ setState(1271);
match(HogQLParser::RPAREN);
break;
}
@@ -11792,59 +12084,59 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsExcludeReplaceContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1270);
+ setState(1298);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::COLUMNS: {
- setState(1245);
+ setState(1273);
match(HogQLParser::COLUMNS);
- setState(1246);
+ setState(1274);
match(HogQLParser::LPAREN);
- setState(1247);
+ setState(1275);
match(HogQLParser::ASTERISK);
- setState(1248);
+ setState(1276);
match(HogQLParser::EXCLUDE);
- setState(1249);
+ setState(1277);
match(HogQLParser::LPAREN);
- setState(1250);
+ setState(1278);
identifierList();
- setState(1251);
+ setState(1279);
match(HogQLParser::RPAREN);
- setState(1252);
+ setState(1280);
match(HogQLParser::REPLACE);
- setState(1253);
+ setState(1281);
match(HogQLParser::LPAREN);
- setState(1254);
+ setState(1282);
columnsReplaceList();
- setState(1255);
+ setState(1283);
match(HogQLParser::RPAREN);
- setState(1256);
+ setState(1284);
match(HogQLParser::RPAREN);
break;
}
case HogQLParser::LPAREN: {
- setState(1258);
+ setState(1286);
match(HogQLParser::LPAREN);
- setState(1259);
+ setState(1287);
match(HogQLParser::ASTERISK);
- setState(1260);
+ setState(1288);
match(HogQLParser::EXCLUDE);
- setState(1261);
+ setState(1289);
match(HogQLParser::LPAREN);
- setState(1262);
+ setState(1290);
identifierList();
- setState(1263);
+ setState(1291);
match(HogQLParser::RPAREN);
- setState(1264);
+ setState(1292);
match(HogQLParser::REPLACE);
- setState(1265);
+ setState(1293);
match(HogQLParser::LPAREN);
- setState(1266);
+ setState(1294);
columnsReplaceList();
- setState(1267);
+ setState(1295);
match(HogQLParser::RPAREN);
- setState(1268);
+ setState(1296);
match(HogQLParser::RPAREN);
break;
}
@@ -11859,21 +12151,21 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsExcludeContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1272);
+ setState(1300);
match(HogQLParser::COLUMNS);
- setState(1273);
+ setState(1301);
match(HogQLParser::LPAREN);
- setState(1274);
+ setState(1302);
match(HogQLParser::ASTERISK);
- setState(1275);
+ setState(1303);
match(HogQLParser::EXCLUDE);
- setState(1276);
+ setState(1304);
match(HogQLParser::LPAREN);
- setState(1277);
+ setState(1305);
identifierList();
- setState(1278);
+ setState(1306);
match(HogQLParser::RPAREN);
- setState(1279);
+ setState(1307);
match(HogQLParser::RPAREN);
break;
}
@@ -11882,43 +12174,43 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsReplaceContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1298);
+ setState(1326);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::COLUMNS: {
- setState(1281);
+ setState(1309);
match(HogQLParser::COLUMNS);
- setState(1282);
+ setState(1310);
match(HogQLParser::LPAREN);
- setState(1283);
+ setState(1311);
match(HogQLParser::ASTERISK);
- setState(1284);
+ setState(1312);
match(HogQLParser::REPLACE);
- setState(1285);
+ setState(1313);
match(HogQLParser::LPAREN);
- setState(1286);
+ setState(1314);
columnsReplaceList();
- setState(1287);
+ setState(1315);
match(HogQLParser::RPAREN);
- setState(1288);
+ setState(1316);
match(HogQLParser::RPAREN);
break;
}
case HogQLParser::LPAREN: {
- setState(1290);
+ setState(1318);
match(HogQLParser::LPAREN);
- setState(1291);
+ setState(1319);
match(HogQLParser::ASTERISK);
- setState(1292);
+ setState(1320);
match(HogQLParser::REPLACE);
- setState(1293);
+ setState(1321);
match(HogQLParser::LPAREN);
- setState(1294);
+ setState(1322);
columnsReplaceList();
- setState(1295);
+ setState(1323);
match(HogQLParser::RPAREN);
- setState(1296);
+ setState(1324);
match(HogQLParser::RPAREN);
break;
}
@@ -11933,13 +12225,13 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsAllContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1300);
+ setState(1328);
match(HogQLParser::COLUMNS);
- setState(1301);
+ setState(1329);
match(HogQLParser::LPAREN);
- setState(1302);
+ setState(1330);
match(HogQLParser::ASTERISK);
- setState(1303);
+ setState(1331);
match(HogQLParser::RPAREN);
break;
}
@@ -11948,33 +12240,33 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsQualifiedExcludeReplaceContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1304);
+ setState(1332);
match(HogQLParser::COLUMNS);
- setState(1305);
+ setState(1333);
match(HogQLParser::LPAREN);
- setState(1306);
+ setState(1334);
identifier();
- setState(1307);
+ setState(1335);
match(HogQLParser::DOT);
- setState(1308);
+ setState(1336);
match(HogQLParser::ASTERISK);
- setState(1309);
+ setState(1337);
match(HogQLParser::EXCLUDE);
- setState(1310);
+ setState(1338);
match(HogQLParser::LPAREN);
- setState(1311);
+ setState(1339);
identifierList();
- setState(1312);
+ setState(1340);
match(HogQLParser::RPAREN);
- setState(1313);
+ setState(1341);
match(HogQLParser::REPLACE);
- setState(1314);
+ setState(1342);
match(HogQLParser::LPAREN);
- setState(1315);
+ setState(1343);
columnsReplaceList();
- setState(1316);
+ setState(1344);
match(HogQLParser::RPAREN);
- setState(1317);
+ setState(1345);
match(HogQLParser::RPAREN);
break;
}
@@ -11983,25 +12275,25 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsQualifiedExcludeContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1319);
+ setState(1347);
match(HogQLParser::COLUMNS);
- setState(1320);
+ setState(1348);
match(HogQLParser::LPAREN);
- setState(1321);
+ setState(1349);
identifier();
- setState(1322);
+ setState(1350);
match(HogQLParser::DOT);
- setState(1323);
+ setState(1351);
match(HogQLParser::ASTERISK);
- setState(1324);
+ setState(1352);
match(HogQLParser::EXCLUDE);
- setState(1325);
+ setState(1353);
match(HogQLParser::LPAREN);
- setState(1326);
+ setState(1354);
identifierList();
- setState(1327);
+ setState(1355);
match(HogQLParser::RPAREN);
- setState(1328);
+ setState(1356);
match(HogQLParser::RPAREN);
break;
}
@@ -12010,25 +12302,25 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsQualifiedReplaceContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1330);
+ setState(1358);
match(HogQLParser::COLUMNS);
- setState(1331);
+ setState(1359);
match(HogQLParser::LPAREN);
- setState(1332);
+ setState(1360);
identifier();
- setState(1333);
+ setState(1361);
match(HogQLParser::DOT);
- setState(1334);
+ setState(1362);
match(HogQLParser::ASTERISK);
- setState(1335);
+ setState(1363);
match(HogQLParser::REPLACE);
- setState(1336);
+ setState(1364);
match(HogQLParser::LPAREN);
- setState(1337);
+ setState(1365);
columnsReplaceList();
- setState(1338);
+ setState(1366);
match(HogQLParser::RPAREN);
- setState(1339);
+ setState(1367);
match(HogQLParser::RPAREN);
break;
}
@@ -12037,17 +12329,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColumnsQualifiedAllContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1341);
+ setState(1369);
match(HogQLParser::COLUMNS);
- setState(1342);
+ setState(1370);
match(HogQLParser::LPAREN);
- setState(1343);
+ setState(1371);
identifier();
- setState(1344);
+ setState(1372);
match(HogQLParser::DOT);
- setState(1345);
+ setState(1373);
match(HogQLParser::ASTERISK);
- setState(1346);
+ setState(1374);
match(HogQLParser::RPAREN);
break;
}
@@ -12056,15 +12348,15 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprSpreadColumnsRegexContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1348);
+ setState(1376);
match(HogQLParser::ASTERISK);
- setState(1349);
+ setState(1377);
match(HogQLParser::COLUMNS);
- setState(1350);
+ setState(1378);
match(HogQLParser::LPAREN);
- setState(1351);
+ setState(1379);
match(HogQLParser::STRING_LITERAL);
- setState(1352);
+ setState(1380);
match(HogQLParser::RPAREN);
break;
}
@@ -12073,15 +12365,15 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprSpreadColumnsListContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1353);
+ setState(1381);
match(HogQLParser::ASTERISK);
- setState(1354);
+ setState(1382);
match(HogQLParser::COLUMNS);
- setState(1355);
+ setState(1383);
match(HogQLParser::LPAREN);
- setState(1356);
+ setState(1384);
columnExprList();
- setState(1357);
+ setState(1385);
match(HogQLParser::RPAREN);
break;
}
@@ -12090,11 +12382,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprFunctionWithinGroupContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1359);
+ setState(1387);
identifier();
- setState(1360);
+ setState(1388);
match(HogQLParser::LPAREN);
- setState(1362);
+ setState(1390);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12102,12 +12394,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1361);
+ setState(1389);
antlrcpp::downCast<ColumnExprFunctionWithinGroupContext *>(_localctx)->columnExprs = columnExprList();
}
- setState(1364);
+ setState(1392);
match(HogQLParser::RPAREN);
- setState(1365);
+ setState(1393);
withinGroupClause();
break;
}
@@ -12116,12 +12408,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprWinFunctionContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1367);
+ setState(1395);
identifier();
- setState(1368);
+ setState(1396);
match(HogQLParser::LPAREN);
- setState(1370);
+ setState(1398);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12129,24 +12421,24 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1369);
+ setState(1397);
antlrcpp::downCast<ColumnExprWinFunctionContext *>(_localctx)->columnExprs = columnExprList();
}
- setState(1372);
+ setState(1400);
match(HogQLParser::RPAREN);
- setState(1382);
+ setState(1410);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LPAREN) {
- setState(1374);
+ setState(1402);
match(HogQLParser::LPAREN);
- setState(1376);
+ setState(1404);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 164, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 167, _ctx)) {
case 1: {
- setState(1375);
+ setState(1403);
match(HogQLParser::DISTINCT);
break;
}
@@ -12154,7 +12446,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1379);
+ setState(1407);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12162,35 +12454,35 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1378);
+ setState(1406);
antlrcpp::downCast<ColumnExprWinFunctionContext *>(_localctx)->columnArgList = columnExprList();
}
- setState(1381);
+ setState(1409);
match(HogQLParser::RPAREN);
}
- setState(1390);
+ setState(1418);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FILTER) {
- setState(1384);
+ setState(1412);
match(HogQLParser::FILTER);
- setState(1385);
+ setState(1413);
match(HogQLParser::LPAREN);
- setState(1386);
+ setState(1414);
match(HogQLParser::WHERE);
- setState(1387);
+ setState(1415);
antlrcpp::downCast<ColumnExprWinFunctionContext *>(_localctx)->filterExpr = columnExpr(0);
- setState(1388);
+ setState(1416);
match(HogQLParser::RPAREN);
}
- setState(1392);
+ setState(1420);
match(HogQLParser::OVER);
- setState(1393);
+ setState(1421);
match(HogQLParser::LPAREN);
- setState(1394);
+ setState(1422);
windowExpr();
- setState(1395);
+ setState(1423);
match(HogQLParser::RPAREN);
break;
}
@@ -12199,12 +12491,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprWinFunctionTargetContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1397);
+ setState(1425);
identifier();
- setState(1398);
+ setState(1426);
match(HogQLParser::LPAREN);
- setState(1400);
+ setState(1428);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12212,24 +12504,24 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1399);
+ setState(1427);
antlrcpp::downCast<ColumnExprWinFunctionTargetContext *>(_localctx)->columnExprs = columnExprList();
}
- setState(1402);
+ setState(1430);
match(HogQLParser::RPAREN);
- setState(1412);
+ setState(1440);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LPAREN) {
- setState(1404);
+ setState(1432);
match(HogQLParser::LPAREN);
- setState(1406);
+ setState(1434);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 169, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 172, _ctx)) {
case 1: {
- setState(1405);
+ setState(1433);
match(HogQLParser::DISTINCT);
break;
}
@@ -12237,7 +12529,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1409);
+ setState(1437);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12245,31 +12537,31 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1408);
+ setState(1436);
antlrcpp::downCast<ColumnExprWinFunctionTargetContext *>(_localctx)->columnArgList = columnExprList();
}
- setState(1411);
+ setState(1439);
match(HogQLParser::RPAREN);
}
- setState(1420);
+ setState(1448);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::FILTER) {
- setState(1414);
+ setState(1442);
match(HogQLParser::FILTER);
- setState(1415);
+ setState(1443);
match(HogQLParser::LPAREN);
- setState(1416);
+ setState(1444);
match(HogQLParser::WHERE);
- setState(1417);
+ setState(1445);
antlrcpp::downCast<ColumnExprWinFunctionTargetContext *>(_localctx)->filterExpr = columnExpr(0);
- setState(1418);
+ setState(1446);
match(HogQLParser::RPAREN);
}
- setState(1422);
+ setState(1450);
match(HogQLParser::OVER);
- setState(1423);
+ setState(1451);
identifier();
break;
}
@@ -12278,16 +12570,16 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprFunctionContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1425);
+ setState(1453);
identifier();
- setState(1431);
+ setState(1459);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 174, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 177, _ctx)) {
case 1: {
- setState(1426);
+ setState(1454);
match(HogQLParser::LPAREN);
- setState(1428);
+ setState(1456);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12295,10 +12587,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1427);
+ setState(1455);
antlrcpp::downCast<ColumnExprFunctionContext *>(_localctx)->columnExprs = columnExprList();
}
- setState(1430);
+ setState(1458);
match(HogQLParser::RPAREN);
break;
}
@@ -12306,14 +12598,14 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1433);
+ setState(1461);
match(HogQLParser::LPAREN);
- setState(1435);
+ setState(1463);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 175, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 178, _ctx)) {
case 1: {
- setState(1434);
+ setState(1462);
match(HogQLParser::DISTINCT);
break;
}
@@ -12321,12 +12613,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1438);
+ setState(1466);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 176, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 179, _ctx)) {
case 1: {
- setState(1437);
+ setState(1465);
antlrcpp::downCast<ColumnExprFunctionContext *>(_localctx)->columnArgList = columnExprList();
break;
}
@@ -12334,34 +12626,34 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1443);
+ setState(1471);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::ORDER) {
- setState(1440);
+ setState(1468);
match(HogQLParser::ORDER);
- setState(1441);
+ setState(1469);
match(HogQLParser::BY);
- setState(1442);
+ setState(1470);
orderExprList();
}
- setState(1445);
+ setState(1473);
match(HogQLParser::RPAREN);
- setState(1452);
+ setState(1480);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 178, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 181, _ctx)) {
case 1: {
- setState(1446);
+ setState(1474);
match(HogQLParser::FILTER);
- setState(1447);
+ setState(1475);
match(HogQLParser::LPAREN);
- setState(1448);
+ setState(1476);
match(HogQLParser::WHERE);
- setState(1449);
+ setState(1477);
antlrcpp::downCast<ColumnExprFunctionContext *>(_localctx)->filterExpr = columnExpr(0);
- setState(1450);
+ setState(1478);
match(HogQLParser::RPAREN);
break;
}
@@ -12376,7 +12668,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTagElementContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1454);
+ setState(1482);
hogqlxTagElement();
break;
}
@@ -12385,7 +12677,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTemplateStringContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1455);
+ setState(1483);
templateString();
break;
}
@@ -12394,7 +12686,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprLiteralContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1456);
+ setState(1484);
literal();
break;
}
@@ -12403,10 +12695,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprNegateContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1457);
+ setState(1485);
match(HogQLParser::DASH);
- setState(1458);
- columnExpr(26);
+ setState(1486);
+ columnExprValue(22);
break;
}
@@ -12414,10 +12706,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprNotContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1459);
+ setState(1487);
match(HogQLParser::NOT);
- setState(1460);
- columnExpr(17);
+ setState(1488);
+ columnExprValue(12);
break;
}
@@ -12425,7 +12717,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprAsteriskContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1464);
+ setState(1492);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12433,25 +12725,25 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -22520283327905794) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576778619) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 107) != 0)) {
- setState(1461);
+ setState(1489);
tableIdentifier();
- setState(1462);
+ setState(1490);
match(HogQLParser::DOT);
}
- setState(1466);
+ setState(1494);
match(HogQLParser::ASTERISK);
- setState(1472);
+ setState(1500);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 180, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 183, _ctx)) {
case 1: {
- setState(1467);
+ setState(1495);
match(HogQLParser::EXCLUDE);
- setState(1468);
+ setState(1496);
match(HogQLParser::LPAREN);
- setState(1469);
+ setState(1497);
identifierList();
- setState(1470);
+ setState(1498);
match(HogQLParser::RPAREN);
break;
}
@@ -12466,36 +12758,36 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprColonLambdaContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1474);
+ setState(1502);
match(HogQLParser::LAMBDA);
- setState(1475);
+ setState(1503);
identifier();
- setState(1480);
+ setState(1508);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 181, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 184, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1476);
+ setState(1504);
match(HogQLParser::COMMA);
- setState(1477);
+ setState(1505);
identifier();
}
- setState(1482);
+ setState(1510);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 181, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 184, _ctx);
}
- setState(1484);
+ setState(1512);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1483);
+ setState(1511);
match(HogQLParser::COMMA);
}
- setState(1486);
+ setState(1514);
match(HogQLParser::COLON);
- setState(1487);
- columnExpr(10);
+ setState(1515);
+ columnExpr(0);
break;
}
@@ -12503,11 +12795,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprSubqueryContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1489);
+ setState(1517);
match(HogQLParser::LPAREN);
- setState(1490);
+ setState(1518);
selectSetStmt();
- setState(1491);
+ setState(1519);
match(HogQLParser::RPAREN);
break;
}
@@ -12516,11 +12808,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprParensContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1493);
+ setState(1521);
match(HogQLParser::LPAREN);
- setState(1494);
+ setState(1522);
columnExpr(0);
- setState(1495);
+ setState(1523);
match(HogQLParser::RPAREN);
break;
}
@@ -12529,11 +12821,11 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprTupleContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1497);
+ setState(1525);
match(HogQLParser::LPAREN);
- setState(1498);
+ setState(1526);
columnExprList();
- setState(1499);
+ setState(1527);
match(HogQLParser::RPAREN);
break;
}
@@ -12542,17 +12834,17 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprArrayContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1502);
+ setState(1530);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::ARRAY) {
- setState(1501);
+ setState(1529);
match(HogQLParser::ARRAY);
}
- setState(1504);
+ setState(1532);
match(HogQLParser::LBRACKET);
- setState(1506);
+ setState(1534);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12560,10 +12852,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1505);
+ setState(1533);
columnExprList();
}
- setState(1508);
+ setState(1536);
match(HogQLParser::RBRACKET);
break;
}
@@ -12572,9 +12864,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprDictContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1509);
+ setState(1537);
match(HogQLParser::LBRACE);
- setState(1511);
+ setState(1539);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -12582,10 +12874,10 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1510);
+ setState(1538);
kvPairList();
}
- setState(1513);
+ setState(1541);
match(HogQLParser::RBRACE);
break;
}
@@ -12594,7 +12886,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprLambdaContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1514);
+ setState(1542);
columnLambdaExpr();
break;
}
@@ -12603,12 +12895,12 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprNamedArgContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1515);
+ setState(1543);
identifier();
- setState(1516);
+ setState(1544);
match(HogQLParser::COLONEQUALS);
- setState(1517);
- columnExpr(3);
+ setState(1545);
+ columnExpr(0);
break;
}
@@ -12616,9 +12908,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprPositionalContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1519);
+ setState(1547);
match(HogQLParser::HASH);
- setState(1520);
+ setState(1548);
match(HogQLParser::DECIMAL_LITERAL);
break;
}
@@ -12627,7 +12919,7 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
_localctx = _tracker.createInstance<ColumnExprIdentifierContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1521);
+ setState(1549);
columnIdentifier();
break;
}
@@ -12636,42 +12928,42 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
break;
}
_ctx->stop = _input->LT(-1);
- setState(1665);
+ setState(1675);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 201, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 203, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
if (!_parseListeners.empty())
triggerExitRuleEvent();
previousContext = _localctx;
- setState(1663);
+ setState(1673);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 200, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 202, _ctx)) {
case 1: {
- auto newContext = _tracker.createInstance<ColumnExprPrecedence1Context>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprPrecedence1Context>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
newContext->left = previousContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1524);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1552);
- if (!(precpred(_ctx, 25))) throw FailedPredicateException(this, "precpred(_ctx, 25)");
- setState(1528);
+ if (!(precpred(_ctx, 21))) throw FailedPredicateException(this, "precpred(_ctx, 21)");
+ setState(1556);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::ASTERISK: {
- setState(1525);
+ setState(1553);
antlrcpp::downCast<ColumnExprPrecedence1Context *>(_localctx)->operator_ = match(HogQLParser::ASTERISK);
break;
}
case HogQLParser::SLASH: {
- setState(1526);
+ setState(1554);
antlrcpp::downCast<ColumnExprPrecedence1Context *>(_localctx)->operator_ = match(HogQLParser::SLASH);
break;
}
case HogQLParser::PERCENT: {
- setState(1527);
+ setState(1555);
antlrcpp::downCast<ColumnExprPrecedence1Context *>(_localctx)->operator_ = match(HogQLParser::PERCENT);
break;
}
@@ -12679,36 +12971,36 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
throw NoViableAltException(this);
}
- setState(1530);
- antlrcpp::downCast<ColumnExprPrecedence1Context *>(_localctx)->right = columnExpr(26);
+ setState(1558);
+ antlrcpp::downCast<ColumnExprPrecedence1Context *>(_localctx)->right = columnExprValue(22);
break;
}
case 2: {
- auto newContext = _tracker.createInstance<ColumnExprPrecedence2Context>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprPrecedence2Context>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
newContext->left = previousContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1531);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1559);
- if (!(precpred(_ctx, 24))) throw FailedPredicateException(this, "precpred(_ctx, 24)");
- setState(1535);
+ if (!(precpred(_ctx, 20))) throw FailedPredicateException(this, "precpred(_ctx, 20)");
+ setState(1563);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::PLUS: {
- setState(1532);
+ setState(1560);
antlrcpp::downCast<ColumnExprPrecedence2Context *>(_localctx)->operator_ = match(HogQLParser::PLUS);
break;
}
case HogQLParser::DASH: {
- setState(1533);
+ setState(1561);
antlrcpp::downCast<ColumnExprPrecedence2Context *>(_localctx)->operator_ = match(HogQLParser::DASH);
break;
}
case HogQLParser::CONCAT: {
- setState(1534);
+ setState(1562);
antlrcpp::downCast<ColumnExprPrecedence2Context *>(_localctx)->operator_ = match(HogQLParser::CONCAT);
break;
}
@@ -12716,81 +13008,81 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
throw NoViableAltException(this);
}
- setState(1537);
- antlrcpp::downCast<ColumnExprPrecedence2Context *>(_localctx)->right = columnExpr(25);
+ setState(1565);
+ antlrcpp::downCast<ColumnExprPrecedence2Context *>(_localctx)->right = columnExprValue(21);
break;
}
case 3: {
- auto newContext = _tracker.createInstance<ColumnExprPrecedence3Context>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprPrecedence3Context>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
newContext->left = previousContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1538);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1566);
- if (!(precpred(_ctx, 23))) throw FailedPredicateException(this, "precpred(_ctx, 23)");
- setState(1563);
+ if (!(precpred(_ctx, 19))) throw FailedPredicateException(this, "precpred(_ctx, 19)");
+ setState(1591);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 192, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 195, _ctx)) {
case 1: {
- setState(1539);
+ setState(1567);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::EQ_DOUBLE);
break;
}
case 2: {
- setState(1540);
+ setState(1568);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::EQ_SINGLE);
break;
}
case 3: {
- setState(1541);
+ setState(1569);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::NOT_EQ);
break;
}
case 4: {
- setState(1542);
+ setState(1570);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::LT_EQ);
break;
}
case 5: {
- setState(1543);
+ setState(1571);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::LT);
break;
}
case 6: {
- setState(1544);
+ setState(1572);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::GT_EQ);
break;
}
case 7: {
- setState(1545);
+ setState(1573);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::GT);
break;
}
case 8: {
- setState(1547);
+ setState(1575);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NOT) {
- setState(1546);
+ setState(1574);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::NOT);
}
- setState(1549);
+ setState(1577);
match(HogQLParser::IN);
- setState(1551);
+ setState(1579);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 190, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 193, _ctx)) {
case 1: {
- setState(1550);
+ setState(1578);
match(HogQLParser::COHORT);
break;
}
@@ -12802,15 +13094,15 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
}
case 9: {
- setState(1554);
+ setState(1582);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NOT) {
- setState(1553);
+ setState(1581);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::NOT);
}
- setState(1556);
+ setState(1584);
_la = _input->LA(1);
if (!(_la == HogQLParser::ILIKE
@@ -12825,37 +13117,37 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
}
case 10: {
- setState(1557);
+ setState(1585);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::REGEX_SINGLE);
break;
}
case 11: {
- setState(1558);
+ setState(1586);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::REGEX_DOUBLE);
break;
}
case 12: {
- setState(1559);
+ setState(1587);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::NOT_REGEX);
break;
}
case 13: {
- setState(1560);
+ setState(1588);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::IREGEX_SINGLE);
break;
}
case 14: {
- setState(1561);
+ setState(1589);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::IREGEX_DOUBLE);
break;
}
case 15: {
- setState(1562);
+ setState(1590);
antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->operator_ = match(HogQLParser::NOT_IREGEX);
break;
}
@@ -12863,163 +13155,117 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
default:
break;
}
- setState(1565);
- antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->right = columnExpr(24);
+ setState(1593);
+ antlrcpp::downCast<ColumnExprPrecedence3Context *>(_localctx)->right = columnExprValue(20);
break;
}
case 4: {
- auto newContext = _tracker.createInstance<ColumnExprIsDistinctFromContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprIsDistinctFromContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1566);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1594);
- if (!(precpred(_ctx, 20))) throw FailedPredicateException(this, "precpred(_ctx, 20)");
- setState(1567);
+ if (!(precpred(_ctx, 16))) throw FailedPredicateException(this, "precpred(_ctx, 16)");
+ setState(1595);
match(HogQLParser::IS);
- setState(1569);
+ setState(1597);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NOT) {
- setState(1568);
+ setState(1596);
match(HogQLParser::NOT);
}
- setState(1571);
+ setState(1599);
match(HogQLParser::DISTINCT);
- setState(1572);
+ setState(1600);
match(HogQLParser::FROM);
- setState(1573);
- columnExpr(21);
+ setState(1601);
+ columnExprValue(17);
break;
}
case 5: {
- auto newContext = _tracker.createInstance<ColumnExprNullSafeEqContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprNullSafeEqContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1574);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1602);
- if (!(precpred(_ctx, 19))) throw FailedPredicateException(this, "precpred(_ctx, 19)");
- setState(1575);
+ if (!(precpred(_ctx, 15))) throw FailedPredicateException(this, "precpred(_ctx, 15)");
+ setState(1603);
match(HogQLParser::NULL_SAFE_EQ);
- setState(1576);
- columnExpr(20);
+ setState(1604);
+ columnExprValue(16);
break;
}
case 6: {
- auto newContext = _tracker.createInstance<ColumnExprNullishContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprNullishContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1577);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1605);
- if (!(precpred(_ctx, 18))) throw FailedPredicateException(this, "precpred(_ctx, 18)");
- setState(1578);
+ if (!(precpred(_ctx, 14))) throw FailedPredicateException(this, "precpred(_ctx, 14)");
+ setState(1606);
match(HogQLParser::NULLISH);
- setState(1579);
- columnExpr(19);
+ setState(1607);
+ columnExprValue(15);
break;
}
case 7: {
- auto newContext = _tracker.createInstance<ColumnExprAndContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1580);
-
- if (!(precpred(_ctx, 16))) throw FailedPredicateException(this, "precpred(_ctx, 16)");
- setState(1581);
- match(HogQLParser::AND);
- setState(1582);
- columnExpr(17);
- break;
- }
-
- case 8: {
- auto newContext = _tracker.createInstance<ColumnExprOrContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ auto newContext = _tracker.createInstance<ColumnExprBetweenContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1583);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1608);
- if (!(precpred(_ctx, 15))) throw FailedPredicateException(this, "precpred(_ctx, 15)");
- setState(1584);
- match(HogQLParser::OR);
- setState(1585);
- columnExpr(16);
- break;
- }
-
- case 9: {
- auto newContext = _tracker.createInstance<ColumnExprBetweenContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1586);
-
- if (!(precpred(_ctx, 14))) throw FailedPredicateException(this, "precpred(_ctx, 14)");
- setState(1588);
+ if (!(precpred(_ctx, 13))) throw FailedPredicateException(this, "precpred(_ctx, 13)");
+ setState(1610);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NOT) {
- setState(1587);
+ setState(1609);
match(HogQLParser::NOT);
}
- setState(1590);
+ setState(1612);
match(HogQLParser::BETWEEN);
- setState(1591);
- columnExpr(0);
- setState(1592);
+ setState(1613);
+ columnExprValue(0);
+ setState(1614);
match(HogQLParser::AND);
- setState(1593);
- columnExpr(15);
- break;
- }
-
- case 10: {
- auto newContext = _tracker.createInstance<ColumnExprTernaryOpContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1595);
-
- if (!(precpred(_ctx, 13))) throw FailedPredicateException(this, "precpred(_ctx, 13)");
- setState(1596);
- match(HogQLParser::QUERY);
- setState(1597);
- columnExpr(0);
- setState(1598);
- match(HogQLParser::COLON);
- setState(1599);
- columnExpr(13);
+ setState(1615);
+ columnExprValue(14);
break;
}
- case 11: {
- auto newContext = _tracker.createInstance<ColumnExprCallSelectContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ case 8: {
+ auto newContext = _tracker.createInstance<ColumnExprCallSelectContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1601);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1617);
- if (!(precpred(_ctx, 39))) throw FailedPredicateException(this, "precpred(_ctx, 39)");
- setState(1602);
+ if (!(precpred(_ctx, 35))) throw FailedPredicateException(this, "precpred(_ctx, 35)");
+ setState(1618);
match(HogQLParser::LPAREN);
- setState(1603);
+ setState(1619);
selectSetStmt();
- setState(1604);
+ setState(1620);
match(HogQLParser::RPAREN);
break;
}
- case 12: {
- auto newContext = _tracker.createInstance<ColumnExprCallContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ case 9: {
+ auto newContext = _tracker.createInstance<ColumnExprCallContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1606);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1622);
- if (!(precpred(_ctx, 38))) throw FailedPredicateException(this, "precpred(_ctx, 38)");
- setState(1607);
+ if (!(precpred(_ctx, 34))) throw FailedPredicateException(this, "precpred(_ctx, 34)");
+ setState(1623);
match(HogQLParser::LPAREN);
- setState(1609);
+ setState(1625);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -13027,40 +13273,40 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1608);
+ setState(1624);
columnExprList();
}
- setState(1611);
+ setState(1627);
match(HogQLParser::RPAREN);
break;
}
- case 13: {
- auto newContext = _tracker.createInstance<ColumnExprArrayAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ case 10: {
+ auto newContext = _tracker.createInstance<ColumnExprArrayAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1612);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1628);
- if (!(precpred(_ctx, 34))) throw FailedPredicateException(this, "precpred(_ctx, 34)");
- setState(1613);
+ if (!(precpred(_ctx, 30))) throw FailedPredicateException(this, "precpred(_ctx, 30)");
+ setState(1629);
match(HogQLParser::LBRACKET);
- setState(1614);
+ setState(1630);
columnExpr(0);
- setState(1615);
+ setState(1631);
match(HogQLParser::RBRACKET);
break;
}
- case 14: {
- auto newContext = _tracker.createInstance<ColumnExprArraySliceContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
+ case 11: {
+ auto newContext = _tracker.createInstance<ColumnExprArraySliceContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
_localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1617);
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1633);
- if (!(precpred(_ctx, 33))) throw FailedPredicateException(this, "precpred(_ctx, 33)");
- setState(1618);
+ if (!(precpred(_ctx, 29))) throw FailedPredicateException(this, "precpred(_ctx, 29)");
+ setState(1634);
match(HogQLParser::LBRACKET);
- setState(1620);
+ setState(1636);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -13068,296 +13314,148 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1619);
+ setState(1635);
columnExpr(0);
}
- setState(1622);
+ setState(1638);
match(HogQLParser::COLON);
- setState(1624);
- _errHandler->sync(this);
-
- _la = _input->LA(1);
- if ((((_la & ~ 0x3fULL) == 0) &&
- ((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
- ((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
- ((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1623);
- columnExpr(0);
- }
- setState(1626);
- match(HogQLParser::RBRACKET);
- break;
- }
-
- case 15: {
- auto newContext = _tracker.createInstance<ColumnExprTupleAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1627);
-
- if (!(precpred(_ctx, 32))) throw FailedPredicateException(this, "precpred(_ctx, 32)");
- setState(1628);
- match(HogQLParser::DOT);
- setState(1629);
- match(HogQLParser::DECIMAL_LITERAL);
- break;
- }
-
- case 16: {
- auto newContext = _tracker.createInstance<ColumnExprPropertyAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1630);
-
- if (!(precpred(_ctx, 31))) throw FailedPredicateException(this, "precpred(_ctx, 31)");
- setState(1631);
- match(HogQLParser::DOT);
- setState(1632);
- identifier();
- break;
- }
-
- case 17: {
- auto newContext = _tracker.createInstance<ColumnExprNullArrayAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1633);
-
- if (!(precpred(_ctx, 30))) throw FailedPredicateException(this, "precpred(_ctx, 30)");
- setState(1634);
- match(HogQLParser::NULL_PROPERTY);
- setState(1635);
- match(HogQLParser::LBRACKET);
- setState(1636);
- columnExpr(0);
- setState(1637);
- match(HogQLParser::RBRACKET);
- break;
- }
-
- case 18: {
- auto newContext = _tracker.createInstance<ColumnExprNullTupleAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1639);
-
- if (!(precpred(_ctx, 29))) throw FailedPredicateException(this, "precpred(_ctx, 29)");
setState(1640);
- match(HogQLParser::NULL_PROPERTY);
- setState(1641);
- match(HogQLParser::DECIMAL_LITERAL);
- break;
- }
-
- case 19: {
- auto newContext = _tracker.createInstance<ColumnExprNullPropertyAccessContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1642);
-
- if (!(precpred(_ctx, 28))) throw FailedPredicateException(this, "precpred(_ctx, 28)");
- setState(1643);
- match(HogQLParser::NULL_PROPERTY);
- setState(1644);
- identifier();
- break;
- }
-
- case 20: {
- auto newContext = _tracker.createInstance<ColumnExprTypeCastContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1645);
-
- if (!(precpred(_ctx, 27))) throw FailedPredicateException(this, "precpred(_ctx, 27)");
- setState(1646);
- match(HogQLParser::DOUBLECOLON);
- setState(1647);
- columnTypeCastExpr();
- break;
- }
-
- case 21: {
- auto newContext = _tracker.createInstance<ColumnExprIgnoreNullsContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1648);
-
- if (!(precpred(_ctx, 22))) throw FailedPredicateException(this, "precpred(_ctx, 22)");
- setState(1649);
- match(HogQLParser::IGNORE);
- setState(1650);
- match(HogQLParser::NULLS);
- break;
- }
-
- case 22: {
- auto newContext = _tracker.createInstance<ColumnExprIsNullContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1651);
-
- if (!(precpred(_ctx, 21))) throw FailedPredicateException(this, "precpred(_ctx, 21)");
- setState(1652);
- match(HogQLParser::IS);
- setState(1654);
_errHandler->sync(this);
_la = _input->LA(1);
- if (_la == HogQLParser::NOT) {
- setState(1653);
- match(HogQLParser::NOT);
- }
- setState(1656);
- match(HogQLParser::NULL_SQL);
- break;
- }
-
- case 23: {
- auto newContext = _tracker.createInstance<ColumnExprAliasContext>(_tracker.createInstance<ColumnExprContext>(parentContext, parentState));
- _localctx = newContext;
- pushNewRecursionContext(newContext, startState, RuleColumnExpr);
- setState(1657);
-
- if (!(precpred(_ctx, 12))) throw FailedPredicateException(this, "precpred(_ctx, 12)");
- setState(1658);
- match(HogQLParser::AS);
- setState(1661);
- _errHandler->sync(this);
- switch (_input->LA(1)) {
- case HogQLParser::ALL:
- case HogQLParser::AND:
- case HogQLParser::ANTI:
- case HogQLParser::ANY:
- case HogQLParser::ARRAY:
- case HogQLParser::AS:
- case HogQLParser::ASCENDING:
- case HogQLParser::ASOF:
- case HogQLParser::BETWEEN:
- case HogQLParser::BOTH:
- case HogQLParser::BY:
- case HogQLParser::CASE:
- case HogQLParser::CAST:
- case HogQLParser::COHORT:
- case HogQLParser::COLLATE:
- case HogQLParser::COLUMNS:
- case HogQLParser::CROSS:
- case HogQLParser::CUBE:
- case HogQLParser::CURRENT:
- case HogQLParser::DATE:
- case HogQLParser::DAY:
- case HogQLParser::DESC:
- case HogQLParser::DESCENDING:
- case HogQLParser::DISTINCT:
- case HogQLParser::ELSE:
- case HogQLParser::END:
- case HogQLParser::EXCLUDE:
- case HogQLParser::EXTRACT:
- case HogQLParser::FINAL:
- case HogQLParser::FILL:
- case HogQLParser::FILTER:
- case HogQLParser::FIRST:
- case HogQLParser::FOLLOWING:
- case HogQLParser::FOR:
- case HogQLParser::FROM:
- case HogQLParser::FULL:
- case HogQLParser::GROUP:
- case HogQLParser::GROUPING:
- case HogQLParser::HAVING:
- case HogQLParser::HOUR:
- case HogQLParser::ID:
- case HogQLParser::IF:
- case HogQLParser::ILIKE:
- case HogQLParser::IGNORE:
- case HogQLParser::INCLUDE:
- case HogQLParser::IN:
- case HogQLParser::INNER:
- case HogQLParser::INTERPOLATE:
- case HogQLParser::INTERVAL:
- case HogQLParser::IS:
- case HogQLParser::JOIN:
- case HogQLParser::KEY:
- case HogQLParser::LAMBDA:
- case HogQLParser::LAST:
- case HogQLParser::LEADING:
- case HogQLParser::LEFT:
- case HogQLParser::LIKE:
- case HogQLParser::LIMIT:
- case HogQLParser::MINUTE:
- case HogQLParser::MONTH:
- case HogQLParser::NAME:
- case HogQLParser::NATURAL:
- case HogQLParser::NOT:
- case HogQLParser::NULLS:
- case HogQLParser::OFFSET:
- case HogQLParser::ON:
- case HogQLParser::OR:
- case HogQLParser::ORDER:
- case HogQLParser::OUTER:
- case HogQLParser::OVER:
- case HogQLParser::PARTITION:
- case HogQLParser::PIVOT:
- case HogQLParser::POSITIONAL:
- case HogQLParser::PRECEDING:
- case HogQLParser::PREWHERE:
- case HogQLParser::QUALIFY:
- case HogQLParser::QUARTER:
- case HogQLParser::RANGE:
- case HogQLParser::RECURSIVE:
- case HogQLParser::REPLACE:
- case HogQLParser::RETURN:
- case HogQLParser::RIGHT:
- case HogQLParser::ROLLUP:
- case HogQLParser::ROW:
- case HogQLParser::ROWS:
- case HogQLParser::SAMPLE:
- case HogQLParser::SECOND:
- case HogQLParser::SELECT:
- case HogQLParser::SEMI:
- case HogQLParser::SETS:
- case HogQLParser::SETTINGS:
- case HogQLParser::STEP:
- case HogQLParser::SUBSTRING:
- case HogQLParser::THEN:
- case HogQLParser::TIES:
- case HogQLParser::TIMESTAMP:
- case HogQLParser::TIME:
- case HogQLParser::LOCAL:
- case HogQLParser::ZONE:
- case HogQLParser::TO:
- case HogQLParser::TOP:
- case HogQLParser::TOTALS:
- case HogQLParser::TRAILING:
- case HogQLParser::TRIM:
- case HogQLParser::TRUNCATE:
- case HogQLParser::TRY_CAST:
- case HogQLParser::UNBOUNDED:
- case HogQLParser::UNION:
- case HogQLParser::UNPIVOT:
- case HogQLParser::USING:
- case HogQLParser::VALUES:
- case HogQLParser::WEEK:
- case HogQLParser::WHEN:
- case HogQLParser::WHERE:
- case HogQLParser::WINDOW:
- case HogQLParser::WITH:
- case HogQLParser::YEAR:
- case HogQLParser::IDENTIFIER:
- case HogQLParser::QUOTED_IDENTIFIER: {
- setState(1659);
- identifier();
- break;
- }
+ if ((((_la & ~ 0x3fULL) == 0) &&
+ ((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
+ ((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
+ ((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
+ setState(1639);
+ columnExpr(0);
+ }
+ setState(1642);
+ match(HogQLParser::RBRACKET);
+ break;
+ }
- case HogQLParser::STRING_LITERAL: {
- setState(1660);
- match(HogQLParser::STRING_LITERAL);
- break;
- }
+ case 12: {
+ auto newContext = _tracker.createInstance<ColumnExprTupleAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1643);
- default:
- throw NoViableAltException(this);
+ if (!(precpred(_ctx, 28))) throw FailedPredicateException(this, "precpred(_ctx, 28)");
+ setState(1644);
+ match(HogQLParser::DOT);
+ setState(1645);
+ match(HogQLParser::DECIMAL_LITERAL);
+ break;
+ }
+
+ case 13: {
+ auto newContext = _tracker.createInstance<ColumnExprPropertyAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1646);
+
+ if (!(precpred(_ctx, 27))) throw FailedPredicateException(this, "precpred(_ctx, 27)");
+ setState(1647);
+ match(HogQLParser::DOT);
+ setState(1648);
+ identifier();
+ break;
+ }
+
+ case 14: {
+ auto newContext = _tracker.createInstance<ColumnExprNullArrayAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1649);
+
+ if (!(precpred(_ctx, 26))) throw FailedPredicateException(this, "precpred(_ctx, 26)");
+ setState(1650);
+ match(HogQLParser::NULL_PROPERTY);
+ setState(1651);
+ match(HogQLParser::LBRACKET);
+ setState(1652);
+ columnExpr(0);
+ setState(1653);
+ match(HogQLParser::RBRACKET);
+ break;
+ }
+
+ case 15: {
+ auto newContext = _tracker.createInstance<ColumnExprNullTupleAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1655);
+
+ if (!(precpred(_ctx, 25))) throw FailedPredicateException(this, "precpred(_ctx, 25)");
+ setState(1656);
+ match(HogQLParser::NULL_PROPERTY);
+ setState(1657);
+ match(HogQLParser::DECIMAL_LITERAL);
+ break;
+ }
+
+ case 16: {
+ auto newContext = _tracker.createInstance<ColumnExprNullPropertyAccessContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1658);
+
+ if (!(precpred(_ctx, 24))) throw FailedPredicateException(this, "precpred(_ctx, 24)");
+ setState(1659);
+ match(HogQLParser::NULL_PROPERTY);
+ setState(1660);
+ identifier();
+ break;
+ }
+
+ case 17: {
+ auto newContext = _tracker.createInstance<ColumnExprTypeCastContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1661);
+
+ if (!(precpred(_ctx, 23))) throw FailedPredicateException(this, "precpred(_ctx, 23)");
+ setState(1662);
+ match(HogQLParser::DOUBLECOLON);
+ setState(1663);
+ columnTypeCastExpr();
+ break;
+ }
+
+ case 18: {
+ auto newContext = _tracker.createInstance<ColumnExprIgnoreNullsContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1664);
+
+ if (!(precpred(_ctx, 18))) throw FailedPredicateException(this, "precpred(_ctx, 18)");
+ setState(1665);
+ match(HogQLParser::IGNORE);
+ setState(1666);
+ match(HogQLParser::NULLS);
+ break;
+ }
+
+ case 19: {
+ auto newContext = _tracker.createInstance<ColumnExprIsNullContext>(_tracker.createInstance<ColumnExprValueContext>(parentContext, parentState));
+ _localctx = newContext;
+ pushNewRecursionContext(newContext, startState, RuleColumnExprValue);
+ setState(1667);
+
+ if (!(precpred(_ctx, 17))) throw FailedPredicateException(this, "precpred(_ctx, 17)");
+ setState(1668);
+ match(HogQLParser::IS);
+ setState(1670);
+ _errHandler->sync(this);
+
+ _la = _input->LA(1);
+ if (_la == HogQLParser::NOT) {
+ setState(1669);
+ match(HogQLParser::NOT);
}
+ setState(1672);
+ match(HogQLParser::NULL_SQL);
break;
}
@@ -13365,9 +13463,9 @@ HogQLParser::ColumnExprContext* HogQLParser::columnExpr(int precedence) {
break;
}
}
- setState(1667);
+ setState(1677);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 201, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 203, _ctx);
}
}
catch (RecognitionException &e) {
@@ -13481,7 +13579,7 @@ std::any HogQLParser::ColonLambdaContext::accept(tree::ParseTreeVisitor *visitor
}
HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() {
ColumnLambdaExprContext *_localctx = _tracker.createInstance<ColumnLambdaExprContext>(_ctx, getState());
- enterRule(_localctx, 156, HogQLParser::RuleColumnLambdaExpr);
+ enterRule(_localctx, 158, HogQLParser::RuleColumnLambdaExpr);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -13493,79 +13591,79 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() {
});
try {
size_t alt;
- setState(1717);
+ setState(1727);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 210, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 212, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::ArrowLambdaContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1695);
+ setState(1705);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 206, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 208, _ctx)) {
case 1: {
- setState(1668);
+ setState(1678);
match(HogQLParser::LPAREN);
- setState(1669);
+ setState(1679);
identifier();
- setState(1674);
+ setState(1684);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 202, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 204, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1670);
+ setState(1680);
match(HogQLParser::COMMA);
- setState(1671);
+ setState(1681);
identifier();
}
- setState(1676);
+ setState(1686);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 202, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 204, _ctx);
}
- setState(1678);
+ setState(1688);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1677);
+ setState(1687);
match(HogQLParser::COMMA);
}
- setState(1680);
+ setState(1690);
match(HogQLParser::RPAREN);
break;
}
case 2: {
- setState(1682);
+ setState(1692);
identifier();
- setState(1687);
+ setState(1697);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 204, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 206, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1683);
+ setState(1693);
match(HogQLParser::COMMA);
- setState(1684);
+ setState(1694);
identifier();
}
- setState(1689);
+ setState(1699);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 204, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 206, _ctx);
}
- setState(1691);
+ setState(1701);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1690);
+ setState(1700);
match(HogQLParser::COMMA);
}
break;
}
case 3: {
- setState(1693);
+ setState(1703);
match(HogQLParser::LPAREN);
- setState(1694);
+ setState(1704);
match(HogQLParser::RPAREN);
break;
}
@@ -13573,19 +13671,19 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() {
default:
break;
}
- setState(1697);
+ setState(1707);
match(HogQLParser::ARROW);
- setState(1700);
+ setState(1710);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 207, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 209, _ctx)) {
case 1: {
- setState(1698);
+ setState(1708);
columnExpr(0);
break;
}
case 2: {
- setState(1699);
+ setState(1709);
block();
break;
}
@@ -13599,35 +13697,35 @@ HogQLParser::ColumnLambdaExprContext* HogQLParser::columnLambdaExpr() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::ColonLambdaContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1702);
+ setState(1712);
match(HogQLParser::LAMBDA);
- setState(1703);
+ setState(1713);
identifier();
- setState(1708);
+ setState(1718);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 208, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 210, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1704);
+ setState(1714);
match(HogQLParser::COMMA);
- setState(1705);
+ setState(1715);
identifier();
}
- setState(1710);
+ setState(1720);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 208, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 210, _ctx);
}
- setState(1712);
+ setState(1722);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1711);
+ setState(1721);
match(HogQLParser::COMMA);
}
- setState(1714);
+ setState(1724);
match(HogQLParser::COLON);
- setState(1715);
+ setState(1725);
columnExpr(0);
break;
}
@@ -13683,7 +13781,7 @@ std::any HogQLParser::ColumnsReplaceListContext::accept(tree::ParseTreeVisitor *
HogQLParser::ColumnsReplaceListContext* HogQLParser::columnsReplaceList() {
ColumnsReplaceListContext *_localctx = _tracker.createInstance<ColumnsReplaceListContext>(_ctx, getState());
- enterRule(_localctx, 158, HogQLParser::RuleColumnsReplaceList);
+ enterRule(_localctx, 160, HogQLParser::RuleColumnsReplaceList);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -13695,17 +13793,17 @@ HogQLParser::ColumnsReplaceListContext* HogQLParser::columnsReplaceList() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1719);
+ setState(1729);
columnsReplaceItem();
- setState(1724);
+ setState(1734);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(1720);
+ setState(1730);
match(HogQLParser::COMMA);
- setState(1721);
+ setState(1731);
columnsReplaceItem();
- setState(1726);
+ setState(1736);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -13753,7 +13851,7 @@ std::any HogQLParser::ColumnsReplaceItemContext::accept(tree::ParseTreeVisitor *
HogQLParser::ColumnsReplaceItemContext* HogQLParser::columnsReplaceItem() {
ColumnsReplaceItemContext *_localctx = _tracker.createInstance<ColumnsReplaceItemContext>(_ctx, getState());
- enterRule(_localctx, 160, HogQLParser::RuleColumnsReplaceItem);
+ enterRule(_localctx, 162, HogQLParser::RuleColumnsReplaceItem);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -13764,11 +13862,11 @@ HogQLParser::ColumnsReplaceItemContext* HogQLParser::columnsReplaceItem() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1727);
+ setState(1737);
columnExpr(0);
- setState(1728);
+ setState(1738);
match(HogQLParser::AS);
- setState(1729);
+ setState(1739);
identifier();
}
@@ -13822,7 +13920,7 @@ std::any HogQLParser::HogqlxChildElementContext::accept(tree::ParseTreeVisitor *
HogQLParser::HogqlxChildElementContext* HogQLParser::hogqlxChildElement() {
HogqlxChildElementContext *_localctx = _tracker.createInstance<HogqlxChildElementContext>(_ctx, getState());
- enterRule(_localctx, 162, HogQLParser::RuleHogqlxChildElement);
+ enterRule(_localctx, 164, HogQLParser::RuleHogqlxChildElement);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -13832,30 +13930,30 @@ HogQLParser::HogqlxChildElementContext* HogQLParser::hogqlxChildElement() {
exitRule();
});
try {
- setState(1737);
+ setState(1747);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::LT: {
enterOuterAlt(_localctx, 1);
- setState(1731);
+ setState(1741);
hogqlxTagElement();
break;
}
case HogQLParser::HOGQLX_TEXT_TEXT: {
enterOuterAlt(_localctx, 2);
- setState(1732);
+ setState(1742);
hogqlxText();
break;
}
case HogQLParser::LBRACE: {
enterOuterAlt(_localctx, 3);
- setState(1733);
+ setState(1743);
match(HogQLParser::LBRACE);
- setState(1734);
+ setState(1744);
columnExpr(0);
- setState(1735);
+ setState(1745);
match(HogQLParser::RBRACE);
break;
}
@@ -13899,7 +13997,7 @@ std::any HogQLParser::HogqlxTextContext::accept(tree::ParseTreeVisitor *visitor)
HogQLParser::HogqlxTextContext* HogQLParser::hogqlxText() {
HogqlxTextContext *_localctx = _tracker.createInstance<HogqlxTextContext>(_ctx, getState());
- enterRule(_localctx, 164, HogQLParser::RuleHogqlxText);
+ enterRule(_localctx, 166, HogQLParser::RuleHogqlxText);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -13910,7 +14008,7 @@ HogQLParser::HogqlxTextContext* HogQLParser::hogqlxText() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1739);
+ setState(1749);
match(HogQLParser::HOGQLX_TEXT_TEXT);
}
@@ -14022,7 +14120,7 @@ std::any HogQLParser::HogqlxTagElementNestedContext::accept(tree::ParseTreeVisit
}
HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() {
HogqlxTagElementContext *_localctx = _tracker.createInstance<HogqlxTagElementContext>(_ctx, getState());
- enterRule(_localctx, 166, HogQLParser::RuleHogqlxTagElement);
+ enterRule(_localctx, 168, HogQLParser::RuleHogqlxTagElement);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -14033,30 +14131,30 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() {
exitRule();
});
try {
- setState(1770);
+ setState(1780);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 216, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 218, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::HogqlxTagElementClosedContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1741);
+ setState(1751);
match(HogQLParser::LT);
- setState(1742);
+ setState(1752);
identifier();
- setState(1746);
+ setState(1756);
_errHandler->sync(this);
_la = _input->LA(1);
while ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -22520283327905794) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576778619) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 107) != 0)) {
- setState(1743);
+ setState(1753);
hogqlxTagAttribute();
- setState(1748);
+ setState(1758);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(1749);
+ setState(1759);
match(HogQLParser::SLASH_GT);
break;
}
@@ -14064,41 +14162,41 @@ HogQLParser::HogqlxTagElementContext* HogQLParser::hogqlxTagElement() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::HogqlxTagElementNestedContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1751);
+ setState(1761);
match(HogQLParser::LT);
- setState(1752);
+ setState(1762);
identifier();
- setState(1756);
+ setState(1766);
_errHandler->sync(this);
_la = _input->LA(1);
while ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -22520283327905794) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576778619) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 107) != 0)) {
- setState(1753);
+ setState(1763);
hogqlxTagAttribute();
- setState(1758);
+ setState(1768);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(1759);
+ setState(1769);
match(HogQLParser::GT);
- setState(1763);
+ setState(1773);
_errHandler->sync(this);
_la = _input->LA(1);
while (((((_la - 163) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 163)) & 8796093022241) != 0)) {
- setState(1760);
+ setState(1770);
hogqlxChildElement();
- setState(1765);
+ setState(1775);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(1766);
+ setState(1776);
match(HogQLParser::LT_SLASH);
- setState(1767);
+ setState(1777);
identifier();
- setState(1768);
+ setState(1778);
match(HogQLParser::GT);
break;
}
@@ -14162,7 +14260,7 @@ std::any HogQLParser::HogqlxTagAttributeContext::accept(tree::ParseTreeVisitor *
HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() {
HogqlxTagAttributeContext *_localctx = _tracker.createInstance<HogqlxTagAttributeContext>(_ctx, getState());
- enterRule(_localctx, 168, HogQLParser::RuleHogqlxTagAttribute);
+ enterRule(_localctx, 170, HogQLParser::RuleHogqlxTagAttribute);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -14172,38 +14270,38 @@ HogQLParser::HogqlxTagAttributeContext* HogQLParser::hogqlxTagAttribute() {
exitRule();
});
try {
- setState(1783);
+ setState(1793);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 217, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 219, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(1772);
+ setState(1782);
identifier();
- setState(1773);
+ setState(1783);
match(HogQLParser::EQ_SINGLE);
- setState(1774);
+ setState(1784);
string();
break;
}
case 2: {
enterOuterAlt(_localctx, 2);
- setState(1776);
+ setState(1786);
identifier();
- setState(1777);
+ setState(1787);
match(HogQLParser::EQ_SINGLE);
- setState(1778);
+ setState(1788);
match(HogQLParser::LBRACE);
- setState(1779);
+ setState(1789);
columnExpr(0);
- setState(1780);
+ setState(1790);
match(HogQLParser::RBRACE);
break;
}
case 3: {
enterOuterAlt(_localctx, 3);
- setState(1782);
+ setState(1792);
identifier();
break;
}
@@ -14259,7 +14357,7 @@ std::any HogQLParser::WithExprListContext::accept(tree::ParseTreeVisitor *visito
HogQLParser::WithExprListContext* HogQLParser::withExprList() {
WithExprListContext *_localctx = _tracker.createInstance<WithExprListContext>(_ctx, getState());
- enterRule(_localctx, 170, HogQLParser::RuleWithExprList);
+ enterRule(_localctx, 172, HogQLParser::RuleWithExprList);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -14272,28 +14370,28 @@ HogQLParser::WithExprListContext* HogQLParser::withExprList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1785);
+ setState(1795);
withExpr();
- setState(1790);
+ setState(1800);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 218, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 220, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1786);
+ setState(1796);
match(HogQLParser::COMMA);
- setState(1787);
+ setState(1797);
withExpr();
}
- setState(1792);
+ setState(1802);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 218, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 220, _ctx);
}
- setState(1794);
+ setState(1804);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1793);
+ setState(1803);
match(HogQLParser::COMMA);
}
@@ -14402,7 +14500,7 @@ std::any HogQLParser::WithExprSubqueryContext::accept(tree::ParseTreeVisitor *vi
}
HogQLParser::WithExprContext* HogQLParser::withExpr() {
WithExprContext *_localctx = _tracker.createInstance<WithExprContext>(_ctx, getState());
- enterRule(_localctx, 172, HogQLParser::RuleWithExpr);
+ enterRule(_localctx, 174, HogQLParser::RuleWithExpr);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -14413,59 +14511,59 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() {
exitRule();
});
try {
- setState(1820);
+ setState(1830);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 224, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 226, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<HogQLParser::WithExprSubqueryContext>(_localctx);
enterOuterAlt(_localctx, 1);
- setState(1796);
+ setState(1806);
identifier();
- setState(1798);
+ setState(1808);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::LPAREN) {
- setState(1797);
+ setState(1807);
withExprColumnNameList();
}
- setState(1803);
+ setState(1813);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::USING) {
- setState(1800);
+ setState(1810);
match(HogQLParser::USING);
- setState(1801);
+ setState(1811);
match(HogQLParser::KEY);
- setState(1802);
+ setState(1812);
withExprColumnNameList();
}
- setState(1805);
+ setState(1815);
match(HogQLParser::AS);
- setState(1810);
+ setState(1820);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::MATERIALIZED
|| _la == HogQLParser::NOT) {
- setState(1807);
+ setState(1817);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::NOT) {
- setState(1806);
+ setState(1816);
match(HogQLParser::NOT);
}
- setState(1809);
+ setState(1819);
match(HogQLParser::MATERIALIZED);
}
- setState(1812);
+ setState(1822);
match(HogQLParser::LPAREN);
- setState(1813);
+ setState(1823);
selectSetStmt();
- setState(1814);
+ setState(1824);
match(HogQLParser::RPAREN);
break;
}
@@ -14473,11 +14571,11 @@ HogQLParser::WithExprContext* HogQLParser::withExpr() {
case 2: {
_localctx = _tracker.createInstance<HogQLParser::WithExprColumnContext>(_localctx);
enterOuterAlt(_localctx, 2);
- setState(1816);
+ setState(1826);
columnExpr(0);
- setState(1817);
+ setState(1827);
match(HogQLParser::AS);
- setState(1818);
+ setState(1828);
identifier();
break;
}
@@ -14541,7 +14639,7 @@ std::any HogQLParser::WithExprColumnNameListContext::accept(tree::ParseTreeVisit
HogQLParser::WithExprColumnNameListContext* HogQLParser::withExprColumnNameList() {
WithExprColumnNameListContext *_localctx = _tracker.createInstance<WithExprColumnNameListContext>(_ctx, getState());
- enterRule(_localctx, 174, HogQLParser::RuleWithExprColumnNameList);
+ enterRule(_localctx, 176, HogQLParser::RuleWithExprColumnNameList);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -14553,23 +14651,23 @@ HogQLParser::WithExprColumnNameListContext* HogQLParser::withExprColumnNameList(
});
try {
enterOuterAlt(_localctx, 1);
- setState(1822);
+ setState(1832);
match(HogQLParser::LPAREN);
- setState(1823);
+ setState(1833);
identifier();
- setState(1828);
+ setState(1838);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(1824);
+ setState(1834);
match(HogQLParser::COMMA);
- setState(1825);
+ setState(1835);
identifier();
- setState(1830);
+ setState(1840);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(1831);
+ setState(1841);
match(HogQLParser::RPAREN);
}
@@ -14619,7 +14717,7 @@ std::any HogQLParser::ColumnIdentifierContext::accept(tree::ParseTreeVisitor *vi
HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() {
ColumnIdentifierContext *_localctx = _tracker.createInstance<ColumnIdentifierContext>(_ctx, getState());
- enterRule(_localctx, 176, HogQLParser::RuleColumnIdentifier);
+ enterRule(_localctx, 178, HogQLParser::RuleColumnIdentifier);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -14629,12 +14727,12 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() {
exitRule();
});
try {
- setState(1840);
+ setState(1850);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::LBRACE: {
enterOuterAlt(_localctx, 1);
- setState(1833);
+ setState(1843);
placeholder();
break;
}
@@ -14759,14 +14857,14 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() {
case HogQLParser::IDENTIFIER:
case HogQLParser::QUOTED_IDENTIFIER: {
enterOuterAlt(_localctx, 2);
- setState(1837);
+ setState(1847);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 226, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 228, _ctx)) {
case 1: {
- setState(1834);
+ setState(1844);
tableIdentifier();
- setState(1835);
+ setState(1845);
match(HogQLParser::DOT);
break;
}
@@ -14774,7 +14872,7 @@ HogQLParser::ColumnIdentifierContext* HogQLParser::columnIdentifier() {
default:
break;
}
- setState(1839);
+ setState(1849);
nestedIdentifier();
break;
}
@@ -14830,7 +14928,7 @@ std::any HogQLParser::NestedIdentifierContext::accept(tree::ParseTreeVisitor *vi
HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() {
NestedIdentifierContext *_localctx = _tracker.createInstance<NestedIdentifierContext>(_ctx, getState());
- enterRule(_localctx, 178, HogQLParser::RuleNestedIdentifier);
+ enterRule(_localctx, 180, HogQLParser::RuleNestedIdentifier);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -14842,21 +14940,21 @@ HogQLParser::NestedIdentifierContext* HogQLParser::nestedIdentifier() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1842);
+ setState(1852);
identifier();
- setState(1847);
+ setState(1857);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 228, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 230, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1843);
+ setState(1853);
match(HogQLParser::DOT);
- setState(1844);
+ setState(1854);
identifier();
}
- setState(1849);
+ setState(1859);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 228, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 230, _ctx);
}
}
@@ -15118,8 +15216,8 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
HogQLParser::TableExprContext *_localctx = _tracker.createInstance<TableExprContext>(_ctx, parentState);
HogQLParser::TableExprContext *previousContext = _localctx;
(void)previousContext; // Silence compiler, in case the context is not used by generated code.
- size_t startState = 180;
- enterRecursionRule(_localctx, 180, HogQLParser::RuleTableExpr, precedence);
+ size_t startState = 182;
+ enterRecursionRule(_localctx, 182, HogQLParser::RuleTableExpr, precedence);
size_t _la = 0;
@@ -15133,15 +15231,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1863);
+ setState(1873);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 229, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 231, _ctx)) {
case 1: {
_localctx = _tracker.createInstance<TableExprIdentifierContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1851);
+ setState(1861);
tableIdentifier();
break;
}
@@ -15150,7 +15248,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
_localctx = _tracker.createInstance<TableExprFunctionContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1852);
+ setState(1862);
tableFunctionExpr();
break;
}
@@ -15159,11 +15257,11 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
_localctx = _tracker.createInstance<TableExprSubqueryContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1853);
+ setState(1863);
match(HogQLParser::LPAREN);
- setState(1854);
+ setState(1864);
selectSetStmt();
- setState(1855);
+ setState(1865);
match(HogQLParser::RPAREN);
break;
}
@@ -15172,11 +15270,11 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
_localctx = _tracker.createInstance<TableExprValuesContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1857);
+ setState(1867);
match(HogQLParser::LPAREN);
- setState(1858);
+ setState(1868);
valuesClause();
- setState(1859);
+ setState(1869);
match(HogQLParser::RPAREN);
break;
}
@@ -15185,7 +15283,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
_localctx = _tracker.createInstance<TableExprTagContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1861);
+ setState(1871);
hogqlxTagElement();
break;
}
@@ -15194,7 +15292,7 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
_localctx = _tracker.createInstance<TableExprPlaceholderContext>(_localctx);
_ctx = _localctx;
previousContext = _localctx;
- setState(1862);
+ setState(1872);
placeholder();
break;
}
@@ -15203,45 +15301,45 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
break;
}
_ctx->stop = _input->LT(-1);
- setState(1898);
+ setState(1908);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 235, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 237, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
if (!_parseListeners.empty())
triggerExitRuleEvent();
previousContext = _localctx;
- setState(1896);
+ setState(1906);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 234, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 236, _ctx)) {
case 1: {
auto newContext = _tracker.createInstance<TableExprPivotContext>(_tracker.createInstance<TableExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleTableExpr);
- setState(1865);
+ setState(1875);
if (!(precpred(_ctx, 5))) throw FailedPredicateException(this, "precpred(_ctx, 5)");
- setState(1866);
+ setState(1876);
match(HogQLParser::PIVOT);
- setState(1867);
+ setState(1877);
match(HogQLParser::LPAREN);
- setState(1868);
+ setState(1878);
columnExprList();
- setState(1869);
+ setState(1879);
pivotColumnList();
- setState(1873);
+ setState(1883);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::GROUP) {
- setState(1870);
+ setState(1880);
match(HogQLParser::GROUP);
- setState(1871);
+ setState(1881);
match(HogQLParser::BY);
- setState(1872);
+ setState(1882);
columnExprList();
}
- setState(1875);
+ setState(1885);
match(HogQLParser::RPAREN);
break;
}
@@ -15250,26 +15348,26 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
auto newContext = _tracker.createInstance<TableExprUnpivotContext>(_tracker.createInstance<TableExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleTableExpr);
- setState(1877);
+ setState(1887);
if (!(precpred(_ctx, 4))) throw FailedPredicateException(this, "precpred(_ctx, 4)");
- setState(1878);
+ setState(1888);
match(HogQLParser::UNPIVOT);
- setState(1881);
+ setState(1891);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::INCLUDE) {
- setState(1879);
+ setState(1889);
match(HogQLParser::INCLUDE);
- setState(1880);
+ setState(1890);
match(HogQLParser::NULLS);
}
- setState(1883);
+ setState(1893);
match(HogQLParser::LPAREN);
- setState(1884);
+ setState(1894);
unpivotColumnList();
- setState(1885);
+ setState(1895);
match(HogQLParser::RPAREN);
break;
}
@@ -15278,10 +15376,10 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
auto newContext = _tracker.createInstance<TableExprAliasContext>(_tracker.createInstance<TableExprContext>(parentContext, parentState));
_localctx = newContext;
pushNewRecursionContext(newContext, startState, RuleTableExpr);
- setState(1887);
+ setState(1897);
if (!(precpred(_ctx, 3))) throw FailedPredicateException(this, "precpred(_ctx, 3)");
- setState(1891);
+ setState(1901);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::DATE:
@@ -15290,15 +15388,15 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
case HogQLParser::KEY:
case HogQLParser::IDENTIFIER:
case HogQLParser::QUOTED_IDENTIFIER: {
- setState(1888);
+ setState(1898);
alias();
break;
}
case HogQLParser::AS: {
- setState(1889);
+ setState(1899);
match(HogQLParser::AS);
- setState(1890);
+ setState(1900);
identifier();
break;
}
@@ -15306,12 +15404,12 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
default:
throw NoViableAltException(this);
}
- setState(1894);
+ setState(1904);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 233, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 235, _ctx)) {
case 1: {
- setState(1893);
+ setState(1903);
columnAliases();
break;
}
@@ -15326,9 +15424,9 @@ HogQLParser::TableExprContext* HogQLParser::tableExpr(int precedence) {
break;
}
}
- setState(1900);
+ setState(1910);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 235, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 237, _ctx);
}
}
catch (RecognitionException &e) {
@@ -15372,7 +15470,7 @@ std::any HogQLParser::PivotColumnListContext::accept(tree::ParseTreeVisitor *vis
HogQLParser::PivotColumnListContext* HogQLParser::pivotColumnList() {
PivotColumnListContext *_localctx = _tracker.createInstance<PivotColumnListContext>(_ctx, getState());
- enterRule(_localctx, 182, HogQLParser::RulePivotColumnList);
+ enterRule(_localctx, 184, HogQLParser::RulePivotColumnList);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -15384,15 +15482,15 @@ HogQLParser::PivotColumnListContext* HogQLParser::pivotColumnList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1901);
+ setState(1911);
match(HogQLParser::FOR);
- setState(1903);
+ setState(1913);
_errHandler->sync(this);
alt = 1;
do {
switch (alt) {
case 1: {
- setState(1902);
+ setState(1912);
pivotColumn();
break;
}
@@ -15400,9 +15498,9 @@ HogQLParser::PivotColumnListContext* HogQLParser::pivotColumnList() {
default:
throw NoViableAltException(this);
}
- setState(1905);
+ setState(1915);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 236, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 238, _ctx);
} while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER);
}
@@ -15456,7 +15554,7 @@ std::any HogQLParser::PivotColumnContext::accept(tree::ParseTreeVisitor *visitor
HogQLParser::PivotColumnContext* HogQLParser::pivotColumn() {
PivotColumnContext *_localctx = _tracker.createInstance<PivotColumnContext>(_ctx, getState());
- enterRule(_localctx, 184, HogQLParser::RulePivotColumn);
+ enterRule(_localctx, 186, HogQLParser::RulePivotColumn);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -15467,15 +15565,15 @@ HogQLParser::PivotColumnContext* HogQLParser::pivotColumn() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1907);
+ setState(1917);
columnExprTupleOrSingle();
- setState(1908);
+ setState(1918);
match(HogQLParser::IN);
- setState(1909);
+ setState(1919);
match(HogQLParser::LPAREN);
- setState(1910);
+ setState(1920);
columnExprList();
- setState(1911);
+ setState(1921);
match(HogQLParser::RPAREN);
}
@@ -15525,7 +15623,7 @@ std::any HogQLParser::UnpivotColumnListContext::accept(tree::ParseTreeVisitor *v
HogQLParser::UnpivotColumnListContext* HogQLParser::unpivotColumnList() {
UnpivotColumnListContext *_localctx = _tracker.createInstance<UnpivotColumnListContext>(_ctx, getState());
- enterRule(_localctx, 186, HogQLParser::RuleUnpivotColumnList);
+ enterRule(_localctx, 188, HogQLParser::RuleUnpivotColumnList);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -15538,28 +15636,28 @@ HogQLParser::UnpivotColumnListContext* HogQLParser::unpivotColumnList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1913);
+ setState(1923);
unpivotColumn();
- setState(1918);
+ setState(1928);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 237, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 239, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1914);
+ setState(1924);
match(HogQLParser::COMMA);
- setState(1915);
+ setState(1925);
unpivotColumn();
}
- setState(1920);
+ setState(1930);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 237, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 239, _ctx);
}
- setState(1922);
+ setState(1932);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1921);
+ setState(1931);
match(HogQLParser::COMMA);
}
@@ -15638,7 +15736,7 @@ std::any HogQLParser::UnpivotColumnContext::accept(tree::ParseTreeVisitor *visit
HogQLParser::UnpivotColumnContext* HogQLParser::unpivotColumn() {
UnpivotColumnContext *_localctx = _tracker.createInstance<UnpivotColumnContext>(_ctx, getState());
- enterRule(_localctx, 188, HogQLParser::RuleUnpivotColumn);
+ enterRule(_localctx, 190, HogQLParser::RuleUnpivotColumn);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -15650,38 +15748,38 @@ HogQLParser::UnpivotColumnContext* HogQLParser::unpivotColumn() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1924);
+ setState(1934);
columnExprTupleOrSingle();
- setState(1925);
+ setState(1935);
match(HogQLParser::FOR);
- setState(1926);
+ setState(1936);
columnExprTupleOrSingle();
- setState(1927);
+ setState(1937);
match(HogQLParser::IN);
- setState(1928);
+ setState(1938);
match(HogQLParser::LPAREN);
- setState(1929);
+ setState(1939);
columnExprList();
- setState(1930);
+ setState(1940);
match(HogQLParser::RPAREN);
- setState(1939);
+ setState(1949);
_errHandler->sync(this);
_la = _input->LA(1);
while ((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1931);
+ setState(1941);
columnExprTupleOrSingle();
- setState(1932);
+ setState(1942);
match(HogQLParser::IN);
- setState(1933);
+ setState(1943);
match(HogQLParser::LPAREN);
- setState(1934);
+ setState(1944);
columnExprList();
- setState(1935);
+ setState(1945);
match(HogQLParser::RPAREN);
- setState(1941);
+ setState(1951);
_errHandler->sync(this);
_la = _input->LA(1);
}
@@ -15733,7 +15831,7 @@ std::any HogQLParser::ColumnExprTupleOrSingleContext::accept(tree::ParseTreeVisi
HogQLParser::ColumnExprTupleOrSingleContext* HogQLParser::columnExprTupleOrSingle() {
ColumnExprTupleOrSingleContext *_localctx = _tracker.createInstance<ColumnExprTupleOrSingleContext>(_ctx, getState());
- enterRule(_localctx, 190, HogQLParser::RuleColumnExprTupleOrSingle);
+ enterRule(_localctx, 192, HogQLParser::RuleColumnExprTupleOrSingle);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -15743,23 +15841,23 @@ HogQLParser::ColumnExprTupleOrSingleContext* HogQLParser::columnExprTupleOrSingl
exitRule();
});
try {
- setState(1947);
+ setState(1957);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 240, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 242, _ctx)) {
case 1: {
enterOuterAlt(_localctx, 1);
- setState(1942);
+ setState(1952);
match(HogQLParser::LPAREN);
- setState(1943);
+ setState(1953);
columnExprList();
- setState(1944);
+ setState(1954);
match(HogQLParser::RPAREN);
break;
}
case 2: {
enterOuterAlt(_localctx, 2);
- setState(1946);
+ setState(1956);
columnExpr(0);
break;
}
@@ -15823,7 +15921,7 @@ std::any HogQLParser::ColumnAliasesContext::accept(tree::ParseTreeVisitor *visit
HogQLParser::ColumnAliasesContext* HogQLParser::columnAliases() {
ColumnAliasesContext *_localctx = _tracker.createInstance<ColumnAliasesContext>(_ctx, getState());
- enterRule(_localctx, 192, HogQLParser::RuleColumnAliases);
+ enterRule(_localctx, 194, HogQLParser::RuleColumnAliases);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -15835,23 +15933,23 @@ HogQLParser::ColumnAliasesContext* HogQLParser::columnAliases() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1949);
+ setState(1959);
match(HogQLParser::LPAREN);
- setState(1950);
+ setState(1960);
identifier();
- setState(1955);
+ setState(1965);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::COMMA) {
- setState(1951);
+ setState(1961);
match(HogQLParser::COMMA);
- setState(1952);
+ setState(1962);
identifier();
- setState(1957);
+ setState(1967);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(1958);
+ setState(1968);
match(HogQLParser::RPAREN);
}
@@ -15901,7 +15999,7 @@ std::any HogQLParser::TableFunctionExprContext::accept(tree::ParseTreeVisitor *v
HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() {
TableFunctionExprContext *_localctx = _tracker.createInstance<TableFunctionExprContext>(_ctx, getState());
- enterRule(_localctx, 194, HogQLParser::RuleTableFunctionExpr);
+ enterRule(_localctx, 196, HogQLParser::RuleTableFunctionExpr);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -15913,11 +16011,11 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1960);
+ setState(1970);
identifier();
- setState(1961);
+ setState(1971);
match(HogQLParser::LPAREN);
- setState(1963);
+ setState(1973);
_errHandler->sync(this);
_la = _input->LA(1);
@@ -15925,10 +16023,10 @@ HogQLParser::TableFunctionExprContext* HogQLParser::tableFunctionExpr() {
((1ULL << _la) & -18016683700535298) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 65)) & 9214362638576779259) != 0) || ((((_la - 129) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 129)) & 1267309641555947) != 0)) {
- setState(1962);
+ setState(1972);
tableArgList();
}
- setState(1965);
+ setState(1975);
match(HogQLParser::RPAREN);
}
@@ -15974,7 +16072,7 @@ std::any HogQLParser::TableIdentifierContext::accept(tree::ParseTreeVisitor *vis
HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() {
TableIdentifierContext *_localctx = _tracker.createInstance<TableIdentifierContext>(_ctx, getState());
- enterRule(_localctx, 196, HogQLParser::RuleTableIdentifier);
+ enterRule(_localctx, 198, HogQLParser::RuleTableIdentifier);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -15985,14 +16083,14 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1970);
+ setState(1980);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 243, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 245, _ctx)) {
case 1: {
- setState(1967);
+ setState(1977);
databaseIdentifier();
- setState(1968);
+ setState(1978);
match(HogQLParser::DOT);
break;
}
@@ -16000,7 +16098,7 @@ HogQLParser::TableIdentifierContext* HogQLParser::tableIdentifier() {
default:
break;
}
- setState(1972);
+ setState(1982);
nestedIdentifier();
}
@@ -16050,7 +16148,7 @@ std::any HogQLParser::TableArgListContext::accept(tree::ParseTreeVisitor *visito
HogQLParser::TableArgListContext* HogQLParser::tableArgList() {
TableArgListContext *_localctx = _tracker.createInstance<TableArgListContext>(_ctx, getState());
- enterRule(_localctx, 198, HogQLParser::RuleTableArgList);
+ enterRule(_localctx, 200, HogQLParser::RuleTableArgList);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -16063,28 +16161,28 @@ HogQLParser::TableArgListContext* HogQLParser::tableArgList() {
try {
size_t alt;
enterOuterAlt(_localctx, 1);
- setState(1974);
+ setState(1984);
columnExpr(0);
- setState(1979);
+ setState(1989);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 244, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 246, _ctx);
while (alt != 2 && alt != atn::ATN::INVALID_ALT_NUMBER) {
if (alt == 1) {
- setState(1975);
+ setState(1985);
match(HogQLParser::COMMA);
- setState(1976);
+ setState(1986);
columnExpr(0);
}
- setState(1981);
+ setState(1991);
_errHandler->sync(this);
- alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 244, _ctx);
+ alt = getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 246, _ctx);
}
- setState(1983);
+ setState(1993);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::COMMA) {
- setState(1982);
+ setState(1992);
match(HogQLParser::COMMA);
}
@@ -16123,7 +16221,7 @@ std::any HogQLParser::DatabaseIdentifierContext::accept(tree::ParseTreeVisitor *
HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() {
DatabaseIdentifierContext *_localctx = _tracker.createInstance<DatabaseIdentifierContext>(_ctx, getState());
- enterRule(_localctx, 200, HogQLParser::RuleDatabaseIdentifier);
+ enterRule(_localctx, 202, HogQLParser::RuleDatabaseIdentifier);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -16134,7 +16232,7 @@ HogQLParser::DatabaseIdentifierContext* HogQLParser::databaseIdentifier() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1985);
+ setState(1995);
identifier();
}
@@ -16188,7 +16286,7 @@ std::any HogQLParser::FloatingLiteralContext::accept(tree::ParseTreeVisitor *vis
HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() {
FloatingLiteralContext *_localctx = _tracker.createInstance<FloatingLiteralContext>(_ctx, getState());
- enterRule(_localctx, 202, HogQLParser::RuleFloatingLiteral);
+ enterRule(_localctx, 204, HogQLParser::RuleFloatingLiteral);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -16199,21 +16297,21 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() {
exitRule();
});
try {
- setState(1995);
+ setState(2005);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::FLOATING_LITERAL: {
enterOuterAlt(_localctx, 1);
- setState(1987);
+ setState(1997);
match(HogQLParser::FLOATING_LITERAL);
break;
}
case HogQLParser::DOT: {
enterOuterAlt(_localctx, 2);
- setState(1988);
+ setState(1998);
match(HogQLParser::DOT);
- setState(1989);
+ setState(1999);
_la = _input->LA(1);
if (!(_la == HogQLParser::OCTAL_LITERAL
@@ -16229,16 +16327,16 @@ HogQLParser::FloatingLiteralContext* HogQLParser::floatingLiteral() {
case HogQLParser::DECIMAL_LITERAL: {
enterOuterAlt(_localctx, 3);
- setState(1990);
+ setState(2000);
match(HogQLParser::DECIMAL_LITERAL);
- setState(1991);
+ setState(2001);
match(HogQLParser::DOT);
- setState(1993);
+ setState(2003);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 246, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 248, _ctx)) {
case 1: {
- setState(1992);
+ setState(2002);
_la = _input->LA(1);
if (!(_la == HogQLParser::OCTAL_LITERAL
@@ -16333,7 +16431,7 @@ std::any HogQLParser::NumberLiteralContext::accept(tree::ParseTreeVisitor *visit
HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() {
NumberLiteralContext *_localctx = _tracker.createInstance<NumberLiteralContext>(_ctx, getState());
- enterRule(_localctx, 204, HogQLParser::RuleNumberLiteral);
+ enterRule(_localctx, 206, HogQLParser::RuleNumberLiteral);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -16345,14 +16443,14 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(1998);
+ setState(2008);
_errHandler->sync(this);
_la = _input->LA(1);
if (_la == HogQLParser::DASH
|| _la == HogQLParser::PLUS) {
- setState(1997);
+ setState(2007);
_la = _input->LA(1);
if (!(_la == HogQLParser::DASH
@@ -16364,53 +16462,53 @@ HogQLParser::NumberLiteralContext* HogQLParser::numberLiteral() {
consume();
}
}
- setState(2008);
+ setState(2018);
_errHandler->sync(this);
- switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 249, _ctx)) {
+ switch (getInterpreter<atn::ParserATNSimulator>()->adaptivePredict(_input, 251, _ctx)) {
case 1: {
- setState(2000);
+ setState(2010);
floatingLiteral();
break;
}
case 2: {
- setState(2001);
+ setState(2011);
match(HogQLParser::BINARY_LITERAL);
break;
}
case 3: {
- setState(2002);
+ setState(2012);
match(HogQLParser::OCTAL_LITERAL);
break;
}
case 4: {
- setState(2003);
+ setState(2013);
match(HogQLParser::OCTAL_PREFIX_LITERAL);
break;
}
case 5: {
- setState(2004);
+ setState(2014);
match(HogQLParser::DECIMAL_LITERAL);
break;
}
case 6: {
- setState(2005);
+ setState(2015);
match(HogQLParser::HEXADECIMAL_LITERAL);
break;
}
case 7: {
- setState(2006);
+ setState(2016);
match(HogQLParser::INF);
break;
}
case 8: {
- setState(2007);
+ setState(2017);
match(HogQLParser::NAN_SQL);
break;
}
@@ -16462,7 +16560,7 @@ std::any HogQLParser::LiteralContext::accept(tree::ParseTreeVisitor *visitor) {
HogQLParser::LiteralContext* HogQLParser::literal() {
LiteralContext *_localctx = _tracker.createInstance<LiteralContext>(_ctx, getState());
- enterRule(_localctx, 206, HogQLParser::RuleLiteral);
+ enterRule(_localctx, 208, HogQLParser::RuleLiteral);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -16472,7 +16570,7 @@ HogQLParser::LiteralContext* HogQLParser::literal() {
exitRule();
});
try {
- setState(2013);
+ setState(2023);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::INF:
@@ -16487,21 +16585,21 @@ HogQLParser::LiteralContext* HogQLParser::literal() {
case HogQLParser::DOT:
case HogQLParser::PLUS: {
enterOuterAlt(_localctx, 1);
- setState(2010);
+ setState(2020);
numberLiteral();
break;
}
case HogQLParser::STRING_LITERAL: {
enterOuterAlt(_localctx, 2);
- setState(2011);
+ setState(2021);
match(HogQLParser::STRING_LITERAL);
break;
}
case HogQLParser::NULL_SQL: {
enterOuterAlt(_localctx, 3);
- setState(2012);
+ setState(2022);
match(HogQLParser::NULL_SQL);
break;
}
@@ -16573,7 +16671,7 @@ std::any HogQLParser::IntervalContext::accept(tree::ParseTreeVisitor *visitor) {
HogQLParser::IntervalContext* HogQLParser::interval() {
IntervalContext *_localctx = _tracker.createInstance<IntervalContext>(_ctx, getState());
- enterRule(_localctx, 208, HogQLParser::RuleInterval);
+ enterRule(_localctx, 210, HogQLParser::RuleInterval);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -16585,7 +16683,7 @@ HogQLParser::IntervalContext* HogQLParser::interval() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2015);
+ setState(2025);
_la = _input->LA(1);
if (!(((((_la - 22) & ~ 0x3fULL) == 0) &&
((1ULL << (_la - 22)) & 211106240921601) != 0) || ((((_la - 88) & ~ 0x3fULL) == 0) &&
@@ -17064,7 +17162,7 @@ std::any HogQLParser::KeywordContext::accept(tree::ParseTreeVisitor *visitor) {
HogQLParser::KeywordContext* HogQLParser::keyword() {
KeywordContext *_localctx = _tracker.createInstance<KeywordContext>(_ctx, getState());
- enterRule(_localctx, 210, HogQLParser::RuleKeyword);
+ enterRule(_localctx, 212, HogQLParser::RuleKeyword);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -17076,7 +17174,7 @@ HogQLParser::KeywordContext* HogQLParser::keyword() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2017);
+ setState(2027);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & -22555467704188930) != 0) || ((((_la - 65) & ~ 0x3fULL) == 0) &&
@@ -17137,7 +17235,7 @@ std::any HogQLParser::KeywordForAliasContext::accept(tree::ParseTreeVisitor *vis
HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() {
KeywordForAliasContext *_localctx = _tracker.createInstance<KeywordForAliasContext>(_ctx, getState());
- enterRule(_localctx, 212, HogQLParser::RuleKeywordForAlias);
+ enterRule(_localctx, 214, HogQLParser::RuleKeywordForAlias);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -17149,7 +17247,7 @@ HogQLParser::KeywordForAliasContext* HogQLParser::keywordForAlias() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2019);
+ setState(2029);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 576531155409436672) != 0))) {
@@ -17227,7 +17325,7 @@ std::any HogQLParser::KeywordForImplicitAliasContext::accept(tree::ParseTreeVisi
HogQLParser::KeywordForImplicitAliasContext* HogQLParser::keywordForImplicitAlias() {
KeywordForImplicitAliasContext *_localctx = _tracker.createInstance<KeywordForImplicitAliasContext>(_ctx, getState());
- enterRule(_localctx, 214, HogQLParser::RuleKeywordForImplicitAlias);
+ enterRule(_localctx, 216, HogQLParser::RuleKeywordForImplicitAlias);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -17239,7 +17337,7 @@ HogQLParser::KeywordForImplicitAliasContext* HogQLParser::keywordForImplicitAlia
});
try {
enterOuterAlt(_localctx, 1);
- setState(2021);
+ setState(2031);
_la = _input->LA(1);
if (!((((_la & ~ 0x3fULL) == 0) &&
((1ULL << _la) & 70370910568576) != 0) || ((((_la - 92) & ~ 0x3fULL) == 0) &&
@@ -17294,7 +17392,7 @@ std::any HogQLParser::AliasContext::accept(tree::ParseTreeVisitor *visitor) {
HogQLParser::AliasContext* HogQLParser::alias() {
AliasContext *_localctx = _tracker.createInstance<AliasContext>(_ctx, getState());
- enterRule(_localctx, 216, HogQLParser::RuleAlias);
+ enterRule(_localctx, 218, HogQLParser::RuleAlias);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17304,19 +17402,19 @@ HogQLParser::AliasContext* HogQLParser::alias() {
exitRule();
});
try {
- setState(2026);
+ setState(2036);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::IDENTIFIER: {
enterOuterAlt(_localctx, 1);
- setState(2023);
+ setState(2033);
match(HogQLParser::IDENTIFIER);
break;
}
case HogQLParser::QUOTED_IDENTIFIER: {
enterOuterAlt(_localctx, 2);
- setState(2024);
+ setState(2034);
match(HogQLParser::QUOTED_IDENTIFIER);
break;
}
@@ -17326,7 +17424,7 @@ HogQLParser::AliasContext* HogQLParser::alias() {
case HogQLParser::ID:
case HogQLParser::KEY: {
enterOuterAlt(_localctx, 3);
- setState(2025);
+ setState(2035);
keywordForAlias();
break;
}
@@ -17378,7 +17476,7 @@ std::any HogQLParser::ImplicitAliasContext::accept(tree::ParseTreeVisitor *visit
HogQLParser::ImplicitAliasContext* HogQLParser::implicitAlias() {
ImplicitAliasContext *_localctx = _tracker.createInstance<ImplicitAliasContext>(_ctx, getState());
- enterRule(_localctx, 218, HogQLParser::RuleImplicitAlias);
+ enterRule(_localctx, 220, HogQLParser::RuleImplicitAlias);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17388,19 +17486,19 @@ HogQLParser::ImplicitAliasContext* HogQLParser::implicitAlias() {
exitRule();
});
try {
- setState(2031);
+ setState(2041);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::IDENTIFIER: {
enterOuterAlt(_localctx, 1);
- setState(2028);
+ setState(2038);
match(HogQLParser::IDENTIFIER);
break;
}
case HogQLParser::QUOTED_IDENTIFIER: {
enterOuterAlt(_localctx, 2);
- setState(2029);
+ setState(2039);
match(HogQLParser::QUOTED_IDENTIFIER);
break;
}
@@ -17415,7 +17513,7 @@ HogQLParser::ImplicitAliasContext* HogQLParser::implicitAlias() {
case HogQLParser::TOP:
case HogQLParser::TOTALS: {
enterOuterAlt(_localctx, 3);
- setState(2030);
+ setState(2040);
keywordForImplicitAlias();
break;
}
@@ -17471,7 +17569,7 @@ std::any HogQLParser::IdentifierContext::accept(tree::ParseTreeVisitor *visitor)
HogQLParser::IdentifierContext* HogQLParser::identifier() {
IdentifierContext *_localctx = _tracker.createInstance<IdentifierContext>(_ctx, getState());
- enterRule(_localctx, 220, HogQLParser::RuleIdentifier);
+ enterRule(_localctx, 222, HogQLParser::RuleIdentifier);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17481,19 +17579,19 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() {
exitRule();
});
try {
- setState(2037);
+ setState(2047);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::IDENTIFIER: {
enterOuterAlt(_localctx, 1);
- setState(2033);
+ setState(2043);
match(HogQLParser::IDENTIFIER);
break;
}
case HogQLParser::QUOTED_IDENTIFIER: {
enterOuterAlt(_localctx, 2);
- setState(2034);
+ setState(2044);
match(HogQLParser::QUOTED_IDENTIFIER);
break;
}
@@ -17507,7 +17605,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() {
case HogQLParser::WEEK:
case HogQLParser::YEAR: {
enterOuterAlt(_localctx, 3);
- setState(2035);
+ setState(2045);
interval();
break;
}
@@ -17622,7 +17720,7 @@ HogQLParser::IdentifierContext* HogQLParser::identifier() {
case HogQLParser::WINDOW:
case HogQLParser::WITH: {
enterOuterAlt(_localctx, 4);
- setState(2036);
+ setState(2046);
keyword();
break;
}
@@ -17674,7 +17772,7 @@ std::any HogQLParser::EnumValueContext::accept(tree::ParseTreeVisitor *visitor)
HogQLParser::EnumValueContext* HogQLParser::enumValue() {
EnumValueContext *_localctx = _tracker.createInstance<EnumValueContext>(_ctx, getState());
- enterRule(_localctx, 222, HogQLParser::RuleEnumValue);
+ enterRule(_localctx, 224, HogQLParser::RuleEnumValue);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17685,11 +17783,11 @@ HogQLParser::EnumValueContext* HogQLParser::enumValue() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2039);
+ setState(2049);
string();
- setState(2040);
+ setState(2050);
match(HogQLParser::EQ_SINGLE);
- setState(2041);
+ setState(2051);
numberLiteral();
}
@@ -17735,7 +17833,7 @@ std::any HogQLParser::PlaceholderContext::accept(tree::ParseTreeVisitor *visitor
HogQLParser::PlaceholderContext* HogQLParser::placeholder() {
PlaceholderContext *_localctx = _tracker.createInstance<PlaceholderContext>(_ctx, getState());
- enterRule(_localctx, 224, HogQLParser::RulePlaceholder);
+ enterRule(_localctx, 226, HogQLParser::RulePlaceholder);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17746,11 +17844,11 @@ HogQLParser::PlaceholderContext* HogQLParser::placeholder() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2043);
+ setState(2053);
match(HogQLParser::LBRACE);
- setState(2044);
+ setState(2054);
columnExpr(0);
- setState(2045);
+ setState(2055);
match(HogQLParser::RBRACE);
}
@@ -17792,7 +17890,7 @@ std::any HogQLParser::StringContext::accept(tree::ParseTreeVisitor *visitor) {
HogQLParser::StringContext* HogQLParser::string() {
StringContext *_localctx = _tracker.createInstance<StringContext>(_ctx, getState());
- enterRule(_localctx, 226, HogQLParser::RuleString);
+ enterRule(_localctx, 228, HogQLParser::RuleString);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17802,19 +17900,19 @@ HogQLParser::StringContext* HogQLParser::string() {
exitRule();
});
try {
- setState(2049);
+ setState(2059);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::STRING_LITERAL: {
enterOuterAlt(_localctx, 1);
- setState(2047);
+ setState(2057);
match(HogQLParser::STRING_LITERAL);
break;
}
case HogQLParser::QUOTE_SINGLE_TEMPLATE: {
enterOuterAlt(_localctx, 2);
- setState(2048);
+ setState(2058);
templateString();
break;
}
@@ -17870,7 +17968,7 @@ std::any HogQLParser::TemplateStringContext::accept(tree::ParseTreeVisitor *visi
HogQLParser::TemplateStringContext* HogQLParser::templateString() {
TemplateStringContext *_localctx = _tracker.createInstance<TemplateStringContext>(_ctx, getState());
- enterRule(_localctx, 228, HogQLParser::RuleTemplateString);
+ enterRule(_localctx, 230, HogQLParser::RuleTemplateString);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -17882,21 +17980,21 @@ HogQLParser::TemplateStringContext* HogQLParser::templateString() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2051);
+ setState(2061);
match(HogQLParser::QUOTE_SINGLE_TEMPLATE);
- setState(2055);
+ setState(2065);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::STRING_TEXT
|| _la == HogQLParser::STRING_ESCAPE_TRIGGER) {
- setState(2052);
+ setState(2062);
stringContents();
- setState(2057);
+ setState(2067);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(2058);
+ setState(2068);
match(HogQLParser::QUOTE_SINGLE);
}
@@ -17946,7 +18044,7 @@ std::any HogQLParser::StringContentsContext::accept(tree::ParseTreeVisitor *visi
HogQLParser::StringContentsContext* HogQLParser::stringContents() {
StringContentsContext *_localctx = _tracker.createInstance<StringContentsContext>(_ctx, getState());
- enterRule(_localctx, 230, HogQLParser::RuleStringContents);
+ enterRule(_localctx, 232, HogQLParser::RuleStringContents);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -17956,23 +18054,23 @@ HogQLParser::StringContentsContext* HogQLParser::stringContents() {
exitRule();
});
try {
- setState(2065);
+ setState(2075);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::STRING_ESCAPE_TRIGGER: {
enterOuterAlt(_localctx, 1);
- setState(2060);
+ setState(2070);
match(HogQLParser::STRING_ESCAPE_TRIGGER);
- setState(2061);
+ setState(2071);
columnExpr(0);
- setState(2062);
+ setState(2072);
match(HogQLParser::RBRACE);
break;
}
case HogQLParser::STRING_TEXT: {
enterOuterAlt(_localctx, 2);
- setState(2064);
+ setState(2074);
match(HogQLParser::STRING_TEXT);
break;
}
@@ -18028,7 +18126,7 @@ std::any HogQLParser::FullTemplateStringContext::accept(tree::ParseTreeVisitor *
HogQLParser::FullTemplateStringContext* HogQLParser::fullTemplateString() {
FullTemplateStringContext *_localctx = _tracker.createInstance<FullTemplateStringContext>(_ctx, getState());
- enterRule(_localctx, 232, HogQLParser::RuleFullTemplateString);
+ enterRule(_localctx, 234, HogQLParser::RuleFullTemplateString);
size_t _la = 0;
#if __cplusplus > 201703L
@@ -18040,21 +18138,21 @@ HogQLParser::FullTemplateStringContext* HogQLParser::fullTemplateString() {
});
try {
enterOuterAlt(_localctx, 1);
- setState(2067);
+ setState(2077);
match(HogQLParser::QUOTE_SINGLE_TEMPLATE_FULL);
- setState(2071);
+ setState(2081);
_errHandler->sync(this);
_la = _input->LA(1);
while (_la == HogQLParser::FULL_STRING_TEXT
|| _la == HogQLParser::FULL_STRING_ESCAPE_TRIGGER) {
- setState(2068);
+ setState(2078);
stringContentsFull();
- setState(2073);
+ setState(2083);
_errHandler->sync(this);
_la = _input->LA(1);
}
- setState(2074);
+ setState(2084);
match(HogQLParser::EOF);
}
@@ -18104,7 +18202,7 @@ std::any HogQLParser::StringContentsFullContext::accept(tree::ParseTreeVisitor *
HogQLParser::StringContentsFullContext* HogQLParser::stringContentsFull() {
StringContentsFullContext *_localctx = _tracker.createInstance<StringContentsFullContext>(_ctx, getState());
- enterRule(_localctx, 234, HogQLParser::RuleStringContentsFull);
+ enterRule(_localctx, 236, HogQLParser::RuleStringContentsFull);
#if __cplusplus > 201703L
auto onExit = finally([=, this] {
@@ -18114,23 +18212,23 @@ HogQLParser::StringContentsFullContext* HogQLParser::stringContentsFull() {
exitRule();
});
try {
- setState(2081);
+ setState(2091);
_errHandler->sync(this);
switch (_input->LA(1)) {
case HogQLParser::FULL_STRING_ESCAPE_TRIGGER: {
enterOuterAlt(_localctx, 1);
- setState(2076);
+ setState(2086);
match(HogQLParser::FULL_STRING_ESCAPE_TRIGGER);
- setState(2077);
+ setState(2087);
columnExpr(0);
- setState(2078);
+ setState(2088);
match(HogQLParser::RBRACE);
break;
}
case HogQLParser::FULL_STRING_TEXT: {
enterOuterAlt(_localctx, 2);
- setState(2080);
+ setState(2090);
match(HogQLParser::FULL_STRING_TEXT);
break;
}
@@ -18154,7 +18252,8 @@ bool HogQLParser::sempred(RuleContext *context, size_t ruleIndex, size_t predica
case 48: return joinExprSempred(antlrcpp::downCast<JoinExprContext *>(context), predicateIndex);
case 69: return columnTypeExprSempred(antlrcpp::downCast<ColumnTypeExprContext *>(context), predicateIndex);
case 77: return columnExprSempred(antlrcpp::downCast<ColumnExprContext *>(context), predicateIndex);
- case 90: return tableExprSempred(antlrcpp::downCast<TableExprContext *>(context), predicateIndex);
+ case 78: return columnExprValueSempred(antlrcpp::downCast<ColumnExprValueContext *>(context), predicateIndex);
+ case 91: return tableExprSempred(antlrcpp::downCast<TableExprContext *>(context), predicateIndex);
default:
break;
@@ -18188,29 +18287,38 @@ bool HogQLParser::columnTypeExprSempred(ColumnTypeExprContext *_localctx, size_t
bool HogQLParser::columnExprSempred(ColumnExprContext *_localctx, size_t predicateIndex) {
switch (predicateIndex) {
- case 6: return precpred(_ctx, 25);
- case 7: return precpred(_ctx, 24);
- case 8: return precpred(_ctx, 23);
- case 9: return precpred(_ctx, 20);
- case 10: return precpred(_ctx, 19);
- case 11: return precpred(_ctx, 18);
- case 12: return precpred(_ctx, 16);
- case 13: return precpred(_ctx, 15);
- case 14: return precpred(_ctx, 14);
- case 15: return precpred(_ctx, 13);
- case 16: return precpred(_ctx, 39);
- case 17: return precpred(_ctx, 38);
+ case 6: return precpred(_ctx, 5);
+ case 7: return precpred(_ctx, 4);
+ case 8: return precpred(_ctx, 3);
+ case 9: return precpred(_ctx, 2);
+
+ default:
+ break;
+ }
+ return true;
+}
+
+bool HogQLParser::columnExprValueSempred(ColumnExprValueContext *_localctx, size_t predicateIndex) {
+ switch (predicateIndex) {
+ case 10: return precpred(_ctx, 21);
+ case 11: return precpred(_ctx, 20);
+ case 12: return precpred(_ctx, 19);
+ case 13: return precpred(_ctx, 16);
+ case 14: return precpred(_ctx, 15);
+ case 15: return precpred(_ctx, 14);
+ case 16: return precpred(_ctx, 13);
+ case 17: return precpred(_ctx, 35);
case 18: return precpred(_ctx, 34);
- case 19: return precpred(_ctx, 33);
- case 20: return precpred(_ctx, 32);
- case 21: return precpred(_ctx, 31);
- case 22: return precpred(_ctx, 30);
- case 23: return precpred(_ctx, 29);
- case 24: return precpred(_ctx, 28);
- case 25: return precpred(_ctx, 27);
- case 26: return precpred(_ctx, 22);
- case 27: return precpred(_ctx, 21);
- case 28: return precpred(_ctx, 12);
+ case 19: return precpred(_ctx, 30);
+ case 20: return precpred(_ctx, 29);
+ case 21: return precpred(_ctx, 28);
+ case 22: return precpred(_ctx, 27);
+ case 23: return precpred(_ctx, 26);
+ case 24: return precpred(_ctx, 25);
+ case 25: return precpred(_ctx, 24);
+ case 26: return precpred(_ctx, 23);
+ case 27: return precpred(_ctx, 18);
+ case 28: return precpred(_ctx, 17);
default:
break;
diff --git a/common/hogql_parser/HogQLParser.h b/common/hogql_parser/HogQLParser.h
index 064533a72fdb..841b19f6f182 100644
--- a/common/hogql_parser/HogQLParser.h
+++ b/common/hogql_parser/HogQLParser.h
@@ -80,20 +80,20 @@ public:
RuleExpr = 68, RuleColumnTypeExpr = 69, RuleColumnTypeCastExpr = 70,
RuleColumnTypeCastIdentifier = 71, RuleKeywordForTypeCast = 72, RuleColumnExprList = 73,
RuleSelectColumnExprListBeforeFrom = 74, RuleSelectColumnExprList = 75,
- RuleSelectColumnExpr = 76, RuleColumnExpr = 77, RuleColumnLambdaExpr = 78,
- RuleColumnsReplaceList = 79, RuleColumnsReplaceItem = 80, RuleHogqlxChildElement = 81,
- RuleHogqlxText = 82, RuleHogqlxTagElement = 83, RuleHogqlxTagAttribute = 84,
- RuleWithExprList = 85, RuleWithExpr = 86, RuleWithExprColumnNameList = 87,
- RuleColumnIdentifier = 88, RuleNestedIdentifier = 89, RuleTableExpr = 90,
- RulePivotColumnList = 91, RulePivotColumn = 92, RuleUnpivotColumnList = 93,
- RuleUnpivotColumn = 94, RuleColumnExprTupleOrSingle = 95, RuleColumnAliases = 96,
- RuleTableFunctionExpr = 97, RuleTableIdentifier = 98, RuleTableArgList = 99,
- RuleDatabaseIdentifier = 100, RuleFloatingLiteral = 101, RuleNumberLiteral = 102,
- RuleLiteral = 103, RuleInterval = 104, RuleKeyword = 105, RuleKeywordForAlias = 106,
- RuleKeywordForImplicitAlias = 107, RuleAlias = 108, RuleImplicitAlias = 109,
- RuleIdentifier = 110, RuleEnumValue = 111, RulePlaceholder = 112, RuleString = 113,
- RuleTemplateString = 114, RuleStringContents = 115, RuleFullTemplateString = 116,
- RuleStringContentsFull = 117
+ RuleSelectColumnExpr = 76, RuleColumnExpr = 77, RuleColumnExprValue = 78,
+ RuleColumnLambdaExpr = 79, RuleColumnsReplaceList = 80, RuleColumnsReplaceItem = 81,
+ RuleHogqlxChildElement = 82, RuleHogqlxText = 83, RuleHogqlxTagElement = 84,
+ RuleHogqlxTagAttribute = 85, RuleWithExprList = 86, RuleWithExpr = 87,
+ RuleWithExprColumnNameList = 88, RuleColumnIdentifier = 89, RuleNestedIdentifier = 90,
+ RuleTableExpr = 91, RulePivotColumnList = 92, RulePivotColumn = 93,
+ RuleUnpivotColumnList = 94, RuleUnpivotColumn = 95, RuleColumnExprTupleOrSingle = 96,
+ RuleColumnAliases = 97, RuleTableFunctionExpr = 98, RuleTableIdentifier = 99,
+ RuleTableArgList = 100, RuleDatabaseIdentifier = 101, RuleFloatingLiteral = 102,
+ RuleNumberLiteral = 103, RuleLiteral = 104, RuleInterval = 105, RuleKeyword = 106,
+ RuleKeywordForAlias = 107, RuleKeywordForImplicitAlias = 108, RuleAlias = 109,
+ RuleImplicitAlias = 110, RuleIdentifier = 111, RuleEnumValue = 112,
+ RulePlaceholder = 113, RuleString = 114, RuleTemplateString = 115, RuleStringContents = 116,
+ RuleFullTemplateString = 117, RuleStringContentsFull = 118
};
explicit HogQLParser(antlr4::TokenStream *input);
@@ -191,6 +191,7 @@ public:
class SelectColumnExprListContext;
class SelectColumnExprContext;
class ColumnExprContext;
+ class ColumnExprValueContext;
class ColumnLambdaExprContext;
class ColumnsReplaceListContext;
class ColumnsReplaceItemContext;
@@ -1889,18 +1890,6 @@ public:
};
- class ColumnExprColumnsAllContext : public ColumnExprContext {
- public:
- ColumnExprColumnsAllContext(ColumnExprContext *ctx);
-
- antlr4::tree::TerminalNode *COLUMNS();
- antlr4::tree::TerminalNode *LPAREN();
- antlr4::tree::TerminalNode *ASTERISK();
- antlr4::tree::TerminalNode *RPAREN();
-
- virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
- };
-
class ColumnExprTernaryOpContext : public ColumnExprContext {
public:
ColumnExprTernaryOpContext(ColumnExprContext *ctx);
@@ -1925,57 +1914,104 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNegateContext : public ColumnExprContext {
+ class ColumnExprAndContext : public ColumnExprContext {
public:
- ColumnExprNegateContext(ColumnExprContext *ctx);
+ ColumnExprAndContext(ColumnExprContext *ctx);
- antlr4::tree::TerminalNode *DASH();
- ColumnExprContext *columnExpr();
+ std::vector<ColumnExprContext *> columnExpr();
+ ColumnExprContext* columnExpr(size_t i);
+ antlr4::tree::TerminalNode *AND();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprLiteralContext : public ColumnExprContext {
+ class ColumnExprValuePassthroughContext : public ColumnExprContext {
public:
- ColumnExprLiteralContext(ColumnExprContext *ctx);
+ ColumnExprValuePassthroughContext(ColumnExprContext *ctx);
- LiteralContext *literal();
+ ColumnExprValueContext *columnExprValue();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprArrayContext : public ColumnExprContext {
+ class ColumnExprOrContext : public ColumnExprContext {
public:
- ColumnExprArrayContext(ColumnExprContext *ctx);
+ ColumnExprOrContext(ColumnExprContext *ctx);
- antlr4::tree::TerminalNode *LBRACKET();
- antlr4::tree::TerminalNode *RBRACKET();
- antlr4::tree::TerminalNode *ARRAY();
- ColumnExprListContext *columnExprList();
+ std::vector<ColumnExprContext *> columnExpr();
+ ColumnExprContext* columnExpr(size_t i);
+ antlr4::tree::TerminalNode *OR();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprOrContext : public ColumnExprContext {
+ ColumnExprContext* columnExpr();
+ ColumnExprContext* columnExpr(int precedence);
+ class ColumnExprValueContext : public antlr4::ParserRuleContext {
public:
- ColumnExprOrContext(ColumnExprContext *ctx);
+ ColumnExprValueContext(antlr4::ParserRuleContext *parent, size_t invokingState);
+
+ ColumnExprValueContext() = default;
+ void copyFrom(ColumnExprValueContext *context);
+ using antlr4::ParserRuleContext::copyFrom;
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
- antlr4::tree::TerminalNode *OR();
+ virtual size_t getRuleIndex() const override;
+
+
+ };
+
+ class ColumnExprColumnsAllContext : public ColumnExprValueContext {
+ public:
+ ColumnExprColumnsAllContext(ColumnExprValueContext *ctx);
+
+ antlr4::tree::TerminalNode *COLUMNS();
+ antlr4::tree::TerminalNode *LPAREN();
+ antlr4::tree::TerminalNode *ASTERISK();
+ antlr4::tree::TerminalNode *RPAREN();
+
+ virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
+ };
+
+ class ColumnExprNegateContext : public ColumnExprValueContext {
+ public:
+ ColumnExprNegateContext(ColumnExprValueContext *ctx);
+
+ antlr4::tree::TerminalNode *DASH();
+ ColumnExprValueContext *columnExprValue();
+
+ virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
+ };
+
+ class ColumnExprLiteralContext : public ColumnExprValueContext {
+ public:
+ ColumnExprLiteralContext(ColumnExprValueContext *ctx);
+
+ LiteralContext *literal();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprPrecedence1Context : public ColumnExprContext {
+ class ColumnExprArrayContext : public ColumnExprValueContext {
public:
- ColumnExprPrecedence1Context(ColumnExprContext *ctx);
+ ColumnExprArrayContext(ColumnExprValueContext *ctx);
+
+ antlr4::tree::TerminalNode *LBRACKET();
+ antlr4::tree::TerminalNode *RBRACKET();
+ antlr4::tree::TerminalNode *ARRAY();
+ ColumnExprListContext *columnExprList();
- HogQLParser::ColumnExprContext *left = nullptr;
+ virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
+ };
+
+ class ColumnExprPrecedence1Context : public ColumnExprValueContext {
+ public:
+ ColumnExprPrecedence1Context(ColumnExprValueContext *ctx);
+
+ HogQLParser::ColumnExprValueContext *left = nullptr;
antlr4::Token *operator_ = nullptr;
- HogQLParser::ColumnExprContext *right = nullptr;
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ HogQLParser::ColumnExprValueContext *right = nullptr;
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *ASTERISK();
antlr4::tree::TerminalNode *SLASH();
antlr4::tree::TerminalNode *PERCENT();
@@ -1983,15 +2019,15 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprPrecedence2Context : public ColumnExprContext {
+ class ColumnExprPrecedence2Context : public ColumnExprValueContext {
public:
- ColumnExprPrecedence2Context(ColumnExprContext *ctx);
+ ColumnExprPrecedence2Context(ColumnExprValueContext *ctx);
- HogQLParser::ColumnExprContext *left = nullptr;
+ HogQLParser::ColumnExprValueContext *left = nullptr;
antlr4::Token *operator_ = nullptr;
- HogQLParser::ColumnExprContext *right = nullptr;
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ HogQLParser::ColumnExprValueContext *right = nullptr;
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *PLUS();
antlr4::tree::TerminalNode *DASH();
antlr4::tree::TerminalNode *CONCAT();
@@ -1999,26 +2035,26 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNullSafeEqContext : public ColumnExprContext {
+ class ColumnExprNullSafeEqContext : public ColumnExprValueContext {
public:
- ColumnExprNullSafeEqContext(ColumnExprContext *ctx);
+ ColumnExprNullSafeEqContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *NULL_SAFE_EQ();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprPrecedence3Context : public ColumnExprContext {
+ class ColumnExprPrecedence3Context : public ColumnExprValueContext {
public:
- ColumnExprPrecedence3Context(ColumnExprContext *ctx);
+ ColumnExprPrecedence3Context(ColumnExprValueContext *ctx);
- HogQLParser::ColumnExprContext *left = nullptr;
+ HogQLParser::ColumnExprValueContext *left = nullptr;
antlr4::Token *operator_ = nullptr;
- HogQLParser::ColumnExprContext *right = nullptr;
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ HogQLParser::ColumnExprValueContext *right = nullptr;
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *IN();
antlr4::tree::TerminalNode *EQ_DOUBLE();
antlr4::tree::TerminalNode *EQ_SINGLE();
@@ -2041,9 +2077,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIntervalContext : public ColumnExprContext {
+ class ColumnExprIntervalContext : public ColumnExprValueContext {
public:
- ColumnExprIntervalContext(ColumnExprContext *ctx);
+ ColumnExprIntervalContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *INTERVAL();
ColumnExprContext *columnExpr();
@@ -2052,11 +2088,11 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIsNullContext : public ColumnExprContext {
+ class ColumnExprIsNullContext : public ColumnExprValueContext {
public:
- ColumnExprIsNullContext(ColumnExprContext *ctx);
+ ColumnExprIsNullContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *IS();
antlr4::tree::TerminalNode *NULL_SQL();
antlr4::tree::TerminalNode *NOT();
@@ -2064,9 +2100,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprWinFunctionTargetContext : public ColumnExprContext {
+ class ColumnExprWinFunctionTargetContext : public ColumnExprValueContext {
public:
- ColumnExprWinFunctionTargetContext(ColumnExprContext *ctx);
+ ColumnExprWinFunctionTargetContext(ColumnExprValueContext *ctx);
HogQLParser::ColumnExprListContext *columnExprs = nullptr;
HogQLParser::ColumnExprListContext *columnArgList = nullptr;
@@ -2088,9 +2124,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNamedArgContext : public ColumnExprContext {
+ class ColumnExprNamedArgContext : public ColumnExprValueContext {
public:
- ColumnExprNamedArgContext(ColumnExprContext *ctx);
+ ColumnExprNamedArgContext(ColumnExprValueContext *ctx);
IdentifierContext *identifier();
antlr4::tree::TerminalNode *COLONEQUALS();
@@ -2099,20 +2135,20 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNullPropertyAccessContext : public ColumnExprContext {
+ class ColumnExprNullPropertyAccessContext : public ColumnExprValueContext {
public:
- ColumnExprNullPropertyAccessContext(ColumnExprContext *ctx);
+ ColumnExprNullPropertyAccessContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *NULL_PROPERTY();
IdentifierContext *identifier();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIntervalStringContext : public ColumnExprContext {
+ class ColumnExprIntervalStringContext : public ColumnExprValueContext {
public:
- ColumnExprIntervalStringContext(ColumnExprContext *ctx);
+ ColumnExprIntervalStringContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *INTERVAL();
antlr4::tree::TerminalNode *STRING_LITERAL();
@@ -2120,20 +2156,20 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTagElementContext : public ColumnExprContext {
+ class ColumnExprTagElementContext : public ColumnExprValueContext {
public:
- ColumnExprTagElementContext(ColumnExprContext *ctx);
+ ColumnExprTagElementContext(ColumnExprValueContext *ctx);
HogqlxTagElementContext *hogqlxTagElement();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprCallContext : public ColumnExprContext {
+ class ColumnExprCallContext : public ColumnExprValueContext {
public:
- ColumnExprCallContext(ColumnExprContext *ctx);
+ ColumnExprCallContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *LPAREN();
antlr4::tree::TerminalNode *RPAREN();
ColumnExprListContext *columnExprList();
@@ -2141,24 +2177,24 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprArrayAccessContext : public ColumnExprContext {
+ class ColumnExprArrayAccessContext : public ColumnExprValueContext {
public:
- ColumnExprArrayAccessContext(ColumnExprContext *ctx);
+ ColumnExprArrayAccessContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *LBRACKET();
+ ColumnExprContext *columnExpr();
antlr4::tree::TerminalNode *RBRACKET();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprBetweenContext : public ColumnExprContext {
+ class ColumnExprBetweenContext : public ColumnExprValueContext {
public:
- ColumnExprBetweenContext(ColumnExprContext *ctx);
+ ColumnExprBetweenContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *BETWEEN();
antlr4::tree::TerminalNode *AND();
antlr4::tree::TerminalNode *NOT();
@@ -2166,9 +2202,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprParensContext : public ColumnExprContext {
+ class ColumnExprParensContext : public ColumnExprValueContext {
public:
- ColumnExprParensContext(ColumnExprContext *ctx);
+ ColumnExprParensContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *LPAREN();
ColumnExprContext *columnExpr();
@@ -2177,9 +2213,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTimestampContext : public ColumnExprContext {
+ class ColumnExprTimestampContext : public ColumnExprValueContext {
public:
- ColumnExprTimestampContext(ColumnExprContext *ctx);
+ ColumnExprTimestampContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *TIMESTAMP();
antlr4::tree::TerminalNode *STRING_LITERAL();
@@ -2187,20 +2223,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprAndContext : public ColumnExprContext {
+ class ColumnExprColumnsQualifiedExcludeContext : public ColumnExprValueContext {
public:
- ColumnExprAndContext(ColumnExprContext *ctx);
-
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
- antlr4::tree::TerminalNode *AND();
-
- virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
- };
-
- class ColumnExprColumnsQualifiedExcludeContext : public ColumnExprContext {
- public:
- ColumnExprColumnsQualifiedExcludeContext(ColumnExprContext *ctx);
+ ColumnExprColumnsQualifiedExcludeContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2216,19 +2241,19 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNotContext : public ColumnExprContext {
+ class ColumnExprNotContext : public ColumnExprValueContext {
public:
- ColumnExprNotContext(ColumnExprContext *ctx);
+ ColumnExprNotContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *NOT();
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprFunctionContext : public ColumnExprContext {
+ class ColumnExprFunctionContext : public ColumnExprValueContext {
public:
- ColumnExprFunctionContext(ColumnExprContext *ctx);
+ ColumnExprFunctionContext(ColumnExprValueContext *ctx);
HogQLParser::ColumnExprListContext *columnExprs = nullptr;
HogQLParser::ColumnExprListContext *columnArgList = nullptr;
@@ -2251,9 +2276,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprDictContext : public ColumnExprContext {
+ class ColumnExprDictContext : public ColumnExprValueContext {
public:
- ColumnExprDictContext(ColumnExprContext *ctx);
+ ColumnExprDictContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *LBRACE();
antlr4::tree::TerminalNode *RBRACE();
@@ -2262,9 +2287,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprSubqueryContext : public ColumnExprContext {
+ class ColumnExprSubqueryContext : public ColumnExprValueContext {
public:
- ColumnExprSubqueryContext(ColumnExprContext *ctx);
+ ColumnExprSubqueryContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *LPAREN();
SelectSetStmtContext *selectSetStmt();
@@ -2273,9 +2298,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprSubstringContext : public ColumnExprContext {
+ class ColumnExprSubstringContext : public ColumnExprValueContext {
public:
- ColumnExprSubstringContext(ColumnExprContext *ctx);
+ ColumnExprSubstringContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *SUBSTRING();
antlr4::tree::TerminalNode *LPAREN();
@@ -2288,9 +2313,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprCastContext : public ColumnExprContext {
+ class ColumnExprCastContext : public ColumnExprValueContext {
public:
- ColumnExprCastContext(ColumnExprContext *ctx);
+ ColumnExprCastContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *CAST();
antlr4::tree::TerminalNode *LPAREN();
@@ -2302,22 +2327,23 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprArraySliceContext : public ColumnExprContext {
+ class ColumnExprArraySliceContext : public ColumnExprValueContext {
public:
- ColumnExprArraySliceContext(ColumnExprContext *ctx);
+ ColumnExprArraySliceContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *LBRACKET();
antlr4::tree::TerminalNode *COLON();
antlr4::tree::TerminalNode *RBRACKET();
+ std::vector<ColumnExprContext *> columnExpr();
+ ColumnExprContext* columnExpr(size_t i);
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsQualifiedReplaceContext : public ColumnExprContext {
+ class ColumnExprColumnsQualifiedReplaceContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsQualifiedReplaceContext(ColumnExprContext *ctx);
+ ColumnExprColumnsQualifiedReplaceContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2333,20 +2359,20 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNullTupleAccessContext : public ColumnExprContext {
+ class ColumnExprNullTupleAccessContext : public ColumnExprValueContext {
public:
- ColumnExprNullTupleAccessContext(ColumnExprContext *ctx);
+ ColumnExprNullTupleAccessContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *NULL_PROPERTY();
antlr4::tree::TerminalNode *DECIMAL_LITERAL();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprFunctionWithinGroupContext : public ColumnExprContext {
+ class ColumnExprFunctionWithinGroupContext : public ColumnExprValueContext {
public:
- ColumnExprFunctionWithinGroupContext(ColumnExprContext *ctx);
+ ColumnExprFunctionWithinGroupContext(ColumnExprValueContext *ctx);
HogQLParser::ColumnExprListContext *columnExprs = nullptr;
IdentifierContext *identifier();
@@ -2358,9 +2384,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprPositionalContext : public ColumnExprContext {
+ class ColumnExprPositionalContext : public ColumnExprValueContext {
public:
- ColumnExprPositionalContext(ColumnExprContext *ctx);
+ ColumnExprPositionalContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *HASH();
antlr4::tree::TerminalNode *DECIMAL_LITERAL();
@@ -2368,9 +2394,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsRegexContext : public ColumnExprContext {
+ class ColumnExprColumnsRegexContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsRegexContext(ColumnExprContext *ctx);
+ ColumnExprColumnsRegexContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
antlr4::tree::TerminalNode *LPAREN();
@@ -2380,23 +2406,23 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTypeCastContext : public ColumnExprContext {
+ class ColumnExprTypeCastContext : public ColumnExprValueContext {
public:
- ColumnExprTypeCastContext(ColumnExprContext *ctx);
+ ColumnExprTypeCastContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *DOUBLECOLON();
ColumnTypeCastExprContext *columnTypeCastExpr();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIsDistinctFromContext : public ColumnExprContext {
+ class ColumnExprIsDistinctFromContext : public ColumnExprValueContext {
public:
- ColumnExprIsDistinctFromContext(ColumnExprContext *ctx);
+ ColumnExprIsDistinctFromContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *IS();
antlr4::tree::TerminalNode *DISTINCT();
antlr4::tree::TerminalNode *FROM();
@@ -2405,9 +2431,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprSpreadColumnsListContext : public ColumnExprContext {
+ class ColumnExprSpreadColumnsListContext : public ColumnExprValueContext {
public:
- ColumnExprSpreadColumnsListContext(ColumnExprContext *ctx);
+ ColumnExprSpreadColumnsListContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *ASTERISK();
antlr4::tree::TerminalNode *COLUMNS();
@@ -2418,9 +2444,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsExcludeReplaceContext : public ColumnExprContext {
+ class ColumnExprColumnsExcludeReplaceContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsExcludeReplaceContext(ColumnExprContext *ctx);
+ ColumnExprColumnsExcludeReplaceContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2436,9 +2462,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsQualifiedExcludeReplaceContext : public ColumnExprContext {
+ class ColumnExprColumnsQualifiedExcludeReplaceContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsQualifiedExcludeReplaceContext(ColumnExprContext *ctx);
+ ColumnExprColumnsQualifiedExcludeReplaceContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2456,9 +2482,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsExcludeContext : public ColumnExprContext {
+ class ColumnExprColumnsExcludeContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsExcludeContext(ColumnExprContext *ctx);
+ ColumnExprColumnsExcludeContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2472,9 +2498,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColonLambdaContext : public ColumnExprContext {
+ class ColumnExprColonLambdaContext : public ColumnExprValueContext {
public:
- ColumnExprColonLambdaContext(ColumnExprContext *ctx);
+ ColumnExprColonLambdaContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *LAMBDA();
std::vector<IdentifierContext *> identifier();
@@ -2487,11 +2513,11 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprCallSelectContext : public ColumnExprContext {
+ class ColumnExprCallSelectContext : public ColumnExprValueContext {
public:
- ColumnExprCallSelectContext(ColumnExprContext *ctx);
+ ColumnExprCallSelectContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *LPAREN();
SelectSetStmtContext *selectSetStmt();
antlr4::tree::TerminalNode *RPAREN();
@@ -2499,9 +2525,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsQualifiedAllContext : public ColumnExprContext {
+ class ColumnExprColumnsQualifiedAllContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsQualifiedAllContext(ColumnExprContext *ctx);
+ ColumnExprColumnsQualifiedAllContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
antlr4::tree::TerminalNode *LPAREN();
@@ -2513,9 +2539,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTrimContext : public ColumnExprContext {
+ class ColumnExprTrimContext : public ColumnExprValueContext {
public:
- ColumnExprTrimContext(ColumnExprContext *ctx);
+ ColumnExprTrimContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *TRIM();
antlr4::tree::TerminalNode *LPAREN();
@@ -2530,18 +2556,18 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTemplateStringContext : public ColumnExprContext {
+ class ColumnExprTemplateStringContext : public ColumnExprValueContext {
public:
- ColumnExprTemplateStringContext(ColumnExprContext *ctx);
+ ColumnExprTemplateStringContext(ColumnExprValueContext *ctx);
TemplateStringContext *templateString();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTupleContext : public ColumnExprContext {
+ class ColumnExprTupleContext : public ColumnExprValueContext {
public:
- ColumnExprTupleContext(ColumnExprContext *ctx);
+ ColumnExprTupleContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *LPAREN();
ColumnExprListContext *columnExprList();
@@ -2550,9 +2576,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTryCastContext : public ColumnExprContext {
+ class ColumnExprTryCastContext : public ColumnExprValueContext {
public:
- ColumnExprTryCastContext(ColumnExprContext *ctx);
+ ColumnExprTryCastContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *TRY_CAST();
antlr4::tree::TerminalNode *LPAREN();
@@ -2564,9 +2590,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsListContext : public ColumnExprContext {
+ class ColumnExprColumnsListContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsListContext(ColumnExprContext *ctx);
+ ColumnExprColumnsListContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
antlr4::tree::TerminalNode *LPAREN();
@@ -2576,9 +2602,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprColumnsReplaceContext : public ColumnExprContext {
+ class ColumnExprColumnsReplaceContext : public ColumnExprValueContext {
public:
- ColumnExprColumnsReplaceContext(ColumnExprContext *ctx);
+ ColumnExprColumnsReplaceContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *COLUMNS();
std::vector<antlr4::tree::TerminalNode *> LPAREN();
@@ -2592,9 +2618,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprSpreadColumnsRegexContext : public ColumnExprContext {
+ class ColumnExprSpreadColumnsRegexContext : public ColumnExprValueContext {
public:
- ColumnExprSpreadColumnsRegexContext(ColumnExprContext *ctx);
+ ColumnExprSpreadColumnsRegexContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *ASTERISK();
antlr4::tree::TerminalNode *COLUMNS();
@@ -2605,66 +2631,66 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprPropertyAccessContext : public ColumnExprContext {
+ class ColumnExprPropertyAccessContext : public ColumnExprValueContext {
public:
- ColumnExprPropertyAccessContext(ColumnExprContext *ctx);
+ ColumnExprPropertyAccessContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *DOT();
IdentifierContext *identifier();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNullArrayAccessContext : public ColumnExprContext {
+ class ColumnExprNullArrayAccessContext : public ColumnExprValueContext {
public:
- ColumnExprNullArrayAccessContext(ColumnExprContext *ctx);
+ ColumnExprNullArrayAccessContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *NULL_PROPERTY();
antlr4::tree::TerminalNode *LBRACKET();
+ ColumnExprContext *columnExpr();
antlr4::tree::TerminalNode *RBRACKET();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIgnoreNullsContext : public ColumnExprContext {
+ class ColumnExprIgnoreNullsContext : public ColumnExprValueContext {
public:
- ColumnExprIgnoreNullsContext(ColumnExprContext *ctx);
+ ColumnExprIgnoreNullsContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *IGNORE();
antlr4::tree::TerminalNode *NULLS();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprNullishContext : public ColumnExprContext {
+ class ColumnExprNullishContext : public ColumnExprValueContext {
public:
- ColumnExprNullishContext(ColumnExprContext *ctx);
+ ColumnExprNullishContext(ColumnExprValueContext *ctx);
- std::vector<ColumnExprContext *> columnExpr();
- ColumnExprContext* columnExpr(size_t i);
+ std::vector<ColumnExprValueContext *> columnExprValue();
+ ColumnExprValueContext* columnExprValue(size_t i);
antlr4::tree::TerminalNode *NULLISH();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprTupleAccessContext : public ColumnExprContext {
+ class ColumnExprTupleAccessContext : public ColumnExprValueContext {
public:
- ColumnExprTupleAccessContext(ColumnExprContext *ctx);
+ ColumnExprTupleAccessContext(ColumnExprValueContext *ctx);
- ColumnExprContext *columnExpr();
+ ColumnExprValueContext *columnExprValue();
antlr4::tree::TerminalNode *DOT();
antlr4::tree::TerminalNode *DECIMAL_LITERAL();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprCaseContext : public ColumnExprContext {
+ class ColumnExprCaseContext : public ColumnExprValueContext {
public:
- ColumnExprCaseContext(ColumnExprContext *ctx);
+ ColumnExprCaseContext(ColumnExprValueContext *ctx);
HogQLParser::ColumnExprContext *caseExpr = nullptr;
HogQLParser::ColumnExprContext *whenExpr = nullptr;
@@ -2683,9 +2709,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprDateContext : public ColumnExprContext {
+ class ColumnExprDateContext : public ColumnExprValueContext {
public:
- ColumnExprDateContext(ColumnExprContext *ctx);
+ ColumnExprDateContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *DATE();
antlr4::tree::TerminalNode *STRING_LITERAL();
@@ -2693,9 +2719,9 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprWinFunctionContext : public ColumnExprContext {
+ class ColumnExprWinFunctionContext : public ColumnExprValueContext {
public:
- ColumnExprWinFunctionContext(ColumnExprContext *ctx);
+ ColumnExprWinFunctionContext(ColumnExprValueContext *ctx);
HogQLParser::ColumnExprListContext *columnExprs = nullptr;
HogQLParser::ColumnExprListContext *columnArgList = nullptr;
@@ -2717,27 +2743,27 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprLambdaContext : public ColumnExprContext {
+ class ColumnExprLambdaContext : public ColumnExprValueContext {
public:
- ColumnExprLambdaContext(ColumnExprContext *ctx);
+ ColumnExprLambdaContext(ColumnExprValueContext *ctx);
ColumnLambdaExprContext *columnLambdaExpr();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprIdentifierContext : public ColumnExprContext {
+ class ColumnExprIdentifierContext : public ColumnExprValueContext {
public:
- ColumnExprIdentifierContext(ColumnExprContext *ctx);
+ ColumnExprIdentifierContext(ColumnExprValueContext *ctx);
ColumnIdentifierContext *columnIdentifier();
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- class ColumnExprAsteriskContext : public ColumnExprContext {
+ class ColumnExprAsteriskContext : public ColumnExprValueContext {
public:
- ColumnExprAsteriskContext(ColumnExprContext *ctx);
+ ColumnExprAsteriskContext(ColumnExprValueContext *ctx);
antlr4::tree::TerminalNode *ASTERISK();
TableIdentifierContext *tableIdentifier();
@@ -2750,8 +2776,8 @@ public:
virtual std::any accept(antlr4::tree::ParseTreeVisitor *visitor) override;
};
- ColumnExprContext* columnExpr();
- ColumnExprContext* columnExpr(int precedence);
+ ColumnExprValueContext* columnExprValue();
+ ColumnExprValueContext* columnExprValue(int precedence);
class ColumnLambdaExprContext : public antlr4::ParserRuleContext {
public:
ColumnLambdaExprContext(antlr4::ParserRuleContext *parent, size_t invokingState);
@@ -3710,6 +3736,7 @@ public:
bool joinExprSempred(JoinExprContext *_localctx, size_t predicateIndex);
bool columnTypeExprSempred(ColumnTypeExprContext *_localctx, size_t predicateIndex);
bool columnExprSempred(ColumnExprContext *_localctx, size_t predicateIndex);
+ bool columnExprValueSempred(ColumnExprValueContext *_localctx, size_t predicateIndex);
bool tableExprSempred(TableExprContext *_localctx, size_t predicateIndex);
// By default the static state used to implement the parser is lazily initialized during the first
diff --git a/common/hogql_parser/HogQLParser.interp b/common/hogql_parser/HogQLParser.interp
index 5dc03f5e808a..9ffce5be6802 100644
--- a/common/hogql_parser/HogQLParser.interp
+++ b/common/hogql_parser/HogQLParser.interp
@@ -497,6 +497,7 @@ selectColumnExprListBeforeFrom
selectColumnExprList
selectColumnExpr
columnExpr
+columnExprValue
columnLambdaExpr
columnsReplaceList
columnsReplaceItem
@@ -540,4 +541,4 @@ stringContentsFull
atn:
-[4, 1, 207, 2084, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 2, 114, 7, 114, 2, 115, 7, 115, 2, 116, 7, 116, 2, 117, 7, 117, 1, 0, 5, 0, 238, 8, 0, 10, 0, 12, 0, 241, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 247, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 255, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 260, 8, 4, 10, 4, 12, 4, 263, 9, 4, 1, 4, 3, 4, 266, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 279, 8, 5, 1, 6, 1, 6, 3, 6, 283, 8, 6, 1, 6, 3, 6, 286, 8, 6, 1, 7, 1, 7, 1, 7, 3, 7, 291, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 298, 8, 8, 1, 8, 1, 8, 3, 8, 302, 8, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 5, 9, 309, 8, 9, 10, 9, 12, 9, 312, 9, 9, 1, 9, 1, 9, 3, 9, 316, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 325, 8, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 333, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 340, 8, 12, 1, 12, 1, 12, 3, 12, 344, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 350, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 355, 8, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 363, 8, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 370, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 376, 8, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 3, 16, 388, 8, 16, 1, 16, 3, 16, 391, 8, 16, 1, 17, 1, 17, 1, 18, 1, 18, 5, 18, 397, 8, 18, 10, 18, 12, 18, 400, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 5, 20, 411, 8, 20, 10, 20, 12, 20, 414, 9, 20, 1, 20, 3, 20, 417, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 422, 8, 21, 1, 21, 3, 21, 425, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 440, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 446, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 451, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 457, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 463, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 468, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 474, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 480, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 485, 8, 23, 3, 23, 487, 8, 23, 1, 23, 1, 23, 1, 24, 1, 24, 5, 24, 493, 8, 24, 10, 24, 12, 24, 496, 9, 24, 1, 24, 3, 24, 499, 8, 24, 1, 24, 3, 24, 502, 8, 24, 1, 25, 1, 25, 1, 25, 3, 25, 507, 8, 25, 1, 25, 1, 25, 3, 25, 511, 8, 25, 1, 25, 1, 25, 3, 25, 515, 8, 25, 1, 25, 1, 25, 1, 25, 3, 25, 520, 8, 25, 1, 25, 1, 25, 3, 25, 524, 8, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 531, 8, 25, 1, 26, 3, 26, 534, 8, 26, 1, 26, 1, 26, 3, 26, 538, 8, 26, 1, 26, 3, 26, 541, 8, 26, 1, 26, 1, 26, 3, 26, 545, 8, 26, 1, 26, 3, 26, 548, 8, 26, 1, 26, 3, 26, 551, 8, 26, 1, 26, 3, 26, 554, 8, 26, 1, 26, 3, 26, 557, 8, 26, 1, 26, 3, 26, 560, 8, 26, 1, 26, 3, 26, 563, 8, 26, 1, 26, 1, 26, 3, 26, 567, 8, 26, 1, 26, 1, 26, 3, 26, 571, 8, 26, 1, 26, 3, 26, 574, 8, 26, 1, 26, 3, 26, 577, 8, 26, 1, 26, 1, 26, 3, 26, 581, 8, 26, 1, 26, 3, 26, 584, 8, 26, 1, 26, 3, 26, 587, 8, 26, 1, 26, 3, 26, 590, 8, 26, 1, 26, 1, 26, 3, 26, 594, 8, 26, 1, 26, 3, 26, 597, 8, 26, 1, 27, 1, 27, 3, 27, 601, 8, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 609, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 3, 30, 615, 8, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 634, 8, 31, 10, 31, 12, 31, 637, 9, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 660, 8, 34, 1, 35, 1, 35, 1, 35, 5, 35, 665, 8, 35, 10, 35, 12, 35, 668, 9, 35, 1, 36, 1, 36, 3, 36, 672, 8, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 686, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 693, 8, 40, 10, 40, 12, 40, 696, 9, 40, 1, 40, 1, 40, 3, 40, 700, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 3, 43, 714, 8, 43, 1, 43, 1, 43, 3, 43, 718, 8, 43, 1, 43, 1, 43, 3, 43, 722, 8, 43, 1, 43, 1, 43, 1, 43, 3, 43, 727, 8, 43, 1, 43, 1, 43, 3, 43, 731, 8, 43, 1, 43, 1, 43, 1, 43, 3, 43, 736, 8, 43, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 5, 46, 748, 8, 46, 10, 46, 12, 46, 751, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 757, 8, 47, 10, 47, 12, 47, 760, 9, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 3, 48, 767, 8, 48, 1, 48, 3, 48, 770, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 776, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 784, 8, 48, 1, 48, 3, 48, 787, 8, 48, 1, 48, 1, 48, 1, 48, 3, 48, 792, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 799, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 809, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 817, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 823, 8, 48, 10, 48, 12, 48, 826, 9, 48, 1, 49, 3, 49, 829, 8, 49, 1, 49, 1, 49, 1, 49, 3, 49, 834, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 841, 8, 49, 1, 49, 3, 49, 844, 8, 49, 1, 49, 1, 49, 3, 49, 848, 8, 49, 1, 49, 1, 49, 3, 49, 852, 8, 49, 1, 49, 3, 49, 855, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 861, 8, 49, 3, 49, 863, 8, 49, 1, 49, 3, 49, 866, 8, 49, 1, 49, 1, 49, 3, 49, 870, 8, 49, 1, 49, 1, 49, 3, 49, 874, 8, 49, 1, 49, 3, 49, 877, 8, 49, 3, 49, 879, 8, 49, 3, 49, 881, 8, 49, 1, 50, 1, 50, 1, 50, 3, 50, 886, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 897, 8, 51, 1, 52, 1, 52, 1, 52, 3, 52, 902, 8, 52, 1, 52, 1, 52, 3, 52, 906, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 912, 8, 52, 1, 53, 1, 53, 1, 53, 3, 53, 917, 8, 53, 1, 54, 1, 54, 1, 54, 5, 54, 922, 8, 54, 10, 54, 12, 54, 925, 9, 54, 1, 55, 1, 55, 3, 55, 929, 8, 55, 1, 55, 1, 55, 3, 55, 933, 8, 55, 1, 55, 1, 55, 3, 55, 937, 8, 55, 1, 55, 3, 55, 940, 8, 55, 1, 56, 1, 56, 1, 56, 1, 56, 3, 56, 946, 8, 56, 1, 56, 1, 56, 3, 56, 950, 8, 56, 1, 56, 1, 56, 3, 56, 954, 8, 56, 1, 57, 1, 57, 1, 57, 3, 57, 959, 8, 57, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 965, 8, 58, 3, 58, 967, 8, 58, 1, 59, 1, 59, 1, 59, 5, 59, 972, 8, 59, 10, 59, 12, 59, 975, 9, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 3, 61, 982, 8, 61, 1, 61, 3, 61, 985, 8, 61, 1, 61, 3, 61, 988, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 1013, 8, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 3, 67, 1027, 8, 67, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1041, 8, 69, 10, 69, 12, 69, 1044, 9, 69, 1, 69, 3, 69, 1047, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1056, 8, 69, 10, 69, 12, 69, 1059, 9, 69, 1, 69, 3, 69, 1062, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1071, 8, 69, 10, 69, 12, 69, 1074, 9, 69, 1, 69, 3, 69, 1077, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1084, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 4, 69, 1090, 8, 69, 11, 69, 12, 69, 1091, 1, 69, 3, 69, 1095, 8, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1100, 8, 69, 1, 69, 5, 69, 1103, 8, 69, 10, 69, 12, 69, 1106, 9, 69, 1, 70, 1, 70, 1, 70, 3, 70, 1111, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1117, 8, 70, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 1123, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 5, 73, 1130, 8, 73, 10, 73, 12, 73, 1133, 9, 73, 1, 73, 3, 73, 1136, 8, 73, 1, 74, 1, 74, 1, 74, 5, 74, 1141, 8, 74, 10, 74, 12, 74, 1144, 9, 74, 1, 74, 1, 74, 1, 74, 3, 74, 1149, 8, 74, 1, 75, 1, 75, 1, 75, 5, 75, 1154, 8, 75, 10, 75, 12, 75, 1157, 9, 75, 1, 75, 3, 75, 1160, 8, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 3, 76, 1172, 8, 76, 1, 77, 1, 77, 1, 77, 3, 77, 1177, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 4, 77, 1184, 8, 77, 11, 77, 12, 77, 1185, 1, 77, 1, 77, 3, 77, 1190, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1223, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1271, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1299, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1363, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1371, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1377, 8, 77, 1, 77, 3, 77, 1380, 8, 77, 1, 77, 3, 77, 1383, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1391, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1401, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1407, 8, 77, 1, 77, 3, 77, 1410, 8, 77, 1, 77, 3, 77, 1413, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1421, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1429, 8, 77, 1, 77, 3, 77, 1432, 8, 77, 1, 77, 1, 77, 3, 77, 1436, 8, 77, 1, 77, 3, 77, 1439, 8, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1444, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1453, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1465, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1473, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 5, 77, 1479, 8, 77, 10, 77, 12, 77, 1482, 9, 77, 1, 77, 3, 77, 1485, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1503, 8, 77, 1, 77, 1, 77, 3, 77, 1507, 8, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1512, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1523, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1529, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1536, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1548, 8, 77, 1, 77, 1, 77, 3, 77, 1552, 8, 77, 1, 77, 3, 77, 1555, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1564, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1570, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1589, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1610, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1621, 8, 77, 1, 77, 1, 77, 3, 77, 1625, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1655, 8, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1662, 8, 77, 5, 77, 1664, 8, 77, 10, 77, 12, 77, 1667, 9, 77, 1, 78, 1, 78, 1, 78, 1, 78, 5, 78, 1673, 8, 78, 10, 78, 12, 78, 1676, 9, 78, 1, 78, 3, 78, 1679, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 5, 78, 1686, 8, 78, 10, 78, 12, 78, 1689, 9, 78, 1, 78, 3, 78, 1692, 8, 78, 1, 78, 1, 78, 3, 78, 1696, 8, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1701, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 5, 78, 1707, 8, 78, 10, 78, 12, 78, 1710, 9, 78, 1, 78, 3, 78, 1713, 8, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1718, 8, 78, 1, 79, 1, 79, 1, 79, 5, 79, 1723, 8, 79, 10, 79, 12, 79, 1726, 9, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 3, 81, 1738, 8, 81, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 5, 83, 1745, 8, 83, 10, 83, 12, 83, 1748, 9, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 5, 83, 1755, 8, 83, 10, 83, 12, 83, 1758, 9, 83, 1, 83, 1, 83, 5, 83, 1762, 8, 83, 10, 83, 12, 83, 1765, 9, 83, 1, 83, 1, 83, 1, 83, 1, 83, 3, 83, 1771, 8, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 3, 84, 1784, 8, 84, 1, 85, 1, 85, 1, 85, 5, 85, 1789, 8, 85, 10, 85, 12, 85, 1792, 9, 85, 1, 85, 3, 85, 1795, 8, 85, 1, 86, 1, 86, 3, 86, 1799, 8, 86, 1, 86, 1, 86, 1, 86, 3, 86, 1804, 8, 86, 1, 86, 1, 86, 3, 86, 1808, 8, 86, 1, 86, 3, 86, 1811, 8, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 3, 86, 1821, 8, 86, 1, 87, 1, 87, 1, 87, 1, 87, 5, 87, 1827, 8, 87, 10, 87, 12, 87, 1830, 9, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 3, 88, 1838, 8, 88, 1, 88, 3, 88, 1841, 8, 88, 1, 89, 1, 89, 1, 89, 5, 89, 1846, 8, 89, 10, 89, 12, 89, 1849, 9, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 3, 90, 1864, 8, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 3, 90, 1874, 8, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 3, 90, 1882, 8, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 3, 90, 1892, 8, 90, 1, 90, 3, 90, 1895, 8, 90, 5, 90, 1897, 8, 90, 10, 90, 12, 90, 1900, 9, 90, 1, 91, 1, 91, 4, 91, 1904, 8, 91, 11, 91, 12, 91, 1905, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 93, 1, 93, 1, 93, 5, 93, 1917, 8, 93, 10, 93, 12, 93, 1920, 9, 93, 1, 93, 3, 93, 1923, 8, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 1, 94, 5, 94, 1938, 8, 94, 10, 94, 12, 94, 1941, 9, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 3, 95, 1948, 8, 95, 1, 96, 1, 96, 1, 96, 1, 96, 5, 96, 1954, 8, 96, 10, 96, 12, 96, 1957, 9, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 97, 3, 97, 1964, 8, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 3, 98, 1971, 8, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 5, 99, 1978, 8, 99, 10, 99, 12, 99, 1981, 9, 99, 1, 99, 3, 99, 1984, 8, 99, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 3, 101, 1994, 8, 101, 3, 101, 1996, 8, 101, 1, 102, 3, 102, 1999, 8, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 3, 102, 2009, 8, 102, 1, 103, 1, 103, 1, 103, 3, 103, 2014, 8, 103, 1, 104, 1, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 107, 1, 107, 1, 108, 1, 108, 1, 108, 3, 108, 2027, 8, 108, 1, 109, 1, 109, 1, 109, 3, 109, 2032, 8, 109, 1, 110, 1, 110, 1, 110, 1, 110, 3, 110, 2038, 8, 110, 1, 111, 1, 111, 1, 111, 1, 111, 1, 112, 1, 112, 1, 112, 1, 112, 1, 113, 1, 113, 3, 113, 2050, 8, 113, 1, 114, 1, 114, 5, 114, 2054, 8, 114, 10, 114, 12, 114, 2057, 9, 114, 1, 114, 1, 114, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 3, 115, 2066, 8, 115, 1, 116, 1, 116, 5, 116, 2070, 8, 116, 10, 116, 12, 116, 2073, 9, 116, 1, 116, 1, 116, 1, 117, 1, 117, 1, 117, 1, 117, 1, 117, 3, 117, 2082, 8, 117, 1, 117, 0, 4, 96, 138, 154, 180, 118, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 0, 20, 2, 0, 36, 36, 41, 41, 2, 0, 19, 19, 94, 94, 2, 0, 53, 53, 63, 63, 3, 0, 1, 1, 4, 4, 8, 8, 2, 0, 3, 3, 100, 100, 4, 0, 1, 1, 3, 4, 8, 8, 100, 100, 2, 0, 63, 63, 93, 93, 2, 0, 76, 76, 151, 151, 2, 0, 7, 7, 23, 24, 2, 0, 35, 35, 61, 61, 2, 0, 89, 89, 96, 96, 3, 0, 21, 21, 56, 56, 108, 109, 3, 0, 10, 10, 62, 62, 115, 115, 2, 0, 48, 48, 65, 65, 1, 0, 138, 139, 2, 0, 153, 153, 176, 176, 7, 0, 22, 22, 45, 45, 68, 69, 88, 88, 98, 98, 125, 125, 132, 132, 20, 0, 1, 13, 15, 21, 23, 27, 29, 33, 35, 35, 37, 40, 42, 44, 46, 51, 53, 53, 55, 63, 65, 66, 70, 71, 73, 73, 75, 87, 89, 97, 99, 105, 107, 117, 119, 124, 126, 127, 129, 130, 4, 0, 21, 21, 35, 35, 46, 46, 59, 59, 8, 0, 7, 7, 15, 15, 21, 21, 24, 24, 31, 31, 46, 46, 92, 92, 113, 114, 2366, 0, 239, 1, 0, 0, 0, 2, 246, 1, 0, 0, 0, 4, 248, 1, 0, 0, 0, 6, 250, 1, 0, 0, 0, 8, 256, 1, 0, 0, 0, 10, 278, 1, 0, 0, 0, 12, 280, 1, 0, 0, 0, 14, 287, 1, 0, 0, 0, 16, 292, 1, 0, 0, 0, 18, 305, 1, 0, 0, 0, 20, 317, 1, 0, 0, 0, 22, 326, 1, 0, 0, 0, 24, 334, 1, 0, 0, 0, 26, 356, 1, 0, 0, 0, 28, 371, 1, 0, 0, 0, 30, 380, 1, 0, 0, 0, 32, 384, 1, 0, 0, 0, 34, 392, 1, 0, 0, 0, 36, 394, 1, 0, 0, 0, 38, 403, 1, 0, 0, 0, 40, 407, 1, 0, 0, 0, 42, 421, 1, 0, 0, 0, 44, 439, 1, 0, 0, 0, 46, 486, 1, 0, 0, 0, 48, 490, 1, 0, 0, 0, 50, 530, 1, 0, 0, 0, 52, 533, 1, 0, 0, 0, 54, 598, 1, 0, 0, 0, 56, 604, 1, 0, 0, 0, 58, 610, 1, 0, 0, 0, 60, 614, 1, 0, 0, 0, 62, 620, 1, 0, 0, 0, 64, 638, 1, 0, 0, 0, 66, 641, 1, 0, 0, 0, 68, 644, 1, 0, 0, 0, 70, 661, 1, 0, 0, 0, 72, 669, 1, 0, 0, 0, 74, 675, 1, 0, 0, 0, 76, 678, 1, 0, 0, 0, 78, 681, 1, 0, 0, 0, 80, 687, 1, 0, 0, 0, 82, 701, 1, 0, 0, 0, 84, 705, 1, 0, 0, 0, 86, 735, 1, 0, 0, 0, 88, 737, 1, 0, 0, 0, 90, 740, 1, 0, 0, 0, 92, 743, 1, 0, 0, 0, 94, 752, 1, 0, 0, 0, 96, 775, 1, 0, 0, 0, 98, 880, 1, 0, 0, 0, 100, 885, 1, 0, 0, 0, 102, 896, 1, 0, 0, 0, 104, 898, 1, 0, 0, 0, 106, 913, 1, 0, 0, 0, 108, 918, 1, 0, 0, 0, 110, 926, 1, 0, 0, 0, 112, 941, 1, 0, 0, 0, 114, 955, 1, 0, 0, 0, 116, 966, 1, 0, 0, 0, 118, 968, 1, 0, 0, 0, 120, 976, 1, 0, 0, 0, 122, 981, 1, 0, 0, 0, 124, 989, 1, 0, 0, 0, 126, 993, 1, 0, 0, 0, 128, 997, 1, 0, 0, 0, 130, 1003, 1, 0, 0, 0, 132, 1012, 1, 0, 0, 0, 134, 1026, 1, 0, 0, 0, 136, 1028, 1, 0, 0, 0, 138, 1094, 1, 0, 0, 0, 140, 1116, 1, 0, 0, 0, 142, 1122, 1, 0, 0, 0, 144, 1124, 1, 0, 0, 0, 146, 1126, 1, 0, 0, 0, 148, 1148, 1, 0, 0, 0, 150, 1150, 1, 0, 0, 0, 152, 1171, 1, 0, 0, 0, 154, 1522, 1, 0, 0, 0, 156, 1717, 1, 0, 0, 0, 158, 1719, 1, 0, 0, 0, 160, 1727, 1, 0, 0, 0, 162, 1737, 1, 0, 0, 0, 164, 1739, 1, 0, 0, 0, 166, 1770, 1, 0, 0, 0, 168, 1783, 1, 0, 0, 0, 170, 1785, 1, 0, 0, 0, 172, 1820, 1, 0, 0, 0, 174, 1822, 1, 0, 0, 0, 176, 1840, 1, 0, 0, 0, 178, 1842, 1, 0, 0, 0, 180, 1863, 1, 0, 0, 0, 182, 1901, 1, 0, 0, 0, 184, 1907, 1, 0, 0, 0, 186, 1913, 1, 0, 0, 0, 188, 1924, 1, 0, 0, 0, 190, 1947, 1, 0, 0, 0, 192, 1949, 1, 0, 0, 0, 194, 1960, 1, 0, 0, 0, 196, 1970, 1, 0, 0, 0, 198, 1974, 1, 0, 0, 0, 200, 1985, 1, 0, 0, 0, 202, 1995, 1, 0, 0, 0, 204, 1998, 1, 0, 0, 0, 206, 2013, 1, 0, 0, 0, 208, 2015, 1, 0, 0, 0, 210, 2017, 1, 0, 0, 0, 212, 2019, 1, 0, 0, 0, 214, 2021, 1, 0, 0, 0, 216, 2026, 1, 0, 0, 0, 218, 2031, 1, 0, 0, 0, 220, 2037, 1, 0, 0, 0, 222, 2039, 1, 0, 0, 0, 224, 2043, 1, 0, 0, 0, 226, 2049, 1, 0, 0, 0, 228, 2051, 1, 0, 0, 0, 230, 2065, 1, 0, 0, 0, 232, 2067, 1, 0, 0, 0, 234, 2081, 1, 0, 0, 0, 236, 238, 3, 2, 1, 0, 237, 236, 1, 0, 0, 0, 238, 241, 1, 0, 0, 0, 239, 237, 1, 0, 0, 0, 239, 240, 1, 0, 0, 0, 240, 242, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 242, 243, 5, 0, 0, 1, 243, 1, 1, 0, 0, 0, 244, 247, 3, 6, 3, 0, 245, 247, 3, 10, 5, 0, 246, 244, 1, 0, 0, 0, 246, 245, 1, 0, 0, 0, 247, 3, 1, 0, 0, 0, 248, 249, 3, 154, 77, 0, 249, 5, 1, 0, 0, 0, 250, 251, 5, 64, 0, 0, 251, 254, 3, 220, 110, 0, 252, 253, 5, 149, 0, 0, 253, 255, 3, 4, 2, 0, 254, 252, 1, 0, 0, 0, 254, 255, 1, 0, 0, 0, 255, 7, 1, 0, 0, 0, 256, 261, 3, 178, 89, 0, 257, 258, 5, 151, 0, 0, 258, 260, 3, 178, 89, 0, 259, 257, 1, 0, 0, 0, 260, 263, 1, 0, 0, 0, 261, 259, 1, 0, 0, 0, 261, 262, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 264, 266, 5, 151, 0, 0, 265, 264, 1, 0, 0, 0, 265, 266, 1, 0, 0, 0, 266, 9, 1, 0, 0, 0, 267, 279, 3, 12, 6, 0, 268, 279, 3, 14, 7, 0, 269, 279, 3, 18, 9, 0, 270, 279, 3, 20, 10, 0, 271, 279, 3, 22, 11, 0, 272, 279, 3, 26, 13, 0, 273, 279, 3, 24, 12, 0, 274, 279, 3, 28, 14, 0, 275, 279, 3, 36, 18, 0, 276, 279, 3, 32, 16, 0, 277, 279, 3, 34, 17, 0, 278, 267, 1, 0, 0, 0, 278, 268, 1, 0, 0, 0, 278, 269, 1, 0, 0, 0, 278, 270, 1, 0, 0, 0, 278, 271, 1, 0, 0, 0, 278, 272, 1, 0, 0, 0, 278, 273, 1, 0, 0, 0, 278, 274, 1, 0, 0, 0, 278, 275, 1, 0, 0, 0, 278, 276, 1, 0, 0, 0, 278, 277, 1, 0, 0, 0, 279, 11, 1, 0, 0, 0, 280, 282, 5, 92, 0, 0, 281, 283, 3, 4, 2, 0, 282, 281, 1, 0, 0, 0, 282, 283, 1, 0, 0, 0, 283, 285, 1, 0, 0, 0, 284, 286, 5, 187, 0, 0, 285, 284, 1, 0, 0, 0, 285, 286, 1, 0, 0, 0, 286, 13, 1, 0, 0, 0, 287, 288, 5, 106, 0, 0, 288, 290, 3, 4, 2, 0, 289, 291, 5, 187, 0, 0, 290, 289, 1, 0, 0, 0, 290, 291, 1, 0, 0, 0, 291, 15, 1, 0, 0, 0, 292, 301, 5, 14, 0, 0, 293, 294, 5, 165, 0, 0, 294, 297, 3, 220, 110, 0, 295, 296, 5, 150, 0, 0, 296, 298, 3, 220, 110, 0, 297, 295, 1, 0, 0, 0, 297, 298, 1, 0, 0, 0, 298, 299, 1, 0, 0, 0, 299, 300, 5, 186, 0, 0, 300, 302, 1, 0, 0, 0, 301, 293, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 303, 1, 0, 0, 0, 303, 304, 3, 36, 18, 0, 304, 17, 1, 0, 0, 0, 305, 306, 5, 118, 0, 0, 306, 310, 3, 36, 18, 0, 307, 309, 3, 16, 8, 0, 308, 307, 1, 0, 0, 0, 309, 312, 1, 0, 0, 0, 310, 308, 1, 0, 0, 0, 310, 311, 1, 0, 0, 0, 311, 315, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 313, 314, 5, 34, 0, 0, 314, 316, 3, 36, 18, 0, 315, 313, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316, 19, 1, 0, 0, 0, 317, 318, 5, 47, 0, 0, 318, 319, 5, 165, 0, 0, 319, 320, 3, 4, 2, 0, 320, 321, 5, 186, 0, 0, 321, 324, 3, 10, 5, 0, 322, 323, 5, 26, 0, 0, 323, 325, 3, 10, 5, 0, 324, 322, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 21, 1, 0, 0, 0, 326, 327, 5, 128, 0, 0, 327, 328, 5, 165, 0, 0, 328, 329, 3, 4, 2, 0, 329, 330, 5, 186, 0, 0, 330, 332, 3, 10, 5, 0, 331, 333, 5, 187, 0, 0, 332, 331, 1, 0, 0, 0, 332, 333, 1, 0, 0, 0, 333, 23, 1, 0, 0, 0, 334, 335, 5, 38, 0, 0, 335, 339, 5, 165, 0, 0, 336, 340, 3, 6, 3, 0, 337, 340, 3, 30, 15, 0, 338, 340, 3, 4, 2, 0, 339, 336, 1, 0, 0, 0, 339, 337, 1, 0, 0, 0, 339, 338, 1, 0, 0, 0, 339, 340, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 343, 5, 187, 0, 0, 342, 344, 3, 4, 2, 0, 343, 342, 1, 0, 0, 0, 343, 344, 1, 0, 0, 0, 344, 345, 1, 0, 0, 0, 345, 349, 5, 187, 0, 0, 346, 350, 3, 6, 3, 0, 347, 350, 3, 30, 15, 0, 348, 350, 3, 4, 2, 0, 349, 346, 1, 0, 0, 0, 349, 347, 1, 0, 0, 0, 349, 348, 1, 0, 0, 0, 349, 350, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 352, 5, 186, 0, 0, 352, 354, 3, 10, 5, 0, 353, 355, 5, 187, 0, 0, 354, 353, 1, 0, 0, 0, 354, 355, 1, 0, 0, 0, 355, 25, 1, 0, 0, 0, 356, 357, 5, 38, 0, 0, 357, 358, 5, 165, 0, 0, 358, 359, 5, 64, 0, 0, 359, 362, 3, 220, 110, 0, 360, 361, 5, 151, 0, 0, 361, 363, 3, 220, 110, 0, 362, 360, 1, 0, 0, 0, 362, 363, 1, 0, 0, 0, 363, 364, 1, 0, 0, 0, 364, 365, 5, 51, 0, 0, 365, 366, 3, 4, 2, 0, 366, 367, 5, 186, 0, 0, 367, 369, 3, 10, 5, 0, 368, 370, 5, 187, 0, 0, 369, 368, 1, 0, 0, 0, 369, 370, 1, 0, 0, 0, 370, 27, 1, 0, 0, 0, 371, 372, 7, 0, 0, 0, 372, 373, 3, 220, 110, 0, 373, 375, 5, 165, 0, 0, 374, 376, 3, 8, 4, 0, 375, 374, 1, 0, 0, 0, 375, 376, 1, 0, 0, 0, 376, 377, 1, 0, 0, 0, 377, 378, 5, 186, 0, 0, 378, 379, 3, 36, 18, 0, 379, 29, 1, 0, 0, 0, 380, 381, 3, 4, 2, 0, 381, 382, 5, 149, 0, 0, 382, 383, 3, 4, 2, 0, 383, 31, 1, 0, 0, 0, 384, 387, 3, 4, 2, 0, 385, 386, 5, 149, 0, 0, 386, 388, 3, 4, 2, 0, 387, 385, 1, 0, 0, 0, 387, 388, 1, 0, 0, 0, 388, 390, 1, 0, 0, 0, 389, 391, 5, 187, 0, 0, 390, 389, 1, 0, 0, 0, 390, 391, 1, 0, 0, 0, 391, 33, 1, 0, 0, 0, 392, 393, 5, 187, 0, 0, 393, 35, 1, 0, 0, 0, 394, 398, 5, 163, 0, 0, 395, 397, 3, 2, 1, 0, 396, 395, 1, 0, 0, 0, 397, 400, 1, 0, 0, 0, 398, 396, 1, 0, 0, 0, 398, 399, 1, 0, 0, 0, 399, 401, 1, 0, 0, 0, 400, 398, 1, 0, 0, 0, 401, 402, 5, 184, 0, 0, 402, 37, 1, 0, 0, 0, 403, 404, 3, 4, 2, 0, 404, 405, 5, 150, 0, 0, 405, 406, 3, 4, 2, 0, 406, 39, 1, 0, 0, 0, 407, 412, 3, 38, 19, 0, 408, 409, 5, 151, 0, 0, 409, 411, 3, 38, 19, 0, 410, 408, 1, 0, 0, 0, 411, 414, 1, 0, 0, 0, 412, 410, 1, 0, 0, 0, 412, 413, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 415, 417, 5, 151, 0, 0, 416, 415, 1, 0, 0, 0, 416, 417, 1, 0, 0, 0, 417, 41, 1, 0, 0, 0, 418, 422, 3, 48, 24, 0, 419, 422, 3, 52, 26, 0, 420, 422, 3, 166, 83, 0, 421, 418, 1, 0, 0, 0, 421, 419, 1, 0, 0, 0, 421, 420, 1, 0, 0, 0, 422, 424, 1, 0, 0, 0, 423, 425, 5, 187, 0, 0, 424, 423, 1, 0, 0, 0, 424, 425, 1, 0, 0, 0, 425, 426, 1, 0, 0, 0, 426, 427, 5, 0, 0, 1, 427, 43, 1, 0, 0, 0, 428, 440, 3, 52, 26, 0, 429, 430, 3, 54, 27, 0, 430, 431, 5, 165, 0, 0, 431, 432, 3, 48, 24, 0, 432, 433, 5, 186, 0, 0, 433, 440, 1, 0, 0, 0, 434, 435, 5, 165, 0, 0, 435, 436, 3, 48, 24, 0, 436, 437, 5, 186, 0, 0, 437, 440, 1, 0, 0, 0, 438, 440, 3, 224, 112, 0, 439, 428, 1, 0, 0, 0, 439, 429, 1, 0, 0, 0, 439, 434, 1, 0, 0, 0, 439, 438, 1, 0, 0, 0, 440, 45, 1, 0, 0, 0, 441, 442, 5, 28, 0, 0, 442, 445, 5, 1, 0, 0, 443, 444, 5, 11, 0, 0, 444, 446, 5, 70, 0, 0, 445, 443, 1, 0, 0, 0, 445, 446, 1, 0, 0, 0, 446, 487, 1, 0, 0, 0, 447, 450, 5, 28, 0, 0, 448, 449, 5, 11, 0, 0, 449, 451, 5, 70, 0, 0, 450, 448, 1, 0, 0, 0, 450, 451, 1, 0, 0, 0, 451, 487, 1, 0, 0, 0, 452, 453, 5, 121, 0, 0, 453, 456, 5, 1, 0, 0, 454, 455, 5, 11, 0, 0, 455, 457, 5, 70, 0, 0, 456, 454, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 487, 1, 0, 0, 0, 458, 459, 5, 121, 0, 0, 459, 462, 5, 25, 0, 0, 460, 461, 5, 11, 0, 0, 461, 463, 5, 70, 0, 0, 462, 460, 1, 0, 0, 0, 462, 463, 1, 0, 0, 0, 463, 487, 1, 0, 0, 0, 464, 467, 5, 121, 0, 0, 465, 466, 5, 11, 0, 0, 466, 468, 5, 70, 0, 0, 467, 465, 1, 0, 0, 0, 467, 468, 1, 0, 0, 0, 468, 487, 1, 0, 0, 0, 469, 470, 5, 54, 0, 0, 470, 473, 5, 1, 0, 0, 471, 472, 5, 11, 0, 0, 472, 474, 5, 70, 0, 0, 473, 471, 1, 0, 0, 0, 473, 474, 1, 0, 0, 0, 474, 487, 1, 0, 0, 0, 475, 476, 5, 54, 0, 0, 476, 479, 5, 25, 0, 0, 477, 478, 5, 11, 0, 0, 478, 480, 5, 70, 0, 0, 479, 477, 1, 0, 0, 0, 479, 480, 1, 0, 0, 0, 480, 487, 1, 0, 0, 0, 481, 484, 5, 54, 0, 0, 482, 483, 5, 11, 0, 0, 483, 485, 5, 70, 0, 0, 484, 482, 1, 0, 0, 0, 484, 485, 1, 0, 0, 0, 485, 487, 1, 0, 0, 0, 486, 441, 1, 0, 0, 0, 486, 447, 1, 0, 0, 0, 486, 452, 1, 0, 0, 0, 486, 458, 1, 0, 0, 0, 486, 464, 1, 0, 0, 0, 486, 469, 1, 0, 0, 0, 486, 475, 1, 0, 0, 0, 486, 481, 1, 0, 0, 0, 487, 488, 1, 0, 0, 0, 488, 489, 3, 44, 22, 0, 489, 47, 1, 0, 0, 0, 490, 494, 3, 44, 22, 0, 491, 493, 3, 46, 23, 0, 492, 491, 1, 0, 0, 0, 493, 496, 1, 0, 0, 0, 494, 492, 1, 0, 0, 0, 494, 495, 1, 0, 0, 0, 495, 498, 1, 0, 0, 0, 496, 494, 1, 0, 0, 0, 497, 499, 3, 78, 39, 0, 498, 497, 1, 0, 0, 0, 498, 499, 1, 0, 0, 0, 499, 501, 1, 0, 0, 0, 500, 502, 3, 50, 25, 0, 501, 500, 1, 0, 0, 0, 501, 502, 1, 0, 0, 0, 502, 49, 1, 0, 0, 0, 503, 504, 5, 66, 0, 0, 504, 506, 3, 154, 77, 0, 505, 507, 5, 175, 0, 0, 506, 505, 1, 0, 0, 0, 506, 507, 1, 0, 0, 0, 507, 510, 1, 0, 0, 0, 508, 509, 5, 151, 0, 0, 509, 511, 3, 154, 77, 0, 510, 508, 1, 0, 0, 0, 510, 511, 1, 0, 0, 0, 511, 514, 1, 0, 0, 0, 512, 513, 5, 130, 0, 0, 513, 515, 5, 107, 0, 0, 514, 512, 1, 0, 0, 0, 514, 515, 1, 0, 0, 0, 515, 531, 1, 0, 0, 0, 516, 517, 5, 66, 0, 0, 517, 519, 3, 154, 77, 0, 518, 520, 5, 175, 0, 0, 519, 518, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 523, 1, 0, 0, 0, 521, 522, 5, 130, 0, 0, 522, 524, 5, 107, 0, 0, 523, 521, 1, 0, 0, 0, 523, 524, 1, 0, 0, 0, 524, 525, 1, 0, 0, 0, 525, 526, 5, 76, 0, 0, 526, 527, 3, 154, 77, 0, 527, 531, 1, 0, 0, 0, 528, 529, 5, 76, 0, 0, 529, 531, 3, 154, 77, 0, 530, 503, 1, 0, 0, 0, 530, 516, 1, 0, 0, 0, 530, 528, 1, 0, 0, 0, 531, 51, 1, 0, 0, 0, 532, 534, 3, 54, 27, 0, 533, 532, 1, 0, 0, 0, 533, 534, 1, 0, 0, 0, 534, 535, 1, 0, 0, 0, 535, 537, 5, 99, 0, 0, 536, 538, 5, 25, 0, 0, 537, 536, 1, 0, 0, 0, 537, 538, 1, 0, 0, 0, 538, 540, 1, 0, 0, 0, 539, 541, 3, 56, 28, 0, 540, 539, 1, 0, 0, 0, 540, 541, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 544, 3, 148, 74, 0, 543, 545, 3, 58, 29, 0, 544, 543, 1, 0, 0, 0, 544, 545, 1, 0, 0, 0, 545, 547, 1, 0, 0, 0, 546, 548, 3, 60, 30, 0, 547, 546, 1, 0, 0, 0, 547, 548, 1, 0, 0, 0, 548, 550, 1, 0, 0, 0, 549, 551, 3, 64, 32, 0, 550, 549, 1, 0, 0, 0, 550, 551, 1, 0, 0, 0, 551, 553, 1, 0, 0, 0, 552, 554, 3, 66, 33, 0, 553, 552, 1, 0, 0, 0, 553, 554, 1, 0, 0, 0, 554, 559, 1, 0, 0, 0, 555, 557, 5, 123, 0, 0, 556, 555, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 558, 1, 0, 0, 0, 558, 560, 3, 104, 52, 0, 559, 556, 1, 0, 0, 0, 559, 560, 1, 0, 0, 0, 560, 562, 1, 0, 0, 0, 561, 563, 3, 68, 34, 0, 562, 561, 1, 0, 0, 0, 562, 563, 1, 0, 0, 0, 563, 566, 1, 0, 0, 0, 564, 565, 5, 130, 0, 0, 565, 567, 7, 1, 0, 0, 566, 564, 1, 0, 0, 0, 566, 567, 1, 0, 0, 0, 567, 570, 1, 0, 0, 0, 568, 569, 5, 130, 0, 0, 569, 571, 5, 114, 0, 0, 570, 568, 1, 0, 0, 0, 570, 571, 1, 0, 0, 0, 571, 573, 1, 0, 0, 0, 572, 574, 3, 74, 37, 0, 573, 572, 1, 0, 0, 0, 573, 574, 1, 0, 0, 0, 574, 576, 1, 0, 0, 0, 575, 577, 3, 76, 38, 0, 576, 575, 1, 0, 0, 0, 576, 577, 1, 0, 0, 0, 577, 580, 1, 0, 0, 0, 578, 579, 5, 123, 0, 0, 579, 581, 3, 104, 52, 0, 580, 578, 1, 0, 0, 0, 580, 581, 1, 0, 0, 0, 581, 583, 1, 0, 0, 0, 582, 584, 3, 62, 31, 0, 583, 582, 1, 0, 0, 0, 583, 584, 1, 0, 0, 0, 584, 586, 1, 0, 0, 0, 585, 587, 3, 78, 39, 0, 586, 585, 1, 0, 0, 0, 586, 587, 1, 0, 0, 0, 587, 589, 1, 0, 0, 0, 588, 590, 3, 84, 42, 0, 589, 588, 1, 0, 0, 0, 589, 590, 1, 0, 0, 0, 590, 593, 1, 0, 0, 0, 591, 594, 3, 86, 43, 0, 592, 594, 3, 88, 44, 0, 593, 591, 1, 0, 0, 0, 593, 592, 1, 0, 0, 0, 593, 594, 1, 0, 0, 0, 594, 596, 1, 0, 0, 0, 595, 597, 3, 90, 45, 0, 596, 595, 1, 0, 0, 0, 596, 597, 1, 0, 0, 0, 597, 53, 1, 0, 0, 0, 598, 600, 5, 130, 0, 0, 599, 601, 5, 90, 0, 0, 600, 599, 1, 0, 0, 0, 600, 601, 1, 0, 0, 0, 601, 602, 1, 0, 0, 0, 602, 603, 3, 170, 85, 0, 603, 55, 1, 0, 0, 0, 604, 605, 5, 113, 0, 0, 605, 608, 5, 139, 0, 0, 606, 607, 5, 130, 0, 0, 607, 609, 5, 107, 0, 0, 608, 606, 1, 0, 0, 0, 608, 609, 1, 0, 0, 0, 609, 57, 1, 0, 0, 0, 610, 611, 5, 39, 0, 0, 611, 612, 3, 96, 48, 0, 612, 59, 1, 0, 0, 0, 613, 615, 7, 2, 0, 0, 614, 613, 1, 0, 0, 0, 614, 615, 1, 0, 0, 0, 615, 616, 1, 0, 0, 0, 616, 617, 5, 5, 0, 0, 617, 618, 5, 58, 0, 0, 618, 619, 3, 146, 73, 0, 619, 61, 1, 0, 0, 0, 620, 621, 5, 129, 0, 0, 621, 622, 3, 220, 110, 0, 622, 623, 5, 6, 0, 0, 623, 624, 5, 165, 0, 0, 624, 625, 3, 122, 61, 0, 625, 635, 5, 186, 0, 0, 626, 627, 5, 151, 0, 0, 627, 628, 3, 220, 110, 0, 628, 629, 5, 6, 0, 0, 629, 630, 5, 165, 0, 0, 630, 631, 3, 122, 61, 0, 631, 632, 5, 186, 0, 0, 632, 634, 1, 0, 0, 0, 633, 626, 1, 0, 0, 0, 634, 637, 1, 0, 0, 0, 635, 633, 1, 0, 0, 0, 635, 636, 1, 0, 0, 0, 636, 63, 1, 0, 0, 0, 637, 635, 1, 0, 0, 0, 638, 639, 5, 86, 0, 0, 639, 640, 3, 154, 77, 0, 640, 65, 1, 0, 0, 0, 641, 642, 5, 127, 0, 0, 642, 643, 3, 154, 77, 0, 643, 67, 1, 0, 0, 0, 644, 645, 5, 42, 0, 0, 645, 659, 5, 11, 0, 0, 646, 660, 5, 1, 0, 0, 647, 648, 7, 1, 0, 0, 648, 649, 5, 165, 0, 0, 649, 650, 3, 146, 73, 0, 650, 651, 5, 186, 0, 0, 651, 660, 1, 0, 0, 0, 652, 653, 5, 43, 0, 0, 653, 654, 5, 101, 0, 0, 654, 655, 5, 165, 0, 0, 655, 656, 3, 70, 35, 0, 656, 657, 5, 186, 0, 0, 657, 660, 1, 0, 0, 0, 658, 660, 3, 146, 73, 0, 659, 646, 1, 0, 0, 0, 659, 647, 1, 0, 0, 0, 659, 652, 1, 0, 0, 0, 659, 658, 1, 0, 0, 0, 660, 69, 1, 0, 0, 0, 661, 666, 3, 72, 36, 0, 662, 663, 5, 151, 0, 0, 663, 665, 3, 72, 36, 0, 664, 662, 1, 0, 0, 0, 665, 668, 1, 0, 0, 0, 666, 664, 1, 0, 0, 0, 666, 667, 1, 0, 0, 0, 667, 71, 1, 0, 0, 0, 668, 666, 1, 0, 0, 0, 669, 671, 5, 165, 0, 0, 670, 672, 3, 146, 73, 0, 671, 670, 1, 0, 0, 0, 671, 672, 1, 0, 0, 0, 672, 673, 1, 0, 0, 0, 673, 674, 5, 186, 0, 0, 674, 73, 1, 0, 0, 0, 675, 676, 5, 44, 0, 0, 676, 677, 3, 154, 77, 0, 677, 75, 1, 0, 0, 0, 678, 679, 5, 87, 0, 0, 679, 680, 3, 154, 77, 0, 680, 77, 1, 0, 0, 0, 681, 682, 5, 79, 0, 0, 682, 683, 5, 11, 0, 0, 683, 685, 3, 108, 54, 0, 684, 686, 3, 80, 40, 0, 685, 684, 1, 0, 0, 0, 685, 686, 1, 0, 0, 0, 686, 79, 1, 0, 0, 0, 687, 699, 5, 55, 0, 0, 688, 689, 5, 165, 0, 0, 689, 694, 3, 114, 57, 0, 690, 691, 5, 151, 0, 0, 691, 693, 3, 114, 57, 0, 692, 690, 1, 0, 0, 0, 693, 696, 1, 0, 0, 0, 694, 692, 1, 0, 0, 0, 694, 695, 1, 0, 0, 0, 695, 697, 1, 0, 0, 0, 696, 694, 1, 0, 0, 0, 697, 698, 5, 186, 0, 0, 698, 700, 1, 0, 0, 0, 699, 688, 1, 0, 0, 0, 699, 700, 1, 0, 0, 0, 700, 81, 1, 0, 0, 0, 701, 702, 5, 79, 0, 0, 702, 703, 5, 11, 0, 0, 703, 704, 3, 146, 73, 0, 704, 83, 1, 0, 0, 0, 705, 706, 5, 66, 0, 0, 706, 707, 3, 106, 53, 0, 707, 708, 5, 11, 0, 0, 708, 709, 3, 146, 73, 0, 709, 85, 1, 0, 0, 0, 710, 711, 5, 66, 0, 0, 711, 713, 3, 154, 77, 0, 712, 714, 5, 175, 0, 0, 713, 712, 1, 0, 0, 0, 713, 714, 1, 0, 0, 0, 714, 717, 1, 0, 0, 0, 715, 716, 5, 151, 0, 0, 716, 718, 3, 154, 77, 0, 717, 715, 1, 0, 0, 0, 717, 718, 1, 0, 0, 0, 718, 721, 1, 0, 0, 0, 719, 720, 5, 130, 0, 0, 720, 722, 5, 107, 0, 0, 721, 719, 1, 0, 0, 0, 721, 722, 1, 0, 0, 0, 722, 736, 1, 0, 0, 0, 723, 724, 5, 66, 0, 0, 724, 726, 3, 154, 77, 0, 725, 727, 5, 175, 0, 0, 726, 725, 1, 0, 0, 0, 726, 727, 1, 0, 0, 0, 727, 730, 1, 0, 0, 0, 728, 729, 5, 130, 0, 0, 729, 731, 5, 107, 0, 0, 730, 728, 1, 0, 0, 0, 730, 731, 1, 0, 0, 0, 731, 732, 1, 0, 0, 0, 732, 733, 5, 76, 0, 0, 733, 734, 3, 154, 77, 0, 734, 736, 1, 0, 0, 0, 735, 710, 1, 0, 0, 0, 735, 723, 1, 0, 0, 0, 736, 87, 1, 0, 0, 0, 737, 738, 5, 76, 0, 0, 738, 739, 3, 154, 77, 0, 739, 89, 1, 0, 0, 0, 740, 741, 5, 102, 0, 0, 741, 742, 3, 118, 59, 0, 742, 91, 1, 0, 0, 0, 743, 744, 5, 124, 0, 0, 744, 749, 3, 94, 47, 0, 745, 746, 5, 151, 0, 0, 746, 748, 3, 94, 47, 0, 747, 745, 1, 0, 0, 0, 748, 751, 1, 0, 0, 0, 749, 747, 1, 0, 0, 0, 749, 750, 1, 0, 0, 0, 750, 93, 1, 0, 0, 0, 751, 749, 1, 0, 0, 0, 752, 753, 5, 165, 0, 0, 753, 758, 3, 154, 77, 0, 754, 755, 5, 151, 0, 0, 755, 757, 3, 154, 77, 0, 756, 754, 1, 0, 0, 0, 757, 760, 1, 0, 0, 0, 758, 756, 1, 0, 0, 0, 758, 759, 1, 0, 0, 0, 759, 761, 1, 0, 0, 0, 760, 758, 1, 0, 0, 0, 761, 762, 5, 186, 0, 0, 762, 95, 1, 0, 0, 0, 763, 764, 6, 48, -1, 0, 764, 766, 3, 180, 90, 0, 765, 767, 5, 31, 0, 0, 766, 765, 1, 0, 0, 0, 766, 767, 1, 0, 0, 0, 767, 769, 1, 0, 0, 0, 768, 770, 3, 104, 52, 0, 769, 768, 1, 0, 0, 0, 769, 770, 1, 0, 0, 0, 770, 776, 1, 0, 0, 0, 771, 772, 5, 165, 0, 0, 772, 773, 3, 96, 48, 0, 773, 774, 5, 186, 0, 0, 774, 776, 1, 0, 0, 0, 775, 763, 1, 0, 0, 0, 775, 771, 1, 0, 0, 0, 776, 824, 1, 0, 0, 0, 777, 778, 10, 5, 0, 0, 778, 779, 3, 100, 50, 0, 779, 780, 3, 96, 48, 6, 780, 823, 1, 0, 0, 0, 781, 783, 10, 7, 0, 0, 782, 784, 5, 71, 0, 0, 783, 782, 1, 0, 0, 0, 783, 784, 1, 0, 0, 0, 784, 786, 1, 0, 0, 0, 785, 787, 3, 98, 49, 0, 786, 785, 1, 0, 0, 0, 786, 787, 1, 0, 0, 0, 787, 788, 1, 0, 0, 0, 788, 789, 5, 58, 0, 0, 789, 791, 3, 96, 48, 0, 790, 792, 3, 102, 51, 0, 791, 790, 1, 0, 0, 0, 791, 792, 1, 0, 0, 0, 792, 823, 1, 0, 0, 0, 793, 794, 10, 6, 0, 0, 794, 795, 5, 84, 0, 0, 795, 796, 5, 58, 0, 0, 796, 798, 3, 96, 48, 0, 797, 799, 3, 102, 51, 0, 798, 797, 1, 0, 0, 0, 798, 799, 1, 0, 0, 0, 799, 823, 1, 0, 0, 0, 800, 801, 10, 4, 0, 0, 801, 802, 5, 83, 0, 0, 802, 803, 5, 165, 0, 0, 803, 804, 3, 146, 73, 0, 804, 808, 3, 182, 91, 0, 805, 806, 5, 42, 0, 0, 806, 807, 5, 11, 0, 0, 807, 809, 3, 146, 73, 0, 808, 805, 1, 0, 0, 0, 808, 809, 1, 0, 0, 0, 809, 810, 1, 0, 0, 0, 810, 811, 5, 186, 0, 0, 811, 823, 1, 0, 0, 0, 812, 813, 10, 3, 0, 0, 813, 816, 5, 122, 0, 0, 814, 815, 5, 50, 0, 0, 815, 817, 5, 75, 0, 0, 816, 814, 1, 0, 0, 0, 816, 817, 1, 0, 0, 0, 817, 818, 1, 0, 0, 0, 818, 819, 5, 165, 0, 0, 819, 820, 3, 186, 93, 0, 820, 821, 5, 186, 0, 0, 821, 823, 1, 0, 0, 0, 822, 777, 1, 0, 0, 0, 822, 781, 1, 0, 0, 0, 822, 793, 1, 0, 0, 0, 822, 800, 1, 0, 0, 0, 822, 812, 1, 0, 0, 0, 823, 826, 1, 0, 0, 0, 824, 822, 1, 0, 0, 0, 824, 825, 1, 0, 0, 0, 825, 97, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 827, 829, 7, 3, 0, 0, 828, 827, 1, 0, 0, 0, 828, 829, 1, 0, 0, 0, 829, 830, 1, 0, 0, 0, 830, 841, 5, 53, 0, 0, 831, 833, 5, 53, 0, 0, 832, 834, 7, 3, 0, 0, 833, 832, 1, 0, 0, 0, 833, 834, 1, 0, 0, 0, 834, 841, 1, 0, 0, 0, 835, 841, 7, 3, 0, 0, 836, 841, 5, 3, 0, 0, 837, 841, 5, 100, 0, 0, 838, 839, 5, 8, 0, 0, 839, 841, 7, 4, 0, 0, 840, 828, 1, 0, 0, 0, 840, 831, 1, 0, 0, 0, 840, 835, 1, 0, 0, 0, 840, 836, 1, 0, 0, 0, 840, 837, 1, 0, 0, 0, 840, 838, 1, 0, 0, 0, 841, 881, 1, 0, 0, 0, 842, 844, 7, 5, 0, 0, 843, 842, 1, 0, 0, 0, 843, 844, 1, 0, 0, 0, 844, 845, 1, 0, 0, 0, 845, 847, 7, 6, 0, 0, 846, 848, 5, 80, 0, 0, 847, 846, 1, 0, 0, 0, 847, 848, 1, 0, 0, 0, 848, 863, 1, 0, 0, 0, 849, 851, 7, 6, 0, 0, 850, 852, 5, 80, 0, 0, 851, 850, 1, 0, 0, 0, 851, 852, 1, 0, 0, 0, 852, 854, 1, 0, 0, 0, 853, 855, 7, 5, 0, 0, 854, 853, 1, 0, 0, 0, 854, 855, 1, 0, 0, 0, 855, 863, 1, 0, 0, 0, 856, 857, 5, 8, 0, 0, 857, 858, 7, 4, 0, 0, 858, 860, 7, 6, 0, 0, 859, 861, 5, 80, 0, 0, 860, 859, 1, 0, 0, 0, 860, 861, 1, 0, 0, 0, 861, 863, 1, 0, 0, 0, 862, 843, 1, 0, 0, 0, 862, 849, 1, 0, 0, 0, 862, 856, 1, 0, 0, 0, 863, 881, 1, 0, 0, 0, 864, 866, 7, 3, 0, 0, 865, 864, 1, 0, 0, 0, 865, 866, 1, 0, 0, 0, 866, 867, 1, 0, 0, 0, 867, 869, 5, 40, 0, 0, 868, 870, 5, 80, 0, 0, 869, 868, 1, 0, 0, 0, 869, 870, 1, 0, 0, 0, 870, 879, 1, 0, 0, 0, 871, 873, 5, 40, 0, 0, 872, 874, 5, 80, 0, 0, 873, 872, 1, 0, 0, 0, 873, 874, 1, 0, 0, 0, 874, 876, 1, 0, 0, 0, 875, 877, 7, 3, 0, 0, 876, 875, 1, 0, 0, 0, 876, 877, 1, 0, 0, 0, 877, 879, 1, 0, 0, 0, 878, 865, 1, 0, 0, 0, 878, 871, 1, 0, 0, 0, 879, 881, 1, 0, 0, 0, 880, 840, 1, 0, 0, 0, 880, 862, 1, 0, 0, 0, 880, 878, 1, 0, 0, 0, 881, 99, 1, 0, 0, 0, 882, 883, 5, 18, 0, 0, 883, 886, 5, 58, 0, 0, 884, 886, 5, 151, 0, 0, 885, 882, 1, 0, 0, 0, 885, 884, 1, 0, 0, 0, 886, 101, 1, 0, 0, 0, 887, 888, 5, 77, 0, 0, 888, 897, 3, 146, 73, 0, 889, 890, 5, 123, 0, 0, 890, 891, 5, 165, 0, 0, 891, 892, 3, 146, 73, 0, 892, 893, 5, 186, 0, 0, 893, 897, 1, 0, 0, 0, 894, 895, 5, 123, 0, 0, 895, 897, 3, 146, 73, 0, 896, 887, 1, 0, 0, 0, 896, 889, 1, 0, 0, 0, 896, 894, 1, 0, 0, 0, 897, 103, 1, 0, 0, 0, 898, 899, 5, 97, 0, 0, 899, 901, 3, 116, 58, 0, 900, 902, 5, 175, 0, 0, 901, 900, 1, 0, 0, 0, 901, 902, 1, 0, 0, 0, 902, 905, 1, 0, 0, 0, 903, 904, 5, 76, 0, 0, 904, 906, 3, 116, 58, 0, 905, 903, 1, 0, 0, 0, 905, 906, 1, 0, 0, 0, 906, 911, 1, 0, 0, 0, 907, 908, 5, 165, 0, 0, 908, 909, 3, 220, 110, 0, 909, 910, 5, 186, 0, 0, 910, 912, 1, 0, 0, 0, 911, 907, 1, 0, 0, 0, 911, 912, 1, 0, 0, 0, 912, 105, 1, 0, 0, 0, 913, 916, 3, 154, 77, 0, 914, 915, 7, 7, 0, 0, 915, 917, 3, 154, 77, 0, 916, 914, 1, 0, 0, 0, 916, 917, 1, 0, 0, 0, 917, 107, 1, 0, 0, 0, 918, 923, 3, 110, 55, 0, 919, 920, 5, 151, 0, 0, 920, 922, 3, 110, 55, 0, 921, 919, 1, 0, 0, 0, 922, 925, 1, 0, 0, 0, 923, 921, 1, 0, 0, 0, 923, 924, 1, 0, 0, 0, 924, 109, 1, 0, 0, 0, 925, 923, 1, 0, 0, 0, 926, 928, 3, 154, 77, 0, 927, 929, 7, 8, 0, 0, 928, 927, 1, 0, 0, 0, 928, 929, 1, 0, 0, 0, 929, 932, 1, 0, 0, 0, 930, 931, 5, 75, 0, 0, 931, 933, 7, 9, 0, 0, 932, 930, 1, 0, 0, 0, 932, 933, 1, 0, 0, 0, 933, 936, 1, 0, 0, 0, 934, 935, 5, 16, 0, 0, 935, 937, 5, 143, 0, 0, 936, 934, 1, 0, 0, 0, 936, 937, 1, 0, 0, 0, 937, 939, 1, 0, 0, 0, 938, 940, 3, 112, 56, 0, 939, 938, 1, 0, 0, 0, 939, 940, 1, 0, 0, 0, 940, 111, 1, 0, 0, 0, 941, 942, 5, 130, 0, 0, 942, 945, 5, 32, 0, 0, 943, 944, 5, 39, 0, 0, 944, 946, 3, 154, 77, 0, 945, 943, 1, 0, 0, 0, 945, 946, 1, 0, 0, 0, 946, 949, 1, 0, 0, 0, 947, 948, 5, 112, 0, 0, 948, 950, 3, 154, 77, 0, 949, 947, 1, 0, 0, 0, 949, 950, 1, 0, 0, 0, 950, 953, 1, 0, 0, 0, 951, 952, 5, 103, 0, 0, 952, 954, 3, 154, 77, 0, 953, 951, 1, 0, 0, 0, 953, 954, 1, 0, 0, 0, 954, 113, 1, 0, 0, 0, 955, 958, 3, 154, 77, 0, 956, 957, 5, 6, 0, 0, 957, 959, 3, 154, 77, 0, 958, 956, 1, 0, 0, 0, 958, 959, 1, 0, 0, 0, 959, 115, 1, 0, 0, 0, 960, 967, 3, 224, 112, 0, 961, 964, 3, 204, 102, 0, 962, 963, 5, 188, 0, 0, 963, 965, 3, 204, 102, 0, 964, 962, 1, 0, 0, 0, 964, 965, 1, 0, 0, 0, 965, 967, 1, 0, 0, 0, 966, 960, 1, 0, 0, 0, 966, 961, 1, 0, 0, 0, 967, 117, 1, 0, 0, 0, 968, 973, 3, 120, 60, 0, 969, 970, 5, 151, 0, 0, 970, 972, 3, 120, 60, 0, 971, 969, 1, 0, 0, 0, 972, 975, 1, 0, 0, 0, 973, 971, 1, 0, 0, 0, 973, 974, 1, 0, 0, 0, 974, 119, 1, 0, 0, 0, 975, 973, 1, 0, 0, 0, 976, 977, 3, 220, 110, 0, 977, 978, 5, 157, 0, 0, 978, 979, 3, 206, 103, 0, 979, 121, 1, 0, 0, 0, 980, 982, 3, 124, 62, 0, 981, 980, 1, 0, 0, 0, 981, 982, 1, 0, 0, 0, 982, 984, 1, 0, 0, 0, 983, 985, 3, 126, 63, 0, 984, 983, 1, 0, 0, 0, 984, 985, 1, 0, 0, 0, 985, 987, 1, 0, 0, 0, 986, 988, 3, 130, 65, 0, 987, 986, 1, 0, 0, 0, 987, 988, 1, 0, 0, 0, 988, 123, 1, 0, 0, 0, 989, 990, 5, 82, 0, 0, 990, 991, 5, 11, 0, 0, 991, 992, 3, 146, 73, 0, 992, 125, 1, 0, 0, 0, 993, 994, 5, 79, 0, 0, 994, 995, 5, 11, 0, 0, 995, 996, 3, 108, 54, 0, 996, 127, 1, 0, 0, 0, 997, 998, 5, 131, 0, 0, 998, 999, 5, 42, 0, 0, 999, 1000, 5, 165, 0, 0, 1000, 1001, 3, 78, 39, 0, 1001, 1002, 5, 186, 0, 0, 1002, 129, 1, 0, 0, 0, 1003, 1004, 7, 10, 0, 0, 1004, 1005, 3, 132, 66, 0, 1005, 131, 1, 0, 0, 0, 1006, 1013, 3, 134, 67, 0, 1007, 1008, 5, 9, 0, 0, 1008, 1009, 3, 134, 67, 0, 1009, 1010, 5, 2, 0, 0, 1010, 1011, 3, 134, 67, 0, 1011, 1013, 1, 0, 0, 0, 1012, 1006, 1, 0, 0, 0, 1012, 1007, 1, 0, 0, 0, 1013, 133, 1, 0, 0, 0, 1014, 1015, 5, 20, 0, 0, 1015, 1027, 5, 95, 0, 0, 1016, 1017, 5, 120, 0, 0, 1017, 1027, 5, 85, 0, 0, 1018, 1019, 5, 120, 0, 0, 1019, 1027, 5, 37, 0, 0, 1020, 1021, 3, 154, 77, 0, 1021, 1022, 5, 85, 0, 0, 1022, 1027, 1, 0, 0, 0, 1023, 1024, 3, 154, 77, 0, 1024, 1025, 5, 37, 0, 0, 1025, 1027, 1, 0, 0, 0, 1026, 1014, 1, 0, 0, 0, 1026, 1016, 1, 0, 0, 0, 1026, 1018, 1, 0, 0, 0, 1026, 1020, 1, 0, 0, 0, 1026, 1023, 1, 0, 0, 0, 1027, 135, 1, 0, 0, 0, 1028, 1029, 3, 154, 77, 0, 1029, 1030, 5, 0, 0, 1, 1030, 137, 1, 0, 0, 0, 1031, 1032, 6, 69, -1, 0, 1032, 1033, 3, 220, 110, 0, 1033, 1034, 5, 165, 0, 0, 1034, 1035, 3, 220, 110, 0, 1035, 1042, 3, 138, 69, 0, 1036, 1037, 5, 151, 0, 0, 1037, 1038, 3, 220, 110, 0, 1038, 1039, 3, 138, 69, 0, 1039, 1041, 1, 0, 0, 0, 1040, 1036, 1, 0, 0, 0, 1041, 1044, 1, 0, 0, 0, 1042, 1040, 1, 0, 0, 0, 1042, 1043, 1, 0, 0, 0, 1043, 1046, 1, 0, 0, 0, 1044, 1042, 1, 0, 0, 0, 1045, 1047, 5, 151, 0, 0, 1046, 1045, 1, 0, 0, 0, 1046, 1047, 1, 0, 0, 0, 1047, 1048, 1, 0, 0, 0, 1048, 1049, 5, 186, 0, 0, 1049, 1095, 1, 0, 0, 0, 1050, 1051, 3, 220, 110, 0, 1051, 1052, 5, 165, 0, 0, 1052, 1057, 3, 222, 111, 0, 1053, 1054, 5, 151, 0, 0, 1054, 1056, 3, 222, 111, 0, 1055, 1053, 1, 0, 0, 0, 1056, 1059, 1, 0, 0, 0, 1057, 1055, 1, 0, 0, 0, 1057, 1058, 1, 0, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1057, 1, 0, 0, 0, 1060, 1062, 5, 151, 0, 0, 1061, 1060, 1, 0, 0, 0, 1061, 1062, 1, 0, 0, 0, 1062, 1063, 1, 0, 0, 0, 1063, 1064, 5, 186, 0, 0, 1064, 1095, 1, 0, 0, 0, 1065, 1066, 3, 220, 110, 0, 1066, 1067, 5, 165, 0, 0, 1067, 1072, 3, 138, 69, 0, 1068, 1069, 5, 151, 0, 0, 1069, 1071, 3, 138, 69, 0, 1070, 1068, 1, 0, 0, 0, 1071, 1074, 1, 0, 0, 0, 1072, 1070, 1, 0, 0, 0, 1072, 1073, 1, 0, 0, 0, 1073, 1076, 1, 0, 0, 0, 1074, 1072, 1, 0, 0, 0, 1075, 1077, 5, 151, 0, 0, 1076, 1075, 1, 0, 0, 0, 1076, 1077, 1, 0, 0, 0, 1077, 1078, 1, 0, 0, 0, 1078, 1079, 5, 186, 0, 0, 1079, 1095, 1, 0, 0, 0, 1080, 1081, 3, 220, 110, 0, 1081, 1083, 5, 165, 0, 0, 1082, 1084, 3, 146, 73, 0, 1083, 1082, 1, 0, 0, 0, 1083, 1084, 1, 0, 0, 0, 1084, 1085, 1, 0, 0, 0, 1085, 1086, 5, 186, 0, 0, 1086, 1095, 1, 0, 0, 0, 1087, 1089, 3, 220, 110, 0, 1088, 1090, 3, 220, 110, 0, 1089, 1088, 1, 0, 0, 0, 1090, 1091, 1, 0, 0, 0, 1091, 1089, 1, 0, 0, 0, 1091, 1092, 1, 0, 0, 0, 1092, 1095, 1, 0, 0, 0, 1093, 1095, 3, 220, 110, 0, 1094, 1031, 1, 0, 0, 0, 1094, 1050, 1, 0, 0, 0, 1094, 1065, 1, 0, 0, 0, 1094, 1080, 1, 0, 0, 0, 1094, 1087, 1, 0, 0, 0, 1094, 1093, 1, 0, 0, 0, 1095, 1104, 1, 0, 0, 0, 1096, 1097, 10, 7, 0, 0, 1097, 1099, 5, 164, 0, 0, 1098, 1100, 5, 139, 0, 0, 1099, 1098, 1, 0, 0, 0, 1099, 1100, 1, 0, 0, 0, 1100, 1101, 1, 0, 0, 0, 1101, 1103, 5, 185, 0, 0, 1102, 1096, 1, 0, 0, 0, 1103, 1106, 1, 0, 0, 0, 1104, 1102, 1, 0, 0, 0, 1104, 1105, 1, 0, 0, 0, 1105, 139, 1, 0, 0, 0, 1106, 1104, 1, 0, 0, 0, 1107, 1108, 3, 142, 71, 0, 1108, 1110, 5, 130, 0, 0, 1109, 1111, 5, 110, 0, 0, 1110, 1109, 1, 0, 0, 0, 1110, 1111, 1, 0, 0, 0, 1111, 1112, 1, 0, 0, 0, 1112, 1113, 5, 109, 0, 0, 1113, 1114, 5, 111, 0, 0, 1114, 1117, 1, 0, 0, 0, 1115, 1117, 3, 142, 71, 0, 1116, 1107, 1, 0, 0, 0, 1116, 1115, 1, 0, 0, 0, 1117, 141, 1, 0, 0, 0, 1118, 1123, 5, 134, 0, 0, 1119, 1123, 5, 135, 0, 0, 1120, 1123, 3, 208, 104, 0, 1121, 1123, 3, 144, 72, 0, 1122, 1118, 1, 0, 0, 0, 1122, 1119, 1, 0, 0, 0, 1122, 1120, 1, 0, 0, 0, 1122, 1121, 1, 0, 0, 0, 1123, 143, 1, 0, 0, 0, 1124, 1125, 7, 11, 0, 0, 1125, 145, 1, 0, 0, 0, 1126, 1131, 3, 154, 77, 0, 1127, 1128, 5, 151, 0, 0, 1128, 1130, 3, 154, 77, 0, 1129, 1127, 1, 0, 0, 0, 1130, 1133, 1, 0, 0, 0, 1131, 1129, 1, 0, 0, 0, 1131, 1132, 1, 0, 0, 0, 1132, 1135, 1, 0, 0, 0, 1133, 1131, 1, 0, 0, 0, 1134, 1136, 5, 151, 0, 0, 1135, 1134, 1, 0, 0, 0, 1135, 1136, 1, 0, 0, 0, 1136, 147, 1, 0, 0, 0, 1137, 1142, 3, 152, 76, 0, 1138, 1139, 5, 151, 0, 0, 1139, 1141, 3, 152, 76, 0, 1140, 1138, 1, 0, 0, 0, 1141, 1144, 1, 0, 0, 0, 1142, 1140, 1, 0, 0, 0, 1142, 1143, 1, 0, 0, 0, 1143, 1145, 1, 0, 0, 0, 1144, 1142, 1, 0, 0, 0, 1145, 1146, 5, 151, 0, 0, 1146, 1149, 1, 0, 0, 0, 1147, 1149, 3, 150, 75, 0, 1148, 1137, 1, 0, 0, 0, 1148, 1147, 1, 0, 0, 0, 1149, 149, 1, 0, 0, 0, 1150, 1155, 3, 152, 76, 0, 1151, 1152, 5, 151, 0, 0, 1152, 1154, 3, 152, 76, 0, 1153, 1151, 1, 0, 0, 0, 1154, 1157, 1, 0, 0, 0, 1155, 1153, 1, 0, 0, 0, 1155, 1156, 1, 0, 0, 0, 1156, 1159, 1, 0, 0, 0, 1157, 1155, 1, 0, 0, 0, 1158, 1160, 5, 151, 0, 0, 1159, 1158, 1, 0, 0, 0, 1159, 1160, 1, 0, 0, 0, 1160, 151, 1, 0, 0, 0, 1161, 1162, 3, 220, 110, 0, 1162, 1163, 5, 150, 0, 0, 1163, 1164, 3, 154, 77, 0, 1164, 1172, 1, 0, 0, 0, 1165, 1166, 5, 39, 0, 0, 1166, 1172, 3, 218, 109, 0, 1167, 1172, 3, 154, 77, 0, 1168, 1169, 3, 154, 77, 0, 1169, 1170, 3, 218, 109, 0, 1170, 1172, 1, 0, 0, 0, 1171, 1161, 1, 0, 0, 0, 1171, 1165, 1, 0, 0, 0, 1171, 1167, 1, 0, 0, 0, 1171, 1168, 1, 0, 0, 0, 1172, 153, 1, 0, 0, 0, 1173, 1174, 6, 77, -1, 0, 1174, 1176, 5, 12, 0, 0, 1175, 1177, 3, 154, 77, 0, 1176, 1175, 1, 0, 0, 0, 1176, 1177, 1, 0, 0, 0, 1177, 1183, 1, 0, 0, 0, 1178, 1179, 5, 126, 0, 0, 1179, 1180, 3, 154, 77, 0, 1180, 1181, 5, 105, 0, 0, 1181, 1182, 3, 154, 77, 0, 1182, 1184, 1, 0, 0, 0, 1183, 1178, 1, 0, 0, 0, 1184, 1185, 1, 0, 0, 0, 1185, 1183, 1, 0, 0, 0, 1185, 1186, 1, 0, 0, 0, 1186, 1189, 1, 0, 0, 0, 1187, 1188, 5, 26, 0, 0, 1188, 1190, 3, 154, 77, 0, 1189, 1187, 1, 0, 0, 0, 1189, 1190, 1, 0, 0, 0, 1190, 1191, 1, 0, 0, 0, 1191, 1192, 5, 27, 0, 0, 1192, 1523, 1, 0, 0, 0, 1193, 1194, 5, 13, 0, 0, 1194, 1195, 5, 165, 0, 0, 1195, 1196, 3, 154, 77, 0, 1196, 1197, 5, 6, 0, 0, 1197, 1198, 3, 138, 69, 0, 1198, 1199, 5, 186, 0, 0, 1199, 1523, 1, 0, 0, 0, 1200, 1201, 5, 119, 0, 0, 1201, 1202, 5, 165, 0, 0, 1202, 1203, 3, 154, 77, 0, 1203, 1204, 5, 6, 0, 0, 1204, 1205, 3, 138, 69, 0, 1205, 1206, 5, 186, 0, 0, 1206, 1523, 1, 0, 0, 0, 1207, 1208, 5, 21, 0, 0, 1208, 1523, 5, 143, 0, 0, 1209, 1210, 5, 56, 0, 0, 1210, 1211, 3, 154, 77, 0, 1211, 1212, 3, 208, 104, 0, 1212, 1523, 1, 0, 0, 0, 1213, 1214, 5, 56, 0, 0, 1214, 1523, 5, 143, 0, 0, 1215, 1216, 5, 104, 0, 0, 1216, 1217, 5, 165, 0, 0, 1217, 1218, 3, 154, 77, 0, 1218, 1219, 5, 39, 0, 0, 1219, 1222, 3, 154, 77, 0, 1220, 1221, 5, 38, 0, 0, 1221, 1223, 3, 154, 77, 0, 1222, 1220, 1, 0, 0, 0, 1222, 1223, 1, 0, 0, 0, 1223, 1224, 1, 0, 0, 0, 1224, 1225, 5, 186, 0, 0, 1225, 1523, 1, 0, 0, 0, 1226, 1227, 5, 108, 0, 0, 1227, 1523, 5, 143, 0, 0, 1228, 1229, 5, 116, 0, 0, 1229, 1230, 5, 165, 0, 0, 1230, 1231, 7, 12, 0, 0, 1231, 1232, 3, 226, 113, 0, 1232, 1233, 5, 39, 0, 0, 1233, 1234, 3, 154, 77, 0, 1234, 1235, 5, 186, 0, 0, 1235, 1523, 1, 0, 0, 0, 1236, 1237, 5, 17, 0, 0, 1237, 1238, 5, 165, 0, 0, 1238, 1239, 5, 143, 0, 0, 1239, 1523, 5, 186, 0, 0, 1240, 1241, 5, 17, 0, 0, 1241, 1242, 5, 165, 0, 0, 1242, 1243, 3, 146, 73, 0, 1243, 1244, 5, 186, 0, 0, 1244, 1523, 1, 0, 0, 0, 1245, 1246, 5, 17, 0, 0, 1246, 1247, 5, 165, 0, 0, 1247, 1248, 5, 145, 0, 0, 1248, 1249, 5, 29, 0, 0, 1249, 1250, 5, 165, 0, 0, 1250, 1251, 3, 8, 4, 0, 1251, 1252, 5, 186, 0, 0, 1252, 1253, 5, 91, 0, 0, 1253, 1254, 5, 165, 0, 0, 1254, 1255, 3, 158, 79, 0, 1255, 1256, 5, 186, 0, 0, 1256, 1257, 5, 186, 0, 0, 1257, 1271, 1, 0, 0, 0, 1258, 1259, 5, 165, 0, 0, 1259, 1260, 5, 145, 0, 0, 1260, 1261, 5, 29, 0, 0, 1261, 1262, 5, 165, 0, 0, 1262, 1263, 3, 8, 4, 0, 1263, 1264, 5, 186, 0, 0, 1264, 1265, 5, 91, 0, 0, 1265, 1266, 5, 165, 0, 0, 1266, 1267, 3, 158, 79, 0, 1267, 1268, 5, 186, 0, 0, 1268, 1269, 5, 186, 0, 0, 1269, 1271, 1, 0, 0, 0, 1270, 1245, 1, 0, 0, 0, 1270, 1258, 1, 0, 0, 0, 1271, 1523, 1, 0, 0, 0, 1272, 1273, 5, 17, 0, 0, 1273, 1274, 5, 165, 0, 0, 1274, 1275, 5, 145, 0, 0, 1275, 1276, 5, 29, 0, 0, 1276, 1277, 5, 165, 0, 0, 1277, 1278, 3, 8, 4, 0, 1278, 1279, 5, 186, 0, 0, 1279, 1280, 5, 186, 0, 0, 1280, 1523, 1, 0, 0, 0, 1281, 1282, 5, 17, 0, 0, 1282, 1283, 5, 165, 0, 0, 1283, 1284, 5, 145, 0, 0, 1284, 1285, 5, 91, 0, 0, 1285, 1286, 5, 165, 0, 0, 1286, 1287, 3, 158, 79, 0, 1287, 1288, 5, 186, 0, 0, 1288, 1289, 5, 186, 0, 0, 1289, 1299, 1, 0, 0, 0, 1290, 1291, 5, 165, 0, 0, 1291, 1292, 5, 145, 0, 0, 1292, 1293, 5, 91, 0, 0, 1293, 1294, 5, 165, 0, 0, 1294, 1295, 3, 158, 79, 0, 1295, 1296, 5, 186, 0, 0, 1296, 1297, 5, 186, 0, 0, 1297, 1299, 1, 0, 0, 0, 1298, 1281, 1, 0, 0, 0, 1298, 1290, 1, 0, 0, 0, 1299, 1523, 1, 0, 0, 0, 1300, 1301, 5, 17, 0, 0, 1301, 1302, 5, 165, 0, 0, 1302, 1303, 5, 145, 0, 0, 1303, 1523, 5, 186, 0, 0, 1304, 1305, 5, 17, 0, 0, 1305, 1306, 5, 165, 0, 0, 1306, 1307, 3, 220, 110, 0, 1307, 1308, 5, 155, 0, 0, 1308, 1309, 5, 145, 0, 0, 1309, 1310, 5, 29, 0, 0, 1310, 1311, 5, 165, 0, 0, 1311, 1312, 3, 8, 4, 0, 1312, 1313, 5, 186, 0, 0, 1313, 1314, 5, 91, 0, 0, 1314, 1315, 5, 165, 0, 0, 1315, 1316, 3, 158, 79, 0, 1316, 1317, 5, 186, 0, 0, 1317, 1318, 5, 186, 0, 0, 1318, 1523, 1, 0, 0, 0, 1319, 1320, 5, 17, 0, 0, 1320, 1321, 5, 165, 0, 0, 1321, 1322, 3, 220, 110, 0, 1322, 1323, 5, 155, 0, 0, 1323, 1324, 5, 145, 0, 0, 1324, 1325, 5, 29, 0, 0, 1325, 1326, 5, 165, 0, 0, 1326, 1327, 3, 8, 4, 0, 1327, 1328, 5, 186, 0, 0, 1328, 1329, 5, 186, 0, 0, 1329, 1523, 1, 0, 0, 0, 1330, 1331, 5, 17, 0, 0, 1331, 1332, 5, 165, 0, 0, 1332, 1333, 3, 220, 110, 0, 1333, 1334, 5, 155, 0, 0, 1334, 1335, 5, 145, 0, 0, 1335, 1336, 5, 91, 0, 0, 1336, 1337, 5, 165, 0, 0, 1337, 1338, 3, 158, 79, 0, 1338, 1339, 5, 186, 0, 0, 1339, 1340, 5, 186, 0, 0, 1340, 1523, 1, 0, 0, 0, 1341, 1342, 5, 17, 0, 0, 1342, 1343, 5, 165, 0, 0, 1343, 1344, 3, 220, 110, 0, 1344, 1345, 5, 155, 0, 0, 1345, 1346, 5, 145, 0, 0, 1346, 1347, 5, 186, 0, 0, 1347, 1523, 1, 0, 0, 0, 1348, 1349, 5, 145, 0, 0, 1349, 1350, 5, 17, 0, 0, 1350, 1351, 5, 165, 0, 0, 1351, 1352, 5, 143, 0, 0, 1352, 1523, 5, 186, 0, 0, 1353, 1354, 5, 145, 0, 0, 1354, 1355, 5, 17, 0, 0, 1355, 1356, 5, 165, 0, 0, 1356, 1357, 3, 146, 73, 0, 1357, 1358, 5, 186, 0, 0, 1358, 1523, 1, 0, 0, 0, 1359, 1360, 3, 220, 110, 0, 1360, 1362, 5, 165, 0, 0, 1361, 1363, 3, 146, 73, 0, 1362, 1361, 1, 0, 0, 0, 1362, 1363, 1, 0, 0, 0, 1363, 1364, 1, 0, 0, 0, 1364, 1365, 5, 186, 0, 0, 1365, 1366, 3, 128, 64, 0, 1366, 1523, 1, 0, 0, 0, 1367, 1368, 3, 220, 110, 0, 1368, 1370, 5, 165, 0, 0, 1369, 1371, 3, 146, 73, 0, 1370, 1369, 1, 0, 0, 0, 1370, 1371, 1, 0, 0, 0, 1371, 1372, 1, 0, 0, 0, 1372, 1373, 5, 186, 0, 0, 1373, 1382, 1, 0, 0, 0, 1374, 1376, 5, 165, 0, 0, 1375, 1377, 5, 25, 0, 0, 1376, 1375, 1, 0, 0, 0, 1376, 1377, 1, 0, 0, 0, 1377, 1379, 1, 0, 0, 0, 1378, 1380, 3, 146, 73, 0, 1379, 1378, 1, 0, 0, 0, 1379, 1380, 1, 0, 0, 0, 1380, 1381, 1, 0, 0, 0, 1381, 1383, 5, 186, 0, 0, 1382, 1374, 1, 0, 0, 0, 1382, 1383, 1, 0, 0, 0, 1383, 1390, 1, 0, 0, 0, 1384, 1385, 5, 33, 0, 0, 1385, 1386, 5, 165, 0, 0, 1386, 1387, 5, 127, 0, 0, 1387, 1388, 3, 154, 77, 0, 1388, 1389, 5, 186, 0, 0, 1389, 1391, 1, 0, 0, 0, 1390, 1384, 1, 0, 0, 0, 1390, 1391, 1, 0, 0, 0, 1391, 1392, 1, 0, 0, 0, 1392, 1393, 5, 81, 0, 0, 1393, 1394, 5, 165, 0, 0, 1394, 1395, 3, 122, 61, 0, 1395, 1396, 5, 186, 0, 0, 1396, 1523, 1, 0, 0, 0, 1397, 1398, 3, 220, 110, 0, 1398, 1400, 5, 165, 0, 0, 1399, 1401, 3, 146, 73, 0, 1400, 1399, 1, 0, 0, 0, 1400, 1401, 1, 0, 0, 0, 1401, 1402, 1, 0, 0, 0, 1402, 1403, 5, 186, 0, 0, 1403, 1412, 1, 0, 0, 0, 1404, 1406, 5, 165, 0, 0, 1405, 1407, 5, 25, 0, 0, 1406, 1405, 1, 0, 0, 0, 1406, 1407, 1, 0, 0, 0, 1407, 1409, 1, 0, 0, 0, 1408, 1410, 3, 146, 73, 0, 1409, 1408, 1, 0, 0, 0, 1409, 1410, 1, 0, 0, 0, 1410, 1411, 1, 0, 0, 0, 1411, 1413, 5, 186, 0, 0, 1412, 1404, 1, 0, 0, 0, 1412, 1413, 1, 0, 0, 0, 1413, 1420, 1, 0, 0, 0, 1414, 1415, 5, 33, 0, 0, 1415, 1416, 5, 165, 0, 0, 1416, 1417, 5, 127, 0, 0, 1417, 1418, 3, 154, 77, 0, 1418, 1419, 5, 186, 0, 0, 1419, 1421, 1, 0, 0, 0, 1420, 1414, 1, 0, 0, 0, 1420, 1421, 1, 0, 0, 0, 1421, 1422, 1, 0, 0, 0, 1422, 1423, 5, 81, 0, 0, 1423, 1424, 3, 220, 110, 0, 1424, 1523, 1, 0, 0, 0, 1425, 1431, 3, 220, 110, 0, 1426, 1428, 5, 165, 0, 0, 1427, 1429, 3, 146, 73, 0, 1428, 1427, 1, 0, 0, 0, 1428, 1429, 1, 0, 0, 0, 1429, 1430, 1, 0, 0, 0, 1430, 1432, 5, 186, 0, 0, 1431, 1426, 1, 0, 0, 0, 1431, 1432, 1, 0, 0, 0, 1432, 1433, 1, 0, 0, 0, 1433, 1435, 5, 165, 0, 0, 1434, 1436, 5, 25, 0, 0, 1435, 1434, 1, 0, 0, 0, 1435, 1436, 1, 0, 0, 0, 1436, 1438, 1, 0, 0, 0, 1437, 1439, 3, 146, 73, 0, 1438, 1437, 1, 0, 0, 0, 1438, 1439, 1, 0, 0, 0, 1439, 1443, 1, 0, 0, 0, 1440, 1441, 5, 79, 0, 0, 1441, 1442, 5, 11, 0, 0, 1442, 1444, 3, 108, 54, 0, 1443, 1440, 1, 0, 0, 0, 1443, 1444, 1, 0, 0, 0, 1444, 1445, 1, 0, 0, 0, 1445, 1452, 5, 186, 0, 0, 1446, 1447, 5, 33, 0, 0, 1447, 1448, 5, 165, 0, 0, 1448, 1449, 5, 127, 0, 0, 1449, 1450, 3, 154, 77, 0, 1450, 1451, 5, 186, 0, 0, 1451, 1453, 1, 0, 0, 0, 1452, 1446, 1, 0, 0, 0, 1452, 1453, 1, 0, 0, 0, 1453, 1523, 1, 0, 0, 0, 1454, 1523, 3, 166, 83, 0, 1455, 1523, 3, 228, 114, 0, 1456, 1523, 3, 206, 103, 0, 1457, 1458, 5, 153, 0, 0, 1458, 1523, 3, 154, 77, 26, 1459, 1460, 5, 73, 0, 0, 1460, 1523, 3, 154, 77, 17, 1461, 1462, 3, 196, 98, 0, 1462, 1463, 5, 155, 0, 0, 1463, 1465, 1, 0, 0, 0, 1464, 1461, 1, 0, 0, 0, 1464, 1465, 1, 0, 0, 0, 1465, 1466, 1, 0, 0, 0, 1466, 1472, 5, 145, 0, 0, 1467, 1468, 5, 29, 0, 0, 1468, 1469, 5, 165, 0, 0, 1469, 1470, 3, 8, 4, 0, 1470, 1471, 5, 186, 0, 0, 1471, 1473, 1, 0, 0, 0, 1472, 1467, 1, 0, 0, 0, 1472, 1473, 1, 0, 0, 0, 1473, 1523, 1, 0, 0, 0, 1474, 1475, 5, 60, 0, 0, 1475, 1480, 3, 220, 110, 0, 1476, 1477, 5, 151, 0, 0, 1477, 1479, 3, 220, 110, 0, 1478, 1476, 1, 0, 0, 0, 1479, 1482, 1, 0, 0, 0, 1480, 1478, 1, 0, 0, 0, 1480, 1481, 1, 0, 0, 0, 1481, 1484, 1, 0, 0, 0, 1482, 1480, 1, 0, 0, 0, 1483, 1485, 5, 151, 0, 0, 1484, 1483, 1, 0, 0, 0, 1484, 1485, 1, 0, 0, 0, 1485, 1486, 1, 0, 0, 0, 1486, 1487, 5, 150, 0, 0, 1487, 1488, 3, 154, 77, 10, 1488, 1523, 1, 0, 0, 0, 1489, 1490, 5, 165, 0, 0, 1490, 1491, 3, 48, 24, 0, 1491, 1492, 5, 186, 0, 0, 1492, 1523, 1, 0, 0, 0, 1493, 1494, 5, 165, 0, 0, 1494, 1495, 3, 154, 77, 0, 1495, 1496, 5, 186, 0, 0, 1496, 1523, 1, 0, 0, 0, 1497, 1498, 5, 165, 0, 0, 1498, 1499, 3, 146, 73, 0, 1499, 1500, 5, 186, 0, 0, 1500, 1523, 1, 0, 0, 0, 1501, 1503, 5, 5, 0, 0, 1502, 1501, 1, 0, 0, 0, 1502, 1503, 1, 0, 0, 0, 1503, 1504, 1, 0, 0, 0, 1504, 1506, 5, 164, 0, 0, 1505, 1507, 3, 146, 73, 0, 1506, 1505, 1, 0, 0, 0, 1506, 1507, 1, 0, 0, 0, 1507, 1508, 1, 0, 0, 0, 1508, 1523, 5, 185, 0, 0, 1509, 1511, 5, 163, 0, 0, 1510, 1512, 3, 40, 20, 0, 1511, 1510, 1, 0, 0, 0, 1511, 1512, 1, 0, 0, 0, 1512, 1513, 1, 0, 0, 0, 1513, 1523, 5, 184, 0, 0, 1514, 1523, 3, 156, 78, 0, 1515, 1516, 3, 220, 110, 0, 1516, 1517, 5, 149, 0, 0, 1517, 1518, 3, 154, 77, 3, 1518, 1523, 1, 0, 0, 0, 1519, 1520, 5, 160, 0, 0, 1520, 1523, 5, 139, 0, 0, 1521, 1523, 3, 176, 88, 0, 1522, 1173, 1, 0, 0, 0, 1522, 1193, 1, 0, 0, 0, 1522, 1200, 1, 0, 0, 0, 1522, 1207, 1, 0, 0, 0, 1522, 1209, 1, 0, 0, 0, 1522, 1213, 1, 0, 0, 0, 1522, 1215, 1, 0, 0, 0, 1522, 1226, 1, 0, 0, 0, 1522, 1228, 1, 0, 0, 0, 1522, 1236, 1, 0, 0, 0, 1522, 1240, 1, 0, 0, 0, 1522, 1270, 1, 0, 0, 0, 1522, 1272, 1, 0, 0, 0, 1522, 1298, 1, 0, 0, 0, 1522, 1300, 1, 0, 0, 0, 1522, 1304, 1, 0, 0, 0, 1522, 1319, 1, 0, 0, 0, 1522, 1330, 1, 0, 0, 0, 1522, 1341, 1, 0, 0, 0, 1522, 1348, 1, 0, 0, 0, 1522, 1353, 1, 0, 0, 0, 1522, 1359, 1, 0, 0, 0, 1522, 1367, 1, 0, 0, 0, 1522, 1397, 1, 0, 0, 0, 1522, 1425, 1, 0, 0, 0, 1522, 1454, 1, 0, 0, 0, 1522, 1455, 1, 0, 0, 0, 1522, 1456, 1, 0, 0, 0, 1522, 1457, 1, 0, 0, 0, 1522, 1459, 1, 0, 0, 0, 1522, 1464, 1, 0, 0, 0, 1522, 1474, 1, 0, 0, 0, 1522, 1489, 1, 0, 0, 0, 1522, 1493, 1, 0, 0, 0, 1522, 1497, 1, 0, 0, 0, 1522, 1502, 1, 0, 0, 0, 1522, 1509, 1, 0, 0, 0, 1522, 1514, 1, 0, 0, 0, 1522, 1515, 1, 0, 0, 0, 1522, 1519, 1, 0, 0, 0, 1522, 1521, 1, 0, 0, 0, 1523, 1665, 1, 0, 0, 0, 1524, 1528, 10, 25, 0, 0, 1525, 1529, 5, 145, 0, 0, 1526, 1529, 5, 188, 0, 0, 1527, 1529, 5, 175, 0, 0, 1528, 1525, 1, 0, 0, 0, 1528, 1526, 1, 0, 0, 0, 1528, 1527, 1, 0, 0, 0, 1529, 1530, 1, 0, 0, 0, 1530, 1664, 3, 154, 77, 26, 1531, 1535, 10, 24, 0, 0, 1532, 1536, 5, 176, 0, 0, 1533, 1536, 5, 153, 0, 0, 1534, 1536, 5, 152, 0, 0, 1535, 1532, 1, 0, 0, 0, 1535, 1533, 1, 0, 0, 0, 1535, 1534, 1, 0, 0, 0, 1536, 1537, 1, 0, 0, 0, 1537, 1664, 3, 154, 77, 25, 1538, 1563, 10, 23, 0, 0, 1539, 1564, 5, 156, 0, 0, 1540, 1564, 5, 157, 0, 0, 1541, 1564, 5, 170, 0, 0, 1542, 1564, 5, 167, 0, 0, 1543, 1564, 5, 168, 0, 0, 1544, 1564, 5, 158, 0, 0, 1545, 1564, 5, 159, 0, 0, 1546, 1548, 5, 73, 0, 0, 1547, 1546, 1, 0, 0, 0, 1547, 1548, 1, 0, 0, 0, 1548, 1549, 1, 0, 0, 0, 1549, 1551, 5, 51, 0, 0, 1550, 1552, 5, 15, 0, 0, 1551, 1550, 1, 0, 0, 0, 1551, 1552, 1, 0, 0, 0, 1552, 1564, 1, 0, 0, 0, 1553, 1555, 5, 73, 0, 0, 1554, 1553, 1, 0, 0, 0, 1554, 1555, 1, 0, 0, 0, 1555, 1556, 1, 0, 0, 0, 1556, 1564, 7, 13, 0, 0, 1557, 1564, 5, 182, 0, 0, 1558, 1564, 5, 183, 0, 0, 1559, 1564, 5, 172, 0, 0, 1560, 1564, 5, 161, 0, 0, 1561, 1564, 5, 162, 0, 0, 1562, 1564, 5, 171, 0, 0, 1563, 1539, 1, 0, 0, 0, 1563, 1540, 1, 0, 0, 0, 1563, 1541, 1, 0, 0, 0, 1563, 1542, 1, 0, 0, 0, 1563, 1543, 1, 0, 0, 0, 1563, 1544, 1, 0, 0, 0, 1563, 1545, 1, 0, 0, 0, 1563, 1547, 1, 0, 0, 0, 1563, 1554, 1, 0, 0, 0, 1563, 1557, 1, 0, 0, 0, 1563, 1558, 1, 0, 0, 0, 1563, 1559, 1, 0, 0, 0, 1563, 1560, 1, 0, 0, 0, 1563, 1561, 1, 0, 0, 0, 1563, 1562, 1, 0, 0, 0, 1564, 1565, 1, 0, 0, 0, 1565, 1664, 3, 154, 77, 24, 1566, 1567, 10, 20, 0, 0, 1567, 1569, 5, 57, 0, 0, 1568, 1570, 5, 73, 0, 0, 1569, 1568, 1, 0, 0, 0, 1569, 1570, 1, 0, 0, 0, 1570, 1571, 1, 0, 0, 0, 1571, 1572, 5, 25, 0, 0, 1572, 1573, 5, 39, 0, 0, 1573, 1664, 3, 154, 77, 21, 1574, 1575, 10, 19, 0, 0, 1575, 1576, 5, 166, 0, 0, 1576, 1664, 3, 154, 77, 20, 1577, 1578, 10, 18, 0, 0, 1578, 1579, 5, 174, 0, 0, 1579, 1664, 3, 154, 77, 19, 1580, 1581, 10, 16, 0, 0, 1581, 1582, 5, 2, 0, 0, 1582, 1664, 3, 154, 77, 17, 1583, 1584, 10, 15, 0, 0, 1584, 1585, 5, 78, 0, 0, 1585, 1664, 3, 154, 77, 16, 1586, 1588, 10, 14, 0, 0, 1587, 1589, 5, 73, 0, 0, 1588, 1587, 1, 0, 0, 0, 1588, 1589, 1, 0, 0, 0, 1589, 1590, 1, 0, 0, 0, 1590, 1591, 5, 9, 0, 0, 1591, 1592, 3, 154, 77, 0, 1592, 1593, 5, 2, 0, 0, 1593, 1594, 3, 154, 77, 15, 1594, 1664, 1, 0, 0, 0, 1595, 1596, 10, 13, 0, 0, 1596, 1597, 5, 177, 0, 0, 1597, 1598, 3, 154, 77, 0, 1598, 1599, 5, 150, 0, 0, 1599, 1600, 3, 154, 77, 13, 1600, 1664, 1, 0, 0, 0, 1601, 1602, 10, 39, 0, 0, 1602, 1603, 5, 165, 0, 0, 1603, 1604, 3, 48, 24, 0, 1604, 1605, 5, 186, 0, 0, 1605, 1664, 1, 0, 0, 0, 1606, 1607, 10, 38, 0, 0, 1607, 1609, 5, 165, 0, 0, 1608, 1610, 3, 146, 73, 0, 1609, 1608, 1, 0, 0, 0, 1609, 1610, 1, 0, 0, 0, 1610, 1611, 1, 0, 0, 0, 1611, 1664, 5, 186, 0, 0, 1612, 1613, 10, 34, 0, 0, 1613, 1614, 5, 164, 0, 0, 1614, 1615, 3, 154, 77, 0, 1615, 1616, 5, 185, 0, 0, 1616, 1664, 1, 0, 0, 0, 1617, 1618, 10, 33, 0, 0, 1618, 1620, 5, 164, 0, 0, 1619, 1621, 3, 154, 77, 0, 1620, 1619, 1, 0, 0, 0, 1620, 1621, 1, 0, 0, 0, 1621, 1622, 1, 0, 0, 0, 1622, 1624, 5, 150, 0, 0, 1623, 1625, 3, 154, 77, 0, 1624, 1623, 1, 0, 0, 0, 1624, 1625, 1, 0, 0, 0, 1625, 1626, 1, 0, 0, 0, 1626, 1664, 5, 185, 0, 0, 1627, 1628, 10, 32, 0, 0, 1628, 1629, 5, 155, 0, 0, 1629, 1664, 5, 139, 0, 0, 1630, 1631, 10, 31, 0, 0, 1631, 1632, 5, 155, 0, 0, 1632, 1664, 3, 220, 110, 0, 1633, 1634, 10, 30, 0, 0, 1634, 1635, 5, 173, 0, 0, 1635, 1636, 5, 164, 0, 0, 1636, 1637, 3, 154, 77, 0, 1637, 1638, 5, 185, 0, 0, 1638, 1664, 1, 0, 0, 0, 1639, 1640, 10, 29, 0, 0, 1640, 1641, 5, 173, 0, 0, 1641, 1664, 5, 139, 0, 0, 1642, 1643, 10, 28, 0, 0, 1643, 1644, 5, 173, 0, 0, 1644, 1664, 3, 220, 110, 0, 1645, 1646, 10, 27, 0, 0, 1646, 1647, 5, 148, 0, 0, 1647, 1664, 3, 140, 70, 0, 1648, 1649, 10, 22, 0, 0, 1649, 1650, 5, 49, 0, 0, 1650, 1664, 5, 75, 0, 0, 1651, 1652, 10, 21, 0, 0, 1652, 1654, 5, 57, 0, 0, 1653, 1655, 5, 73, 0, 0, 1654, 1653, 1, 0, 0, 0, 1654, 1655, 1, 0, 0, 0, 1655, 1656, 1, 0, 0, 0, 1656, 1664, 5, 74, 0, 0, 1657, 1658, 10, 12, 0, 0, 1658, 1661, 5, 6, 0, 0, 1659, 1662, 3, 220, 110, 0, 1660, 1662, 5, 143, 0, 0, 1661, 1659, 1, 0, 0, 0, 1661, 1660, 1, 0, 0, 0, 1662, 1664, 1, 0, 0, 0, 1663, 1524, 1, 0, 0, 0, 1663, 1531, 1, 0, 0, 0, 1663, 1538, 1, 0, 0, 0, 1663, 1566, 1, 0, 0, 0, 1663, 1574, 1, 0, 0, 0, 1663, 1577, 1, 0, 0, 0, 1663, 1580, 1, 0, 0, 0, 1663, 1583, 1, 0, 0, 0, 1663, 1586, 1, 0, 0, 0, 1663, 1595, 1, 0, 0, 0, 1663, 1601, 1, 0, 0, 0, 1663, 1606, 1, 0, 0, 0, 1663, 1612, 1, 0, 0, 0, 1663, 1617, 1, 0, 0, 0, 1663, 1627, 1, 0, 0, 0, 1663, 1630, 1, 0, 0, 0, 1663, 1633, 1, 0, 0, 0, 1663, 1639, 1, 0, 0, 0, 1663, 1642, 1, 0, 0, 0, 1663, 1645, 1, 0, 0, 0, 1663, 1648, 1, 0, 0, 0, 1663, 1651, 1, 0, 0, 0, 1663, 1657, 1, 0, 0, 0, 1664, 1667, 1, 0, 0, 0, 1665, 1663, 1, 0, 0, 0, 1665, 1666, 1, 0, 0, 0, 1666, 155, 1, 0, 0, 0, 1667, 1665, 1, 0, 0, 0, 1668, 1669, 5, 165, 0, 0, 1669, 1674, 3, 220, 110, 0, 1670, 1671, 5, 151, 0, 0, 1671, 1673, 3, 220, 110, 0, 1672, 1670, 1, 0, 0, 0, 1673, 1676, 1, 0, 0, 0, 1674, 1672, 1, 0, 0, 0, 1674, 1675, 1, 0, 0, 0, 1675, 1678, 1, 0, 0, 0, 1676, 1674, 1, 0, 0, 0, 1677, 1679, 5, 151, 0, 0, 1678, 1677, 1, 0, 0, 0, 1678, 1679, 1, 0, 0, 0, 1679, 1680, 1, 0, 0, 0, 1680, 1681, 5, 186, 0, 0, 1681, 1696, 1, 0, 0, 0, 1682, 1687, 3, 220, 110, 0, 1683, 1684, 5, 151, 0, 0, 1684, 1686, 3, 220, 110, 0, 1685, 1683, 1, 0, 0, 0, 1686, 1689, 1, 0, 0, 0, 1687, 1685, 1, 0, 0, 0, 1687, 1688, 1, 0, 0, 0, 1688, 1691, 1, 0, 0, 0, 1689, 1687, 1, 0, 0, 0, 1690, 1692, 5, 151, 0, 0, 1691, 1690, 1, 0, 0, 0, 1691, 1692, 1, 0, 0, 0, 1692, 1696, 1, 0, 0, 0, 1693, 1694, 5, 165, 0, 0, 1694, 1696, 5, 186, 0, 0, 1695, 1668, 1, 0, 0, 0, 1695, 1682, 1, 0, 0, 0, 1695, 1693, 1, 0, 0, 0, 1696, 1697, 1, 0, 0, 0, 1697, 1700, 5, 144, 0, 0, 1698, 1701, 3, 154, 77, 0, 1699, 1701, 3, 36, 18, 0, 1700, 1698, 1, 0, 0, 0, 1700, 1699, 1, 0, 0, 0, 1701, 1718, 1, 0, 0, 0, 1702, 1703, 5, 60, 0, 0, 1703, 1708, 3, 220, 110, 0, 1704, 1705, 5, 151, 0, 0, 1705, 1707, 3, 220, 110, 0, 1706, 1704, 1, 0, 0, 0, 1707, 1710, 1, 0, 0, 0, 1708, 1706, 1, 0, 0, 0, 1708, 1709, 1, 0, 0, 0, 1709, 1712, 1, 0, 0, 0, 1710, 1708, 1, 0, 0, 0, 1711, 1713, 5, 151, 0, 0, 1712, 1711, 1, 0, 0, 0, 1712, 1713, 1, 0, 0, 0, 1713, 1714, 1, 0, 0, 0, 1714, 1715, 5, 150, 0, 0, 1715, 1716, 3, 154, 77, 0, 1716, 1718, 1, 0, 0, 0, 1717, 1695, 1, 0, 0, 0, 1717, 1702, 1, 0, 0, 0, 1718, 157, 1, 0, 0, 0, 1719, 1724, 3, 160, 80, 0, 1720, 1721, 5, 151, 0, 0, 1721, 1723, 3, 160, 80, 0, 1722, 1720, 1, 0, 0, 0, 1723, 1726, 1, 0, 0, 0, 1724, 1722, 1, 0, 0, 0, 1724, 1725, 1, 0, 0, 0, 1725, 159, 1, 0, 0, 0, 1726, 1724, 1, 0, 0, 0, 1727, 1728, 3, 154, 77, 0, 1728, 1729, 5, 6, 0, 0, 1729, 1730, 3, 220, 110, 0, 1730, 161, 1, 0, 0, 0, 1731, 1738, 3, 166, 83, 0, 1732, 1738, 3, 164, 82, 0, 1733, 1734, 5, 163, 0, 0, 1734, 1735, 3, 154, 77, 0, 1735, 1736, 5, 184, 0, 0, 1736, 1738, 1, 0, 0, 0, 1737, 1731, 1, 0, 0, 0, 1737, 1732, 1, 0, 0, 0, 1737, 1733, 1, 0, 0, 0, 1738, 163, 1, 0, 0, 0, 1739, 1740, 5, 206, 0, 0, 1740, 165, 1, 0, 0, 0, 1741, 1742, 5, 168, 0, 0, 1742, 1746, 3, 220, 110, 0, 1743, 1745, 3, 168, 84, 0, 1744, 1743, 1, 0, 0, 0, 1745, 1748, 1, 0, 0, 0, 1746, 1744, 1, 0, 0, 0, 1746, 1747, 1, 0, 0, 0, 1747, 1749, 1, 0, 0, 0, 1748, 1746, 1, 0, 0, 0, 1749, 1750, 5, 189, 0, 0, 1750, 1771, 1, 0, 0, 0, 1751, 1752, 5, 168, 0, 0, 1752, 1756, 3, 220, 110, 0, 1753, 1755, 3, 168, 84, 0, 1754, 1753, 1, 0, 0, 0, 1755, 1758, 1, 0, 0, 0, 1756, 1754, 1, 0, 0, 0, 1756, 1757, 1, 0, 0, 0, 1757, 1759, 1, 0, 0, 0, 1758, 1756, 1, 0, 0, 0, 1759, 1763, 5, 159, 0, 0, 1760, 1762, 3, 162, 81, 0, 1761, 1760, 1, 0, 0, 0, 1762, 1765, 1, 0, 0, 0, 1763, 1761, 1, 0, 0, 0, 1763, 1764, 1, 0, 0, 0, 1764, 1766, 1, 0, 0, 0, 1765, 1763, 1, 0, 0, 0, 1766, 1767, 5, 169, 0, 0, 1767, 1768, 3, 220, 110, 0, 1768, 1769, 5, 159, 0, 0, 1769, 1771, 1, 0, 0, 0, 1770, 1741, 1, 0, 0, 0, 1770, 1751, 1, 0, 0, 0, 1771, 167, 1, 0, 0, 0, 1772, 1773, 3, 220, 110, 0, 1773, 1774, 5, 157, 0, 0, 1774, 1775, 3, 226, 113, 0, 1775, 1784, 1, 0, 0, 0, 1776, 1777, 3, 220, 110, 0, 1777, 1778, 5, 157, 0, 0, 1778, 1779, 5, 163, 0, 0, 1779, 1780, 3, 154, 77, 0, 1780, 1781, 5, 184, 0, 0, 1781, 1784, 1, 0, 0, 0, 1782, 1784, 3, 220, 110, 0, 1783, 1772, 1, 0, 0, 0, 1783, 1776, 1, 0, 0, 0, 1783, 1782, 1, 0, 0, 0, 1784, 169, 1, 0, 0, 0, 1785, 1790, 3, 172, 86, 0, 1786, 1787, 5, 151, 0, 0, 1787, 1789, 3, 172, 86, 0, 1788, 1786, 1, 0, 0, 0, 1789, 1792, 1, 0, 0, 0, 1790, 1788, 1, 0, 0, 0, 1790, 1791, 1, 0, 0, 0, 1791, 1794, 1, 0, 0, 0, 1792, 1790, 1, 0, 0, 0, 1793, 1795, 5, 151, 0, 0, 1794, 1793, 1, 0, 0, 0, 1794, 1795, 1, 0, 0, 0, 1795, 171, 1, 0, 0, 0, 1796, 1798, 3, 220, 110, 0, 1797, 1799, 3, 174, 87, 0, 1798, 1797, 1, 0, 0, 0, 1798, 1799, 1, 0, 0, 0, 1799, 1803, 1, 0, 0, 0, 1800, 1801, 5, 123, 0, 0, 1801, 1802, 5, 59, 0, 0, 1802, 1804, 3, 174, 87, 0, 1803, 1800, 1, 0, 0, 0, 1803, 1804, 1, 0, 0, 0, 1804, 1805, 1, 0, 0, 0, 1805, 1810, 5, 6, 0, 0, 1806, 1808, 5, 73, 0, 0, 1807, 1806, 1, 0, 0, 0, 1807, 1808, 1, 0, 0, 0, 1808, 1809, 1, 0, 0, 0, 1809, 1811, 5, 67, 0, 0, 1810, 1807, 1, 0, 0, 0, 1810, 1811, 1, 0, 0, 0, 1811, 1812, 1, 0, 0, 0, 1812, 1813, 5, 165, 0, 0, 1813, 1814, 3, 48, 24, 0, 1814, 1815, 5, 186, 0, 0, 1815, 1821, 1, 0, 0, 0, 1816, 1817, 3, 154, 77, 0, 1817, 1818, 5, 6, 0, 0, 1818, 1819, 3, 220, 110, 0, 1819, 1821, 1, 0, 0, 0, 1820, 1796, 1, 0, 0, 0, 1820, 1816, 1, 0, 0, 0, 1821, 173, 1, 0, 0, 0, 1822, 1823, 5, 165, 0, 0, 1823, 1828, 3, 220, 110, 0, 1824, 1825, 5, 151, 0, 0, 1825, 1827, 3, 220, 110, 0, 1826, 1824, 1, 0, 0, 0, 1827, 1830, 1, 0, 0, 0, 1828, 1826, 1, 0, 0, 0, 1828, 1829, 1, 0, 0, 0, 1829, 1831, 1, 0, 0, 0, 1830, 1828, 1, 0, 0, 0, 1831, 1832, 5, 186, 0, 0, 1832, 175, 1, 0, 0, 0, 1833, 1841, 3, 224, 112, 0, 1834, 1835, 3, 196, 98, 0, 1835, 1836, 5, 155, 0, 0, 1836, 1838, 1, 0, 0, 0, 1837, 1834, 1, 0, 0, 0, 1837, 1838, 1, 0, 0, 0, 1838, 1839, 1, 0, 0, 0, 1839, 1841, 3, 178, 89, 0, 1840, 1833, 1, 0, 0, 0, 1840, 1837, 1, 0, 0, 0, 1841, 177, 1, 0, 0, 0, 1842, 1847, 3, 220, 110, 0, 1843, 1844, 5, 155, 0, 0, 1844, 1846, 3, 220, 110, 0, 1845, 1843, 1, 0, 0, 0, 1846, 1849, 1, 0, 0, 0, 1847, 1845, 1, 0, 0, 0, 1847, 1848, 1, 0, 0, 0, 1848, 179, 1, 0, 0, 0, 1849, 1847, 1, 0, 0, 0, 1850, 1851, 6, 90, -1, 0, 1851, 1864, 3, 196, 98, 0, 1852, 1864, 3, 194, 97, 0, 1853, 1854, 5, 165, 0, 0, 1854, 1855, 3, 48, 24, 0, 1855, 1856, 5, 186, 0, 0, 1856, 1864, 1, 0, 0, 0, 1857, 1858, 5, 165, 0, 0, 1858, 1859, 3, 92, 46, 0, 1859, 1860, 5, 186, 0, 0, 1860, 1864, 1, 0, 0, 0, 1861, 1864, 3, 166, 83, 0, 1862, 1864, 3, 224, 112, 0, 1863, 1850, 1, 0, 0, 0, 1863, 1852, 1, 0, 0, 0, 1863, 1853, 1, 0, 0, 0, 1863, 1857, 1, 0, 0, 0, 1863, 1861, 1, 0, 0, 0, 1863, 1862, 1, 0, 0, 0, 1864, 1898, 1, 0, 0, 0, 1865, 1866, 10, 5, 0, 0, 1866, 1867, 5, 83, 0, 0, 1867, 1868, 5, 165, 0, 0, 1868, 1869, 3, 146, 73, 0, 1869, 1873, 3, 182, 91, 0, 1870, 1871, 5, 42, 0, 0, 1871, 1872, 5, 11, 0, 0, 1872, 1874, 3, 146, 73, 0, 1873, 1870, 1, 0, 0, 0, 1873, 1874, 1, 0, 0, 0, 1874, 1875, 1, 0, 0, 0, 1875, 1876, 5, 186, 0, 0, 1876, 1897, 1, 0, 0, 0, 1877, 1878, 10, 4, 0, 0, 1878, 1881, 5, 122, 0, 0, 1879, 1880, 5, 50, 0, 0, 1880, 1882, 5, 75, 0, 0, 1881, 1879, 1, 0, 0, 0, 1881, 1882, 1, 0, 0, 0, 1882, 1883, 1, 0, 0, 0, 1883, 1884, 5, 165, 0, 0, 1884, 1885, 3, 186, 93, 0, 1885, 1886, 5, 186, 0, 0, 1886, 1897, 1, 0, 0, 0, 1887, 1891, 10, 3, 0, 0, 1888, 1892, 3, 216, 108, 0, 1889, 1890, 5, 6, 0, 0, 1890, 1892, 3, 220, 110, 0, 1891, 1888, 1, 0, 0, 0, 1891, 1889, 1, 0, 0, 0, 1892, 1894, 1, 0, 0, 0, 1893, 1895, 3, 192, 96, 0, 1894, 1893, 1, 0, 0, 0, 1894, 1895, 1, 0, 0, 0, 1895, 1897, 1, 0, 0, 0, 1896, 1865, 1, 0, 0, 0, 1896, 1877, 1, 0, 0, 0, 1896, 1887, 1, 0, 0, 0, 1897, 1900, 1, 0, 0, 0, 1898, 1896, 1, 0, 0, 0, 1898, 1899, 1, 0, 0, 0, 1899, 181, 1, 0, 0, 0, 1900, 1898, 1, 0, 0, 0, 1901, 1903, 5, 38, 0, 0, 1902, 1904, 3, 184, 92, 0, 1903, 1902, 1, 0, 0, 0, 1904, 1905, 1, 0, 0, 0, 1905, 1903, 1, 0, 0, 0, 1905, 1906, 1, 0, 0, 0, 1906, 183, 1, 0, 0, 0, 1907, 1908, 3, 190, 95, 0, 1908, 1909, 5, 51, 0, 0, 1909, 1910, 5, 165, 0, 0, 1910, 1911, 3, 146, 73, 0, 1911, 1912, 5, 186, 0, 0, 1912, 185, 1, 0, 0, 0, 1913, 1918, 3, 188, 94, 0, 1914, 1915, 5, 151, 0, 0, 1915, 1917, 3, 188, 94, 0, 1916, 1914, 1, 0, 0, 0, 1917, 1920, 1, 0, 0, 0, 1918, 1916, 1, 0, 0, 0, 1918, 1919, 1, 0, 0, 0, 1919, 1922, 1, 0, 0, 0, 1920, 1918, 1, 0, 0, 0, 1921, 1923, 5, 151, 0, 0, 1922, 1921, 1, 0, 0, 0, 1922, 1923, 1, 0, 0, 0, 1923, 187, 1, 0, 0, 0, 1924, 1925, 3, 190, 95, 0, 1925, 1926, 5, 38, 0, 0, 1926, 1927, 3, 190, 95, 0, 1927, 1928, 5, 51, 0, 0, 1928, 1929, 5, 165, 0, 0, 1929, 1930, 3, 146, 73, 0, 1930, 1939, 5, 186, 0, 0, 1931, 1932, 3, 190, 95, 0, 1932, 1933, 5, 51, 0, 0, 1933, 1934, 5, 165, 0, 0, 1934, 1935, 3, 146, 73, 0, 1935, 1936, 5, 186, 0, 0, 1936, 1938, 1, 0, 0, 0, 1937, 1931, 1, 0, 0, 0, 1938, 1941, 1, 0, 0, 0, 1939, 1937, 1, 0, 0, 0, 1939, 1940, 1, 0, 0, 0, 1940, 189, 1, 0, 0, 0, 1941, 1939, 1, 0, 0, 0, 1942, 1943, 5, 165, 0, 0, 1943, 1944, 3, 146, 73, 0, 1944, 1945, 5, 186, 0, 0, 1945, 1948, 1, 0, 0, 0, 1946, 1948, 3, 154, 77, 0, 1947, 1942, 1, 0, 0, 0, 1947, 1946, 1, 0, 0, 0, 1948, 191, 1, 0, 0, 0, 1949, 1950, 5, 165, 0, 0, 1950, 1955, 3, 220, 110, 0, 1951, 1952, 5, 151, 0, 0, 1952, 1954, 3, 220, 110, 0, 1953, 1951, 1, 0, 0, 0, 1954, 1957, 1, 0, 0, 0, 1955, 1953, 1, 0, 0, 0, 1955, 1956, 1, 0, 0, 0, 1956, 1958, 1, 0, 0, 0, 1957, 1955, 1, 0, 0, 0, 1958, 1959, 5, 186, 0, 0, 1959, 193, 1, 0, 0, 0, 1960, 1961, 3, 220, 110, 0, 1961, 1963, 5, 165, 0, 0, 1962, 1964, 3, 198, 99, 0, 1963, 1962, 1, 0, 0, 0, 1963, 1964, 1, 0, 0, 0, 1964, 1965, 1, 0, 0, 0, 1965, 1966, 5, 186, 0, 0, 1966, 195, 1, 0, 0, 0, 1967, 1968, 3, 200, 100, 0, 1968, 1969, 5, 155, 0, 0, 1969, 1971, 1, 0, 0, 0, 1970, 1967, 1, 0, 0, 0, 1970, 1971, 1, 0, 0, 0, 1971, 1972, 1, 0, 0, 0, 1972, 1973, 3, 178, 89, 0, 1973, 197, 1, 0, 0, 0, 1974, 1979, 3, 154, 77, 0, 1975, 1976, 5, 151, 0, 0, 1976, 1978, 3, 154, 77, 0, 1977, 1975, 1, 0, 0, 0, 1978, 1981, 1, 0, 0, 0, 1979, 1977, 1, 0, 0, 0, 1979, 1980, 1, 0, 0, 0, 1980, 1983, 1, 0, 0, 0, 1981, 1979, 1, 0, 0, 0, 1982, 1984, 5, 151, 0, 0, 1983, 1982, 1, 0, 0, 0, 1983, 1984, 1, 0, 0, 0, 1984, 199, 1, 0, 0, 0, 1985, 1986, 3, 220, 110, 0, 1986, 201, 1, 0, 0, 0, 1987, 1996, 5, 136, 0, 0, 1988, 1989, 5, 155, 0, 0, 1989, 1996, 7, 14, 0, 0, 1990, 1991, 5, 139, 0, 0, 1991, 1993, 5, 155, 0, 0, 1992, 1994, 7, 14, 0, 0, 1993, 1992, 1, 0, 0, 0, 1993, 1994, 1, 0, 0, 0, 1994, 1996, 1, 0, 0, 0, 1995, 1987, 1, 0, 0, 0, 1995, 1988, 1, 0, 0, 0, 1995, 1990, 1, 0, 0, 0, 1996, 203, 1, 0, 0, 0, 1997, 1999, 7, 15, 0, 0, 1998, 1997, 1, 0, 0, 0, 1998, 1999, 1, 0, 0, 0, 1999, 2008, 1, 0, 0, 0, 2000, 2009, 3, 202, 101, 0, 2001, 2009, 5, 137, 0, 0, 2002, 2009, 5, 138, 0, 0, 2003, 2009, 5, 141, 0, 0, 2004, 2009, 5, 139, 0, 0, 2005, 2009, 5, 140, 0, 0, 2006, 2009, 5, 52, 0, 0, 2007, 2009, 5, 72, 0, 0, 2008, 2000, 1, 0, 0, 0, 2008, 2001, 1, 0, 0, 0, 2008, 2002, 1, 0, 0, 0, 2008, 2003, 1, 0, 0, 0, 2008, 2004, 1, 0, 0, 0, 2008, 2005, 1, 0, 0, 0, 2008, 2006, 1, 0, 0, 0, 2008, 2007, 1, 0, 0, 0, 2009, 205, 1, 0, 0, 0, 2010, 2014, 3, 204, 102, 0, 2011, 2014, 5, 143, 0, 0, 2012, 2014, 5, 74, 0, 0, 2013, 2010, 1, 0, 0, 0, 2013, 2011, 1, 0, 0, 0, 2013, 2012, 1, 0, 0, 0, 2014, 207, 1, 0, 0, 0, 2015, 2016, 7, 16, 0, 0, 2016, 209, 1, 0, 0, 0, 2017, 2018, 7, 17, 0, 0, 2018, 211, 1, 0, 0, 0, 2019, 2020, 7, 18, 0, 0, 2020, 213, 1, 0, 0, 0, 2021, 2022, 7, 19, 0, 0, 2022, 215, 1, 0, 0, 0, 2023, 2027, 5, 134, 0, 0, 2024, 2027, 5, 135, 0, 0, 2025, 2027, 3, 212, 106, 0, 2026, 2023, 1, 0, 0, 0, 2026, 2024, 1, 0, 0, 0, 2026, 2025, 1, 0, 0, 0, 2027, 217, 1, 0, 0, 0, 2028, 2032, 5, 134, 0, 0, 2029, 2032, 5, 135, 0, 0, 2030, 2032, 3, 214, 107, 0, 2031, 2028, 1, 0, 0, 0, 2031, 2029, 1, 0, 0, 0, 2031, 2030, 1, 0, 0, 0, 2032, 219, 1, 0, 0, 0, 2033, 2038, 5, 134, 0, 0, 2034, 2038, 5, 135, 0, 0, 2035, 2038, 3, 208, 104, 0, 2036, 2038, 3, 210, 105, 0, 2037, 2033, 1, 0, 0, 0, 2037, 2034, 1, 0, 0, 0, 2037, 2035, 1, 0, 0, 0, 2037, 2036, 1, 0, 0, 0, 2038, 221, 1, 0, 0, 0, 2039, 2040, 3, 226, 113, 0, 2040, 2041, 5, 157, 0, 0, 2041, 2042, 3, 204, 102, 0, 2042, 223, 1, 0, 0, 0, 2043, 2044, 5, 163, 0, 0, 2044, 2045, 3, 154, 77, 0, 2045, 2046, 5, 184, 0, 0, 2046, 225, 1, 0, 0, 0, 2047, 2050, 5, 143, 0, 0, 2048, 2050, 3, 228, 114, 0, 2049, 2047, 1, 0, 0, 0, 2049, 2048, 1, 0, 0, 0, 2050, 227, 1, 0, 0, 0, 2051, 2055, 5, 179, 0, 0, 2052, 2054, 3, 230, 115, 0, 2053, 2052, 1, 0, 0, 0, 2054, 2057, 1, 0, 0, 0, 2055, 2053, 1, 0, 0, 0, 2055, 2056, 1, 0, 0, 0, 2056, 2058, 1, 0, 0, 0, 2057, 2055, 1, 0, 0, 0, 2058, 2059, 5, 181, 0, 0, 2059, 229, 1, 0, 0, 0, 2060, 2061, 5, 197, 0, 0, 2061, 2062, 3, 154, 77, 0, 2062, 2063, 5, 184, 0, 0, 2063, 2066, 1, 0, 0, 0, 2064, 2066, 5, 196, 0, 0, 2065, 2060, 1, 0, 0, 0, 2065, 2064, 1, 0, 0, 0, 2066, 231, 1, 0, 0, 0, 2067, 2071, 5, 180, 0, 0, 2068, 2070, 3, 234, 117, 0, 2069, 2068, 1, 0, 0, 0, 2070, 2073, 1, 0, 0, 0, 2071, 2069, 1, 0, 0, 0, 2071, 2072, 1, 0, 0, 0, 2072, 2074, 1, 0, 0, 0, 2073, 2071, 1, 0, 0, 0, 2074, 2075, 5, 0, 0, 1, 2075, 233, 1, 0, 0, 0, 2076, 2077, 5, 199, 0, 0, 2077, 2078, 3, 154, 77, 0, 2078, 2079, 5, 184, 0, 0, 2079, 2082, 1, 0, 0, 0, 2080, 2082, 5, 198, 0, 0, 2081, 2076, 1, 0, 0, 0, 2081, 2080, 1, 0, 0, 0, 2082, 235, 1, 0, 0, 0, 259, 239, 246, 254, 261, 265, 278, 282, 285, 290, 297, 301, 310, 315, 324, 332, 339, 343, 349, 354, 362, 369, 375, 387, 390, 398, 412, 416, 421, 424, 439, 445, 450, 456, 462, 467, 473, 479, 484, 486, 494, 498, 501, 506, 510, 514, 519, 523, 530, 533, 537, 540, 544, 547, 550, 553, 556, 559, 562, 566, 570, 573, 576, 580, 583, 586, 589, 593, 596, 600, 608, 614, 635, 659, 666, 671, 685, 694, 699, 713, 717, 721, 726, 730, 735, 749, 758, 766, 769, 775, 783, 786, 791, 798, 808, 816, 822, 824, 828, 833, 840, 843, 847, 851, 854, 860, 862, 865, 869, 873, 876, 878, 880, 885, 896, 901, 905, 911, 916, 923, 928, 932, 936, 939, 945, 949, 953, 958, 964, 966, 973, 981, 984, 987, 1012, 1026, 1042, 1046, 1057, 1061, 1072, 1076, 1083, 1091, 1094, 1099, 1104, 1110, 1116, 1122, 1131, 1135, 1142, 1148, 1155, 1159, 1171, 1176, 1185, 1189, 1222, 1270, 1298, 1362, 1370, 1376, 1379, 1382, 1390, 1400, 1406, 1409, 1412, 1420, 1428, 1431, 1435, 1438, 1443, 1452, 1464, 1472, 1480, 1484, 1502, 1506, 1511, 1522, 1528, 1535, 1547, 1551, 1554, 1563, 1569, 1588, 1609, 1620, 1624, 1654, 1661, 1663, 1665, 1674, 1678, 1687, 1691, 1695, 1700, 1708, 1712, 1717, 1724, 1737, 1746, 1756, 1763, 1770, 1783, 1790, 1794, 1798, 1803, 1807, 1810, 1820, 1828, 1837, 1840, 1847, 1863, 1873, 1881, 1891, 1894, 1896, 1898, 1905, 1918, 1922, 1939, 1947, 1955, 1963, 1970, 1979, 1983, 1993, 1995, 1998, 2008, 2013, 2026, 2031, 2037, 2049, 2055, 2065, 2071, 2081]
\ No newline at end of file
+[4, 1, 207, 2094, 2, 0, 7, 0, 2, 1, 7, 1, 2, 2, 7, 2, 2, 3, 7, 3, 2, 4, 7, 4, 2, 5, 7, 5, 2, 6, 7, 6, 2, 7, 7, 7, 2, 8, 7, 8, 2, 9, 7, 9, 2, 10, 7, 10, 2, 11, 7, 11, 2, 12, 7, 12, 2, 13, 7, 13, 2, 14, 7, 14, 2, 15, 7, 15, 2, 16, 7, 16, 2, 17, 7, 17, 2, 18, 7, 18, 2, 19, 7, 19, 2, 20, 7, 20, 2, 21, 7, 21, 2, 22, 7, 22, 2, 23, 7, 23, 2, 24, 7, 24, 2, 25, 7, 25, 2, 26, 7, 26, 2, 27, 7, 27, 2, 28, 7, 28, 2, 29, 7, 29, 2, 30, 7, 30, 2, 31, 7, 31, 2, 32, 7, 32, 2, 33, 7, 33, 2, 34, 7, 34, 2, 35, 7, 35, 2, 36, 7, 36, 2, 37, 7, 37, 2, 38, 7, 38, 2, 39, 7, 39, 2, 40, 7, 40, 2, 41, 7, 41, 2, 42, 7, 42, 2, 43, 7, 43, 2, 44, 7, 44, 2, 45, 7, 45, 2, 46, 7, 46, 2, 47, 7, 47, 2, 48, 7, 48, 2, 49, 7, 49, 2, 50, 7, 50, 2, 51, 7, 51, 2, 52, 7, 52, 2, 53, 7, 53, 2, 54, 7, 54, 2, 55, 7, 55, 2, 56, 7, 56, 2, 57, 7, 57, 2, 58, 7, 58, 2, 59, 7, 59, 2, 60, 7, 60, 2, 61, 7, 61, 2, 62, 7, 62, 2, 63, 7, 63, 2, 64, 7, 64, 2, 65, 7, 65, 2, 66, 7, 66, 2, 67, 7, 67, 2, 68, 7, 68, 2, 69, 7, 69, 2, 70, 7, 70, 2, 71, 7, 71, 2, 72, 7, 72, 2, 73, 7, 73, 2, 74, 7, 74, 2, 75, 7, 75, 2, 76, 7, 76, 2, 77, 7, 77, 2, 78, 7, 78, 2, 79, 7, 79, 2, 80, 7, 80, 2, 81, 7, 81, 2, 82, 7, 82, 2, 83, 7, 83, 2, 84, 7, 84, 2, 85, 7, 85, 2, 86, 7, 86, 2, 87, 7, 87, 2, 88, 7, 88, 2, 89, 7, 89, 2, 90, 7, 90, 2, 91, 7, 91, 2, 92, 7, 92, 2, 93, 7, 93, 2, 94, 7, 94, 2, 95, 7, 95, 2, 96, 7, 96, 2, 97, 7, 97, 2, 98, 7, 98, 2, 99, 7, 99, 2, 100, 7, 100, 2, 101, 7, 101, 2, 102, 7, 102, 2, 103, 7, 103, 2, 104, 7, 104, 2, 105, 7, 105, 2, 106, 7, 106, 2, 107, 7, 107, 2, 108, 7, 108, 2, 109, 7, 109, 2, 110, 7, 110, 2, 111, 7, 111, 2, 112, 7, 112, 2, 113, 7, 113, 2, 114, 7, 114, 2, 115, 7, 115, 2, 116, 7, 116, 2, 117, 7, 117, 2, 118, 7, 118, 1, 0, 5, 0, 240, 8, 0, 10, 0, 12, 0, 243, 9, 0, 1, 0, 1, 0, 1, 1, 1, 1, 3, 1, 249, 8, 1, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 257, 8, 3, 1, 4, 1, 4, 1, 4, 5, 4, 262, 8, 4, 10, 4, 12, 4, 265, 9, 4, 1, 4, 3, 4, 268, 8, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 281, 8, 5, 1, 6, 1, 6, 3, 6, 285, 8, 6, 1, 6, 3, 6, 288, 8, 6, 1, 7, 1, 7, 1, 7, 3, 7, 293, 8, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 300, 8, 8, 1, 8, 1, 8, 3, 8, 304, 8, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 5, 9, 311, 8, 9, 10, 9, 12, 9, 314, 9, 9, 1, 9, 1, 9, 3, 9, 318, 8, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 327, 8, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 3, 11, 335, 8, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 342, 8, 12, 1, 12, 1, 12, 3, 12, 346, 8, 12, 1, 12, 1, 12, 1, 12, 1, 12, 3, 12, 352, 8, 12, 1, 12, 1, 12, 1, 12, 3, 12, 357, 8, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 365, 8, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 3, 13, 372, 8, 13, 1, 14, 1, 14, 1, 14, 1, 14, 3, 14, 378, 8, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 3, 16, 390, 8, 16, 1, 16, 3, 16, 393, 8, 16, 1, 17, 1, 17, 1, 18, 1, 18, 5, 18, 399, 8, 18, 10, 18, 12, 18, 402, 9, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 5, 20, 413, 8, 20, 10, 20, 12, 20, 416, 9, 20, 1, 20, 3, 20, 419, 8, 20, 1, 21, 1, 21, 1, 21, 3, 21, 424, 8, 21, 1, 21, 3, 21, 427, 8, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 3, 22, 442, 8, 22, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 448, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 453, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 459, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 465, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 470, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 476, 8, 23, 1, 23, 1, 23, 1, 23, 1, 23, 3, 23, 482, 8, 23, 1, 23, 1, 23, 1, 23, 3, 23, 487, 8, 23, 3, 23, 489, 8, 23, 1, 23, 1, 23, 1, 24, 1, 24, 5, 24, 495, 8, 24, 10, 24, 12, 24, 498, 9, 24, 1, 24, 3, 24, 501, 8, 24, 1, 24, 3, 24, 504, 8, 24, 1, 25, 1, 25, 1, 25, 3, 25, 509, 8, 25, 1, 25, 1, 25, 3, 25, 513, 8, 25, 1, 25, 1, 25, 3, 25, 517, 8, 25, 1, 25, 1, 25, 1, 25, 3, 25, 522, 8, 25, 1, 25, 1, 25, 3, 25, 526, 8, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 3, 25, 533, 8, 25, 1, 26, 3, 26, 536, 8, 26, 1, 26, 1, 26, 3, 26, 540, 8, 26, 1, 26, 3, 26, 543, 8, 26, 1, 26, 1, 26, 3, 26, 547, 8, 26, 1, 26, 3, 26, 550, 8, 26, 1, 26, 3, 26, 553, 8, 26, 1, 26, 3, 26, 556, 8, 26, 1, 26, 3, 26, 559, 8, 26, 1, 26, 3, 26, 562, 8, 26, 1, 26, 3, 26, 565, 8, 26, 1, 26, 1, 26, 3, 26, 569, 8, 26, 1, 26, 1, 26, 3, 26, 573, 8, 26, 1, 26, 3, 26, 576, 8, 26, 1, 26, 3, 26, 579, 8, 26, 1, 26, 1, 26, 3, 26, 583, 8, 26, 1, 26, 3, 26, 586, 8, 26, 1, 26, 3, 26, 589, 8, 26, 1, 26, 3, 26, 592, 8, 26, 1, 26, 1, 26, 3, 26, 596, 8, 26, 1, 26, 3, 26, 599, 8, 26, 1, 27, 1, 27, 3, 27, 603, 8, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 3, 28, 611, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 3, 30, 617, 8, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 636, 8, 31, 10, 31, 12, 31, 639, 9, 31, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 3, 34, 662, 8, 34, 1, 35, 1, 35, 1, 35, 5, 35, 667, 8, 35, 10, 35, 12, 35, 670, 9, 35, 1, 36, 1, 36, 3, 36, 674, 8, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 3, 39, 688, 8, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 40, 5, 40, 695, 8, 40, 10, 40, 12, 40, 698, 9, 40, 1, 40, 1, 40, 3, 40, 702, 8, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 3, 43, 716, 8, 43, 1, 43, 1, 43, 3, 43, 720, 8, 43, 1, 43, 1, 43, 3, 43, 724, 8, 43, 1, 43, 1, 43, 1, 43, 3, 43, 729, 8, 43, 1, 43, 1, 43, 3, 43, 733, 8, 43, 1, 43, 1, 43, 1, 43, 3, 43, 738, 8, 43, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 46, 5, 46, 750, 8, 46, 10, 46, 12, 46, 753, 9, 46, 1, 47, 1, 47, 1, 47, 1, 47, 5, 47, 759, 8, 47, 10, 47, 12, 47, 762, 9, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 3, 48, 769, 8, 48, 1, 48, 3, 48, 772, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 778, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 786, 8, 48, 1, 48, 3, 48, 789, 8, 48, 1, 48, 1, 48, 1, 48, 3, 48, 794, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 801, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 811, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 3, 48, 819, 8, 48, 1, 48, 1, 48, 1, 48, 1, 48, 5, 48, 825, 8, 48, 10, 48, 12, 48, 828, 9, 48, 1, 49, 3, 49, 831, 8, 49, 1, 49, 1, 49, 1, 49, 3, 49, 836, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 843, 8, 49, 1, 49, 3, 49, 846, 8, 49, 1, 49, 1, 49, 3, 49, 850, 8, 49, 1, 49, 1, 49, 3, 49, 854, 8, 49, 1, 49, 3, 49, 857, 8, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 863, 8, 49, 3, 49, 865, 8, 49, 1, 49, 3, 49, 868, 8, 49, 1, 49, 1, 49, 3, 49, 872, 8, 49, 1, 49, 1, 49, 3, 49, 876, 8, 49, 1, 49, 3, 49, 879, 8, 49, 3, 49, 881, 8, 49, 3, 49, 883, 8, 49, 1, 50, 1, 50, 1, 50, 3, 50, 888, 8, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 899, 8, 51, 1, 52, 1, 52, 1, 52, 3, 52, 904, 8, 52, 1, 52, 1, 52, 3, 52, 908, 8, 52, 1, 52, 1, 52, 1, 52, 1, 52, 3, 52, 914, 8, 52, 1, 53, 1, 53, 1, 53, 3, 53, 919, 8, 53, 1, 54, 1, 54, 1, 54, 5, 54, 924, 8, 54, 10, 54, 12, 54, 927, 9, 54, 1, 55, 1, 55, 3, 55, 931, 8, 55, 1, 55, 1, 55, 3, 55, 935, 8, 55, 1, 55, 1, 55, 3, 55, 939, 8, 55, 1, 55, 3, 55, 942, 8, 55, 1, 56, 1, 56, 1, 56, 1, 56, 3, 56, 948, 8, 56, 1, 56, 1, 56, 3, 56, 952, 8, 56, 1, 56, 1, 56, 3, 56, 956, 8, 56, 1, 57, 1, 57, 1, 57, 3, 57, 961, 8, 57, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 967, 8, 58, 3, 58, 969, 8, 58, 1, 59, 1, 59, 1, 59, 5, 59, 974, 8, 59, 10, 59, 12, 59, 977, 9, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 3, 61, 984, 8, 61, 1, 61, 3, 61, 987, 8, 61, 1, 61, 3, 61, 990, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 1015, 8, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 3, 67, 1029, 8, 67, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1043, 8, 69, 10, 69, 12, 69, 1046, 9, 69, 1, 69, 3, 69, 1049, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1058, 8, 69, 10, 69, 12, 69, 1061, 9, 69, 1, 69, 3, 69, 1064, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 5, 69, 1073, 8, 69, 10, 69, 12, 69, 1076, 9, 69, 1, 69, 3, 69, 1079, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1086, 8, 69, 1, 69, 1, 69, 1, 69, 1, 69, 4, 69, 1092, 8, 69, 11, 69, 12, 69, 1093, 1, 69, 3, 69, 1097, 8, 69, 1, 69, 1, 69, 1, 69, 3, 69, 1102, 8, 69, 1, 69, 5, 69, 1105, 8, 69, 10, 69, 12, 69, 1108, 9, 69, 1, 70, 1, 70, 1, 70, 3, 70, 1113, 8, 70, 1, 70, 1, 70, 1, 70, 1, 70, 3, 70, 1119, 8, 70, 1, 71, 1, 71, 1, 71, 1, 71, 3, 71, 1125, 8, 71, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 5, 73, 1132, 8, 73, 10, 73, 12, 73, 1135, 9, 73, 1, 73, 3, 73, 1138, 8, 73, 1, 74, 1, 74, 1, 74, 5, 74, 1143, 8, 74, 10, 74, 12, 74, 1146, 9, 74, 1, 74, 1, 74, 1, 74, 3, 74, 1151, 8, 74, 1, 75, 1, 75, 1, 75, 5, 75, 1156, 8, 75, 10, 75, 12, 75, 1159, 9, 75, 1, 75, 3, 75, 1162, 8, 75, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 1, 76, 3, 76, 1174, 8, 76, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 1, 77, 3, 77, 1195, 8, 77, 5, 77, 1197, 8, 77, 10, 77, 12, 77, 1200, 9, 77, 1, 78, 1, 78, 1, 78, 3, 78, 1205, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 4, 78, 1212, 8, 78, 11, 78, 12, 78, 1213, 1, 78, 1, 78, 3, 78, 1218, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1251, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1299, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1327, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1391, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1399, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1405, 8, 78, 1, 78, 3, 78, 1408, 8, 78, 1, 78, 3, 78, 1411, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1419, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1429, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1435, 8, 78, 1, 78, 3, 78, 1438, 8, 78, 1, 78, 3, 78, 1441, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1449, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1457, 8, 78, 1, 78, 3, 78, 1460, 8, 78, 1, 78, 1, 78, 3, 78, 1464, 8, 78, 1, 78, 3, 78, 1467, 8, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1472, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1481, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1493, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1501, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 5, 78, 1507, 8, 78, 10, 78, 12, 78, 1510, 9, 78, 1, 78, 3, 78, 1513, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1531, 8, 78, 1, 78, 1, 78, 3, 78, 1535, 8, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1540, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1551, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1557, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1564, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1576, 8, 78, 1, 78, 1, 78, 3, 78, 1580, 8, 78, 1, 78, 3, 78, 1583, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1592, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1598, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1611, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1626, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1637, 8, 78, 1, 78, 1, 78, 3, 78, 1641, 8, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 3, 78, 1671, 8, 78, 1, 78, 5, 78, 1674, 8, 78, 10, 78, 12, 78, 1677, 9, 78, 1, 79, 1, 79, 1, 79, 1, 79, 5, 79, 1683, 8, 79, 10, 79, 12, 79, 1686, 9, 79, 1, 79, 3, 79, 1689, 8, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 5, 79, 1696, 8, 79, 10, 79, 12, 79, 1699, 9, 79, 1, 79, 3, 79, 1702, 8, 79, 1, 79, 1, 79, 3, 79, 1706, 8, 79, 1, 79, 1, 79, 1, 79, 3, 79, 1711, 8, 79, 1, 79, 1, 79, 1, 79, 1, 79, 5, 79, 1717, 8, 79, 10, 79, 12, 79, 1720, 9, 79, 1, 79, 3, 79, 1723, 8, 79, 1, 79, 1, 79, 1, 79, 3, 79, 1728, 8, 79, 1, 80, 1, 80, 1, 80, 5, 80, 1733, 8, 80, 10, 80, 12, 80, 1736, 9, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 3, 82, 1748, 8, 82, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 5, 84, 1755, 8, 84, 10, 84, 12, 84, 1758, 9, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 5, 84, 1765, 8, 84, 10, 84, 12, 84, 1768, 9, 84, 1, 84, 1, 84, 5, 84, 1772, 8, 84, 10, 84, 12, 84, 1775, 9, 84, 1, 84, 1, 84, 1, 84, 1, 84, 3, 84, 1781, 8, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 3, 85, 1794, 8, 85, 1, 86, 1, 86, 1, 86, 5, 86, 1799, 8, 86, 10, 86, 12, 86, 1802, 9, 86, 1, 86, 3, 86, 1805, 8, 86, 1, 87, 1, 87, 3, 87, 1809, 8, 87, 1, 87, 1, 87, 1, 87, 3, 87, 1814, 8, 87, 1, 87, 1, 87, 3, 87, 1818, 8, 87, 1, 87, 3, 87, 1821, 8, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 3, 87, 1831, 8, 87, 1, 88, 1, 88, 1, 88, 1, 88, 5, 88, 1837, 8, 88, 10, 88, 12, 88, 1840, 9, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 3, 89, 1848, 8, 89, 1, 89, 3, 89, 1851, 8, 89, 1, 90, 1, 90, 1, 90, 5, 90, 1856, 8, 90, 10, 90, 12, 90, 1859, 9, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 3, 91, 1874, 8, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 3, 91, 1884, 8, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 3, 91, 1892, 8, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 3, 91, 1902, 8, 91, 1, 91, 3, 91, 1905, 8, 91, 5, 91, 1907, 8, 91, 10, 91, 12, 91, 1910, 9, 91, 1, 92, 1, 92, 4, 92, 1914, 8, 92, 11, 92, 12, 92, 1915, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 5, 94, 1927, 8, 94, 10, 94, 12, 94, 1930, 9, 94, 1, 94, 3, 94, 1933, 8, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 5, 95, 1948, 8, 95, 10, 95, 12, 95, 1951, 9, 95, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 3, 96, 1958, 8, 96, 1, 97, 1, 97, 1, 97, 1, 97, 5, 97, 1964, 8, 97, 10, 97, 12, 97, 1967, 9, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 3, 98, 1974, 8, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 3, 99, 1981, 8, 99, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 5, 100, 1988, 8, 100, 10, 100, 12, 100, 1991, 9, 100, 1, 100, 3, 100, 1994, 8, 100, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 3, 102, 2004, 8, 102, 3, 102, 2006, 8, 102, 1, 103, 3, 103, 2009, 8, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 3, 103, 2019, 8, 103, 1, 104, 1, 104, 1, 104, 3, 104, 2024, 8, 104, 1, 105, 1, 105, 1, 106, 1, 106, 1, 107, 1, 107, 1, 108, 1, 108, 1, 109, 1, 109, 1, 109, 3, 109, 2037, 8, 109, 1, 110, 1, 110, 1, 110, 3, 110, 2042, 8, 110, 1, 111, 1, 111, 1, 111, 1, 111, 3, 111, 2048, 8, 111, 1, 112, 1, 112, 1, 112, 1, 112, 1, 113, 1, 113, 1, 113, 1, 113, 1, 114, 1, 114, 3, 114, 2060, 8, 114, 1, 115, 1, 115, 5, 115, 2064, 8, 115, 10, 115, 12, 115, 2067, 9, 115, 1, 115, 1, 115, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 3, 116, 2076, 8, 116, 1, 117, 1, 117, 5, 117, 2080, 8, 117, 10, 117, 12, 117, 2083, 9, 117, 1, 117, 1, 117, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 3, 118, 2092, 8, 118, 1, 118, 0, 5, 96, 138, 154, 156, 182, 119, 0, 2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196, 198, 200, 202, 204, 206, 208, 210, 212, 214, 216, 218, 220, 222, 224, 226, 228, 230, 232, 234, 236, 0, 20, 2, 0, 36, 36, 41, 41, 2, 0, 19, 19, 94, 94, 2, 0, 53, 53, 63, 63, 3, 0, 1, 1, 4, 4, 8, 8, 2, 0, 3, 3, 100, 100, 4, 0, 1, 1, 3, 4, 8, 8, 100, 100, 2, 0, 63, 63, 93, 93, 2, 0, 76, 76, 151, 151, 2, 0, 7, 7, 23, 24, 2, 0, 35, 35, 61, 61, 2, 0, 89, 89, 96, 96, 3, 0, 21, 21, 56, 56, 108, 109, 3, 0, 10, 10, 62, 62, 115, 115, 2, 0, 48, 48, 65, 65, 1, 0, 138, 139, 2, 0, 153, 153, 176, 176, 7, 0, 22, 22, 45, 45, 68, 69, 88, 88, 98, 98, 125, 125, 132, 132, 20, 0, 1, 13, 15, 21, 23, 27, 29, 33, 35, 35, 37, 40, 42, 44, 46, 51, 53, 53, 55, 63, 65, 66, 70, 71, 73, 73, 75, 87, 89, 97, 99, 105, 107, 117, 119, 124, 126, 127, 129, 130, 4, 0, 21, 21, 35, 35, 46, 46, 59, 59, 8, 0, 7, 7, 15, 15, 21, 21, 24, 24, 31, 31, 46, 46, 92, 92, 113, 114, 2375, 0, 241, 1, 0, 0, 0, 2, 248, 1, 0, 0, 0, 4, 250, 1, 0, 0, 0, 6, 252, 1, 0, 0, 0, 8, 258, 1, 0, 0, 0, 10, 280, 1, 0, 0, 0, 12, 282, 1, 0, 0, 0, 14, 289, 1, 0, 0, 0, 16, 294, 1, 0, 0, 0, 18, 307, 1, 0, 0, 0, 20, 319, 1, 0, 0, 0, 22, 328, 1, 0, 0, 0, 24, 336, 1, 0, 0, 0, 26, 358, 1, 0, 0, 0, 28, 373, 1, 0, 0, 0, 30, 382, 1, 0, 0, 0, 32, 386, 1, 0, 0, 0, 34, 394, 1, 0, 0, 0, 36, 396, 1, 0, 0, 0, 38, 405, 1, 0, 0, 0, 40, 409, 1, 0, 0, 0, 42, 423, 1, 0, 0, 0, 44, 441, 1, 0, 0, 0, 46, 488, 1, 0, 0, 0, 48, 492, 1, 0, 0, 0, 50, 532, 1, 0, 0, 0, 52, 535, 1, 0, 0, 0, 54, 600, 1, 0, 0, 0, 56, 606, 1, 0, 0, 0, 58, 612, 1, 0, 0, 0, 60, 616, 1, 0, 0, 0, 62, 622, 1, 0, 0, 0, 64, 640, 1, 0, 0, 0, 66, 643, 1, 0, 0, 0, 68, 646, 1, 0, 0, 0, 70, 663, 1, 0, 0, 0, 72, 671, 1, 0, 0, 0, 74, 677, 1, 0, 0, 0, 76, 680, 1, 0, 0, 0, 78, 683, 1, 0, 0, 0, 80, 689, 1, 0, 0, 0, 82, 703, 1, 0, 0, 0, 84, 707, 1, 0, 0, 0, 86, 737, 1, 0, 0, 0, 88, 739, 1, 0, 0, 0, 90, 742, 1, 0, 0, 0, 92, 745, 1, 0, 0, 0, 94, 754, 1, 0, 0, 0, 96, 777, 1, 0, 0, 0, 98, 882, 1, 0, 0, 0, 100, 887, 1, 0, 0, 0, 102, 898, 1, 0, 0, 0, 104, 900, 1, 0, 0, 0, 106, 915, 1, 0, 0, 0, 108, 920, 1, 0, 0, 0, 110, 928, 1, 0, 0, 0, 112, 943, 1, 0, 0, 0, 114, 957, 1, 0, 0, 0, 116, 968, 1, 0, 0, 0, 118, 970, 1, 0, 0, 0, 120, 978, 1, 0, 0, 0, 122, 983, 1, 0, 0, 0, 124, 991, 1, 0, 0, 0, 126, 995, 1, 0, 0, 0, 128, 999, 1, 0, 0, 0, 130, 1005, 1, 0, 0, 0, 132, 1014, 1, 0, 0, 0, 134, 1028, 1, 0, 0, 0, 136, 1030, 1, 0, 0, 0, 138, 1096, 1, 0, 0, 0, 140, 1118, 1, 0, 0, 0, 142, 1124, 1, 0, 0, 0, 144, 1126, 1, 0, 0, 0, 146, 1128, 1, 0, 0, 0, 148, 1150, 1, 0, 0, 0, 150, 1152, 1, 0, 0, 0, 152, 1173, 1, 0, 0, 0, 154, 1175, 1, 0, 0, 0, 156, 1550, 1, 0, 0, 0, 158, 1727, 1, 0, 0, 0, 160, 1729, 1, 0, 0, 0, 162, 1737, 1, 0, 0, 0, 164, 1747, 1, 0, 0, 0, 166, 1749, 1, 0, 0, 0, 168, 1780, 1, 0, 0, 0, 170, 1793, 1, 0, 0, 0, 172, 1795, 1, 0, 0, 0, 174, 1830, 1, 0, 0, 0, 176, 1832, 1, 0, 0, 0, 178, 1850, 1, 0, 0, 0, 180, 1852, 1, 0, 0, 0, 182, 1873, 1, 0, 0, 0, 184, 1911, 1, 0, 0, 0, 186, 1917, 1, 0, 0, 0, 188, 1923, 1, 0, 0, 0, 190, 1934, 1, 0, 0, 0, 192, 1957, 1, 0, 0, 0, 194, 1959, 1, 0, 0, 0, 196, 1970, 1, 0, 0, 0, 198, 1980, 1, 0, 0, 0, 200, 1984, 1, 0, 0, 0, 202, 1995, 1, 0, 0, 0, 204, 2005, 1, 0, 0, 0, 206, 2008, 1, 0, 0, 0, 208, 2023, 1, 0, 0, 0, 210, 2025, 1, 0, 0, 0, 212, 2027, 1, 0, 0, 0, 214, 2029, 1, 0, 0, 0, 216, 2031, 1, 0, 0, 0, 218, 2036, 1, 0, 0, 0, 220, 2041, 1, 0, 0, 0, 222, 2047, 1, 0, 0, 0, 224, 2049, 1, 0, 0, 0, 226, 2053, 1, 0, 0, 0, 228, 2059, 1, 0, 0, 0, 230, 2061, 1, 0, 0, 0, 232, 2075, 1, 0, 0, 0, 234, 2077, 1, 0, 0, 0, 236, 2091, 1, 0, 0, 0, 238, 240, 3, 2, 1, 0, 239, 238, 1, 0, 0, 0, 240, 243, 1, 0, 0, 0, 241, 239, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 244, 1, 0, 0, 0, 243, 241, 1, 0, 0, 0, 244, 245, 5, 0, 0, 1, 245, 1, 1, 0, 0, 0, 246, 249, 3, 6, 3, 0, 247, 249, 3, 10, 5, 0, 248, 246, 1, 0, 0, 0, 248, 247, 1, 0, 0, 0, 249, 3, 1, 0, 0, 0, 250, 251, 3, 154, 77, 0, 251, 5, 1, 0, 0, 0, 252, 253, 5, 64, 0, 0, 253, 256, 3, 222, 111, 0, 254, 255, 5, 149, 0, 0, 255, 257, 3, 4, 2, 0, 256, 254, 1, 0, 0, 0, 256, 257, 1, 0, 0, 0, 257, 7, 1, 0, 0, 0, 258, 263, 3, 180, 90, 0, 259, 260, 5, 151, 0, 0, 260, 262, 3, 180, 90, 0, 261, 259, 1, 0, 0, 0, 262, 265, 1, 0, 0, 0, 263, 261, 1, 0, 0, 0, 263, 264, 1, 0, 0, 0, 264, 267, 1, 0, 0, 0, 265, 263, 1, 0, 0, 0, 266, 268, 5, 151, 0, 0, 267, 266, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 9, 1, 0, 0, 0, 269, 281, 3, 12, 6, 0, 270, 281, 3, 14, 7, 0, 271, 281, 3, 18, 9, 0, 272, 281, 3, 20, 10, 0, 273, 281, 3, 22, 11, 0, 274, 281, 3, 26, 13, 0, 275, 281, 3, 24, 12, 0, 276, 281, 3, 28, 14, 0, 277, 281, 3, 36, 18, 0, 278, 281, 3, 32, 16, 0, 279, 281, 3, 34, 17, 0, 280, 269, 1, 0, 0, 0, 280, 270, 1, 0, 0, 0, 280, 271, 1, 0, 0, 0, 280, 272, 1, 0, 0, 0, 280, 273, 1, 0, 0, 0, 280, 274, 1, 0, 0, 0, 280, 275, 1, 0, 0, 0, 280, 276, 1, 0, 0, 0, 280, 277, 1, 0, 0, 0, 280, 278, 1, 0, 0, 0, 280, 279, 1, 0, 0, 0, 281, 11, 1, 0, 0, 0, 282, 284, 5, 92, 0, 0, 283, 285, 3, 4, 2, 0, 284, 283, 1, 0, 0, 0, 284, 285, 1, 0, 0, 0, 285, 287, 1, 0, 0, 0, 286, 288, 5, 187, 0, 0, 287, 286, 1, 0, 0, 0, 287, 288, 1, 0, 0, 0, 288, 13, 1, 0, 0, 0, 289, 290, 5, 106, 0, 0, 290, 292, 3, 4, 2, 0, 291, 293, 5, 187, 0, 0, 292, 291, 1, 0, 0, 0, 292, 293, 1, 0, 0, 0, 293, 15, 1, 0, 0, 0, 294, 303, 5, 14, 0, 0, 295, 296, 5, 165, 0, 0, 296, 299, 3, 222, 111, 0, 297, 298, 5, 150, 0, 0, 298, 300, 3, 222, 111, 0, 299, 297, 1, 0, 0, 0, 299, 300, 1, 0, 0, 0, 300, 301, 1, 0, 0, 0, 301, 302, 5, 186, 0, 0, 302, 304, 1, 0, 0, 0, 303, 295, 1, 0, 0, 0, 303, 304, 1, 0, 0, 0, 304, 305, 1, 0, 0, 0, 305, 306, 3, 36, 18, 0, 306, 17, 1, 0, 0, 0, 307, 308, 5, 118, 0, 0, 308, 312, 3, 36, 18, 0, 309, 311, 3, 16, 8, 0, 310, 309, 1, 0, 0, 0, 311, 314, 1, 0, 0, 0, 312, 310, 1, 0, 0, 0, 312, 313, 1, 0, 0, 0, 313, 317, 1, 0, 0, 0, 314, 312, 1, 0, 0, 0, 315, 316, 5, 34, 0, 0, 316, 318, 3, 36, 18, 0, 317, 315, 1, 0, 0, 0, 317, 318, 1, 0, 0, 0, 318, 19, 1, 0, 0, 0, 319, 320, 5, 47, 0, 0, 320, 321, 5, 165, 0, 0, 321, 322, 3, 4, 2, 0, 322, 323, 5, 186, 0, 0, 323, 326, 3, 10, 5, 0, 324, 325, 5, 26, 0, 0, 325, 327, 3, 10, 5, 0, 326, 324, 1, 0, 0, 0, 326, 327, 1, 0, 0, 0, 327, 21, 1, 0, 0, 0, 328, 329, 5, 128, 0, 0, 329, 330, 5, 165, 0, 0, 330, 331, 3, 4, 2, 0, 331, 332, 5, 186, 0, 0, 332, 334, 3, 10, 5, 0, 333, 335, 5, 187, 0, 0, 334, 333, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 23, 1, 0, 0, 0, 336, 337, 5, 38, 0, 0, 337, 341, 5, 165, 0, 0, 338, 342, 3, 6, 3, 0, 339, 342, 3, 30, 15, 0, 340, 342, 3, 4, 2, 0, 341, 338, 1, 0, 0, 0, 341, 339, 1, 0, 0, 0, 341, 340, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 345, 5, 187, 0, 0, 344, 346, 3, 4, 2, 0, 345, 344, 1, 0, 0, 0, 345, 346, 1, 0, 0, 0, 346, 347, 1, 0, 0, 0, 347, 351, 5, 187, 0, 0, 348, 352, 3, 6, 3, 0, 349, 352, 3, 30, 15, 0, 350, 352, 3, 4, 2, 0, 351, 348, 1, 0, 0, 0, 351, 349, 1, 0, 0, 0, 351, 350, 1, 0, 0, 0, 351, 352, 1, 0, 0, 0, 352, 353, 1, 0, 0, 0, 353, 354, 5, 186, 0, 0, 354, 356, 3, 10, 5, 0, 355, 357, 5, 187, 0, 0, 356, 355, 1, 0, 0, 0, 356, 357, 1, 0, 0, 0, 357, 25, 1, 0, 0, 0, 358, 359, 5, 38, 0, 0, 359, 360, 5, 165, 0, 0, 360, 361, 5, 64, 0, 0, 361, 364, 3, 222, 111, 0, 362, 363, 5, 151, 0, 0, 363, 365, 3, 222, 111, 0, 364, 362, 1, 0, 0, 0, 364, 365, 1, 0, 0, 0, 365, 366, 1, 0, 0, 0, 366, 367, 5, 51, 0, 0, 367, 368, 3, 4, 2, 0, 368, 369, 5, 186, 0, 0, 369, 371, 3, 10, 5, 0, 370, 372, 5, 187, 0, 0, 371, 370, 1, 0, 0, 0, 371, 372, 1, 0, 0, 0, 372, 27, 1, 0, 0, 0, 373, 374, 7, 0, 0, 0, 374, 375, 3, 222, 111, 0, 375, 377, 5, 165, 0, 0, 376, 378, 3, 8, 4, 0, 377, 376, 1, 0, 0, 0, 377, 378, 1, 0, 0, 0, 378, 379, 1, 0, 0, 0, 379, 380, 5, 186, 0, 0, 380, 381, 3, 36, 18, 0, 381, 29, 1, 0, 0, 0, 382, 383, 3, 4, 2, 0, 383, 384, 5, 149, 0, 0, 384, 385, 3, 4, 2, 0, 385, 31, 1, 0, 0, 0, 386, 389, 3, 4, 2, 0, 387, 388, 5, 149, 0, 0, 388, 390, 3, 4, 2, 0, 389, 387, 1, 0, 0, 0, 389, 390, 1, 0, 0, 0, 390, 392, 1, 0, 0, 0, 391, 393, 5, 187, 0, 0, 392, 391, 1, 0, 0, 0, 392, 393, 1, 0, 0, 0, 393, 33, 1, 0, 0, 0, 394, 395, 5, 187, 0, 0, 395, 35, 1, 0, 0, 0, 396, 400, 5, 163, 0, 0, 397, 399, 3, 2, 1, 0, 398, 397, 1, 0, 0, 0, 399, 402, 1, 0, 0, 0, 400, 398, 1, 0, 0, 0, 400, 401, 1, 0, 0, 0, 401, 403, 1, 0, 0, 0, 402, 400, 1, 0, 0, 0, 403, 404, 5, 184, 0, 0, 404, 37, 1, 0, 0, 0, 405, 406, 3, 4, 2, 0, 406, 407, 5, 150, 0, 0, 407, 408, 3, 4, 2, 0, 408, 39, 1, 0, 0, 0, 409, 414, 3, 38, 19, 0, 410, 411, 5, 151, 0, 0, 411, 413, 3, 38, 19, 0, 412, 410, 1, 0, 0, 0, 413, 416, 1, 0, 0, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 418, 1, 0, 0, 0, 416, 414, 1, 0, 0, 0, 417, 419, 5, 151, 0, 0, 418, 417, 1, 0, 0, 0, 418, 419, 1, 0, 0, 0, 419, 41, 1, 0, 0, 0, 420, 424, 3, 48, 24, 0, 421, 424, 3, 52, 26, 0, 422, 424, 3, 168, 84, 0, 423, 420, 1, 0, 0, 0, 423, 421, 1, 0, 0, 0, 423, 422, 1, 0, 0, 0, 424, 426, 1, 0, 0, 0, 425, 427, 5, 187, 0, 0, 426, 425, 1, 0, 0, 0, 426, 427, 1, 0, 0, 0, 427, 428, 1, 0, 0, 0, 428, 429, 5, 0, 0, 1, 429, 43, 1, 0, 0, 0, 430, 442, 3, 52, 26, 0, 431, 432, 3, 54, 27, 0, 432, 433, 5, 165, 0, 0, 433, 434, 3, 48, 24, 0, 434, 435, 5, 186, 0, 0, 435, 442, 1, 0, 0, 0, 436, 437, 5, 165, 0, 0, 437, 438, 3, 48, 24, 0, 438, 439, 5, 186, 0, 0, 439, 442, 1, 0, 0, 0, 440, 442, 3, 226, 113, 0, 441, 430, 1, 0, 0, 0, 441, 431, 1, 0, 0, 0, 441, 436, 1, 0, 0, 0, 441, 440, 1, 0, 0, 0, 442, 45, 1, 0, 0, 0, 443, 444, 5, 28, 0, 0, 444, 447, 5, 1, 0, 0, 445, 446, 5, 11, 0, 0, 446, 448, 5, 70, 0, 0, 447, 445, 1, 0, 0, 0, 447, 448, 1, 0, 0, 0, 448, 489, 1, 0, 0, 0, 449, 452, 5, 28, 0, 0, 450, 451, 5, 11, 0, 0, 451, 453, 5, 70, 0, 0, 452, 450, 1, 0, 0, 0, 452, 453, 1, 0, 0, 0, 453, 489, 1, 0, 0, 0, 454, 455, 5, 121, 0, 0, 455, 458, 5, 1, 0, 0, 456, 457, 5, 11, 0, 0, 457, 459, 5, 70, 0, 0, 458, 456, 1, 0, 0, 0, 458, 459, 1, 0, 0, 0, 459, 489, 1, 0, 0, 0, 460, 461, 5, 121, 0, 0, 461, 464, 5, 25, 0, 0, 462, 463, 5, 11, 0, 0, 463, 465, 5, 70, 0, 0, 464, 462, 1, 0, 0, 0, 464, 465, 1, 0, 0, 0, 465, 489, 1, 0, 0, 0, 466, 469, 5, 121, 0, 0, 467, 468, 5, 11, 0, 0, 468, 470, 5, 70, 0, 0, 469, 467, 1, 0, 0, 0, 469, 470, 1, 0, 0, 0, 470, 489, 1, 0, 0, 0, 471, 472, 5, 54, 0, 0, 472, 475, 5, 1, 0, 0, 473, 474, 5, 11, 0, 0, 474, 476, 5, 70, 0, 0, 475, 473, 1, 0, 0, 0, 475, 476, 1, 0, 0, 0, 476, 489, 1, 0, 0, 0, 477, 478, 5, 54, 0, 0, 478, 481, 5, 25, 0, 0, 479, 480, 5, 11, 0, 0, 480, 482, 5, 70, 0, 0, 481, 479, 1, 0, 0, 0, 481, 482, 1, 0, 0, 0, 482, 489, 1, 0, 0, 0, 483, 486, 5, 54, 0, 0, 484, 485, 5, 11, 0, 0, 485, 487, 5, 70, 0, 0, 486, 484, 1, 0, 0, 0, 486, 487, 1, 0, 0, 0, 487, 489, 1, 0, 0, 0, 488, 443, 1, 0, 0, 0, 488, 449, 1, 0, 0, 0, 488, 454, 1, 0, 0, 0, 488, 460, 1, 0, 0, 0, 488, 466, 1, 0, 0, 0, 488, 471, 1, 0, 0, 0, 488, 477, 1, 0, 0, 0, 488, 483, 1, 0, 0, 0, 489, 490, 1, 0, 0, 0, 490, 491, 3, 44, 22, 0, 491, 47, 1, 0, 0, 0, 492, 496, 3, 44, 22, 0, 493, 495, 3, 46, 23, 0, 494, 493, 1, 0, 0, 0, 495, 498, 1, 0, 0, 0, 496, 494, 1, 0, 0, 0, 496, 497, 1, 0, 0, 0, 497, 500, 1, 0, 0, 0, 498, 496, 1, 0, 0, 0, 499, 501, 3, 78, 39, 0, 500, 499, 1, 0, 0, 0, 500, 501, 1, 0, 0, 0, 501, 503, 1, 0, 0, 0, 502, 504, 3, 50, 25, 0, 503, 502, 1, 0, 0, 0, 503, 504, 1, 0, 0, 0, 504, 49, 1, 0, 0, 0, 505, 506, 5, 66, 0, 0, 506, 508, 3, 154, 77, 0, 507, 509, 5, 175, 0, 0, 508, 507, 1, 0, 0, 0, 508, 509, 1, 0, 0, 0, 509, 512, 1, 0, 0, 0, 510, 511, 5, 151, 0, 0, 511, 513, 3, 154, 77, 0, 512, 510, 1, 0, 0, 0, 512, 513, 1, 0, 0, 0, 513, 516, 1, 0, 0, 0, 514, 515, 5, 130, 0, 0, 515, 517, 5, 107, 0, 0, 516, 514, 1, 0, 0, 0, 516, 517, 1, 0, 0, 0, 517, 533, 1, 0, 0, 0, 518, 519, 5, 66, 0, 0, 519, 521, 3, 154, 77, 0, 520, 522, 5, 175, 0, 0, 521, 520, 1, 0, 0, 0, 521, 522, 1, 0, 0, 0, 522, 525, 1, 0, 0, 0, 523, 524, 5, 130, 0, 0, 524, 526, 5, 107, 0, 0, 525, 523, 1, 0, 0, 0, 525, 526, 1, 0, 0, 0, 526, 527, 1, 0, 0, 0, 527, 528, 5, 76, 0, 0, 528, 529, 3, 154, 77, 0, 529, 533, 1, 0, 0, 0, 530, 531, 5, 76, 0, 0, 531, 533, 3, 154, 77, 0, 532, 505, 1, 0, 0, 0, 532, 518, 1, 0, 0, 0, 532, 530, 1, 0, 0, 0, 533, 51, 1, 0, 0, 0, 534, 536, 3, 54, 27, 0, 535, 534, 1, 0, 0, 0, 535, 536, 1, 0, 0, 0, 536, 537, 1, 0, 0, 0, 537, 539, 5, 99, 0, 0, 538, 540, 5, 25, 0, 0, 539, 538, 1, 0, 0, 0, 539, 540, 1, 0, 0, 0, 540, 542, 1, 0, 0, 0, 541, 543, 3, 56, 28, 0, 542, 541, 1, 0, 0, 0, 542, 543, 1, 0, 0, 0, 543, 544, 1, 0, 0, 0, 544, 546, 3, 148, 74, 0, 545, 547, 3, 58, 29, 0, 546, 545, 1, 0, 0, 0, 546, 547, 1, 0, 0, 0, 547, 549, 1, 0, 0, 0, 548, 550, 3, 60, 30, 0, 549, 548, 1, 0, 0, 0, 549, 550, 1, 0, 0, 0, 550, 552, 1, 0, 0, 0, 551, 553, 3, 64, 32, 0, 552, 551, 1, 0, 0, 0, 552, 553, 1, 0, 0, 0, 553, 555, 1, 0, 0, 0, 554, 556, 3, 66, 33, 0, 555, 554, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 561, 1, 0, 0, 0, 557, 559, 5, 123, 0, 0, 558, 557, 1, 0, 0, 0, 558, 559, 1, 0, 0, 0, 559, 560, 1, 0, 0, 0, 560, 562, 3, 104, 52, 0, 561, 558, 1, 0, 0, 0, 561, 562, 1, 0, 0, 0, 562, 564, 1, 0, 0, 0, 563, 565, 3, 68, 34, 0, 564, 563, 1, 0, 0, 0, 564, 565, 1, 0, 0, 0, 565, 568, 1, 0, 0, 0, 566, 567, 5, 130, 0, 0, 567, 569, 7, 1, 0, 0, 568, 566, 1, 0, 0, 0, 568, 569, 1, 0, 0, 0, 569, 572, 1, 0, 0, 0, 570, 571, 5, 130, 0, 0, 571, 573, 5, 114, 0, 0, 572, 570, 1, 0, 0, 0, 572, 573, 1, 0, 0, 0, 573, 575, 1, 0, 0, 0, 574, 576, 3, 74, 37, 0, 575, 574, 1, 0, 0, 0, 575, 576, 1, 0, 0, 0, 576, 578, 1, 0, 0, 0, 577, 579, 3, 76, 38, 0, 578, 577, 1, 0, 0, 0, 578, 579, 1, 0, 0, 0, 579, 582, 1, 0, 0, 0, 580, 581, 5, 123, 0, 0, 581, 583, 3, 104, 52, 0, 582, 580, 1, 0, 0, 0, 582, 583, 1, 0, 0, 0, 583, 585, 1, 0, 0, 0, 584, 586, 3, 62, 31, 0, 585, 584, 1, 0, 0, 0, 585, 586, 1, 0, 0, 0, 586, 588, 1, 0, 0, 0, 587, 589, 3, 78, 39, 0, 588, 587, 1, 0, 0, 0, 588, 589, 1, 0, 0, 0, 589, 591, 1, 0, 0, 0, 590, 592, 3, 84, 42, 0, 591, 590, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 595, 1, 0, 0, 0, 593, 596, 3, 86, 43, 0, 594, 596, 3, 88, 44, 0, 595, 593, 1, 0, 0, 0, 595, 594, 1, 0, 0, 0, 595, 596, 1, 0, 0, 0, 596, 598, 1, 0, 0, 0, 597, 599, 3, 90, 45, 0, 598, 597, 1, 0, 0, 0, 598, 599, 1, 0, 0, 0, 599, 53, 1, 0, 0, 0, 600, 602, 5, 130, 0, 0, 601, 603, 5, 90, 0, 0, 602, 601, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 604, 1, 0, 0, 0, 604, 605, 3, 172, 86, 0, 605, 55, 1, 0, 0, 0, 606, 607, 5, 113, 0, 0, 607, 610, 5, 139, 0, 0, 608, 609, 5, 130, 0, 0, 609, 611, 5, 107, 0, 0, 610, 608, 1, 0, 0, 0, 610, 611, 1, 0, 0, 0, 611, 57, 1, 0, 0, 0, 612, 613, 5, 39, 0, 0, 613, 614, 3, 96, 48, 0, 614, 59, 1, 0, 0, 0, 615, 617, 7, 2, 0, 0, 616, 615, 1, 0, 0, 0, 616, 617, 1, 0, 0, 0, 617, 618, 1, 0, 0, 0, 618, 619, 5, 5, 0, 0, 619, 620, 5, 58, 0, 0, 620, 621, 3, 146, 73, 0, 621, 61, 1, 0, 0, 0, 622, 623, 5, 129, 0, 0, 623, 624, 3, 222, 111, 0, 624, 625, 5, 6, 0, 0, 625, 626, 5, 165, 0, 0, 626, 627, 3, 122, 61, 0, 627, 637, 5, 186, 0, 0, 628, 629, 5, 151, 0, 0, 629, 630, 3, 222, 111, 0, 630, 631, 5, 6, 0, 0, 631, 632, 5, 165, 0, 0, 632, 633, 3, 122, 61, 0, 633, 634, 5, 186, 0, 0, 634, 636, 1, 0, 0, 0, 635, 628, 1, 0, 0, 0, 636, 639, 1, 0, 0, 0, 637, 635, 1, 0, 0, 0, 637, 638, 1, 0, 0, 0, 638, 63, 1, 0, 0, 0, 639, 637, 1, 0, 0, 0, 640, 641, 5, 86, 0, 0, 641, 642, 3, 154, 77, 0, 642, 65, 1, 0, 0, 0, 643, 644, 5, 127, 0, 0, 644, 645, 3, 154, 77, 0, 645, 67, 1, 0, 0, 0, 646, 647, 5, 42, 0, 0, 647, 661, 5, 11, 0, 0, 648, 662, 5, 1, 0, 0, 649, 650, 7, 1, 0, 0, 650, 651, 5, 165, 0, 0, 651, 652, 3, 146, 73, 0, 652, 653, 5, 186, 0, 0, 653, 662, 1, 0, 0, 0, 654, 655, 5, 43, 0, 0, 655, 656, 5, 101, 0, 0, 656, 657, 5, 165, 0, 0, 657, 658, 3, 70, 35, 0, 658, 659, 5, 186, 0, 0, 659, 662, 1, 0, 0, 0, 660, 662, 3, 146, 73, 0, 661, 648, 1, 0, 0, 0, 661, 649, 1, 0, 0, 0, 661, 654, 1, 0, 0, 0, 661, 660, 1, 0, 0, 0, 662, 69, 1, 0, 0, 0, 663, 668, 3, 72, 36, 0, 664, 665, 5, 151, 0, 0, 665, 667, 3, 72, 36, 0, 666, 664, 1, 0, 0, 0, 667, 670, 1, 0, 0, 0, 668, 666, 1, 0, 0, 0, 668, 669, 1, 0, 0, 0, 669, 71, 1, 0, 0, 0, 670, 668, 1, 0, 0, 0, 671, 673, 5, 165, 0, 0, 672, 674, 3, 146, 73, 0, 673, 672, 1, 0, 0, 0, 673, 674, 1, 0, 0, 0, 674, 675, 1, 0, 0, 0, 675, 676, 5, 186, 0, 0, 676, 73, 1, 0, 0, 0, 677, 678, 5, 44, 0, 0, 678, 679, 3, 154, 77, 0, 679, 75, 1, 0, 0, 0, 680, 681, 5, 87, 0, 0, 681, 682, 3, 154, 77, 0, 682, 77, 1, 0, 0, 0, 683, 684, 5, 79, 0, 0, 684, 685, 5, 11, 0, 0, 685, 687, 3, 108, 54, 0, 686, 688, 3, 80, 40, 0, 687, 686, 1, 0, 0, 0, 687, 688, 1, 0, 0, 0, 688, 79, 1, 0, 0, 0, 689, 701, 5, 55, 0, 0, 690, 691, 5, 165, 0, 0, 691, 696, 3, 114, 57, 0, 692, 693, 5, 151, 0, 0, 693, 695, 3, 114, 57, 0, 694, 692, 1, 0, 0, 0, 695, 698, 1, 0, 0, 0, 696, 694, 1, 0, 0, 0, 696, 697, 1, 0, 0, 0, 697, 699, 1, 0, 0, 0, 698, 696, 1, 0, 0, 0, 699, 700, 5, 186, 0, 0, 700, 702, 1, 0, 0, 0, 701, 690, 1, 0, 0, 0, 701, 702, 1, 0, 0, 0, 702, 81, 1, 0, 0, 0, 703, 704, 5, 79, 0, 0, 704, 705, 5, 11, 0, 0, 705, 706, 3, 146, 73, 0, 706, 83, 1, 0, 0, 0, 707, 708, 5, 66, 0, 0, 708, 709, 3, 106, 53, 0, 709, 710, 5, 11, 0, 0, 710, 711, 3, 146, 73, 0, 711, 85, 1, 0, 0, 0, 712, 713, 5, 66, 0, 0, 713, 715, 3, 154, 77, 0, 714, 716, 5, 175, 0, 0, 715, 714, 1, 0, 0, 0, 715, 716, 1, 0, 0, 0, 716, 719, 1, 0, 0, 0, 717, 718, 5, 151, 0, 0, 718, 720, 3, 154, 77, 0, 719, 717, 1, 0, 0, 0, 719, 720, 1, 0, 0, 0, 720, 723, 1, 0, 0, 0, 721, 722, 5, 130, 0, 0, 722, 724, 5, 107, 0, 0, 723, 721, 1, 0, 0, 0, 723, 724, 1, 0, 0, 0, 724, 738, 1, 0, 0, 0, 725, 726, 5, 66, 0, 0, 726, 728, 3, 154, 77, 0, 727, 729, 5, 175, 0, 0, 728, 727, 1, 0, 0, 0, 728, 729, 1, 0, 0, 0, 729, 732, 1, 0, 0, 0, 730, 731, 5, 130, 0, 0, 731, 733, 5, 107, 0, 0, 732, 730, 1, 0, 0, 0, 732, 733, 1, 0, 0, 0, 733, 734, 1, 0, 0, 0, 734, 735, 5, 76, 0, 0, 735, 736, 3, 154, 77, 0, 736, 738, 1, 0, 0, 0, 737, 712, 1, 0, 0, 0, 737, 725, 1, 0, 0, 0, 738, 87, 1, 0, 0, 0, 739, 740, 5, 76, 0, 0, 740, 741, 3, 154, 77, 0, 741, 89, 1, 0, 0, 0, 742, 743, 5, 102, 0, 0, 743, 744, 3, 118, 59, 0, 744, 91, 1, 0, 0, 0, 745, 746, 5, 124, 0, 0, 746, 751, 3, 94, 47, 0, 747, 748, 5, 151, 0, 0, 748, 750, 3, 94, 47, 0, 749, 747, 1, 0, 0, 0, 750, 753, 1, 0, 0, 0, 751, 749, 1, 0, 0, 0, 751, 752, 1, 0, 0, 0, 752, 93, 1, 0, 0, 0, 753, 751, 1, 0, 0, 0, 754, 755, 5, 165, 0, 0, 755, 760, 3, 154, 77, 0, 756, 757, 5, 151, 0, 0, 757, 759, 3, 154, 77, 0, 758, 756, 1, 0, 0, 0, 759, 762, 1, 0, 0, 0, 760, 758, 1, 0, 0, 0, 760, 761, 1, 0, 0, 0, 761, 763, 1, 0, 0, 0, 762, 760, 1, 0, 0, 0, 763, 764, 5, 186, 0, 0, 764, 95, 1, 0, 0, 0, 765, 766, 6, 48, -1, 0, 766, 768, 3, 182, 91, 0, 767, 769, 5, 31, 0, 0, 768, 767, 1, 0, 0, 0, 768, 769, 1, 0, 0, 0, 769, 771, 1, 0, 0, 0, 770, 772, 3, 104, 52, 0, 771, 770, 1, 0, 0, 0, 771, 772, 1, 0, 0, 0, 772, 778, 1, 0, 0, 0, 773, 774, 5, 165, 0, 0, 774, 775, 3, 96, 48, 0, 775, 776, 5, 186, 0, 0, 776, 778, 1, 0, 0, 0, 777, 765, 1, 0, 0, 0, 777, 773, 1, 0, 0, 0, 778, 826, 1, 0, 0, 0, 779, 780, 10, 5, 0, 0, 780, 781, 3, 100, 50, 0, 781, 782, 3, 96, 48, 6, 782, 825, 1, 0, 0, 0, 783, 785, 10, 7, 0, 0, 784, 786, 5, 71, 0, 0, 785, 784, 1, 0, 0, 0, 785, 786, 1, 0, 0, 0, 786, 788, 1, 0, 0, 0, 787, 789, 3, 98, 49, 0, 788, 787, 1, 0, 0, 0, 788, 789, 1, 0, 0, 0, 789, 790, 1, 0, 0, 0, 790, 791, 5, 58, 0, 0, 791, 793, 3, 96, 48, 0, 792, 794, 3, 102, 51, 0, 793, 792, 1, 0, 0, 0, 793, 794, 1, 0, 0, 0, 794, 825, 1, 0, 0, 0, 795, 796, 10, 6, 0, 0, 796, 797, 5, 84, 0, 0, 797, 798, 5, 58, 0, 0, 798, 800, 3, 96, 48, 0, 799, 801, 3, 102, 51, 0, 800, 799, 1, 0, 0, 0, 800, 801, 1, 0, 0, 0, 801, 825, 1, 0, 0, 0, 802, 803, 10, 4, 0, 0, 803, 804, 5, 83, 0, 0, 804, 805, 5, 165, 0, 0, 805, 806, 3, 146, 73, 0, 806, 810, 3, 184, 92, 0, 807, 808, 5, 42, 0, 0, 808, 809, 5, 11, 0, 0, 809, 811, 3, 146, 73, 0, 810, 807, 1, 0, 0, 0, 810, 811, 1, 0, 0, 0, 811, 812, 1, 0, 0, 0, 812, 813, 5, 186, 0, 0, 813, 825, 1, 0, 0, 0, 814, 815, 10, 3, 0, 0, 815, 818, 5, 122, 0, 0, 816, 817, 5, 50, 0, 0, 817, 819, 5, 75, 0, 0, 818, 816, 1, 0, 0, 0, 818, 819, 1, 0, 0, 0, 819, 820, 1, 0, 0, 0, 820, 821, 5, 165, 0, 0, 821, 822, 3, 188, 94, 0, 822, 823, 5, 186, 0, 0, 823, 825, 1, 0, 0, 0, 824, 779, 1, 0, 0, 0, 824, 783, 1, 0, 0, 0, 824, 795, 1, 0, 0, 0, 824, 802, 1, 0, 0, 0, 824, 814, 1, 0, 0, 0, 825, 828, 1, 0, 0, 0, 826, 824, 1, 0, 0, 0, 826, 827, 1, 0, 0, 0, 827, 97, 1, 0, 0, 0, 828, 826, 1, 0, 0, 0, 829, 831, 7, 3, 0, 0, 830, 829, 1, 0, 0, 0, 830, 831, 1, 0, 0, 0, 831, 832, 1, 0, 0, 0, 832, 843, 5, 53, 0, 0, 833, 835, 5, 53, 0, 0, 834, 836, 7, 3, 0, 0, 835, 834, 1, 0, 0, 0, 835, 836, 1, 0, 0, 0, 836, 843, 1, 0, 0, 0, 837, 843, 7, 3, 0, 0, 838, 843, 5, 3, 0, 0, 839, 843, 5, 100, 0, 0, 840, 841, 5, 8, 0, 0, 841, 843, 7, 4, 0, 0, 842, 830, 1, 0, 0, 0, 842, 833, 1, 0, 0, 0, 842, 837, 1, 0, 0, 0, 842, 838, 1, 0, 0, 0, 842, 839, 1, 0, 0, 0, 842, 840, 1, 0, 0, 0, 843, 883, 1, 0, 0, 0, 844, 846, 7, 5, 0, 0, 845, 844, 1, 0, 0, 0, 845, 846, 1, 0, 0, 0, 846, 847, 1, 0, 0, 0, 847, 849, 7, 6, 0, 0, 848, 850, 5, 80, 0, 0, 849, 848, 1, 0, 0, 0, 849, 850, 1, 0, 0, 0, 850, 865, 1, 0, 0, 0, 851, 853, 7, 6, 0, 0, 852, 854, 5, 80, 0, 0, 853, 852, 1, 0, 0, 0, 853, 854, 1, 0, 0, 0, 854, 856, 1, 0, 0, 0, 855, 857, 7, 5, 0, 0, 856, 855, 1, 0, 0, 0, 856, 857, 1, 0, 0, 0, 857, 865, 1, 0, 0, 0, 858, 859, 5, 8, 0, 0, 859, 860, 7, 4, 0, 0, 860, 862, 7, 6, 0, 0, 861, 863, 5, 80, 0, 0, 862, 861, 1, 0, 0, 0, 862, 863, 1, 0, 0, 0, 863, 865, 1, 0, 0, 0, 864, 845, 1, 0, 0, 0, 864, 851, 1, 0, 0, 0, 864, 858, 1, 0, 0, 0, 865, 883, 1, 0, 0, 0, 866, 868, 7, 3, 0, 0, 867, 866, 1, 0, 0, 0, 867, 868, 1, 0, 0, 0, 868, 869, 1, 0, 0, 0, 869, 871, 5, 40, 0, 0, 870, 872, 5, 80, 0, 0, 871, 870, 1, 0, 0, 0, 871, 872, 1, 0, 0, 0, 872, 881, 1, 0, 0, 0, 873, 875, 5, 40, 0, 0, 874, 876, 5, 80, 0, 0, 875, 874, 1, 0, 0, 0, 875, 876, 1, 0, 0, 0, 876, 878, 1, 0, 0, 0, 877, 879, 7, 3, 0, 0, 878, 877, 1, 0, 0, 0, 878, 879, 1, 0, 0, 0, 879, 881, 1, 0, 0, 0, 880, 867, 1, 0, 0, 0, 880, 873, 1, 0, 0, 0, 881, 883, 1, 0, 0, 0, 882, 842, 1, 0, 0, 0, 882, 864, 1, 0, 0, 0, 882, 880, 1, 0, 0, 0, 883, 99, 1, 0, 0, 0, 884, 885, 5, 18, 0, 0, 885, 888, 5, 58, 0, 0, 886, 888, 5, 151, 0, 0, 887, 884, 1, 0, 0, 0, 887, 886, 1, 0, 0, 0, 888, 101, 1, 0, 0, 0, 889, 890, 5, 77, 0, 0, 890, 899, 3, 146, 73, 0, 891, 892, 5, 123, 0, 0, 892, 893, 5, 165, 0, 0, 893, 894, 3, 146, 73, 0, 894, 895, 5, 186, 0, 0, 895, 899, 1, 0, 0, 0, 896, 897, 5, 123, 0, 0, 897, 899, 3, 146, 73, 0, 898, 889, 1, 0, 0, 0, 898, 891, 1, 0, 0, 0, 898, 896, 1, 0, 0, 0, 899, 103, 1, 0, 0, 0, 900, 901, 5, 97, 0, 0, 901, 903, 3, 116, 58, 0, 902, 904, 5, 175, 0, 0, 903, 902, 1, 0, 0, 0, 903, 904, 1, 0, 0, 0, 904, 907, 1, 0, 0, 0, 905, 906, 5, 76, 0, 0, 906, 908, 3, 116, 58, 0, 907, 905, 1, 0, 0, 0, 907, 908, 1, 0, 0, 0, 908, 913, 1, 0, 0, 0, 909, 910, 5, 165, 0, 0, 910, 911, 3, 222, 111, 0, 911, 912, 5, 186, 0, 0, 912, 914, 1, 0, 0, 0, 913, 909, 1, 0, 0, 0, 913, 914, 1, 0, 0, 0, 914, 105, 1, 0, 0, 0, 915, 918, 3, 154, 77, 0, 916, 917, 7, 7, 0, 0, 917, 919, 3, 154, 77, 0, 918, 916, 1, 0, 0, 0, 918, 919, 1, 0, 0, 0, 919, 107, 1, 0, 0, 0, 920, 925, 3, 110, 55, 0, 921, 922, 5, 151, 0, 0, 922, 924, 3, 110, 55, 0, 923, 921, 1, 0, 0, 0, 924, 927, 1, 0, 0, 0, 925, 923, 1, 0, 0, 0, 925, 926, 1, 0, 0, 0, 926, 109, 1, 0, 0, 0, 927, 925, 1, 0, 0, 0, 928, 930, 3, 154, 77, 0, 929, 931, 7, 8, 0, 0, 930, 929, 1, 0, 0, 0, 930, 931, 1, 0, 0, 0, 931, 934, 1, 0, 0, 0, 932, 933, 5, 75, 0, 0, 933, 935, 7, 9, 0, 0, 934, 932, 1, 0, 0, 0, 934, 935, 1, 0, 0, 0, 935, 938, 1, 0, 0, 0, 936, 937, 5, 16, 0, 0, 937, 939, 5, 143, 0, 0, 938, 936, 1, 0, 0, 0, 938, 939, 1, 0, 0, 0, 939, 941, 1, 0, 0, 0, 940, 942, 3, 112, 56, 0, 941, 940, 1, 0, 0, 0, 941, 942, 1, 0, 0, 0, 942, 111, 1, 0, 0, 0, 943, 944, 5, 130, 0, 0, 944, 947, 5, 32, 0, 0, 945, 946, 5, 39, 0, 0, 946, 948, 3, 154, 77, 0, 947, 945, 1, 0, 0, 0, 947, 948, 1, 0, 0, 0, 948, 951, 1, 0, 0, 0, 949, 950, 5, 112, 0, 0, 950, 952, 3, 154, 77, 0, 951, 949, 1, 0, 0, 0, 951, 952, 1, 0, 0, 0, 952, 955, 1, 0, 0, 0, 953, 954, 5, 103, 0, 0, 954, 956, 3, 154, 77, 0, 955, 953, 1, 0, 0, 0, 955, 956, 1, 0, 0, 0, 956, 113, 1, 0, 0, 0, 957, 960, 3, 154, 77, 0, 958, 959, 5, 6, 0, 0, 959, 961, 3, 154, 77, 0, 960, 958, 1, 0, 0, 0, 960, 961, 1, 0, 0, 0, 961, 115, 1, 0, 0, 0, 962, 969, 3, 226, 113, 0, 963, 966, 3, 206, 103, 0, 964, 965, 5, 188, 0, 0, 965, 967, 3, 206, 103, 0, 966, 964, 1, 0, 0, 0, 966, 967, 1, 0, 0, 0, 967, 969, 1, 0, 0, 0, 968, 962, 1, 0, 0, 0, 968, 963, 1, 0, 0, 0, 969, 117, 1, 0, 0, 0, 970, 975, 3, 120, 60, 0, 971, 972, 5, 151, 0, 0, 972, 974, 3, 120, 60, 0, 973, 971, 1, 0, 0, 0, 974, 977, 1, 0, 0, 0, 975, 973, 1, 0, 0, 0, 975, 976, 1, 0, 0, 0, 976, 119, 1, 0, 0, 0, 977, 975, 1, 0, 0, 0, 978, 979, 3, 222, 111, 0, 979, 980, 5, 157, 0, 0, 980, 981, 3, 208, 104, 0, 981, 121, 1, 0, 0, 0, 982, 984, 3, 124, 62, 0, 983, 982, 1, 0, 0, 0, 983, 984, 1, 0, 0, 0, 984, 986, 1, 0, 0, 0, 985, 987, 3, 126, 63, 0, 986, 985, 1, 0, 0, 0, 986, 987, 1, 0, 0, 0, 987, 989, 1, 0, 0, 0, 988, 990, 3, 130, 65, 0, 989, 988, 1, 0, 0, 0, 989, 990, 1, 0, 0, 0, 990, 123, 1, 0, 0, 0, 991, 992, 5, 82, 0, 0, 992, 993, 5, 11, 0, 0, 993, 994, 3, 146, 73, 0, 994, 125, 1, 0, 0, 0, 995, 996, 5, 79, 0, 0, 996, 997, 5, 11, 0, 0, 997, 998, 3, 108, 54, 0, 998, 127, 1, 0, 0, 0, 999, 1000, 5, 131, 0, 0, 1000, 1001, 5, 42, 0, 0, 1001, 1002, 5, 165, 0, 0, 1002, 1003, 3, 78, 39, 0, 1003, 1004, 5, 186, 0, 0, 1004, 129, 1, 0, 0, 0, 1005, 1006, 7, 10, 0, 0, 1006, 1007, 3, 132, 66, 0, 1007, 131, 1, 0, 0, 0, 1008, 1015, 3, 134, 67, 0, 1009, 1010, 5, 9, 0, 0, 1010, 1011, 3, 134, 67, 0, 1011, 1012, 5, 2, 0, 0, 1012, 1013, 3, 134, 67, 0, 1013, 1015, 1, 0, 0, 0, 1014, 1008, 1, 0, 0, 0, 1014, 1009, 1, 0, 0, 0, 1015, 133, 1, 0, 0, 0, 1016, 1017, 5, 20, 0, 0, 1017, 1029, 5, 95, 0, 0, 1018, 1019, 5, 120, 0, 0, 1019, 1029, 5, 85, 0, 0, 1020, 1021, 5, 120, 0, 0, 1021, 1029, 5, 37, 0, 0, 1022, 1023, 3, 154, 77, 0, 1023, 1024, 5, 85, 0, 0, 1024, 1029, 1, 0, 0, 0, 1025, 1026, 3, 154, 77, 0, 1026, 1027, 5, 37, 0, 0, 1027, 1029, 1, 0, 0, 0, 1028, 1016, 1, 0, 0, 0, 1028, 1018, 1, 0, 0, 0, 1028, 1020, 1, 0, 0, 0, 1028, 1022, 1, 0, 0, 0, 1028, 1025, 1, 0, 0, 0, 1029, 135, 1, 0, 0, 0, 1030, 1031, 3, 154, 77, 0, 1031, 1032, 5, 0, 0, 1, 1032, 137, 1, 0, 0, 0, 1033, 1034, 6, 69, -1, 0, 1034, 1035, 3, 222, 111, 0, 1035, 1036, 5, 165, 0, 0, 1036, 1037, 3, 222, 111, 0, 1037, 1044, 3, 138, 69, 0, 1038, 1039, 5, 151, 0, 0, 1039, 1040, 3, 222, 111, 0, 1040, 1041, 3, 138, 69, 0, 1041, 1043, 1, 0, 0, 0, 1042, 1038, 1, 0, 0, 0, 1043, 1046, 1, 0, 0, 0, 1044, 1042, 1, 0, 0, 0, 1044, 1045, 1, 0, 0, 0, 1045, 1048, 1, 0, 0, 0, 1046, 1044, 1, 0, 0, 0, 1047, 1049, 5, 151, 0, 0, 1048, 1047, 1, 0, 0, 0, 1048, 1049, 1, 0, 0, 0, 1049, 1050, 1, 0, 0, 0, 1050, 1051, 5, 186, 0, 0, 1051, 1097, 1, 0, 0, 0, 1052, 1053, 3, 222, 111, 0, 1053, 1054, 5, 165, 0, 0, 1054, 1059, 3, 224, 112, 0, 1055, 1056, 5, 151, 0, 0, 1056, 1058, 3, 224, 112, 0, 1057, 1055, 1, 0, 0, 0, 1058, 1061, 1, 0, 0, 0, 1059, 1057, 1, 0, 0, 0, 1059, 1060, 1, 0, 0, 0, 1060, 1063, 1, 0, 0, 0, 1061, 1059, 1, 0, 0, 0, 1062, 1064, 5, 151, 0, 0, 1063, 1062, 1, 0, 0, 0, 1063, 1064, 1, 0, 0, 0, 1064, 1065, 1, 0, 0, 0, 1065, 1066, 5, 186, 0, 0, 1066, 1097, 1, 0, 0, 0, 1067, 1068, 3, 222, 111, 0, 1068, 1069, 5, 165, 0, 0, 1069, 1074, 3, 138, 69, 0, 1070, 1071, 5, 151, 0, 0, 1071, 1073, 3, 138, 69, 0, 1072, 1070, 1, 0, 0, 0, 1073, 1076, 1, 0, 0, 0, 1074, 1072, 1, 0, 0, 0, 1074, 1075, 1, 0, 0, 0, 1075, 1078, 1, 0, 0, 0, 1076, 1074, 1, 0, 0, 0, 1077, 1079, 5, 151, 0, 0, 1078, 1077, 1, 0, 0, 0, 1078, 1079, 1, 0, 0, 0, 1079, 1080, 1, 0, 0, 0, 1080, 1081, 5, 186, 0, 0, 1081, 1097, 1, 0, 0, 0, 1082, 1083, 3, 222, 111, 0, 1083, 1085, 5, 165, 0, 0, 1084, 1086, 3, 146, 73, 0, 1085, 1084, 1, 0, 0, 0, 1085, 1086, 1, 0, 0, 0, 1086, 1087, 1, 0, 0, 0, 1087, 1088, 5, 186, 0, 0, 1088, 1097, 1, 0, 0, 0, 1089, 1091, 3, 222, 111, 0, 1090, 1092, 3, 222, 111, 0, 1091, 1090, 1, 0, 0, 0, 1092, 1093, 1, 0, 0, 0, 1093, 1091, 1, 0, 0, 0, 1093, 1094, 1, 0, 0, 0, 1094, 1097, 1, 0, 0, 0, 1095, 1097, 3, 222, 111, 0, 1096, 1033, 1, 0, 0, 0, 1096, 1052, 1, 0, 0, 0, 1096, 1067, 1, 0, 0, 0, 1096, 1082, 1, 0, 0, 0, 1096, 1089, 1, 0, 0, 0, 1096, 1095, 1, 0, 0, 0, 1097, 1106, 1, 0, 0, 0, 1098, 1099, 10, 7, 0, 0, 1099, 1101, 5, 164, 0, 0, 1100, 1102, 5, 139, 0, 0, 1101, 1100, 1, 0, 0, 0, 1101, 1102, 1, 0, 0, 0, 1102, 1103, 1, 0, 0, 0, 1103, 1105, 5, 185, 0, 0, 1104, 1098, 1, 0, 0, 0, 1105, 1108, 1, 0, 0, 0, 1106, 1104, 1, 0, 0, 0, 1106, 1107, 1, 0, 0, 0, 1107, 139, 1, 0, 0, 0, 1108, 1106, 1, 0, 0, 0, 1109, 1110, 3, 142, 71, 0, 1110, 1112, 5, 130, 0, 0, 1111, 1113, 5, 110, 0, 0, 1112, 1111, 1, 0, 0, 0, 1112, 1113, 1, 0, 0, 0, 1113, 1114, 1, 0, 0, 0, 1114, 1115, 5, 109, 0, 0, 1115, 1116, 5, 111, 0, 0, 1116, 1119, 1, 0, 0, 0, 1117, 1119, 3, 142, 71, 0, 1118, 1109, 1, 0, 0, 0, 1118, 1117, 1, 0, 0, 0, 1119, 141, 1, 0, 0, 0, 1120, 1125, 5, 134, 0, 0, 1121, 1125, 5, 135, 0, 0, 1122, 1125, 3, 210, 105, 0, 1123, 1125, 3, 144, 72, 0, 1124, 1120, 1, 0, 0, 0, 1124, 1121, 1, 0, 0, 0, 1124, 1122, 1, 0, 0, 0, 1124, 1123, 1, 0, 0, 0, 1125, 143, 1, 0, 0, 0, 1126, 1127, 7, 11, 0, 0, 1127, 145, 1, 0, 0, 0, 1128, 1133, 3, 154, 77, 0, 1129, 1130, 5, 151, 0, 0, 1130, 1132, 3, 154, 77, 0, 1131, 1129, 1, 0, 0, 0, 1132, 1135, 1, 0, 0, 0, 1133, 1131, 1, 0, 0, 0, 1133, 1134, 1, 0, 0, 0, 1134, 1137, 1, 0, 0, 0, 1135, 1133, 1, 0, 0, 0, 1136, 1138, 5, 151, 0, 0, 1137, 1136, 1, 0, 0, 0, 1137, 1138, 1, 0, 0, 0, 1138, 147, 1, 0, 0, 0, 1139, 1144, 3, 152, 76, 0, 1140, 1141, 5, 151, 0, 0, 1141, 1143, 3, 152, 76, 0, 1142, 1140, 1, 0, 0, 0, 1143, 1146, 1, 0, 0, 0, 1144, 1142, 1, 0, 0, 0, 1144, 1145, 1, 0, 0, 0, 1145, 1147, 1, 0, 0, 0, 1146, 1144, 1, 0, 0, 0, 1147, 1148, 5, 151, 0, 0, 1148, 1151, 1, 0, 0, 0, 1149, 1151, 3, 150, 75, 0, 1150, 1139, 1, 0, 0, 0, 1150, 1149, 1, 0, 0, 0, 1151, 149, 1, 0, 0, 0, 1152, 1157, 3, 152, 76, 0, 1153, 1154, 5, 151, 0, 0, 1154, 1156, 3, 152, 76, 0, 1155, 1153, 1, 0, 0, 0, 1156, 1159, 1, 0, 0, 0, 1157, 1155, 1, 0, 0, 0, 1157, 1158, 1, 0, 0, 0, 1158, 1161, 1, 0, 0, 0, 1159, 1157, 1, 0, 0, 0, 1160, 1162, 5, 151, 0, 0, 1161, 1160, 1, 0, 0, 0, 1161, 1162, 1, 0, 0, 0, 1162, 151, 1, 0, 0, 0, 1163, 1164, 3, 222, 111, 0, 1164, 1165, 5, 150, 0, 0, 1165, 1166, 3, 154, 77, 0, 1166, 1174, 1, 0, 0, 0, 1167, 1168, 5, 39, 0, 0, 1168, 1174, 3, 220, 110, 0, 1169, 1174, 3, 154, 77, 0, 1170, 1171, 3, 154, 77, 0, 1171, 1172, 3, 220, 110, 0, 1172, 1174, 1, 0, 0, 0, 1173, 1163, 1, 0, 0, 0, 1173, 1167, 1, 0, 0, 0, 1173, 1169, 1, 0, 0, 0, 1173, 1170, 1, 0, 0, 0, 1174, 153, 1, 0, 0, 0, 1175, 1176, 6, 77, -1, 0, 1176, 1177, 3, 156, 78, 0, 1177, 1198, 1, 0, 0, 0, 1178, 1179, 10, 5, 0, 0, 1179, 1180, 5, 2, 0, 0, 1180, 1197, 3, 154, 77, 6, 1181, 1182, 10, 4, 0, 0, 1182, 1183, 5, 78, 0, 0, 1183, 1197, 3, 154, 77, 5, 1184, 1185, 10, 3, 0, 0, 1185, 1186, 5, 177, 0, 0, 1186, 1187, 3, 154, 77, 0, 1187, 1188, 5, 150, 0, 0, 1188, 1189, 3, 154, 77, 3, 1189, 1197, 1, 0, 0, 0, 1190, 1191, 10, 2, 0, 0, 1191, 1194, 5, 6, 0, 0, 1192, 1195, 3, 222, 111, 0, 1193, 1195, 5, 143, 0, 0, 1194, 1192, 1, 0, 0, 0, 1194, 1193, 1, 0, 0, 0, 1195, 1197, 1, 0, 0, 0, 1196, 1178, 1, 0, 0, 0, 1196, 1181, 1, 0, 0, 0, 1196, 1184, 1, 0, 0, 0, 1196, 1190, 1, 0, 0, 0, 1197, 1200, 1, 0, 0, 0, 1198, 1196, 1, 0, 0, 0, 1198, 1199, 1, 0, 0, 0, 1199, 155, 1, 0, 0, 0, 1200, 1198, 1, 0, 0, 0, 1201, 1202, 6, 78, -1, 0, 1202, 1204, 5, 12, 0, 0, 1203, 1205, 3, 154, 77, 0, 1204, 1203, 1, 0, 0, 0, 1204, 1205, 1, 0, 0, 0, 1205, 1211, 1, 0, 0, 0, 1206, 1207, 5, 126, 0, 0, 1207, 1208, 3, 154, 77, 0, 1208, 1209, 5, 105, 0, 0, 1209, 1210, 3, 154, 77, 0, 1210, 1212, 1, 0, 0, 0, 1211, 1206, 1, 0, 0, 0, 1212, 1213, 1, 0, 0, 0, 1213, 1211, 1, 0, 0, 0, 1213, 1214, 1, 0, 0, 0, 1214, 1217, 1, 0, 0, 0, 1215, 1216, 5, 26, 0, 0, 1216, 1218, 3, 154, 77, 0, 1217, 1215, 1, 0, 0, 0, 1217, 1218, 1, 0, 0, 0, 1218, 1219, 1, 0, 0, 0, 1219, 1220, 5, 27, 0, 0, 1220, 1551, 1, 0, 0, 0, 1221, 1222, 5, 13, 0, 0, 1222, 1223, 5, 165, 0, 0, 1223, 1224, 3, 154, 77, 0, 1224, 1225, 5, 6, 0, 0, 1225, 1226, 3, 138, 69, 0, 1226, 1227, 5, 186, 0, 0, 1227, 1551, 1, 0, 0, 0, 1228, 1229, 5, 119, 0, 0, 1229, 1230, 5, 165, 0, 0, 1230, 1231, 3, 154, 77, 0, 1231, 1232, 5, 6, 0, 0, 1232, 1233, 3, 138, 69, 0, 1233, 1234, 5, 186, 0, 0, 1234, 1551, 1, 0, 0, 0, 1235, 1236, 5, 21, 0, 0, 1236, 1551, 5, 143, 0, 0, 1237, 1238, 5, 56, 0, 0, 1238, 1239, 3, 154, 77, 0, 1239, 1240, 3, 210, 105, 0, 1240, 1551, 1, 0, 0, 0, 1241, 1242, 5, 56, 0, 0, 1242, 1551, 5, 143, 0, 0, 1243, 1244, 5, 104, 0, 0, 1244, 1245, 5, 165, 0, 0, 1245, 1246, 3, 154, 77, 0, 1246, 1247, 5, 39, 0, 0, 1247, 1250, 3, 154, 77, 0, 1248, 1249, 5, 38, 0, 0, 1249, 1251, 3, 154, 77, 0, 1250, 1248, 1, 0, 0, 0, 1250, 1251, 1, 0, 0, 0, 1251, 1252, 1, 0, 0, 0, 1252, 1253, 5, 186, 0, 0, 1253, 1551, 1, 0, 0, 0, 1254, 1255, 5, 108, 0, 0, 1255, 1551, 5, 143, 0, 0, 1256, 1257, 5, 116, 0, 0, 1257, 1258, 5, 165, 0, 0, 1258, 1259, 7, 12, 0, 0, 1259, 1260, 3, 228, 114, 0, 1260, 1261, 5, 39, 0, 0, 1261, 1262, 3, 154, 77, 0, 1262, 1263, 5, 186, 0, 0, 1263, 1551, 1, 0, 0, 0, 1264, 1265, 5, 17, 0, 0, 1265, 1266, 5, 165, 0, 0, 1266, 1267, 5, 143, 0, 0, 1267, 1551, 5, 186, 0, 0, 1268, 1269, 5, 17, 0, 0, 1269, 1270, 5, 165, 0, 0, 1270, 1271, 3, 146, 73, 0, 1271, 1272, 5, 186, 0, 0, 1272, 1551, 1, 0, 0, 0, 1273, 1274, 5, 17, 0, 0, 1274, 1275, 5, 165, 0, 0, 1275, 1276, 5, 145, 0, 0, 1276, 1277, 5, 29, 0, 0, 1277, 1278, 5, 165, 0, 0, 1278, 1279, 3, 8, 4, 0, 1279, 1280, 5, 186, 0, 0, 1280, 1281, 5, 91, 0, 0, 1281, 1282, 5, 165, 0, 0, 1282, 1283, 3, 160, 80, 0, 1283, 1284, 5, 186, 0, 0, 1284, 1285, 5, 186, 0, 0, 1285, 1299, 1, 0, 0, 0, 1286, 1287, 5, 165, 0, 0, 1287, 1288, 5, 145, 0, 0, 1288, 1289, 5, 29, 0, 0, 1289, 1290, 5, 165, 0, 0, 1290, 1291, 3, 8, 4, 0, 1291, 1292, 5, 186, 0, 0, 1292, 1293, 5, 91, 0, 0, 1293, 1294, 5, 165, 0, 0, 1294, 1295, 3, 160, 80, 0, 1295, 1296, 5, 186, 0, 0, 1296, 1297, 5, 186, 0, 0, 1297, 1299, 1, 0, 0, 0, 1298, 1273, 1, 0, 0, 0, 1298, 1286, 1, 0, 0, 0, 1299, 1551, 1, 0, 0, 0, 1300, 1301, 5, 17, 0, 0, 1301, 1302, 5, 165, 0, 0, 1302, 1303, 5, 145, 0, 0, 1303, 1304, 5, 29, 0, 0, 1304, 1305, 5, 165, 0, 0, 1305, 1306, 3, 8, 4, 0, 1306, 1307, 5, 186, 0, 0, 1307, 1308, 5, 186, 0, 0, 1308, 1551, 1, 0, 0, 0, 1309, 1310, 5, 17, 0, 0, 1310, 1311, 5, 165, 0, 0, 1311, 1312, 5, 145, 0, 0, 1312, 1313, 5, 91, 0, 0, 1313, 1314, 5, 165, 0, 0, 1314, 1315, 3, 160, 80, 0, 1315, 1316, 5, 186, 0, 0, 1316, 1317, 5, 186, 0, 0, 1317, 1327, 1, 0, 0, 0, 1318, 1319, 5, 165, 0, 0, 1319, 1320, 5, 145, 0, 0, 1320, 1321, 5, 91, 0, 0, 1321, 1322, 5, 165, 0, 0, 1322, 1323, 3, 160, 80, 0, 1323, 1324, 5, 186, 0, 0, 1324, 1325, 5, 186, 0, 0, 1325, 1327, 1, 0, 0, 0, 1326, 1309, 1, 0, 0, 0, 1326, 1318, 1, 0, 0, 0, 1327, 1551, 1, 0, 0, 0, 1328, 1329, 5, 17, 0, 0, 1329, 1330, 5, 165, 0, 0, 1330, 1331, 5, 145, 0, 0, 1331, 1551, 5, 186, 0, 0, 1332, 1333, 5, 17, 0, 0, 1333, 1334, 5, 165, 0, 0, 1334, 1335, 3, 222, 111, 0, 1335, 1336, 5, 155, 0, 0, 1336, 1337, 5, 145, 0, 0, 1337, 1338, 5, 29, 0, 0, 1338, 1339, 5, 165, 0, 0, 1339, 1340, 3, 8, 4, 0, 1340, 1341, 5, 186, 0, 0, 1341, 1342, 5, 91, 0, 0, 1342, 1343, 5, 165, 0, 0, 1343, 1344, 3, 160, 80, 0, 1344, 1345, 5, 186, 0, 0, 1345, 1346, 5, 186, 0, 0, 1346, 1551, 1, 0, 0, 0, 1347, 1348, 5, 17, 0, 0, 1348, 1349, 5, 165, 0, 0, 1349, 1350, 3, 222, 111, 0, 1350, 1351, 5, 155, 0, 0, 1351, 1352, 5, 145, 0, 0, 1352, 1353, 5, 29, 0, 0, 1353, 1354, 5, 165, 0, 0, 1354, 1355, 3, 8, 4, 0, 1355, 1356, 5, 186, 0, 0, 1356, 1357, 5, 186, 0, 0, 1357, 1551, 1, 0, 0, 0, 1358, 1359, 5, 17, 0, 0, 1359, 1360, 5, 165, 0, 0, 1360, 1361, 3, 222, 111, 0, 1361, 1362, 5, 155, 0, 0, 1362, 1363, 5, 145, 0, 0, 1363, 1364, 5, 91, 0, 0, 1364, 1365, 5, 165, 0, 0, 1365, 1366, 3, 160, 80, 0, 1366, 1367, 5, 186, 0, 0, 1367, 1368, 5, 186, 0, 0, 1368, 1551, 1, 0, 0, 0, 1369, 1370, 5, 17, 0, 0, 1370, 1371, 5, 165, 0, 0, 1371, 1372, 3, 222, 111, 0, 1372, 1373, 5, 155, 0, 0, 1373, 1374, 5, 145, 0, 0, 1374, 1375, 5, 186, 0, 0, 1375, 1551, 1, 0, 0, 0, 1376, 1377, 5, 145, 0, 0, 1377, 1378, 5, 17, 0, 0, 1378, 1379, 5, 165, 0, 0, 1379, 1380, 5, 143, 0, 0, 1380, 1551, 5, 186, 0, 0, 1381, 1382, 5, 145, 0, 0, 1382, 1383, 5, 17, 0, 0, 1383, 1384, 5, 165, 0, 0, 1384, 1385, 3, 146, 73, 0, 1385, 1386, 5, 186, 0, 0, 1386, 1551, 1, 0, 0, 0, 1387, 1388, 3, 222, 111, 0, 1388, 1390, 5, 165, 0, 0, 1389, 1391, 3, 146, 73, 0, 1390, 1389, 1, 0, 0, 0, 1390, 1391, 1, 0, 0, 0, 1391, 1392, 1, 0, 0, 0, 1392, 1393, 5, 186, 0, 0, 1393, 1394, 3, 128, 64, 0, 1394, 1551, 1, 0, 0, 0, 1395, 1396, 3, 222, 111, 0, 1396, 1398, 5, 165, 0, 0, 1397, 1399, 3, 146, 73, 0, 1398, 1397, 1, 0, 0, 0, 1398, 1399, 1, 0, 0, 0, 1399, 1400, 1, 0, 0, 0, 1400, 1401, 5, 186, 0, 0, 1401, 1410, 1, 0, 0, 0, 1402, 1404, 5, 165, 0, 0, 1403, 1405, 5, 25, 0, 0, 1404, 1403, 1, 0, 0, 0, 1404, 1405, 1, 0, 0, 0, 1405, 1407, 1, 0, 0, 0, 1406, 1408, 3, 146, 73, 0, 1407, 1406, 1, 0, 0, 0, 1407, 1408, 1, 0, 0, 0, 1408, 1409, 1, 0, 0, 0, 1409, 1411, 5, 186, 0, 0, 1410, 1402, 1, 0, 0, 0, 1410, 1411, 1, 0, 0, 0, 1411, 1418, 1, 0, 0, 0, 1412, 1413, 5, 33, 0, 0, 1413, 1414, 5, 165, 0, 0, 1414, 1415, 5, 127, 0, 0, 1415, 1416, 3, 154, 77, 0, 1416, 1417, 5, 186, 0, 0, 1417, 1419, 1, 0, 0, 0, 1418, 1412, 1, 0, 0, 0, 1418, 1419, 1, 0, 0, 0, 1419, 1420, 1, 0, 0, 0, 1420, 1421, 5, 81, 0, 0, 1421, 1422, 5, 165, 0, 0, 1422, 1423, 3, 122, 61, 0, 1423, 1424, 5, 186, 0, 0, 1424, 1551, 1, 0, 0, 0, 1425, 1426, 3, 222, 111, 0, 1426, 1428, 5, 165, 0, 0, 1427, 1429, 3, 146, 73, 0, 1428, 1427, 1, 0, 0, 0, 1428, 1429, 1, 0, 0, 0, 1429, 1430, 1, 0, 0, 0, 1430, 1431, 5, 186, 0, 0, 1431, 1440, 1, 0, 0, 0, 1432, 1434, 5, 165, 0, 0, 1433, 1435, 5, 25, 0, 0, 1434, 1433, 1, 0, 0, 0, 1434, 1435, 1, 0, 0, 0, 1435, 1437, 1, 0, 0, 0, 1436, 1438, 3, 146, 73, 0, 1437, 1436, 1, 0, 0, 0, 1437, 1438, 1, 0, 0, 0, 1438, 1439, 1, 0, 0, 0, 1439, 1441, 5, 186, 0, 0, 1440, 1432, 1, 0, 0, 0, 1440, 1441, 1, 0, 0, 0, 1441, 1448, 1, 0, 0, 0, 1442, 1443, 5, 33, 0, 0, 1443, 1444, 5, 165, 0, 0, 1444, 1445, 5, 127, 0, 0, 1445, 1446, 3, 154, 77, 0, 1446, 1447, 5, 186, 0, 0, 1447, 1449, 1, 0, 0, 0, 1448, 1442, 1, 0, 0, 0, 1448, 1449, 1, 0, 0, 0, 1449, 1450, 1, 0, 0, 0, 1450, 1451, 5, 81, 0, 0, 1451, 1452, 3, 222, 111, 0, 1452, 1551, 1, 0, 0, 0, 1453, 1459, 3, 222, 111, 0, 1454, 1456, 5, 165, 0, 0, 1455, 1457, 3, 146, 73, 0, 1456, 1455, 1, 0, 0, 0, 1456, 1457, 1, 0, 0, 0, 1457, 1458, 1, 0, 0, 0, 1458, 1460, 5, 186, 0, 0, 1459, 1454, 1, 0, 0, 0, 1459, 1460, 1, 0, 0, 0, 1460, 1461, 1, 0, 0, 0, 1461, 1463, 5, 165, 0, 0, 1462, 1464, 5, 25, 0, 0, 1463, 1462, 1, 0, 0, 0, 1463, 1464, 1, 0, 0, 0, 1464, 1466, 1, 0, 0, 0, 1465, 1467, 3, 146, 73, 0, 1466, 1465, 1, 0, 0, 0, 1466, 1467, 1, 0, 0, 0, 1467, 1471, 1, 0, 0, 0, 1468, 1469, 5, 79, 0, 0, 1469, 1470, 5, 11, 0, 0, 1470, 1472, 3, 108, 54, 0, 1471, 1468, 1, 0, 0, 0, 1471, 1472, 1, 0, 0, 0, 1472, 1473, 1, 0, 0, 0, 1473, 1480, 5, 186, 0, 0, 1474, 1475, 5, 33, 0, 0, 1475, 1476, 5, 165, 0, 0, 1476, 1477, 5, 127, 0, 0, 1477, 1478, 3, 154, 77, 0, 1478, 1479, 5, 186, 0, 0, 1479, 1481, 1, 0, 0, 0, 1480, 1474, 1, 0, 0, 0, 1480, 1481, 1, 0, 0, 0, 1481, 1551, 1, 0, 0, 0, 1482, 1551, 3, 168, 84, 0, 1483, 1551, 3, 230, 115, 0, 1484, 1551, 3, 208, 104, 0, 1485, 1486, 5, 153, 0, 0, 1486, 1551, 3, 156, 78, 22, 1487, 1488, 5, 73, 0, 0, 1488, 1551, 3, 156, 78, 12, 1489, 1490, 3, 198, 99, 0, 1490, 1491, 5, 155, 0, 0, 1491, 1493, 1, 0, 0, 0, 1492, 1489, 1, 0, 0, 0, 1492, 1493, 1, 0, 0, 0, 1493, 1494, 1, 0, 0, 0, 1494, 1500, 5, 145, 0, 0, 1495, 1496, 5, 29, 0, 0, 1496, 1497, 5, 165, 0, 0, 1497, 1498, 3, 8, 4, 0, 1498, 1499, 5, 186, 0, 0, 1499, 1501, 1, 0, 0, 0, 1500, 1495, 1, 0, 0, 0, 1500, 1501, 1, 0, 0, 0, 1501, 1551, 1, 0, 0, 0, 1502, 1503, 5, 60, 0, 0, 1503, 1508, 3, 222, 111, 0, 1504, 1505, 5, 151, 0, 0, 1505, 1507, 3, 222, 111, 0, 1506, 1504, 1, 0, 0, 0, 1507, 1510, 1, 0, 0, 0, 1508, 1506, 1, 0, 0, 0, 1508, 1509, 1, 0, 0, 0, 1509, 1512, 1, 0, 0, 0, 1510, 1508, 1, 0, 0, 0, 1511, 1513, 5, 151, 0, 0, 1512, 1511, 1, 0, 0, 0, 1512, 1513, 1, 0, 0, 0, 1513, 1514, 1, 0, 0, 0, 1514, 1515, 5, 150, 0, 0, 1515, 1516, 3, 154, 77, 0, 1516, 1551, 1, 0, 0, 0, 1517, 1518, 5, 165, 0, 0, 1518, 1519, 3, 48, 24, 0, 1519, 1520, 5, 186, 0, 0, 1520, 1551, 1, 0, 0, 0, 1521, 1522, 5, 165, 0, 0, 1522, 1523, 3, 154, 77, 0, 1523, 1524, 5, 186, 0, 0, 1524, 1551, 1, 0, 0, 0, 1525, 1526, 5, 165, 0, 0, 1526, 1527, 3, 146, 73, 0, 1527, 1528, 5, 186, 0, 0, 1528, 1551, 1, 0, 0, 0, 1529, 1531, 5, 5, 0, 0, 1530, 1529, 1, 0, 0, 0, 1530, 1531, 1, 0, 0, 0, 1531, 1532, 1, 0, 0, 0, 1532, 1534, 5, 164, 0, 0, 1533, 1535, 3, 146, 73, 0, 1534, 1533, 1, 0, 0, 0, 1534, 1535, 1, 0, 0, 0, 1535, 1536, 1, 0, 0, 0, 1536, 1551, 5, 185, 0, 0, 1537, 1539, 5, 163, 0, 0, 1538, 1540, 3, 40, 20, 0, 1539, 1538, 1, 0, 0, 0, 1539, 1540, 1, 0, 0, 0, 1540, 1541, 1, 0, 0, 0, 1541, 1551, 5, 184, 0, 0, 1542, 1551, 3, 158, 79, 0, 1543, 1544, 3, 222, 111, 0, 1544, 1545, 5, 149, 0, 0, 1545, 1546, 3, 154, 77, 0, 1546, 1551, 1, 0, 0, 0, 1547, 1548, 5, 160, 0, 0, 1548, 1551, 5, 139, 0, 0, 1549, 1551, 3, 178, 89, 0, 1550, 1201, 1, 0, 0, 0, 1550, 1221, 1, 0, 0, 0, 1550, 1228, 1, 0, 0, 0, 1550, 1235, 1, 0, 0, 0, 1550, 1237, 1, 0, 0, 0, 1550, 1241, 1, 0, 0, 0, 1550, 1243, 1, 0, 0, 0, 1550, 1254, 1, 0, 0, 0, 1550, 1256, 1, 0, 0, 0, 1550, 1264, 1, 0, 0, 0, 1550, 1268, 1, 0, 0, 0, 1550, 1298, 1, 0, 0, 0, 1550, 1300, 1, 0, 0, 0, 1550, 1326, 1, 0, 0, 0, 1550, 1328, 1, 0, 0, 0, 1550, 1332, 1, 0, 0, 0, 1550, 1347, 1, 0, 0, 0, 1550, 1358, 1, 0, 0, 0, 1550, 1369, 1, 0, 0, 0, 1550, 1376, 1, 0, 0, 0, 1550, 1381, 1, 0, 0, 0, 1550, 1387, 1, 0, 0, 0, 1550, 1395, 1, 0, 0, 0, 1550, 1425, 1, 0, 0, 0, 1550, 1453, 1, 0, 0, 0, 1550, 1482, 1, 0, 0, 0, 1550, 1483, 1, 0, 0, 0, 1550, 1484, 1, 0, 0, 0, 1550, 1485, 1, 0, 0, 0, 1550, 1487, 1, 0, 0, 0, 1550, 1492, 1, 0, 0, 0, 1550, 1502, 1, 0, 0, 0, 1550, 1517, 1, 0, 0, 0, 1550, 1521, 1, 0, 0, 0, 1550, 1525, 1, 0, 0, 0, 1550, 1530, 1, 0, 0, 0, 1550, 1537, 1, 0, 0, 0, 1550, 1542, 1, 0, 0, 0, 1550, 1543, 1, 0, 0, 0, 1550, 1547, 1, 0, 0, 0, 1550, 1549, 1, 0, 0, 0, 1551, 1675, 1, 0, 0, 0, 1552, 1556, 10, 21, 0, 0, 1553, 1557, 5, 145, 0, 0, 1554, 1557, 5, 188, 0, 0, 1555, 1557, 5, 175, 0, 0, 1556, 1553, 1, 0, 0, 0, 1556, 1554, 1, 0, 0, 0, 1556, 1555, 1, 0, 0, 0, 1557, 1558, 1, 0, 0, 0, 1558, 1674, 3, 156, 78, 22, 1559, 1563, 10, 20, 0, 0, 1560, 1564, 5, 176, 0, 0, 1561, 1564, 5, 153, 0, 0, 1562, 1564, 5, 152, 0, 0, 1563, 1560, 1, 0, 0, 0, 1563, 1561, 1, 0, 0, 0, 1563, 1562, 1, 0, 0, 0, 1564, 1565, 1, 0, 0, 0, 1565, 1674, 3, 156, 78, 21, 1566, 1591, 10, 19, 0, 0, 1567, 1592, 5, 156, 0, 0, 1568, 1592, 5, 157, 0, 0, 1569, 1592, 5, 170, 0, 0, 1570, 1592, 5, 167, 0, 0, 1571, 1592, 5, 168, 0, 0, 1572, 1592, 5, 158, 0, 0, 1573, 1592, 5, 159, 0, 0, 1574, 1576, 5, 73, 0, 0, 1575, 1574, 1, 0, 0, 0, 1575, 1576, 1, 0, 0, 0, 1576, 1577, 1, 0, 0, 0, 1577, 1579, 5, 51, 0, 0, 1578, 1580, 5, 15, 0, 0, 1579, 1578, 1, 0, 0, 0, 1579, 1580, 1, 0, 0, 0, 1580, 1592, 1, 0, 0, 0, 1581, 1583, 5, 73, 0, 0, 1582, 1581, 1, 0, 0, 0, 1582, 1583, 1, 0, 0, 0, 1583, 1584, 1, 0, 0, 0, 1584, 1592, 7, 13, 0, 0, 1585, 1592, 5, 182, 0, 0, 1586, 1592, 5, 183, 0, 0, 1587, 1592, 5, 172, 0, 0, 1588, 1592, 5, 161, 0, 0, 1589, 1592, 5, 162, 0, 0, 1590, 1592, 5, 171, 0, 0, 1591, 1567, 1, 0, 0, 0, 1591, 1568, 1, 0, 0, 0, 1591, 1569, 1, 0, 0, 0, 1591, 1570, 1, 0, 0, 0, 1591, 1571, 1, 0, 0, 0, 1591, 1572, 1, 0, 0, 0, 1591, 1573, 1, 0, 0, 0, 1591, 1575, 1, 0, 0, 0, 1591, 1582, 1, 0, 0, 0, 1591, 1585, 1, 0, 0, 0, 1591, 1586, 1, 0, 0, 0, 1591, 1587, 1, 0, 0, 0, 1591, 1588, 1, 0, 0, 0, 1591, 1589, 1, 0, 0, 0, 1591, 1590, 1, 0, 0, 0, 1592, 1593, 1, 0, 0, 0, 1593, 1674, 3, 156, 78, 20, 1594, 1595, 10, 16, 0, 0, 1595, 1597, 5, 57, 0, 0, 1596, 1598, 5, 73, 0, 0, 1597, 1596, 1, 0, 0, 0, 1597, 1598, 1, 0, 0, 0, 1598, 1599, 1, 0, 0, 0, 1599, 1600, 5, 25, 0, 0, 1600, 1601, 5, 39, 0, 0, 1601, 1674, 3, 156, 78, 17, 1602, 1603, 10, 15, 0, 0, 1603, 1604, 5, 166, 0, 0, 1604, 1674, 3, 156, 78, 16, 1605, 1606, 10, 14, 0, 0, 1606, 1607, 5, 174, 0, 0, 1607, 1674, 3, 156, 78, 15, 1608, 1610, 10, 13, 0, 0, 1609, 1611, 5, 73, 0, 0, 1610, 1609, 1, 0, 0, 0, 1610, 1611, 1, 0, 0, 0, 1611, 1612, 1, 0, 0, 0, 1612, 1613, 5, 9, 0, 0, 1613, 1614, 3, 156, 78, 0, 1614, 1615, 5, 2, 0, 0, 1615, 1616, 3, 156, 78, 14, 1616, 1674, 1, 0, 0, 0, 1617, 1618, 10, 35, 0, 0, 1618, 1619, 5, 165, 0, 0, 1619, 1620, 3, 48, 24, 0, 1620, 1621, 5, 186, 0, 0, 1621, 1674, 1, 0, 0, 0, 1622, 1623, 10, 34, 0, 0, 1623, 1625, 5, 165, 0, 0, 1624, 1626, 3, 146, 73, 0, 1625, 1624, 1, 0, 0, 0, 1625, 1626, 1, 0, 0, 0, 1626, 1627, 1, 0, 0, 0, 1627, 1674, 5, 186, 0, 0, 1628, 1629, 10, 30, 0, 0, 1629, 1630, 5, 164, 0, 0, 1630, 1631, 3, 154, 77, 0, 1631, 1632, 5, 185, 0, 0, 1632, 1674, 1, 0, 0, 0, 1633, 1634, 10, 29, 0, 0, 1634, 1636, 5, 164, 0, 0, 1635, 1637, 3, 154, 77, 0, 1636, 1635, 1, 0, 0, 0, 1636, 1637, 1, 0, 0, 0, 1637, 1638, 1, 0, 0, 0, 1638, 1640, 5, 150, 0, 0, 1639, 1641, 3, 154, 77, 0, 1640, 1639, 1, 0, 0, 0, 1640, 1641, 1, 0, 0, 0, 1641, 1642, 1, 0, 0, 0, 1642, 1674, 5, 185, 0, 0, 1643, 1644, 10, 28, 0, 0, 1644, 1645, 5, 155, 0, 0, 1645, 1674, 5, 139, 0, 0, 1646, 1647, 10, 27, 0, 0, 1647, 1648, 5, 155, 0, 0, 1648, 1674, 3, 222, 111, 0, 1649, 1650, 10, 26, 0, 0, 1650, 1651, 5, 173, 0, 0, 1651, 1652, 5, 164, 0, 0, 1652, 1653, 3, 154, 77, 0, 1653, 1654, 5, 185, 0, 0, 1654, 1674, 1, 0, 0, 0, 1655, 1656, 10, 25, 0, 0, 1656, 1657, 5, 173, 0, 0, 1657, 1674, 5, 139, 0, 0, 1658, 1659, 10, 24, 0, 0, 1659, 1660, 5, 173, 0, 0, 1660, 1674, 3, 222, 111, 0, 1661, 1662, 10, 23, 0, 0, 1662, 1663, 5, 148, 0, 0, 1663, 1674, 3, 140, 70, 0, 1664, 1665, 10, 18, 0, 0, 1665, 1666, 5, 49, 0, 0, 1666, 1674, 5, 75, 0, 0, 1667, 1668, 10, 17, 0, 0, 1668, 1670, 5, 57, 0, 0, 1669, 1671, 5, 73, 0, 0, 1670, 1669, 1, 0, 0, 0, 1670, 1671, 1, 0, 0, 0, 1671, 1672, 1, 0, 0, 0, 1672, 1674, 5, 74, 0, 0, 1673, 1552, 1, 0, 0, 0, 1673, 1559, 1, 0, 0, 0, 1673, 1566, 1, 0, 0, 0, 1673, 1594, 1, 0, 0, 0, 1673, 1602, 1, 0, 0, 0, 1673, 1605, 1, 0, 0, 0, 1673, 1608, 1, 0, 0, 0, 1673, 1617, 1, 0, 0, 0, 1673, 1622, 1, 0, 0, 0, 1673, 1628, 1, 0, 0, 0, 1673, 1633, 1, 0, 0, 0, 1673, 1643, 1, 0, 0, 0, 1673, 1646, 1, 0, 0, 0, 1673, 1649, 1, 0, 0, 0, 1673, 1655, 1, 0, 0, 0, 1673, 1658, 1, 0, 0, 0, 1673, 1661, 1, 0, 0, 0, 1673, 1664, 1, 0, 0, 0, 1673, 1667, 1, 0, 0, 0, 1674, 1677, 1, 0, 0, 0, 1675, 1673, 1, 0, 0, 0, 1675, 1676, 1, 0, 0, 0, 1676, 157, 1, 0, 0, 0, 1677, 1675, 1, 0, 0, 0, 1678, 1679, 5, 165, 0, 0, 1679, 1684, 3, 222, 111, 0, 1680, 1681, 5, 151, 0, 0, 1681, 1683, 3, 222, 111, 0, 1682, 1680, 1, 0, 0, 0, 1683, 1686, 1, 0, 0, 0, 1684, 1682, 1, 0, 0, 0, 1684, 1685, 1, 0, 0, 0, 1685, 1688, 1, 0, 0, 0, 1686, 1684, 1, 0, 0, 0, 1687, 1689, 5, 151, 0, 0, 1688, 1687, 1, 0, 0, 0, 1688, 1689, 1, 0, 0, 0, 1689, 1690, 1, 0, 0, 0, 1690, 1691, 5, 186, 0, 0, 1691, 1706, 1, 0, 0, 0, 1692, 1697, 3, 222, 111, 0, 1693, 1694, 5, 151, 0, 0, 1694, 1696, 3, 222, 111, 0, 1695, 1693, 1, 0, 0, 0, 1696, 1699, 1, 0, 0, 0, 1697, 1695, 1, 0, 0, 0, 1697, 1698, 1, 0, 0, 0, 1698, 1701, 1, 0, 0, 0, 1699, 1697, 1, 0, 0, 0, 1700, 1702, 5, 151, 0, 0, 1701, 1700, 1, 0, 0, 0, 1701, 1702, 1, 0, 0, 0, 1702, 1706, 1, 0, 0, 0, 1703, 1704, 5, 165, 0, 0, 1704, 1706, 5, 186, 0, 0, 1705, 1678, 1, 0, 0, 0, 1705, 1692, 1, 0, 0, 0, 1705, 1703, 1, 0, 0, 0, 1706, 1707, 1, 0, 0, 0, 1707, 1710, 5, 144, 0, 0, 1708, 1711, 3, 154, 77, 0, 1709, 1711, 3, 36, 18, 0, 1710, 1708, 1, 0, 0, 0, 1710, 1709, 1, 0, 0, 0, 1711, 1728, 1, 0, 0, 0, 1712, 1713, 5, 60, 0, 0, 1713, 1718, 3, 222, 111, 0, 1714, 1715, 5, 151, 0, 0, 1715, 1717, 3, 222, 111, 0, 1716, 1714, 1, 0, 0, 0, 1717, 1720, 1, 0, 0, 0, 1718, 1716, 1, 0, 0, 0, 1718, 1719, 1, 0, 0, 0, 1719, 1722, 1, 0, 0, 0, 1720, 1718, 1, 0, 0, 0, 1721, 1723, 5, 151, 0, 0, 1722, 1721, 1, 0, 0, 0, 1722, 1723, 1, 0, 0, 0, 1723, 1724, 1, 0, 0, 0, 1724, 1725, 5, 150, 0, 0, 1725, 1726, 3, 154, 77, 0, 1726, 1728, 1, 0, 0, 0, 1727, 1705, 1, 0, 0, 0, 1727, 1712, 1, 0, 0, 0, 1728, 159, 1, 0, 0, 0, 1729, 1734, 3, 162, 81, 0, 1730, 1731, 5, 151, 0, 0, 1731, 1733, 3, 162, 81, 0, 1732, 1730, 1, 0, 0, 0, 1733, 1736, 1, 0, 0, 0, 1734, 1732, 1, 0, 0, 0, 1734, 1735, 1, 0, 0, 0, 1735, 161, 1, 0, 0, 0, 1736, 1734, 1, 0, 0, 0, 1737, 1738, 3, 154, 77, 0, 1738, 1739, 5, 6, 0, 0, 1739, 1740, 3, 222, 111, 0, 1740, 163, 1, 0, 0, 0, 1741, 1748, 3, 168, 84, 0, 1742, 1748, 3, 166, 83, 0, 1743, 1744, 5, 163, 0, 0, 1744, 1745, 3, 154, 77, 0, 1745, 1746, 5, 184, 0, 0, 1746, 1748, 1, 0, 0, 0, 1747, 1741, 1, 0, 0, 0, 1747, 1742, 1, 0, 0, 0, 1747, 1743, 1, 0, 0, 0, 1748, 165, 1, 0, 0, 0, 1749, 1750, 5, 206, 0, 0, 1750, 167, 1, 0, 0, 0, 1751, 1752, 5, 168, 0, 0, 1752, 1756, 3, 222, 111, 0, 1753, 1755, 3, 170, 85, 0, 1754, 1753, 1, 0, 0, 0, 1755, 1758, 1, 0, 0, 0, 1756, 1754, 1, 0, 0, 0, 1756, 1757, 1, 0, 0, 0, 1757, 1759, 1, 0, 0, 0, 1758, 1756, 1, 0, 0, 0, 1759, 1760, 5, 189, 0, 0, 1760, 1781, 1, 0, 0, 0, 1761, 1762, 5, 168, 0, 0, 1762, 1766, 3, 222, 111, 0, 1763, 1765, 3, 170, 85, 0, 1764, 1763, 1, 0, 0, 0, 1765, 1768, 1, 0, 0, 0, 1766, 1764, 1, 0, 0, 0, 1766, 1767, 1, 0, 0, 0, 1767, 1769, 1, 0, 0, 0, 1768, 1766, 1, 0, 0, 0, 1769, 1773, 5, 159, 0, 0, 1770, 1772, 3, 164, 82, 0, 1771, 1770, 1, 0, 0, 0, 1772, 1775, 1, 0, 0, 0, 1773, 1771, 1, 0, 0, 0, 1773, 1774, 1, 0, 0, 0, 1774, 1776, 1, 0, 0, 0, 1775, 1773, 1, 0, 0, 0, 1776, 1777, 5, 169, 0, 0, 1777, 1778, 3, 222, 111, 0, 1778, 1779, 5, 159, 0, 0, 1779, 1781, 1, 0, 0, 0, 1780, 1751, 1, 0, 0, 0, 1780, 1761, 1, 0, 0, 0, 1781, 169, 1, 0, 0, 0, 1782, 1783, 3, 222, 111, 0, 1783, 1784, 5, 157, 0, 0, 1784, 1785, 3, 228, 114, 0, 1785, 1794, 1, 0, 0, 0, 1786, 1787, 3, 222, 111, 0, 1787, 1788, 5, 157, 0, 0, 1788, 1789, 5, 163, 0, 0, 1789, 1790, 3, 154, 77, 0, 1790, 1791, 5, 184, 0, 0, 1791, 1794, 1, 0, 0, 0, 1792, 1794, 3, 222, 111, 0, 1793, 1782, 1, 0, 0, 0, 1793, 1786, 1, 0, 0, 0, 1793, 1792, 1, 0, 0, 0, 1794, 171, 1, 0, 0, 0, 1795, 1800, 3, 174, 87, 0, 1796, 1797, 5, 151, 0, 0, 1797, 1799, 3, 174, 87, 0, 1798, 1796, 1, 0, 0, 0, 1799, 1802, 1, 0, 0, 0, 1800, 1798, 1, 0, 0, 0, 1800, 1801, 1, 0, 0, 0, 1801, 1804, 1, 0, 0, 0, 1802, 1800, 1, 0, 0, 0, 1803, 1805, 5, 151, 0, 0, 1804, 1803, 1, 0, 0, 0, 1804, 1805, 1, 0, 0, 0, 1805, 173, 1, 0, 0, 0, 1806, 1808, 3, 222, 111, 0, 1807, 1809, 3, 176, 88, 0, 1808, 1807, 1, 0, 0, 0, 1808, 1809, 1, 0, 0, 0, 1809, 1813, 1, 0, 0, 0, 1810, 1811, 5, 123, 0, 0, 1811, 1812, 5, 59, 0, 0, 1812, 1814, 3, 176, 88, 0, 1813, 1810, 1, 0, 0, 0, 1813, 1814, 1, 0, 0, 0, 1814, 1815, 1, 0, 0, 0, 1815, 1820, 5, 6, 0, 0, 1816, 1818, 5, 73, 0, 0, 1817, 1816, 1, 0, 0, 0, 1817, 1818, 1, 0, 0, 0, 1818, 1819, 1, 0, 0, 0, 1819, 1821, 5, 67, 0, 0, 1820, 1817, 1, 0, 0, 0, 1820, 1821, 1, 0, 0, 0, 1821, 1822, 1, 0, 0, 0, 1822, 1823, 5, 165, 0, 0, 1823, 1824, 3, 48, 24, 0, 1824, 1825, 5, 186, 0, 0, 1825, 1831, 1, 0, 0, 0, 1826, 1827, 3, 154, 77, 0, 1827, 1828, 5, 6, 0, 0, 1828, 1829, 3, 222, 111, 0, 1829, 1831, 1, 0, 0, 0, 1830, 1806, 1, 0, 0, 0, 1830, 1826, 1, 0, 0, 0, 1831, 175, 1, 0, 0, 0, 1832, 1833, 5, 165, 0, 0, 1833, 1838, 3, 222, 111, 0, 1834, 1835, 5, 151, 0, 0, 1835, 1837, 3, 222, 111, 0, 1836, 1834, 1, 0, 0, 0, 1837, 1840, 1, 0, 0, 0, 1838, 1836, 1, 0, 0, 0, 1838, 1839, 1, 0, 0, 0, 1839, 1841, 1, 0, 0, 0, 1840, 1838, 1, 0, 0, 0, 1841, 1842, 5, 186, 0, 0, 1842, 177, 1, 0, 0, 0, 1843, 1851, 3, 226, 113, 0, 1844, 1845, 3, 198, 99, 0, 1845, 1846, 5, 155, 0, 0, 1846, 1848, 1, 0, 0, 0, 1847, 1844, 1, 0, 0, 0, 1847, 1848, 1, 0, 0, 0, 1848, 1849, 1, 0, 0, 0, 1849, 1851, 3, 180, 90, 0, 1850, 1843, 1, 0, 0, 0, 1850, 1847, 1, 0, 0, 0, 1851, 179, 1, 0, 0, 0, 1852, 1857, 3, 222, 111, 0, 1853, 1854, 5, 155, 0, 0, 1854, 1856, 3, 222, 111, 0, 1855, 1853, 1, 0, 0, 0, 1856, 1859, 1, 0, 0, 0, 1857, 1855, 1, 0, 0, 0, 1857, 1858, 1, 0, 0, 0, 1858, 181, 1, 0, 0, 0, 1859, 1857, 1, 0, 0, 0, 1860, 1861, 6, 91, -1, 0, 1861, 1874, 3, 198, 99, 0, 1862, 1874, 3, 196, 98, 0, 1863, 1864, 5, 165, 0, 0, 1864, 1865, 3, 48, 24, 0, 1865, 1866, 5, 186, 0, 0, 1866, 1874, 1, 0, 0, 0, 1867, 1868, 5, 165, 0, 0, 1868, 1869, 3, 92, 46, 0, 1869, 1870, 5, 186, 0, 0, 1870, 1874, 1, 0, 0, 0, 1871, 1874, 3, 168, 84, 0, 1872, 1874, 3, 226, 113, 0, 1873, 1860, 1, 0, 0, 0, 1873, 1862, 1, 0, 0, 0, 1873, 1863, 1, 0, 0, 0, 1873, 1867, 1, 0, 0, 0, 1873, 1871, 1, 0, 0, 0, 1873, 1872, 1, 0, 0, 0, 1874, 1908, 1, 0, 0, 0, 1875, 1876, 10, 5, 0, 0, 1876, 1877, 5, 83, 0, 0, 1877, 1878, 5, 165, 0, 0, 1878, 1879, 3, 146, 73, 0, 1879, 1883, 3, 184, 92, 0, 1880, 1881, 5, 42, 0, 0, 1881, 1882, 5, 11, 0, 0, 1882, 1884, 3, 146, 73, 0, 1883, 1880, 1, 0, 0, 0, 1883, 1884, 1, 0, 0, 0, 1884, 1885, 1, 0, 0, 0, 1885, 1886, 5, 186, 0, 0, 1886, 1907, 1, 0, 0, 0, 1887, 1888, 10, 4, 0, 0, 1888, 1891, 5, 122, 0, 0, 1889, 1890, 5, 50, 0, 0, 1890, 1892, 5, 75, 0, 0, 1891, 1889, 1, 0, 0, 0, 1891, 1892, 1, 0, 0, 0, 1892, 1893, 1, 0, 0, 0, 1893, 1894, 5, 165, 0, 0, 1894, 1895, 3, 188, 94, 0, 1895, 1896, 5, 186, 0, 0, 1896, 1907, 1, 0, 0, 0, 1897, 1901, 10, 3, 0, 0, 1898, 1902, 3, 218, 109, 0, 1899, 1900, 5, 6, 0, 0, 1900, 1902, 3, 222, 111, 0, 1901, 1898, 1, 0, 0, 0, 1901, 1899, 1, 0, 0, 0, 1902, 1904, 1, 0, 0, 0, 1903, 1905, 3, 194, 97, 0, 1904, 1903, 1, 0, 0, 0, 1904, 1905, 1, 0, 0, 0, 1905, 1907, 1, 0, 0, 0, 1906, 1875, 1, 0, 0, 0, 1906, 1887, 1, 0, 0, 0, 1906, 1897, 1, 0, 0, 0, 1907, 1910, 1, 0, 0, 0, 1908, 1906, 1, 0, 0, 0, 1908, 1909, 1, 0, 0, 0, 1909, 183, 1, 0, 0, 0, 1910, 1908, 1, 0, 0, 0, 1911, 1913, 5, 38, 0, 0, 1912, 1914, 3, 186, 93, 0, 1913, 1912, 1, 0, 0, 0, 1914, 1915, 1, 0, 0, 0, 1915, 1913, 1, 0, 0, 0, 1915, 1916, 1, 0, 0, 0, 1916, 185, 1, 0, 0, 0, 1917, 1918, 3, 192, 96, 0, 1918, 1919, 5, 51, 0, 0, 1919, 1920, 5, 165, 0, 0, 1920, 1921, 3, 146, 73, 0, 1921, 1922, 5, 186, 0, 0, 1922, 187, 1, 0, 0, 0, 1923, 1928, 3, 190, 95, 0, 1924, 1925, 5, 151, 0, 0, 1925, 1927, 3, 190, 95, 0, 1926, 1924, 1, 0, 0, 0, 1927, 1930, 1, 0, 0, 0, 1928, 1926, 1, 0, 0, 0, 1928, 1929, 1, 0, 0, 0, 1929, 1932, 1, 0, 0, 0, 1930, 1928, 1, 0, 0, 0, 1931, 1933, 5, 151, 0, 0, 1932, 1931, 1, 0, 0, 0, 1932, 1933, 1, 0, 0, 0, 1933, 189, 1, 0, 0, 0, 1934, 1935, 3, 192, 96, 0, 1935, 1936, 5, 38, 0, 0, 1936, 1937, 3, 192, 96, 0, 1937, 1938, 5, 51, 0, 0, 1938, 1939, 5, 165, 0, 0, 1939, 1940, 3, 146, 73, 0, 1940, 1949, 5, 186, 0, 0, 1941, 1942, 3, 192, 96, 0, 1942, 1943, 5, 51, 0, 0, 1943, 1944, 5, 165, 0, 0, 1944, 1945, 3, 146, 73, 0, 1945, 1946, 5, 186, 0, 0, 1946, 1948, 1, 0, 0, 0, 1947, 1941, 1, 0, 0, 0, 1948, 1951, 1, 0, 0, 0, 1949, 1947, 1, 0, 0, 0, 1949, 1950, 1, 0, 0, 0, 1950, 191, 1, 0, 0, 0, 1951, 1949, 1, 0, 0, 0, 1952, 1953, 5, 165, 0, 0, 1953, 1954, 3, 146, 73, 0, 1954, 1955, 5, 186, 0, 0, 1955, 1958, 1, 0, 0, 0, 1956, 1958, 3, 154, 77, 0, 1957, 1952, 1, 0, 0, 0, 1957, 1956, 1, 0, 0, 0, 1958, 193, 1, 0, 0, 0, 1959, 1960, 5, 165, 0, 0, 1960, 1965, 3, 222, 111, 0, 1961, 1962, 5, 151, 0, 0, 1962, 1964, 3, 222, 111, 0, 1963, 1961, 1, 0, 0, 0, 1964, 1967, 1, 0, 0, 0, 1965, 1963, 1, 0, 0, 0, 1965, 1966, 1, 0, 0, 0, 1966, 1968, 1, 0, 0, 0, 1967, 1965, 1, 0, 0, 0, 1968, 1969, 5, 186, 0, 0, 1969, 195, 1, 0, 0, 0, 1970, 1971, 3, 222, 111, 0, 1971, 1973, 5, 165, 0, 0, 1972, 1974, 3, 200, 100, 0, 1973, 1972, 1, 0, 0, 0, 1973, 1974, 1, 0, 0, 0, 1974, 1975, 1, 0, 0, 0, 1975, 1976, 5, 186, 0, 0, 1976, 197, 1, 0, 0, 0, 1977, 1978, 3, 202, 101, 0, 1978, 1979, 5, 155, 0, 0, 1979, 1981, 1, 0, 0, 0, 1980, 1977, 1, 0, 0, 0, 1980, 1981, 1, 0, 0, 0, 1981, 1982, 1, 0, 0, 0, 1982, 1983, 3, 180, 90, 0, 1983, 199, 1, 0, 0, 0, 1984, 1989, 3, 154, 77, 0, 1985, 1986, 5, 151, 0, 0, 1986, 1988, 3, 154, 77, 0, 1987, 1985, 1, 0, 0, 0, 1988, 1991, 1, 0, 0, 0, 1989, 1987, 1, 0, 0, 0, 1989, 1990, 1, 0, 0, 0, 1990, 1993, 1, 0, 0, 0, 1991, 1989, 1, 0, 0, 0, 1992, 1994, 5, 151, 0, 0, 1993, 1992, 1, 0, 0, 0, 1993, 1994, 1, 0, 0, 0, 1994, 201, 1, 0, 0, 0, 1995, 1996, 3, 222, 111, 0, 1996, 203, 1, 0, 0, 0, 1997, 2006, 5, 136, 0, 0, 1998, 1999, 5, 155, 0, 0, 1999, 2006, 7, 14, 0, 0, 2000, 2001, 5, 139, 0, 0, 2001, 2003, 5, 155, 0, 0, 2002, 2004, 7, 14, 0, 0, 2003, 2002, 1, 0, 0, 0, 2003, 2004, 1, 0, 0, 0, 2004, 2006, 1, 0, 0, 0, 2005, 1997, 1, 0, 0, 0, 2005, 1998, 1, 0, 0, 0, 2005, 2000, 1, 0, 0, 0, 2006, 205, 1, 0, 0, 0, 2007, 2009, 7, 15, 0, 0, 2008, 2007, 1, 0, 0, 0, 2008, 2009, 1, 0, 0, 0, 2009, 2018, 1, 0, 0, 0, 2010, 2019, 3, 204, 102, 0, 2011, 2019, 5, 137, 0, 0, 2012, 2019, 5, 138, 0, 0, 2013, 2019, 5, 141, 0, 0, 2014, 2019, 5, 139, 0, 0, 2015, 2019, 5, 140, 0, 0, 2016, 2019, 5, 52, 0, 0, 2017, 2019, 5, 72, 0, 0, 2018, 2010, 1, 0, 0, 0, 2018, 2011, 1, 0, 0, 0, 2018, 2012, 1, 0, 0, 0, 2018, 2013, 1, 0, 0, 0, 2018, 2014, 1, 0, 0, 0, 2018, 2015, 1, 0, 0, 0, 2018, 2016, 1, 0, 0, 0, 2018, 2017, 1, 0, 0, 0, 2019, 207, 1, 0, 0, 0, 2020, 2024, 3, 206, 103, 0, 2021, 2024, 5, 143, 0, 0, 2022, 2024, 5, 74, 0, 0, 2023, 2020, 1, 0, 0, 0, 2023, 2021, 1, 0, 0, 0, 2023, 2022, 1, 0, 0, 0, 2024, 209, 1, 0, 0, 0, 2025, 2026, 7, 16, 0, 0, 2026, 211, 1, 0, 0, 0, 2027, 2028, 7, 17, 0, 0, 2028, 213, 1, 0, 0, 0, 2029, 2030, 7, 18, 0, 0, 2030, 215, 1, 0, 0, 0, 2031, 2032, 7, 19, 0, 0, 2032, 217, 1, 0, 0, 0, 2033, 2037, 5, 134, 0, 0, 2034, 2037, 5, 135, 0, 0, 2035, 2037, 3, 214, 107, 0, 2036, 2033, 1, 0, 0, 0, 2036, 2034, 1, 0, 0, 0, 2036, 2035, 1, 0, 0, 0, 2037, 219, 1, 0, 0, 0, 2038, 2042, 5, 134, 0, 0, 2039, 2042, 5, 135, 0, 0, 2040, 2042, 3, 216, 108, 0, 2041, 2038, 1, 0, 0, 0, 2041, 2039, 1, 0, 0, 0, 2041, 2040, 1, 0, 0, 0, 2042, 221, 1, 0, 0, 0, 2043, 2048, 5, 134, 0, 0, 2044, 2048, 5, 135, 0, 0, 2045, 2048, 3, 210, 105, 0, 2046, 2048, 3, 212, 106, 0, 2047, 2043, 1, 0, 0, 0, 2047, 2044, 1, 0, 0, 0, 2047, 2045, 1, 0, 0, 0, 2047, 2046, 1, 0, 0, 0, 2048, 223, 1, 0, 0, 0, 2049, 2050, 3, 228, 114, 0, 2050, 2051, 5, 157, 0, 0, 2051, 2052, 3, 206, 103, 0, 2052, 225, 1, 0, 0, 0, 2053, 2054, 5, 163, 0, 0, 2054, 2055, 3, 154, 77, 0, 2055, 2056, 5, 184, 0, 0, 2056, 227, 1, 0, 0, 0, 2057, 2060, 5, 143, 0, 0, 2058, 2060, 3, 230, 115, 0, 2059, 2057, 1, 0, 0, 0, 2059, 2058, 1, 0, 0, 0, 2060, 229, 1, 0, 0, 0, 2061, 2065, 5, 179, 0, 0, 2062, 2064, 3, 232, 116, 0, 2063, 2062, 1, 0, 0, 0, 2064, 2067, 1, 0, 0, 0, 2065, 2063, 1, 0, 0, 0, 2065, 2066, 1, 0, 0, 0, 2066, 2068, 1, 0, 0, 0, 2067, 2065, 1, 0, 0, 0, 2068, 2069, 5, 181, 0, 0, 2069, 231, 1, 0, 0, 0, 2070, 2071, 5, 197, 0, 0, 2071, 2072, 3, 154, 77, 0, 2072, 2073, 5, 184, 0, 0, 2073, 2076, 1, 0, 0, 0, 2074, 2076, 5, 196, 0, 0, 2075, 2070, 1, 0, 0, 0, 2075, 2074, 1, 0, 0, 0, 2076, 233, 1, 0, 0, 0, 2077, 2081, 5, 180, 0, 0, 2078, 2080, 3, 236, 118, 0, 2079, 2078, 1, 0, 0, 0, 2080, 2083, 1, 0, 0, 0, 2081, 2079, 1, 0, 0, 0, 2081, 2082, 1, 0, 0, 0, 2082, 2084, 1, 0, 0, 0, 2083, 2081, 1, 0, 0, 0, 2084, 2085, 5, 0, 0, 1, 2085, 235, 1, 0, 0, 0, 2086, 2087, 5, 199, 0, 0, 2087, 2088, 3, 154, 77, 0, 2088, 2089, 5, 184, 0, 0, 2089, 2092, 1, 0, 0, 0, 2090, 2092, 5, 198, 0, 0, 2091, 2086, 1, 0, 0, 0, 2091, 2090, 1, 0, 0, 0, 2092, 237, 1, 0, 0, 0, 261, 241, 248, 256, 263, 267, 280, 284, 287, 292, 299, 303, 312, 317, 326, 334, 341, 345, 351, 356, 364, 371, 377, 389, 392, 400, 414, 418, 423, 426, 441, 447, 452, 458, 464, 469, 475, 481, 486, 488, 496, 500, 503, 508, 512, 516, 521, 525, 532, 535, 539, 542, 546, 549, 552, 555, 558, 561, 564, 568, 572, 575, 578, 582, 585, 588, 591, 595, 598, 602, 610, 616, 637, 661, 668, 673, 687, 696, 701, 715, 719, 723, 728, 732, 737, 751, 760, 768, 771, 777, 785, 788, 793, 800, 810, 818, 824, 826, 830, 835, 842, 845, 849, 853, 856, 862, 864, 867, 871, 875, 878, 880, 882, 887, 898, 903, 907, 913, 918, 925, 930, 934, 938, 941, 947, 951, 955, 960, 966, 968, 975, 983, 986, 989, 1014, 1028, 1044, 1048, 1059, 1063, 1074, 1078, 1085, 1093, 1096, 1101, 1106, 1112, 1118, 1124, 1133, 1137, 1144, 1150, 1157, 1161, 1173, 1194, 1196, 1198, 1204, 1213, 1217, 1250, 1298, 1326, 1390, 1398, 1404, 1407, 1410, 1418, 1428, 1434, 1437, 1440, 1448, 1456, 1459, 1463, 1466, 1471, 1480, 1492, 1500, 1508, 1512, 1530, 1534, 1539, 1550, 1556, 1563, 1575, 1579, 1582, 1591, 1597, 1610, 1625, 1636, 1640, 1670, 1673, 1675, 1684, 1688, 1697, 1701, 1705, 1710, 1718, 1722, 1727, 1734, 1747, 1756, 1766, 1773, 1780, 1793, 1800, 1804, 1808, 1813, 1817, 1820, 1830, 1838, 1847, 1850, 1857, 1873, 1883, 1891, 1901, 1904, 1906, 1908, 1915, 1928, 1932, 1949, 1957, 1965, 1973, 1980, 1989, 1993, 2003, 2005, 2008, 2018, 2023, 2036, 2041, 2047, 2059, 2065, 2075, 2081, 2091]
\ No newline at end of file
diff --git a/common/hogql_parser/HogQLParserBaseVisitor.h b/common/hogql_parser/HogQLParserBaseVisitor.h
index 43dc23f657f2..9e1fdce6524a 100644
--- a/common/hogql_parser/HogQLParserBaseVisitor.h
+++ b/common/hogql_parser/HogQLParserBaseVisitor.h
@@ -403,31 +403,39 @@ public:
return visitChildren(ctx);
}
- virtual std::any visitColumnExprColumnsAll(HogQLParser::ColumnExprColumnsAllContext *ctx) override {
+ virtual std::any visitColumnExprTernaryOp(HogQLParser::ColumnExprTernaryOpContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprTernaryOp(HogQLParser::ColumnExprTernaryOpContext *ctx) override {
+ virtual std::any visitColumnExprAlias(HogQLParser::ColumnExprAliasContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprAlias(HogQLParser::ColumnExprAliasContext *ctx) override {
+ virtual std::any visitColumnExprAnd(HogQLParser::ColumnExprAndContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprNegate(HogQLParser::ColumnExprNegateContext *ctx) override {
+ virtual std::any visitColumnExprValuePassthrough(HogQLParser::ColumnExprValuePassthroughContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprLiteral(HogQLParser::ColumnExprLiteralContext *ctx) override {
+ virtual std::any visitColumnExprOr(HogQLParser::ColumnExprOrContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprArray(HogQLParser::ColumnExprArrayContext *ctx) override {
+ virtual std::any visitColumnExprColumnsAll(HogQLParser::ColumnExprColumnsAllContext *ctx) override {
return visitChildren(ctx);
}
- virtual std::any visitColumnExprOr(HogQLParser::ColumnExprOrContext *ctx) override {
+ virtual std::any visitColumnExprNegate(HogQLParser::ColumnExprNegateContext *ctx) override {
+ return visitChildren(ctx);
+ }
+
+ virtual std::any visitColumnExprLiteral(HogQLParser::ColumnExprLiteralContext *ctx) override {
+ return visitChildren(ctx);
+ }
+
+ virtual std::any visitColumnExprArray(HogQLParser::ColumnExprArrayContext *ctx) override {
return visitChildren(ctx);
}
@@ -495,10 +503,6 @@ public:
return visitChildren(ctx);
}
- virtual std::any visitColumnExprAnd(HogQLParser::ColumnExprAndContext *ctx) override {
- return visitChildren(ctx);
- }
-
virtual std::any visitColumnExprColumnsQualifiedExclude(HogQLParser::ColumnExprColumnsQualifiedExcludeContext *ctx) override {
return visitChildren(ctx);
}
diff --git a/common/hogql_parser/HogQLParserVisitor.h b/common/hogql_parser/HogQLParserVisitor.h
index 708c172a15cc..d8fd4c06f7e2 100644
--- a/common/hogql_parser/HogQLParserVisitor.h
+++ b/common/hogql_parser/HogQLParserVisitor.h
@@ -213,20 +213,24 @@ public:
virtual std::any visitColumnExprAliasImplicit(HogQLParser::ColumnExprAliasImplicitContext *context) = 0;
- virtual std::any visitColumnExprColumnsAll(HogQLParser::ColumnExprColumnsAllContext *context) = 0;
-
virtual std::any visitColumnExprTernaryOp(HogQLParser::ColumnExprTernaryOpContext *context) = 0;
virtual std::any visitColumnExprAlias(HogQLParser::ColumnExprAliasContext *context) = 0;
+ virtual std::any visitColumnExprAnd(HogQLParser::ColumnExprAndContext *context) = 0;
+
+ virtual std::any visitColumnExprValuePassthrough(HogQLParser::ColumnExprValuePassthroughContext *context) = 0;
+
+ virtual std::any visitColumnExprOr(HogQLParser::ColumnExprOrContext *context) = 0;
+
+ virtual std::any visitColumnExprColumnsAll(HogQLParser::ColumnExprColumnsAllContext *context) = 0;
+
virtual std::any visitColumnExprNegate(HogQLParser::ColumnExprNegateContext *context) = 0;
virtual std::any visitColumnExprLiteral(HogQLParser::ColumnExprLiteralContext *context) = 0;
virtual std::any visitColumnExprArray(HogQLParser::ColumnExprArrayContext *context) = 0;
- virtual std::any visitColumnExprOr(HogQLParser::ColumnExprOrContext *context) = 0;
-
virtual std::any visitColumnExprPrecedence1(HogQLParser::ColumnExprPrecedence1Context *context) = 0;
virtual std::any visitColumnExprPrecedence2(HogQLParser::ColumnExprPrecedence2Context *context) = 0;
@@ -259,8 +263,6 @@ public:
virtual std::any visitColumnExprTimestamp(HogQLParser::ColumnExprTimestampContext *context) = 0;
- virtual std::any visitColumnExprAnd(HogQLParser::ColumnExprAndContext *context) = 0;
-
virtual std::any visitColumnExprColumnsQualifiedExclude(HogQLParser::ColumnExprColumnsQualifiedExcludeContext *context) = 0;
virtual std::any visitColumnExprNot(HogQLParser::ColumnExprNotContext *context) = 0;
diff --git a/common/hogql_parser/package.json b/common/hogql_parser/package.json
index d1979b76a317..942697acab79 100644
--- a/common/hogql_parser/package.json
+++ b/common/hogql_parser/package.json
@@ -1,6 +1,6 @@
{
"name": "@posthog/hogql-parser",
- "version": "1.3.75",
+ "version": "1.3.76",
"description": "WebAssembly HogQL Parser - Parse HogQL queries in JavaScript/TypeScript",
"keywords": [
"antlr4",
diff --git a/common/hogql_parser/parser_json.cpp b/common/hogql_parser/parser_json.cpp
index 80286c0cc8a9..82aaf602111b 100644
--- a/common/hogql_parser/parser_json.cpp
+++ b/common/hogql_parser/parser_json.cpp
@@ -382,8 +382,14 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
}
// `columnExpr` matches `name := value` as a NamedArgument; a directly named-arg-shaped
// statement is a variable assignment. Checked on the parse tree, so parens are not
- // unwrapped: `(x := 1)` stays an expression statement.
- auto* named_arg = dynamic_cast<HogQLParser::ColumnExprNamedArgContext*>(ctx->expression(0)->columnExpr());
+ // unwrapped: `(x := 1)` stays an expression statement. The NamedArgument lives in the
+ // `columnExprValue` tier, reached through the outer `columnExpr`'s passthrough alt, so
+ // unwrap that first.
+ auto* passthrough =
+ dynamic_cast<HogQLParser::ColumnExprValuePassthroughContext*>(ctx->expression(0)->columnExpr());
+ auto* named_arg = passthrough ? dynamic_cast<HogQLParser::ColumnExprNamedArgContext*>(
+ passthrough->columnExprValue())
+ : nullptr;
if (named_arg) {
json["node"] = "VariableAssignment";
if (!is_internal) addPositionInfo(json, ctx);
@@ -1609,7 +1615,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
left_json["value"] = 0;
json["left"] = std::move(left_json);
- json["right"] = visitAsJSON(ctx->columnExpr());
+ json["right"] = visitAsJSON(ctx->columnExprValue());
json["op"] = "-";
return json;
}
@@ -1667,7 +1673,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ArithmeticOperation";
if (!is_internal) addPositionInfo(json, ctx);
- json["left"] = visitAsJSON(ctx->columnExpr(0));
+ json["left"] = visitAsJSON(ctx->columnExprValue(0));
json["right"] = visitAsJSON(ctx->right);
json["op"] = op;
return json;
@@ -1874,13 +1880,13 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
return json;
}
- VISIT(ColumnExprIgnoreNulls) { return visitAsJSON(ctx->columnExpr()); }
+ VISIT(ColumnExprIgnoreNulls) { return visitAsJSON(ctx->columnExprValue()); }
VISIT(ColumnExprIsNull) {
Json json = Json::object();
json["node"] = "CompareOperation";
if (!is_internal) addPositionInfo(json, ctx);
- json["left"] = visitAsJSON(ctx->columnExpr());
+ json["left"] = visitAsJSON(ctx->columnExprValue());
// Create null constant for right side
Json null_constant = Json::object();
null_constant["node"] = "Constant";
@@ -1895,8 +1901,8 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "IsDistinctFrom";
if (!is_internal) addPositionInfo(json, ctx);
- json["left"] = visitAsJSON(ctx->columnExpr(0));
- json["right"] = visitAsJSON(ctx->columnExpr(1));
+ json["left"] = visitAsJSON(ctx->columnExprValue(0));
+ json["right"] = visitAsJSON(ctx->columnExprValue(1));
json["negated"] = ctx->NOT() != nullptr;
return json;
}
@@ -1906,8 +1912,8 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "IsDistinctFrom";
if (!is_internal) addPositionInfo(json, ctx);
- json["left"] = visitAsJSON(ctx->columnExpr(0));
- json["right"] = visitAsJSON(ctx->columnExpr(1));
+ json["left"] = visitAsJSON(ctx->columnExprValue(0));
+ json["right"] = visitAsJSON(ctx->columnExprValue(1));
json["negated"] = true;
return json;
}
@@ -1946,8 +1952,8 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ArrayAccess";
if (!is_internal) addPositionInfo(json, ctx);
- json["array"] = visitAsJSON(ctx->columnExpr(0));
- json["property"] = visitAsJSON(ctx->columnExpr(1));
+ json["array"] = visitAsJSON(ctx->columnExprValue());
+ json["property"] = visitAsJSON(ctx->columnExpr());
return json;
}
@@ -1955,20 +1961,20 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ArraySlice";
if (!is_internal) addPositionInfo(json, ctx);
+ json["array"] = visitAsJSON(ctx->columnExprValue());
auto exprs = ctx->columnExpr();
- json["array"] = visitAsJSON(exprs[0]);
Json start_json = Json();
Json end_json = Json();
- if (exprs.size() > 1) {
+ if (exprs.size() > 0) {
auto colon_index = ctx->COLON()->getSymbol()->getTokenIndex();
- if (exprs[1]->getStart()->getTokenIndex() < colon_index) {
- start_json = visitAsJSON(exprs[1]);
- if (exprs.size() > 2) {
- end_json = visitAsJSON(exprs[2]);
+ if (exprs[0]->getStart()->getTokenIndex() < colon_index) {
+ start_json = visitAsJSON(exprs[0]);
+ if (exprs.size() > 1) {
+ end_json = visitAsJSON(exprs[1]);
}
} else {
- end_json = visitAsJSON(exprs[1]);
+ end_json = visitAsJSON(exprs[0]);
}
}
@@ -1985,8 +1991,8 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ArrayAccess";
if (!is_internal) addPositionInfo(json, ctx);
- json["array"] = visitAsJSON(ctx->columnExpr(0));
- json["property"] = visitAsJSON(ctx->columnExpr(1));
+ json["array"] = visitAsJSON(ctx->columnExprValue());
+ json["property"] = visitAsJSON(ctx->columnExpr());
json["nullish"] = true;
return json;
}
@@ -2001,7 +2007,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ArrayAccess";
if (!is_internal) addPositionInfo(json, ctx);
- json["array"] = visitAsJSON(ctx->columnExpr());
+ json["array"] = visitAsJSON(ctx->columnExprValue());
json["property"] = std::move(property);
return json;
}
@@ -2014,7 +2020,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
property_json["node"] = "Constant";
property_json["value"] = identifier;
- Json object_json = visitAsJSON(ctx->columnExpr());
+ Json object_json = visitAsJSON(ctx->columnExprValue());
Json json = Json::object();
json["node"] = "ArrayAccess";
@@ -2029,7 +2035,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "TypeCast";
if (!is_internal) addPositionInfo(json, ctx);
- json["expr"] = visitAsJSON(ctx->columnExpr());
+ json["expr"] = visitAsJSON(ctx->columnExprValue());
json["type_name"] = visitAsJSON(ctx->columnTypeCastExpr());
return json;
}
@@ -2049,18 +2055,44 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
}
VISIT(ColumnExprBetween) {
+ // A lambda or named argument makes no sense as a BETWEEN bound (bounds
+ // must be comparable values), yet as the LOW bound the grammar admits
+ // them with an ambiguous body extent: the construct's trailing
+ // `columnExpr` competes with the bound separator `AND`, and ALL(*)
+ // resolves the split adaptively — a resolution a deterministic parser
+ // cannot reproduce. Reject the shape outright (through NOT / unary
+ // minus wrappers); parenthesizing the bound still works.
+ HogQLParser::ColumnExprValueContext* low_ctx = ctx->columnExprValue(1);
+ while (true) {
+ if (auto* not_ctx = dynamic_cast<HogQLParser::ColumnExprNotContext*>(low_ctx)) {
+ low_ctx = not_ctx->columnExprValue();
+ } else if (auto* neg_ctx = dynamic_cast<HogQLParser::ColumnExprNegateContext*>(low_ctx)) {
+ low_ctx = neg_ctx->columnExprValue();
+ } else {
+ break;
+ }
+ }
+ if (dynamic_cast<HogQLParser::ColumnExprLambdaContext*>(low_ctx) ||
+ dynamic_cast<HogQLParser::ColumnExprColonLambdaContext*>(low_ctx) ||
+ dynamic_cast<HogQLParser::ColumnExprNamedArgContext*>(low_ctx)) {
+ throw SyntaxError(
+ "A lambda or named argument is not a valid BETWEEN bound", low_ctx->getStart()->getStartIndex(),
+ low_ctx->getStop()->getStopIndex() + 1);
+ }
Json json = Json::object();
json["node"] = "BetweenExpr";
if (!is_internal) addPositionInfo(json, ctx);
- json["expr"] = visitAsJSON(ctx->columnExpr(0));
- json["low"] = visitAsJSON(ctx->columnExpr(1));
- json["high"] = visitAsJSON(ctx->columnExpr(2));
+ json["expr"] = visitAsJSON(ctx->columnExprValue(0));
+ json["low"] = visitAsJSON(ctx->columnExprValue(1));
+ json["high"] = visitAsJSON(ctx->columnExprValue(2));
json["negated"] = ctx->NOT() != nullptr;
return json;
}
VISIT(ColumnExprParens) { return visit(ctx->columnExpr()); }
+ VISIT(ColumnExprValuePassthrough) { return visit(ctx->columnExprValue()); }
+
VISIT_UNSUPPORTED(ColumnExprTimestamp)
VISIT(ColumnExprAnd) {
@@ -2118,7 +2150,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
VISIT(ColumnExprTupleAccess) {
string index_str = ctx->DECIMAL_LITERAL()->getText();
int64_t index_value = stoll(index_str);
- Json tuple_json = visitAsJSON(ctx->columnExpr());
+ Json tuple_json = visitAsJSON(ctx->columnExprValue());
Json json = Json::object();
json["node"] = "TupleAccess";
@@ -2131,7 +2163,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
VISIT(ColumnExprNullTupleAccess) {
string index_str = ctx->DECIMAL_LITERAL()->getText();
int64_t index_value = stoll(index_str);
- Json tuple_json = visitAsJSON(ctx->columnExpr());
+ Json tuple_json = visitAsJSON(ctx->columnExprValue());
Json json = Json::object();
json["node"] = "TupleAccess";
@@ -2205,7 +2237,7 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
VISIT_UNSUPPORTED(ColumnExprDate)
VISIT(ColumnExprNot) {
- Json expr_json = visitAsJSON(ctx->columnExpr());
+ Json expr_json = visitAsJSON(ctx->columnExprValue());
Json json = Json::object();
json["node"] = "Not";
if (!is_internal) addPositionInfo(json, ctx);
@@ -3126,8 +3158,8 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
VISIT_UNSUPPORTED(EnumValue)
VISIT(ColumnExprNullish) {
- Json value_json = visitAsJSON(ctx->columnExpr(0));
- Json fallback_json = visitAsJSON(ctx->columnExpr(1));
+ Json value_json = visitAsJSON(ctx->columnExprValue(0));
+ Json fallback_json = visitAsJSON(ctx->columnExprValue(1));
Json json = Json::object();
json["node"] = "Call";
@@ -3144,14 +3176,14 @@ class HogQLParseTreeJSONConverter : public HogQLParserBaseVisitor {
Json json = Json::object();
json["node"] = "ExprCall";
if (!is_internal) addPositionInfo(json, ctx);
- json["expr"] = visitAsJSON(ctx->columnExpr());
+ json["expr"] = visitAsJSON(ctx->columnExprValue());
json["args"] = visitAsJSONOrEmptyArray(ctx->columnExprList());
return json;
}
VISIT(ColumnExprCallSelect) {
- // 1) Parse the "function expression" from columnExpr().
- Json expr_json = visitAsJSON(ctx->columnExpr());
+ // 1) Parse the "function expression" from columnExprValue().
+ Json expr_json = visitAsJSON(ctx->columnExprValue());
// 2) Check if `expr` is a Field node with a chain of length == 1.
// If so, interpret that chain[0] as the function name, and the SELECT as the function argument.
diff --git a/common/hogql_parser/setup.py b/common/hogql_parser/setup.py
index 0f4719bc9949..0c87eee2b90b 100644
--- a/common/hogql_parser/setup.py
+++ b/common/hogql_parser/setup.py
@@ -36,7 +36,7 @@ module = Extension(
setup(
name="hogql_parser",
- version="1.3.75",
+ version="1.3.76",
url="https://github.com/PostHog/posthog/tree/master/common/hogql_parser",
description="HogQL parser for internal PostHog use",
author="PostHog Inc.",
diff --git a/posthog/hogql/grammar/HogQLParser.g4 b/posthog/hogql/grammar/HogQLParser.g4
index 37c9fda9bf35..6fe244c0a1f3 100644
--- a/posthog/hogql/grammar/HogQLParser.g4
+++ b/posthog/hogql/grammar/HogQLParser.g4
@@ -204,7 +204,27 @@ selectColumnExpr
| columnExpr # ColumnExprSelectValue
| columnExpr implicitAlias # ColumnExprAliasImplicit
;
+// Two precedence layers. `columnExpr` is the outer boolean/ternary/alias tier (loosest
+// binding). `columnExprValue` holds everything tighter — arithmetic, comparisons, NOT,
+// BETWEEN, and the primary/leaf productions. BETWEEN lives in the value tier at the comparison
+// level, so its tested expression and both bounds bind tighter than AND/OR/NOT (matching
+// ClickHouse and SQL); this is what fixes `a BETWEEN low AND high AND rest` grouping as
+// `(a BETWEEN low AND high) AND rest` rather than letting the bounds swallow the AND chain.
+// Splitting into two rules is the only way to express this in ANTLR4: the interior operand of
+// a left-recursive alternative always parses at precedence 0, so a flat rule cannot stop the
+// bounds from consuming AND (the reason for ilezhankin's original TODO). NOT stays in
+// `columnExprValue` (looser than every value operator, tighter than AND/OR) so it keeps sitting
+// *after* `ColumnExprFunction` in the same rule — ANTLR then still prefers the function form for
+// `not(args)` (a `not` function call) over the `NOT (args)` operator, matching the old grammar.
columnExpr
+ : columnExpr AND columnExpr # ColumnExprAnd
+ | columnExpr OR columnExpr # ColumnExprOr
+ | <assoc=right> columnExpr QUERY columnExpr COLON columnExpr # ColumnExprTernaryOp
+ | columnExpr AS (identifier | STRING_LITERAL) # ColumnExprAlias
+ | columnExprValue # ColumnExprValuePassthrough
+ ;
+
+columnExprValue
: CASE caseExpr=columnExpr? (WHEN whenExpr=columnExpr THEN thenExpr=columnExpr)+ (ELSE elseExpr=columnExpr)? END # ColumnExprCase
| CAST LPAREN columnExpr AS columnTypeExpr RPAREN # ColumnExprCast
| TRY_CAST LPAREN columnExpr AS columnTypeExpr RPAREN # ColumnExprTryCast
@@ -235,31 +255,31 @@ columnExpr
| identifier (LPAREN columnExprs=columnExprList? RPAREN) (LPAREN DISTINCT? columnArgList=columnExprList? RPAREN)? (FILTER LPAREN WHERE filterExpr=columnExpr RPAREN)? OVER LPAREN windowExpr RPAREN # ColumnExprWinFunction
| identifier (LPAREN columnExprs=columnExprList? RPAREN) (LPAREN DISTINCT? columnArgList=columnExprList? RPAREN)? (FILTER LPAREN WHERE filterExpr=columnExpr RPAREN)? OVER identifier # ColumnExprWinFunctionTarget
| identifier (LPAREN columnExprs=columnExprList? RPAREN)? LPAREN DISTINCT? columnArgList=columnExprList? (ORDER BY orderExprList)? RPAREN (FILTER LPAREN WHERE filterExpr=columnExpr RPAREN)? # ColumnExprFunction
- | columnExpr LPAREN selectSetStmt RPAREN # ColumnExprCallSelect
- | columnExpr LPAREN columnExprList? RPAREN # ColumnExprCall
+ | columnExprValue LPAREN selectSetStmt RPAREN # ColumnExprCallSelect
+ | columnExprValue LPAREN columnExprList? RPAREN # ColumnExprCall
| hogqlxTagElement # ColumnExprTagElement
| templateString # ColumnExprTemplateString
| literal # ColumnExprLiteral
// FIXME(ilezhankin): this part looks very ugly, maybe there is another way to express it
- | columnExpr LBRACKET columnExpr RBRACKET # ColumnExprArrayAccess
- | columnExpr LBRACKET columnExpr? COLON columnExpr? RBRACKET # ColumnExprArraySlice
- | columnExpr DOT DECIMAL_LITERAL # ColumnExprTupleAccess
- | columnExpr DOT identifier # ColumnExprPropertyAccess
- | columnExpr NULL_PROPERTY LBRACKET columnExpr RBRACKET # ColumnExprNullArrayAccess
- | columnExpr NULL_PROPERTY DECIMAL_LITERAL # ColumnExprNullTupleAccess
- | columnExpr NULL_PROPERTY identifier # ColumnExprNullPropertyAccess
- | columnExpr DOUBLECOLON columnTypeCastExpr # ColumnExprTypeCast
- | DASH columnExpr # ColumnExprNegate
- | left=columnExpr ( operator=ASTERISK // *
+ | columnExprValue LBRACKET columnExpr RBRACKET # ColumnExprArrayAccess
+ | columnExprValue LBRACKET columnExpr? COLON columnExpr? RBRACKET # ColumnExprArraySlice
+ | columnExprValue DOT DECIMAL_LITERAL # ColumnExprTupleAccess
+ | columnExprValue DOT identifier # ColumnExprPropertyAccess
+ | columnExprValue NULL_PROPERTY LBRACKET columnExpr RBRACKET # ColumnExprNullArrayAccess
+ | columnExprValue NULL_PROPERTY DECIMAL_LITERAL # ColumnExprNullTupleAccess
+ | columnExprValue NULL_PROPERTY identifier # ColumnExprNullPropertyAccess
+ | columnExprValue DOUBLECOLON columnTypeCastExpr # ColumnExprTypeCast
+ | DASH columnExprValue # ColumnExprNegate
+ | left=columnExprValue ( operator=ASTERISK // *
| operator=SLASH // /
| operator=PERCENT // %
- ) right=columnExpr # ColumnExprPrecedence1
- | left=columnExpr ( operator=PLUS // +
+ ) right=columnExprValue # ColumnExprPrecedence1
+ | left=columnExprValue ( operator=PLUS // +
| operator=DASH // -
| operator=CONCAT // ||
- ) right=columnExpr # ColumnExprPrecedence2
- | left=columnExpr ( operator=EQ_DOUBLE // =
+ ) right=columnExprValue # ColumnExprPrecedence2
+ | left=columnExprValue ( operator=EQ_DOUBLE // =
| operator=EQ_SINGLE // ==
| operator=NOT_EQ // !=
| operator=LT_EQ // <=
@@ -274,19 +294,14 @@ columnExpr
| operator=IREGEX_SINGLE // ~*
| operator=IREGEX_DOUBLE // =~*
| operator=NOT_IREGEX // !~*
- ) right=columnExpr # ColumnExprPrecedence3
- | columnExpr IGNORE NULLS # ColumnExprIgnoreNulls
- | columnExpr IS NOT? NULL_SQL # ColumnExprIsNull
- | columnExpr IS NOT? DISTINCT FROM columnExpr # ColumnExprIsDistinctFrom
- | columnExpr NULL_SAFE_EQ columnExpr # ColumnExprNullSafeEq // MySQL `a <=> b` ≡ `a IS NOT DISTINCT FROM b`
- | columnExpr NULLISH columnExpr # ColumnExprNullish
- | NOT columnExpr # ColumnExprNot
- | columnExpr AND columnExpr # ColumnExprAnd
- | columnExpr OR columnExpr # ColumnExprOr
- // TODO(ilezhankin): `BETWEEN a AND b AND c` is parsed in a wrong way: `BETWEEN (a AND b) AND c`
- | columnExpr NOT? BETWEEN columnExpr AND columnExpr # ColumnExprBetween
- | <assoc=right> columnExpr QUERY columnExpr COLON columnExpr # ColumnExprTernaryOp
- | columnExpr AS (identifier | STRING_LITERAL) # ColumnExprAlias
+ ) right=columnExprValue # ColumnExprPrecedence3
+ | columnExprValue IGNORE NULLS # ColumnExprIgnoreNulls
+ | columnExprValue IS NOT? NULL_SQL # ColumnExprIsNull
+ | columnExprValue IS NOT? DISTINCT FROM columnExprValue # ColumnExprIsDistinctFrom
+ | columnExprValue NULL_SAFE_EQ columnExprValue # ColumnExprNullSafeEq // MySQL `a <=> b` ≡ `a IS NOT DISTINCT FROM b`
+ | columnExprValue NULLISH columnExprValue # ColumnExprNullish
+ | columnExprValue NOT? BETWEEN columnExprValue AND columnExprValue # ColumnExprBetween
+ | NOT columnExprValue # ColumnExprNot
| (tableIdentifier DOT)? ASTERISK (EXCLUDE LPAREN identifierList RPAREN)? # ColumnExprAsterisk // single-column only
| LAMBDA identifier (COMMA identifier)* COMMA? COLON columnExpr # ColumnExprColonLambda
| LPAREN selectSetStmt RPAREN # ColumnExprSubquery // single-column only
diff --git a/posthog/hogql/printer/base.py b/posthog/hogql/printer/base.py
index 0daf85d4595a..e390179160bd 100644
--- a/posthog/hogql/printer/base.py
+++ b/posthog/hogql/printer/base.py
@@ -803,7 +803,16 @@ class BasePrinter(Visitor[str]):
def visit_array_access(self, node: ast.ArrayAccess):
symbol = self._array_access_prefix(bool(node.nullish))
- return f"{self.visit(node.array)}{symbol}[{self.visit(node.property)}]"
+ array = self.visit(node.array)
+ # `[...]` binds tighter than any infix-printed form, so a loose operand
+ # must be parenthesized or the printed text re-parses with the access on
+ # the operand's last token (`(1 AS x)[1]` would print as `1 AS x[1]`,
+ # which doesn't parse back).
+ if isinstance(node.array, ast.BetweenExpr | ast.IsDistinctFrom) or (
+ isinstance(node.array, ast.Alias) and not node.array.hidden
+ ):
+ array = f"({array})"
+ return f"{array}{symbol}[{self.visit(node.property)}]"
def _tuple_access_separator(self, nullish: bool) -> str:
"""Separator for tuple-access expressions. HogQL overrides to emit nullish ``?.`` when requested."""
diff --git a/posthog/hogql/printer/test/test_printer.py b/posthog/hogql/printer/test/test_printer.py
index ceb0c4ee0e7a..54f2704032d6 100644
--- a/posthog/hogql/printer/test/test_printer.py
+++ b/posthog/hogql/printer/test/test_printer.py
@@ -54,6 +54,7 @@ from posthog.hogql.parser import parse_expr, parse_select
from posthog.hogql.printer import prepare_and_print_ast, prepare_ast_for_printing, print_prepared_ast, to_printed_hogql
from posthog.hogql.property import property_to_expr
from posthog.hogql.query import execute_hogql_query
+from posthog.hogql.visitor import clear_locations
from posthog.clickhouse.client.execute import sync_execute
from posthog.models import PropertyDefinition
@@ -6013,6 +6014,26 @@ class TestPostgresPrinter(BaseTest):
reprinted = parsed.to_hogql()
self.assertEqual(printed, reprinted)
+ @parameterized.expand(
+ [
+ ("array_access_over_alias", "(1 as x)[1]"),
+ ("nullish_array_access_over_alias", "(1 as x)?.[1]"),
+ ("property_access_over_alias", "(1 as x).a"),
+ ("array_access_over_between", "(1 between 2 and 3)[1]"),
+ ("array_access_over_is_distinct_from", "(1 is distinct from 2)[1]"),
+ ]
+ )
+ def test_array_access_over_loose_operand_roundtrips(self, _name: str, source: str):
+ """Regression: `[...]` binds tighter than the infix-printed forms (alias,
+ BETWEEN, IS DISTINCT FROM), so the printer must parenthesize such an array
+ operand — `(1 as x)[1]` used to print as `1 AS x[1]`, which does not parse
+ back, and `(1 between 2 and 3)[1]` silently regrouped on reparse."""
+ node = parse_expr(source)
+ printed = node.to_hogql()
+ parsed = parse_expr(printed)
+ self.assertEqual(clear_locations(parsed), clear_locations(node), f"AST changed after roundtrip: {printed!r}")
+ self.assertEqual(parsed.to_hogql(), printed)
+
def test_limit_percent_with_subquery(self):
printed = self._select("SELECT 1 FROM events LIMIT (SELECT avg(team_id) FROM events) %")
self.assertIn("LIMIT (SELECT avg(events.team_id) FROM events) %", printed)
diff --git a/posthog/hogql/scripts/parser_bench.py b/posthog/hogql/scripts/parser_bench.py
index fb6cb0df47a2..49760325e1ed 100644
--- a/posthog/hogql/scripts/parser_bench.py
+++ b/posthog/hogql/scripts/parser_bench.py
@@ -94,6 +94,20 @@ def _nested_replace(depth: int) -> str:
return inner
+def _between_trailing_chain(n: int) -> str:
+ """`x BETWEEN lo1 AND hi1 BETWEEN lo2 AND hi2 …` — `n` links folded
+ left-associatively through the Pratt loop (each high bound stops at the
+ next BETWEEN). The `between_chain_20` bench query (see EXPR_QUERIES)."""
+ return "x0 " + " ".join(f"BETWEEN lo{i} AND hi{i}" for i in range(1, n + 1))
+
+
+def _between_and_chain(n: int) -> str:
+ """`x1 BETWEEN a1 AND b1 AND x2 BETWEEN a2 AND b2 AND …` — `n` BETWEENs
+ joined by AND, the production `WHERE`-clause shape the two-tier grammar
+ fixed. The `between_and_chain_20` bench query (see EXPR_QUERIES)."""
+ return " AND ".join(f"x{i} BETWEEN a{i} AND b{i}" for i in range(1, n + 1))
+
+
EXPR_QUERIES: dict[str, str] = {
"int_literal": "1",
"arith": "1 + 2 * 3",
@@ -115,34 +129,27 @@ EXPR_QUERIES: dict[str, str] = {
"tuple_access": "t.1",
"typical_where": "event = '$pageview' AND timestamp > now() AND properties.foo = 'bar'",
"and_chain_10": "a = 1 AND b = 2 AND c = 3 AND d = 4 AND e = 5 AND f = 6 AND g = 7 AND h = 8 AND i = 9 AND j = 10",
- # Worst-case backtracking probe — twelve BETWEENs in an array
- # literal, with each body chosen to absorb the separator `AND`
- # into a non-AND-rooted subtree (lambda body, AS-alias, named-arg,
- # ternary else). For a hand-rolled parser that resolves BETWEEN
- # by speculating across the body's `low AND high` split this
- # forces the slowest recovery path on every BETWEEN, and the last
- # four rows nest an inner BETWEEN inside the outer's body via
- # parens — so the inner is re-parsed once per outer speculation
- # alternative, doubling speculation work.
- #
- # For ANTLR ALL(*) (cpp) this is just twelve linear-lookahead
- # disambiguations — the ratio against `between` (a single trivial
- # BETWEEN) is the speculation-overhead signal: if `nasty_backtrack`
- # is significantly slower per BETWEEN than `between` on the
- # candidate, speculation cost is showing up.
+ # Deep/wide BETWEEN probe — twelve BETWEENs in an array literal, the
+ # last four nesting an inner BETWEEN inside the outer's bounds via
+ # parens. BETWEEN binds at the comparison tier, so its bounds are
+ # value-tier and cannot swallow the array's separator commas or a
+ # trailing AND chain — there is no speculative low/high split to
+ # recover from. This row guards against a parse-time blow-up on a
+ # dense array of nested BETWEENs (the ratio against `between`, a
+ # single trivial BETWEEN, should stay roughly linear in the count).
"nasty_backtrack": """[
- x1 BETWEEN lambda a : a AND b1,
- x2 BETWEEN col AS y2 AND c2,
- x3 BETWEEN p := 1 AND b3,
- x4 BETWEEN c1 ? c2 : c3 AND b4,
- x5 BETWEEN lambda e : e AND b5,
- x6 BETWEEN q := 2 AND b6,
- x7 BETWEEN d AS y7 AND b7,
- x8 BETWEEN f1 ? f2 : f3 AND b8,
- x9 BETWEEN lambda g : (h BETWEEN col AS i AND j) AND b9,
- x10 BETWEEN lambda k : (l BETWEEN p2 := 3 AND m) AND b10,
- x11 BETWEEN col AS y11 AND (n BETWEEN f4 ? f5 : f6 AND o),
- x12 BETWEEN q2 := 4 AND (r BETWEEN lambda s : s AND t)
+ x1 BETWEEN a1 + 1 AND b1,
+ x2 BETWEEN f(c2) AND c2 * 2,
+ x3 BETWEEN p3 AND b3 AND c3,
+ x4 BETWEEN c1 AND c3,
+ x5 BETWEEN e5 % 3 AND b5,
+ x6 BETWEEN q6 AND b6,
+ x7 BETWEEN d7 AND b7,
+ x8 BETWEEN f1 AND f3,
+ x9 BETWEEN (h BETWEEN i9 AND j9) AND b9,
+ x10 BETWEEN (l BETWEEN m10 AND n10) AND b10,
+ x11 BETWEEN y11 AND (n BETWEEN o11 AND p11),
+ x12 BETWEEN q12 AND (r BETWEEN s12 AND t12)
]""",
"mixed_and_or": """
(event = '$pageview' OR event = '$autocapture' OR event = '$identify')
@@ -151,6 +158,13 @@ EXPR_QUERIES: dict[str, str] = {
AND (properties.url LIKE '%admin%' OR properties.url LIKE '%dashboard%')
AND NOT (properties.os = 'Linux' AND properties.device = 'Desktop')
""",
+ # Deep BETWEEN chains — the shapes that must stay linear in parse time.
+ # `between_chain_20` folds trailing BETWEENs left-associatively;
+ # `between_and_chain_20` is twenty BETWEENs joined by AND (the production
+ # WHERE-clause shape). Per-call µs on either row growing faster than the
+ # link count means a super-linear regression on the BETWEEN path.
+ "between_chain_20": _between_trailing_chain(20),
+ "between_and_chain_20": _between_and_chain(20),
# Deeply-nested `columns(* replace(… as b))`. Each REPLACE item
# parse runs a forward scan (`find_replace_item_as_pos`, and the
# sibling `find_cast_separator_pos`) to locate the item's
diff --git a/posthog/hogql/test/__snapshots__/parser_ast.ambr b/posthog/hogql/test/__snapshots__/parser_ast.ambr
index e772b335ab05..a36d3d79f2cb 100644
--- a/posthog/hogql/test/__snapshots__/parser_ast.ambr
+++ b/posthog/hogql/test/__snapshots__/parser_ast.ambr
@@ -1055,242 +1055,704 @@
}
'''
# ---
-# name: test_between_not_lambda_lower_bound[a_between_not_lambda_x_b_and_c-6ea2de79]
+# name: test_between_alias_ternary_and_paren_grouping[1_between_2_and_3_and_4-989c3a6d]
'''
{
- end: 31
- expr: {
- chain: [
- "a"
- ]
- end: 1
- from_asterisk: False
- start: 0
- }
- high: {
- chain: [
- "c"
- ]
- end: 31
- from_asterisk: False
- start: 30
- }
- low: {
- end: 25
- expr: {
- args: [
- "x"
- ]
- end: 25
+ end: 25
+ exprs: [
+ {
+ end: 19
expr: {
- chain: [
- "b"
- ]
- end: 25
- from_asterisk: False
- start: 24
+ end: 1
+ start: 0
+ value: 1
}
- start: 14
+ high: {
+ end: 18
+ start: 17
+ value: 3
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ negated: False
+ start: 0
+ },
+ {
+ end: 25
+ start: 24
+ value: 4
}
- start: 10
- }
- negated: False
+ ]
start: 0
}
'''
# ---
-# name: test_between_not_lambda_lower_bound[a_between_not_x_y_and_z-213ef5f4]
+# name: test_between_alias_ternary_and_paren_grouping[1_between_2_and_3_as_l-a7fa6993]
'''
{
- end: 26
+ alias: "l"
+ end: 22
expr: {
- chain: [
- "a"
- ]
- end: 1
- from_asterisk: False
- start: 0
- }
- high: {
- chain: [
- "z"
- ]
- end: 26
- from_asterisk: False
- start: 25
- }
- low: {
- end: 20
+ end: 17
expr: {
- args: [
- "x"
- ]
- end: 20
- expr: {
- chain: [
- "y"
- ]
- end: 20
- from_asterisk: False
- start: 19
- }
- start: 14
+ end: 1
+ start: 0
+ value: 1
}
- start: 10
+ high: {
+ end: 17
+ start: 16
+ value: 3
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ negated: False
+ start: 0
}
- negated: False
+ from_asterisk: False
+ hidden: False
start: 0
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[TRUE_x-755d392d]
+# name: test_between_alias_ternary_and_paren_grouping[1_between_2_and_3_as_l_or_w-72d5980a]
'''
{
- chain: [
- "TRUE",
- "x"
+ end: 27
+ exprs: [
+ {
+ alias: "l"
+ end: 22
+ expr: {
+ end: 17
+ expr: {
+ end: 1
+ start: 0
+ value: 1
+ }
+ high: {
+ end: 17
+ start: 16
+ value: 3
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ negated: False
+ start: 0
+ }
+ from_asterisk: False
+ hidden: False
+ start: 0
+ },
+ {
+ chain: [
+ "w"
+ ]
+ end: 27
+ from_asterisk: False
+ start: 26
+ }
]
- end: 6
- from_asterisk: False
start: 0
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[false-7cb6efb9]
+# name: test_between_alias_ternary_and_paren_grouping[1_between_2_and_3_as_l_x_y-de9705c8]
'''
{
- end: 5
+ args: [
+ {
+ alias: "l"
+ end: 22
+ expr: {
+ end: 17
+ expr: {
+ end: 1
+ start: 0
+ value: 1
+ }
+ high: {
+ end: 17
+ start: 16
+ value: 3
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ negated: False
+ start: 0
+ }
+ from_asterisk: False
+ hidden: False
+ start: 0
+ },
+ {
+ chain: [
+ "x"
+ ]
+ end: 26
+ from_asterisk: False
+ start: 25
+ },
+ {
+ chain: [
+ "y"
+ ]
+ end: 30
+ from_asterisk: False
+ start: 29
+ }
+ ]
+ distinct: False
+ end: 30
+ name: "if"
start: 0
- value: False
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[false_foo_bar-a9d34395]
+# name: test_between_alias_ternary_and_paren_grouping[x_between_1_and_2_3_and_4-6a901da6]
'''
{
- chain: [
- "false",
- "foo",
- "bar"
+ end: 31
+ exprs: [
+ {
+ end: 25
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ end: 25
+ left: {
+ end: 18
+ start: 17
+ value: 2
+ }
+ op: "*"
+ right: {
+ end: 24
+ start: 23
+ value: 3
+ }
+ start: 16
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ negated: False
+ start: 0
+ },
+ {
+ end: 31
+ start: 30
+ value: 4
+ }
]
- end: 13
- from_asterisk: False
start: 0
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[false_x-b7a670a1]
+# name: test_between_alias_ternary_and_paren_grouping[x_between_1_and_2_or_y-d26bfb89]
'''
{
- chain: [
- "false",
- "x"
- ]
- end: 7
- from_asterisk: False
- start: 0
- }
- '''
-# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[true-5ffe533b]
- '''
- {
- end: 4
+ end: 26
+ exprs: [
+ {
+ end: 21
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ end: 20
+ start: 19
+ value: 2
+ }
+ low: {
+ end: 12
+ start: 11
+ value: 1
+ }
+ negated: False
+ start: 0
+ },
+ {
+ chain: [
+ "y"
+ ]
+ end: 26
+ from_asterisk: False
+ start: 25
+ }
+ ]
start: 0
- value: True
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[true_1-b68b4c23]
+# name: test_between_bound_rejects_lambda_and_named_argument[x_between_1_and_lambda_a_a-7392e6a1]
'''
{
- args: [
- {
- end: 6
- start: 5
- value: 1
+ end: 28
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ args: [
+ "a"
+ ]
+ end: 28
+ expr: {
+ chain: [
+ "a"
+ ]
+ end: 28
+ from_asterisk: False
+ start: 27
}
- ]
- distinct: False
- end: 7
- name: "true"
+ start: 16
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ negated: False
start: 0
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[true_x-a0490f70]
+# name: test_between_bound_rejects_lambda_and_named_argument[x_between_1_and_p_2-ace9f108]
'''
{
- chain: [
- "true",
- "x"
- ]
- end: 6
- from_asterisk: False
+ end: 22
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ name: "p"
+ value: {
+ end: 22
+ start: 21
+ value: 2
+ }
+ }
+ low: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ negated: False
start: 0
}
'''
# ---
-# name: test_boolean_dot_chain_is_field_not_array_access[true_x_y-86fa63a5]
+# name: test_between_bound_rejects_lambda_and_named_argument[x_between_case_when_a_then_b_else_c_end_and_d-2de7cc71]
'''
{
- chain: [
- "true",
- "x",
- "y"
- ]
- end: 8
- from_asterisk: False
+ end: 45
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ chain: [
+ "d"
+ ]
+ end: 45
+ from_asterisk: False
+ start: 44
+ }
+ low: {
+ args: [
+ {
+ chain: [
+ "a"
+ ]
+ end: 21
+ from_asterisk: False
+ start: 20
+ },
+ {
+ chain: [
+ "b"
+ ]
+ end: 28
+ from_asterisk: False
+ start: 27
+ },
+ {
+ chain: [
+ "c"
+ ]
+ end: 35
+ from_asterisk: False
+ start: 34
+ }
+ ]
+ distinct: False
+ end: 39
+ name: "if"
+ start: 10
+ }
+ negated: False
start: 0
}
'''
# ---
-# name: test_boolean_keyword_as_call_name[false_1-87a7eb42]
+# name: test_between_bound_rejects_lambda_and_named_argument[x_between_interval_1_day_and_interval_2_day-686eb148]
'''
{
- args: [
- {
- end: 7
- start: 6
- value: 1
- }
- ]
- distinct: False
- end: 8
- name: "false"
+ end: 43
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ args: [
+ {
+ end: 39
+ start: 38
+ value: 2
+ }
+ ]
+ distinct: False
+ end: 43
+ name: "toIntervalDay"
+ start: 29
+ }
+ low: {
+ args: [
+ {
+ end: 20
+ start: 19
+ value: 1
+ }
+ ]
+ distinct: False
+ end: 24
+ name: "toIntervalDay"
+ start: 10
+ }
+ negated: False
start: 0
}
'''
# ---
-# name: test_boolean_keyword_as_call_name[null_1-d6599da1]
+# name: test_between_bound_rejects_lambda_and_named_argument[x_between_lambda_a_a_and_b-55d34722]
'''
{
- args: [
- {
- end: 6
- start: 5
- value: 1
- }
- ]
- end: 7
+ end: 30
expr: {
- end: 4
+ chain: [
+ "x"
+ ]
+ end: 1
+ from_asterisk: False
start: 0
}
+ high: {
+ chain: [
+ "b"
+ ]
+ end: 30
+ from_asterisk: False
+ start: 29
+ }
+ low: {
+ args: [
+ "a"
+ ]
+ end: 23
+ expr: {
+ chain: [
+ "a"
+ ]
+ end: 23
+ from_asterisk: False
+ start: 22
+ }
+ start: 11
+ }
+ negated: False
start: 0
}
'''
# ---
-# name: test_boolean_keyword_as_call_name[true_1-b68b4c23]
+# name: test_between_not_lambda_lower_bound[a_between_not_lambda_x_b_and_c-6ea2de79]
'''
{
- args: [
- {
- end: 6
- start: 5
- value: 1
- }
- ]
+ end: 31
+ expr: {
+ chain: [
+ "a"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ chain: [
+ "c"
+ ]
+ end: 31
+ from_asterisk: False
+ start: 30
+ }
+ low: {
+ end: 25
+ expr: {
+ args: [
+ "x"
+ ]
+ end: 25
+ expr: {
+ chain: [
+ "b"
+ ]
+ end: 25
+ from_asterisk: False
+ start: 24
+ }
+ start: 14
+ }
+ start: 10
+ }
+ negated: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_between_not_lambda_lower_bound[a_between_not_x_y_and_z-213ef5f4]
+ '''
+ {
+ end: 26
+ expr: {
+ chain: [
+ "a"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ high: {
+ chain: [
+ "z"
+ ]
+ end: 26
+ from_asterisk: False
+ start: 25
+ }
+ low: {
+ end: 20
+ expr: {
+ args: [
+ "x"
+ ]
+ end: 20
+ expr: {
+ chain: [
+ "y"
+ ]
+ end: 20
+ from_asterisk: False
+ start: 19
+ }
+ start: 14
+ }
+ start: 10
+ }
+ negated: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[TRUE_x-755d392d]
+ '''
+ {
+ chain: [
+ "TRUE",
+ "x"
+ ]
+ end: 6
+ from_asterisk: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[false-7cb6efb9]
+ '''
+ {
+ end: 5
+ start: 0
+ value: False
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[false_foo_bar-a9d34395]
+ '''
+ {
+ chain: [
+ "false",
+ "foo",
+ "bar"
+ ]
+ end: 13
+ from_asterisk: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[false_x-b7a670a1]
+ '''
+ {
+ chain: [
+ "false",
+ "x"
+ ]
+ end: 7
+ from_asterisk: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[true-5ffe533b]
+ '''
+ {
+ end: 4
+ start: 0
+ value: True
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[true_1-b68b4c23]
+ '''
+ {
+ args: [
+ {
+ end: 6
+ start: 5
+ value: 1
+ }
+ ]
+ distinct: False
+ end: 7
+ name: "true"
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[true_x-a0490f70]
+ '''
+ {
+ chain: [
+ "true",
+ "x"
+ ]
+ end: 6
+ from_asterisk: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_dot_chain_is_field_not_array_access[true_x_y-86fa63a5]
+ '''
+ {
+ chain: [
+ "true",
+ "x",
+ "y"
+ ]
+ end: 8
+ from_asterisk: False
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_keyword_as_call_name[false_1-87a7eb42]
+ '''
+ {
+ args: [
+ {
+ end: 7
+ start: 6
+ value: 1
+ }
+ ]
+ distinct: False
+ end: 8
+ name: "false"
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_keyword_as_call_name[null_1-d6599da1]
+ '''
+ {
+ args: [
+ {
+ end: 6
+ start: 5
+ value: 1
+ }
+ ]
+ end: 7
+ expr: {
+ end: 4
+ start: 0
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_boolean_keyword_as_call_name[true_1-b68b4c23]
+ '''
+ {
+ args: [
+ {
+ end: 6
+ start: 5
+ value: 1
+ }
+ ]
distinct: False
end: 7
name: "true"
@@ -10148,321 +10610,1050 @@
start: 21
}
}
- start: 14
- table: {
- chain: [
- "a"
- ]
- end: 15
- from_asterisk: False
- start: 14
- }
- }
+ start: 14
+ table: {
+ chain: [
+ "a"
+ ]
+ end: 15
+ from_asterisk: False
+ start: 14
+ }
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_ON_1-090ac096]
+ '''
+ {
+ end: 27
+ select: [
+ {
+ chain: [
+ "*"
+ ]
+ end: 8
+ from_asterisk: False
+ start: 7
+ }
+ ]
+ select_from: {
+ end: 15
+ next_join: {
+ constraint: {
+ constraint_type: "ON"
+ end: 27
+ expr: {
+ end: 27
+ start: 26
+ value: 1
+ }
+ start: 23
+ }
+ end: 22
+ join_type: "JOIN"
+ start: 21
+ table: {
+ chain: [
+ "b"
+ ]
+ end: 22
+ from_asterisk: False
+ start: 21
+ }
+ }
+ start: 14
+ table: {
+ chain: [
+ "a"
+ ]
+ end: 15
+ from_asterisk: False
+ start: 14
+ }
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_ON_1_JOIN_c_ON_1-852526ab]
+ '''
+ {
+ end: 39
+ select: [
+ {
+ chain: [
+ "*"
+ ]
+ end: 8
+ from_asterisk: False
+ start: 7
+ }
+ ]
+ select_from: {
+ end: 15
+ next_join: {
+ constraint: {
+ constraint_type: "ON"
+ end: 27
+ expr: {
+ end: 27
+ start: 26
+ value: 1
+ }
+ start: 23
+ }
+ end: 22
+ join_type: "JOIN"
+ next_join: {
+ constraint: {
+ constraint_type: "ON"
+ end: 39
+ expr: {
+ end: 39
+ start: 38
+ value: 1
+ }
+ start: 35
+ }
+ end: 34
+ join_type: "JOIN"
+ start: 33
+ table: {
+ chain: [
+ "c"
+ ]
+ end: 34
+ from_asterisk: False
+ start: 33
+ }
+ }
+ start: 21
+ table: {
+ chain: [
+ "b"
+ ]
+ end: 22
+ from_asterisk: False
+ start: 21
+ }
+ }
+ start: 14
+ table: {
+ chain: [
+ "a"
+ ]
+ end: 15
+ from_asterisk: False
+ start: 14
+ }
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_USING_x-8c9198cf]
+ '''
+ {
+ end: 32
+ select: [
+ {
+ chain: [
+ "*"
+ ]
+ end: 8
+ from_asterisk: False
+ start: 7
+ }
+ ]
+ select_from: {
+ end: 15
+ next_join: {
+ constraint: {
+ constraint_type: "USING"
+ end: 32
+ expr: {
+ chain: [
+ "x"
+ ]
+ end: 31
+ from_asterisk: False
+ start: 30
+ }
+ start: 23
+ }
+ end: 22
+ join_type: "JOIN"
+ start: 21
+ table: {
+ chain: [
+ "b"
+ ]
+ end: 22
+ from_asterisk: False
+ start: 21
+ }
+ }
+ start: 14
+ table: {
+ chain: [
+ "a"
+ ]
+ end: 15
+ from_asterisk: False
+ start: 14
+ }
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_false_1-01d3dfe5]
+ '''
+ {
+ args: [
+ {
+ name: "false"
+ value: {
+ end: 12
+ start: 11
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 13
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_return_1-2b177743]
+ '''
+ {
+ args: [
+ {
+ name: "return"
+ value: {
+ end: 13
+ start: 12
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 14
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_select_1-237dee7e]
+ '''
+ {
+ args: [
+ {
+ name: "select"
+ value: {
+ end: 13
+ start: 12
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 14
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_true_1-9b9225aa]
+ '''
+ {
+ args: [
+ {
+ name: "true"
+ value: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 12
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_x_1-76d68c5d]
+ '''
+ {
+ args: [
+ {
+ name: "x"
+ value: {
+ end: 8
+ start: 7
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 9
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_admits_identifier_shaped_keywords[f_x_1-f170cfdf]
+ '''
+ {
+ args: [
+ {
+ name: "x"
+ value: {
+ end: 10
+ start: 9
+ value: 1
+ }
+ }
+ ]
+ distinct: False
+ end: 11
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[a_1_2-914064e1]
+ '''
+ {
+ declarations: [
+ {
+ end: 11
+ left: {
+ name: "a"
+ value: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ }
+ right: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ start: 0
+ }
+ ]
+ end: 11
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[arr_w_1_as_x_2-c8b91d5f]
+ '''
+ {
+ array: {
+ chain: [
+ "arr"
+ ]
+ end: 3
+ from_asterisk: False
+ start: 0
+ }
+ end: 20
+ nullish: False
+ property: {
+ end: 19
+ left: {
+ name: "w"
+ value: {
+ alias: "x"
+ end: 15
+ expr: {
+ end: 10
+ start: 9
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 9
+ }
+ }
+ op: "+"
+ right: {
+ end: 19
+ start: 18
+ value: 2
+ }
+ start: 4
+ }
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[f_y_1_1-2cf0ea2d]
+ '''
+ {
+ args: [
+ {
+ name: "y"
+ value: {
+ array: {
+ end: 8
+ start: 7
+ value: 1
+ }
+ end: 12
+ nullish: False
+ property: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ start: 7
+ }
+ }
+ ]
+ distinct: False
+ end: 13
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[f_y_1_as_x_1-f6c237d7]
+ '''
+ {
+ args: [
+ {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 13
+ expr: {
+ end: 8
+ start: 7
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 7
+ }
+ }
+ end: 17
+ nullish: False
+ property: {
+ end: 16
+ start: 15
+ value: 1
+ }
+ start: 2
+ }
+ ]
+ distinct: False
+ end: 18
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[f_y_1_as_x_2_z-80bfa5b8]
+ '''
+ {
+ args: [
+ {
+ end: 17
+ left: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 13
+ expr: {
+ end: 8
+ start: 7
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 7
+ }
+ }
+ op: "+"
+ right: {
+ end: 17
+ start: 16
+ value: 2
+ }
+ start: 2
+ },
+ {
+ chain: [
+ "z"
+ ]
+ end: 20
+ from_asterisk: False
+ start: 19
+ }
+ ]
+ distinct: False
+ end: 21
+ name: "f"
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[for_y_1_as_x_1_a_b-02e62a01]
+ '''
+ {
+ declarations: [
+ {
+ body: {
+ declarations: []
+ end: 30
+ start: 28
+ }
+ condition: {
+ chain: [
+ "a"
+ ]
+ end: 23
+ from_asterisk: False
+ start: 22
+ }
+ end: 30
+ increment: {
+ chain: [
+ "b"
+ ]
+ end: 26
+ from_asterisk: False
+ start: 25
+ }
+ initializer: {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 16
+ expr: {
+ end: 11
+ start: 10
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 10
+ }
+ }
+ end: 20
+ nullish: False
+ property: {
+ end: 19
+ start: 18
+ value: 1
+ }
+ start: 5
+ }
+ start: 0
+ }
+ ]
+ end: 30
start: 0
}
'''
# ---
-# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_ON_1-090ac096]
+# name: test_named_argument_reroots_trailing_value_operator[select_1_from_f_y_1_as_x_1-138cf723]
'''
{
- end: 27
+ end: 32
select: [
{
- chain: [
- "*"
- ]
end: 8
- from_asterisk: False
start: 7
+ value: 1
}
]
select_from: {
- end: 15
- next_join: {
- constraint: {
- constraint_type: "ON"
- end: 27
- expr: {
- end: 27
- start: 26
- value: 1
- }
- start: 23
- }
- end: 22
- join_type: "JOIN"
- start: 21
- table: {
- chain: [
- "b"
- ]
- end: 22
- from_asterisk: False
- start: 21
- }
- }
+ end: 32
start: 14
table: {
chain: [
- "a"
+ "f"
]
- end: 15
from_asterisk: False
- start: 14
}
+ table_args: [
+ {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 27
+ expr: {
+ end: 22
+ start: 21
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 21
+ }
+ }
+ end: 31
+ nullish: False
+ property: {
+ end: 30
+ start: 29
+ value: 1
+ }
+ start: 16
+ }
+ ]
}
start: 0
}
'''
# ---
-# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_ON_1_JOIN_c_ON_1-852526ab]
+# name: test_named_argument_reroots_trailing_value_operator[select_f_y_1_as_x_1-db320dfd]
'''
{
- end: 39
+ end: 25
select: [
{
- chain: [
- "*"
+ args: [
+ {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 20
+ expr: {
+ end: 15
+ start: 14
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 14
+ }
+ }
+ end: 24
+ nullish: False
+ property: {
+ end: 23
+ start: 22
+ value: 1
+ }
+ start: 9
+ }
]
- end: 8
- from_asterisk: False
+ distinct: False
+ end: 25
+ name: "f"
start: 7
}
]
- select_from: {
- end: 15
- next_join: {
- constraint: {
- constraint_type: "ON"
- end: 27
- expr: {
- end: 27
- start: 26
- value: 1
- }
- start: 23
- }
- end: 22
- join_type: "JOIN"
- next_join: {
- constraint: {
- constraint_type: "ON"
- end: 39
- expr: {
- end: 39
- start: 38
- value: 1
- }
- start: 35
- }
- end: 34
- join_type: "JOIN"
- start: 33
- table: {
- chain: [
- "c"
- ]
- end: 34
- from_asterisk: False
- start: 33
- }
- }
- start: 21
- table: {
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[y_1-98c7830a]
+ '''
+ {
+ declarations: [
+ {
+ end: 6
+ left: {
chain: [
- "b"
+ "y"
]
- end: 22
+ end: 1
from_asterisk: False
- start: 21
+ start: 0
}
+ right: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ start: 0
}
- start: 14
- table: {
- chain: [
- "a"
- ]
- end: 15
- from_asterisk: False
- start: 14
- }
- }
+ ]
+ end: 6
start: 0
}
'''
# ---
-# name: test_multi_join_with_stacked_on_using_clauses[SELECT_FROM_a_JOIN_b_USING_x-8c9198cf]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x-b6c8393d]
'''
{
- end: 32
- select: [
+ declarations: [
{
- chain: [
- "*"
- ]
- end: 8
- from_asterisk: False
- start: 7
- }
- ]
- select_from: {
- end: 15
- next_join: {
- constraint: {
- constraint_type: "USING"
- end: 32
- expr: {
- chain: [
- "x"
- ]
- end: 31
- from_asterisk: False
- start: 30
- }
- start: 23
- }
- end: 22
- join_type: "JOIN"
- start: 21
- table: {
+ end: 11
+ left: {
chain: [
- "b"
+ "y"
]
- end: 22
+ end: 1
from_asterisk: False
- start: 21
+ start: 0
+ }
+ right: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ start: 0
+ }
+ ]
+ end: 11
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_1-4e211e16]
+ '''
+ {
+ declarations: [
+ {
+ end: 15
+ expr: {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ }
+ end: 15
+ nullish: False
+ property: {
+ end: 14
+ start: 13
+ value: 1
+ }
+ start: 0
}
+ start: 0
}
- start: 14
- table: {
- chain: [
- "a"
- ]
- end: 15
+ ]
+ end: 15
+ start: 0
+ }
+ '''
+# ---
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_1-c0366f6a]
+ '''
+ {
+ array: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 12
+ expr: {
+ end: 7
+ start: 6
+ value: 1
+ }
from_asterisk: False
- start: 14
+ hidden: False
+ start: 6
}
}
- start: 0
+ end: 16
+ nullish: False
+ property: {
+ end: 15
+ start: 14
+ value: 1
+ }
+ start: 1
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_false_1-01d3dfe5]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_2-ec390339]
'''
{
- args: [
+ declarations: [
{
- name: "false"
- value: {
- end: 12
- start: 11
- value: 1
+ end: 15
+ expr: {
+ end: 15
+ left: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ }
+ op: "+"
+ right: {
+ end: 15
+ start: 14
+ value: 2
+ }
+ start: 0
}
+ start: 0
}
]
- distinct: False
- end: 13
- name: "f"
+ end: 15
start: 0
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_return_1-2b177743]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_Int-347c83f4]
'''
{
- args: [
+ declarations: [
{
- name: "return"
- value: {
- end: 13
- start: 12
- value: 1
+ end: 18
+ expr: {
+ end: 18
+ expr: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ }
+ start: 0
+ type_name: "int"
}
+ start: 0
}
]
- distinct: False
- end: 14
- name: "f"
+ end: 18
start: 0
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_select_1-237dee7e]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_and_2-10634775]
'''
{
- args: [
+ declarations: [
{
- name: "select"
- value: {
- end: 13
- start: 12
- value: 1
+ end: 17
+ left: {
+ chain: [
+ "y"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ right: {
+ end: 17
+ exprs: [
+ {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ },
+ {
+ end: 17
+ start: 16
+ value: 2
+ }
+ ]
+ start: 5
}
+ start: 0
}
]
- distinct: False
- end: 14
- name: "f"
+ end: 17
start: 0
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_true_1-9b9225aa]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_between_1_and_2-a2588d54]
'''
{
- args: [
+ declarations: [
{
- name: "true"
- value: {
- end: 11
- start: 10
- value: 1
+ end: 27
+ expr: {
+ end: 27
+ expr: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ }
+ high: {
+ end: 27
+ start: 26
+ value: 2
+ }
+ low: {
+ end: 21
+ start: 20
+ value: 1
+ }
+ negated: False
+ start: 0
}
+ start: 0
}
]
- distinct: False
- end: 12
- name: "f"
+ end: 27
start: 0
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_x_1-76d68c5d]
+# name: test_named_argument_reroots_trailing_value_operator[y_1_as_x_not_in_1_2-2fc79af9]
'''
{
- args: [
+ declarations: [
{
- name: "x"
- value: {
- end: 8
- start: 7
- value: 1
+ end: 24
+ expr: {
+ end: 24
+ left: {
+ name: "y"
+ value: {
+ alias: "x"
+ end: 11
+ expr: {
+ end: 6
+ start: 5
+ value: 1
+ }
+ from_asterisk: False
+ hidden: False
+ start: 5
+ }
+ }
+ op: "not in"
+ right: {
+ end: 24
+ exprs: [
+ {
+ end: 21
+ start: 20
+ value: 1
+ },
+ {
+ end: 23
+ start: 22
+ value: 2
+ }
+ ]
+ start: 19
+ }
+ start: 0
}
+ start: 0
}
]
- distinct: False
- end: 9
- name: "f"
+ end: 24
start: 0
}
'''
# ---
-# name: test_named_argument_admits_identifier_shaped_keywords[f_x_1-f170cfdf]
+# name: test_named_argument_reroots_trailing_value_operator[y_x_2-028a1ec6]
'''
{
- args: [
+ declarations: [
{
- name: "x"
- value: {
- end: 10
- start: 9
- value: 1
+ end: 6
+ left: {
+ chain: [
+ "y"
+ ]
+ end: 1
+ from_asterisk: False
+ start: 0
+ }
+ right: {
+ chain: [
+ "x"
+ ]
+ end: 6
+ from_asterisk: False
+ start: 5
+ }
+ start: 0
+ },
+ {
+ end: 11
+ expr: {
+ end: 11
+ left: {
+ chain: [
+ "*"
+ ]
+ end: 8
+ from_asterisk: False
+ start: 7
+ }
+ op: "=="
+ right: {
+ end: 11
+ start: 10
+ value: 2
+ }
+ start: 7
}
+ start: 7
}
]
- distinct: False
end: 11
- name: "f"
start: 0
}
'''
diff --git a/posthog/hogql/test/_generated_grammar_strategies.py b/posthog/hogql/test/_generated_grammar_strategies.py
index 8cda195f4256..10177af17d73 100644
--- a/posthog/hogql/test/_generated_grammar_strategies.py
+++ b/posthog/hogql/test/_generated_grammar_strategies.py
@@ -1874,6 +1874,51 @@ def selectColumnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[
def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
_has_suffixes = True
+ @st.composite
+ def gen(draw: Any) -> str:
+ parts: list[str] = []
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
+ seed = " ".join(p for p in parts if p)
+ if depth <= 0 or not _has_suffixes:
+ return seed
+ n_suffixes = draw(st.integers(min_value=0, max_value=_MAX_LR_CHAIN))
+ for _ in range(n_suffixes):
+ suffix_idx = draw(st.integers(min_value=0, max_value=3))
+ if suffix_idx == 0:
+ parts = []
+ parts.append("and")
+ parts.append(draw(columnExpr_strategy(_dec(depth))))
+ seed = seed + " " + " ".join(p for p in parts if p)
+ if suffix_idx == 1:
+ parts = []
+ parts.append("or")
+ parts.append(draw(columnExpr_strategy(_dec(depth))))
+ seed = seed + " " + " ".join(p for p in parts if p)
+ if suffix_idx == 2:
+ parts = []
+ parts.append("?")
+ parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(":")
+ parts.append(draw(columnExpr_strategy(_dec(depth))))
+ seed = seed + " " + " ".join(p for p in parts if p)
+ if suffix_idx == 3:
+ parts = []
+ parts.append("as")
+ group_idx = draw(st.integers(min_value=0, max_value=1))
+ if group_idx == 0:
+ parts.append(draw(identifier_strategy(_dec(depth))))
+ if group_idx == 1:
+ parts.append(draw(string_literal_token))
+ seed = seed + " " + " ".join(p for p in parts if p)
+ return seed
+
+ return gen()
+
+
+def columnExprValue_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
+ _has_suffixes = True
+
@st.composite
def gen(draw: Any) -> str:
parts: list[str] = []
@@ -2257,12 +2302,12 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
if seed_idx == 28:
parts = []
parts.append("-")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = " ".join(p for p in parts if p)
if seed_idx == 29:
parts = []
parts.append("not")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = " ".join(p for p in parts if p)
if seed_idx == 30:
parts = []
@@ -2345,7 +2390,7 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
return seed
n_suffixes = draw(st.integers(min_value=0, max_value=_MAX_LR_CHAIN))
for _ in range(n_suffixes):
- suffix_idx = draw(st.integers(min_value=0, max_value=21))
+ suffix_idx = draw(st.integers(min_value=0, max_value=18))
if suffix_idx == 0:
parts = []
parts.append("(")
@@ -2416,7 +2461,7 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
parts.append("/")
if group_idx == 2:
parts.append("%")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 11:
parts = []
@@ -2427,7 +2472,7 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
parts.append("-")
if group_idx == 2:
parts.append("||")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 12:
parts = []
@@ -2472,7 +2517,7 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
parts.append("=~*")
if group_idx == 14:
parts.append("!~*")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 13:
parts = []
@@ -2493,47 +2538,26 @@ def columnExpr_strategy(depth: int = _DEFAULT_DEPTH) -> st.SearchStrategy[str]:
parts.append("not")
parts.append("distinct")
parts.append("from")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 16:
parts = []
- parts.append("??")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append("<=>")
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 17:
parts = []
- parts.append("and")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append("??")
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
if suffix_idx == 18:
- parts = []
- parts.append("or")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
- seed = seed + " " + " ".join(p for p in parts if p)
- if suffix_idx == 19:
parts = []
if _include_optional(draw):
parts.append("not")
parts.append("between")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
parts.append("and")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
- seed = seed + " " + " ".join(p for p in parts if p)
- if suffix_idx == 20:
- parts = []
- parts.append("?")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
- parts.append(":")
- parts.append(draw(columnExpr_strategy(_dec(depth))))
- seed = seed + " " + " ".join(p for p in parts if p)
- if suffix_idx == 21:
- parts = []
- parts.append("as")
- group_idx = draw(st.integers(min_value=0, max_value=1))
- if group_idx == 0:
- parts.append(draw(identifier_strategy(_dec(depth))))
- if group_idx == 1:
- parts.append(draw(string_literal_token))
+ parts.append(draw(columnExprValue_strategy(_dec(depth))))
seed = seed + " " + " ".join(p for p in parts if p)
return seed
diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.py
index 383bdcaf977a..bd8a874c4f55 100644
--- a/posthog/hogql/test/_test_parser.py
+++ b/posthog/hogql/test/_test_parser.py
@@ -5340,15 +5340,6 @@ def parser_test_factory(backend: HogQLParserBackend):
for src in cases:
self._assert_ast(src, "expr")
- def test_between_not_lambda_lower_bound(self):
- # `BETWEEN <low>`'s AND-reservation must propagate through a `NOT`-wrapped lambda low bound so the lambda doesn't over-consume `…and c`.
- cases = (
- "a between not lambda x: b and c",
- "a between not x -> y and z",
- )
- for src in cases:
- self._assert_ast(src, "expr")
-
def test_chained_between_inner_end_position(self):
# Left-recursive `between`: `a between L1 and H1 between L2 and H2` parses as `BetweenExpr(BetweenExpr(a, L1, H1), L2, H2)`.
# The inner BetweenExpr's `.end` must stop at H1 (offset of `2` here), not extend through H2.
@@ -5363,6 +5354,112 @@ def parser_test_factory(backend: HogQLParserBackend):
self.assertEqual(inner.end, 24, msg=f"{backend}: inner.end={inner.end}, expected 24")
self.assertEqual(outer.end, 40, msg=f"{backend}: outer.end={outer.end}, expected 40")
+ def test_between_binds_tighter_than_and_or(self):
+ # BETWEEN binds at the comparison tier, so its tested expression and both
+ # bounds never swallow a surrounding AND/OR chain. The reported bug was
+ # `x BETWEEN a AND b AND rest` parsing as `x BETWEEN (a AND b) AND rest`
+ # (making the low bound a boolean → a runtime type error). Each case must
+ # group the same as its explicitly-parenthesized equivalent.
+ cases = (
+ ("a between 1 and 2 and c", "(a between 1 and 2) and c"),
+ ("a between 1 and 2 and 3 and 4", "(a between 1 and 2) and 3 and 4"),
+ ("x = 1 and a between 1 and 2 and c = 3", "(x = 1) and (a between 1 and 2) and (c = 3)"),
+ ("a between b and c or d", "(a between b and c) or d"),
+ ("a not between 1 and 2 and c", "(a not between 1 and 2) and c"),
+ (
+ "timestamp between 'x' and 'y' and uuid in ('u1', 'u2')",
+ "(timestamp between 'x' and 'y') and (uuid in ('u1', 'u2'))",
+ ),
+ )
+ for src, parenthesized in cases:
+ self.assertEqual(self._expr(src), self._expr(parenthesized), msg=f"{backend}: {src!r}")
+ # BETWEEN also binds tighter than prefix NOT now (matching ClickHouse
+ # and standard SQL); it used to parse as `(not a) between 1 and 2`.
+ # Constructed expectations because `not (…)` parses as a `not()` call.
+ between = self._expr("a between 1 and 2")
+ self.assertEqual(self._expr("not a between 1 and 2"), ast.Not(expr=between))
+ self.assertEqual(
+ self._expr("not a between 1 and 2 and c"),
+ ast.And(exprs=[ast.Not(expr=between), ast.Field(chain=["c"])]),
+ )
+
+ def test_between_bound_rejects_lambda_and_named_argument(self):
+ # A lambda or named argument is meaningless as a BETWEEN bound, and as
+ # the LOW bound its trailing body competes with the bound separator
+ # `AND` (an ambiguity ALL(*) resolves adaptively, which a deterministic
+ # parser can't reproduce). Both backends reject the bare shape —
+ # through NOT / unary-minus wrappers too. Parenthesized bounds and
+ # trailing-position (high) bounds have no ambiguity and stay accepted.
+ for query in (
+ "x between lambda a : a and b",
+ "x between a -> a and b",
+ "x between (a, b) -> a and c",
+ "x between p := 1 and b",
+ "x between not lambda a : a and b",
+ "x between - lambda a : a and b",
+ "x between not not lambda a : a and b",
+ "x between not p := 1 and b",
+ ):
+ with self.assertRaises(BaseHogQLError, msg=f"{backend}: {query!r}"):
+ parse_expr(query, backend=backend)
+ for src in (
+ "x between (lambda a : a) and b",
+ "x between 1 and lambda a : a",
+ "x between 1 and p := 2",
+ "x between interval 1 day and interval 2 day",
+ "x between case when a then b else c end and d",
+ ):
+ self._assert_ast(src, "expr")
+
+ def test_named_argument_reroots_trailing_value_operator(self):
+ # `ColumnExprNamedArg` is a value-tier primary, so when its value parse
+ # stops at a bare-alias boundary a trailing value-tier operator attaches
+ # to the NamedArgument itself: `y := 1 as x [1]` is ONE ExprStatement
+ # `ArrayAccess(NamedArgument(y, Alias(1, x)), 1)` — not a
+ # VariableAssignment followed by a stray array statement. The bare
+ # NamedArgument statement (nothing trailing) still promotes to a
+ # VariableAssignment.
+ for src in (
+ "y := 1 as x [1]",
+ "y := 1 as x :: Int",
+ "y := 1 as x + 2",
+ "y := 1 as x between 1 and 2",
+ "y := 1 as x not in (1,2)",
+ "for (y := 1 as x [1]; a; b) {}",
+ # Guards: promotion to VariableAssignment and statement-splitting
+ # recovery are unaffected.
+ "y := 1",
+ "y := 1 as x",
+ "y := 1 as x and 2",
+ "y := x *= 2",
+ "a := 1 := 2",
+ ):
+ self._assert_ast(src, "program")
+ for src in (
+ "f(y := 1 as x [1])",
+ "f(y := 1 [1])",
+ "f(y := 1 as x + 2, z)",
+ "(y := 1 as x [1])",
+ "arr[w := 1 as x + 2]",
+ ):
+ self._assert_ast(src, "expr")
+ for src in ("select 1 from f(y := 1 as x [1])", "select f(y := 1 as x [1])"):
+ self._assert_ast(src, "select")
+
+ def test_between_alias_ternary_and_paren_grouping(self):
+ # An alias / ternary / OR applies to the whole BetweenExpr (they live in
+ # the outer tier), and parenthesized bounds keep their spans — coverage
+ # carried over from the pre-two-tier positional tests.
+ for src in (
+ "1 between 2 and 3 as l",
+ "1 between 2 and 3 as l or w",
+ "1 between 2 and 3 as l ? x : y",
+ "x between (1) and (2) or y",
+ "1 between 2 and (3) and 4",
+ "x between 1 and (2) * (3) and 4",
+ ):
+ self._assert_ast(src, "expr")
+
def test_parenthesized_between_high_end_position_with_hoist(self):
# A BETWEEN whose high operand is parenthesized spans through the
# trailing `)`, but the high AST node's `end` is paren-stripped. In
@@ -6985,32 +7082,6 @@ def parser_test_factory(backend: HogQLParserBackend):
msg=query,
)
- def test_between_hoist_inner_wrapper_spans(self):
- # When 2+ wrappers stack outside a BETWEEN (`1 between 2 and 3 as l :: Int`),
- # the hoist-apply loop built each position-less and only the OUTERMOST got
- # the outer pratt `wrap_pos` — the inner wrappers (here the Alias) stayed
- # position-less. cpp spans each at `[lhs_start, end-of-its-own-token]`.
- # The split now records each hoist's end and the apply loop stamps it.
- for query in (
- "1 between 2 and 3 as l :: Int",
- "1 between 2 and 3 as l :: Int :: Float",
- "1 between 2 and 3 as l [ 1 ]",
- "1 between 2 and 3 as l . 1",
- "1 between 2 and 3 as l ( x )",
- "1 between 2 and 3 as l is null",
- "1 between 2 and 3 as l or w",
- "1 between 2 and 3 as l ? x : y",
- "1 between 2 and 3 as l + 5",
- "1 between 2 and 3 as l is distinct from w",
- "1 between 2 and 3 as l",
- "1 between 2 and 3 :: Int",
- ):
- self.assertEqual(
- parse_expr(query, backend="cpp-json"),
- parse_expr(query, backend=backend),
- msg=query,
- )
-
def test_arrow_lambda_block_body_span_with_trailing_postfix(self):
# An arrow lambda with a Hog BLOCK body (`x -> { … }`) ends at `}`, so a
# trailing postfix (`. 1`, `[1]`, `:: Int`) cannot fold into the body and
@@ -7739,8 +7810,6 @@ def parser_test_factory(backend: HogQLParserBackend):
"1 + 1 as lambda",
"[1 as lambda]",
"f(1 as lambda)",
- "1 as lambda()",
- "1 as lambda + 2",
):
self.assertEqual(
parse_expr(query, backend="cpp-json"),
@@ -7755,7 +7824,10 @@ def parser_test_factory(backend: HogQLParserBackend):
)
# A real lambda body after `AS` is not a valid alias and rejects on both
# in plain expression context (the alias absorbs `lambda`, the `:` trails).
- for query in ("1 as lambda: 2", "1 as lambda x: x", "1 as lambda x"):
+ # `AS`/aliases live in the loosest (boolean) precedence tier, so a value-tier
+ # operator (call `()`, arithmetic `+`, …) cannot bind to a bare alias — it
+ # needs parentheses (`(1 as lambda) + 2`). This matches ClickHouse/SQL.
+ for query in ("1 as lambda: 2", "1 as lambda x: x", "1 as lambda x", "1 as lambda()", "1 as lambda + 2"):
with self.assertRaises(BaseHogQLError):
parse_expr(query, backend=backend)
@@ -8047,40 +8119,13 @@ def parser_test_factory(backend: HogQLParserBackend):
msg=query,
)
- def test_between_split_synthetic_node_positions(self):
- # When the greedy BETWEEN-body parse is split at the rightmost AND, the
- # rebuilt And/Or (and the wrappers it descends through) must carry cpp's
- # ctx-derived span, not the children's inner (paren-stripped) span. cpp
- # positions a boolean node from its FIRST operand's `(` and LAST operand's
- # `)`, and a stay-in-place wrapper (Lambda / Not / arith.right / the
- # if-call else-branch) ends where its now-shorter child ends. A no_pos
- # NamedArgument operand still contributes its `value`'s end.
- for query in (
- "x between (1) and (2) or y", # synthetic Or start = `(` of `(2)`
- "1 between 2 and (3) and 4", # synthetic And end = `)` of `(3)`
- "x between (1) and lambda z: (2) and (3)", # Lambda body end shrinks
- "a between not lambda x: (b) and (c) and d", # Not + Lambda descent
- "x between 1 and (2) * (3) and 4", # arith.right end shrinks
- "a between b ? c : (d) and (e) and f", # if-call else-branch end
- "1 between 2 between 3 and (4) and 5", # nested BETWEEN low peel
- "x between y between z and (w) and v",
- "p between (q) and r := (s) and (t)", # no_pos NamedArgument last operand
- "m between (n) and o := (p) and q := (r) and (s)",
- "x between (1) and ((2) or (3)) and (4)",
- ):
- self.assertEqual(
- parse_expr(query, backend="cpp-json"),
- parse_expr(query, backend=backend),
- msg=query,
- )
-
def test_between_parenthesized_group_high(self):
- # `a and (b and c)` flattens to `And([a,b,c])` (cpp does too for a standalone
- # expr), but in a BETWEEN body cpp keeps `(b and c)` as one high operand: the
- # rightmost AND at paren-depth 0 is the one BEFORE the parens, so
- # `1 between a and (b and c)` is `low=a, high=And(b,c)`. rust used to descend
- # into the flattened inner AND and mis-split to `low=And(a,b), high=c`. The
- # split now skips ANDs inside parens (paren-depth-0 rule).
+ # Parenthesized AND groups next to BETWEEN: `(b and c)` stays one operand
+ # (an unflattened And node), while an unparenthesized trailing `and …` /
+ # `or …` wraps the whole BetweenExpr — `1 between a and (b and c)` is
+ # `BetweenExpr(low=a, high=And(b,c))`, and `1 between x and y and (b and c)`
+ # is `And([BetweenExpr(x, y), And(b, c)])`. Pinned cpp-vs-rust because the
+ # pre-two-tier rust split machinery used to mis-handle exactly these.
for query in (
"1 between a and (b and c)",
"1 between a and ((b) and (c))",
diff --git a/pyproject.toml b/pyproject.toml
index 7527f3f6e348..cd165f700c4c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -68,7 +68,7 @@ dependencies = [
"grpcio~=1.71.0",
"gspread==6.2.1",
"hogql-parser==1.3.75",
- "hogql-parser-rs==1.3.105", # built from rust/hogql/parser via the build-hogql-parser-rs workflow + published to PyPI; rebuild locally with `uv pip install -e rust/hogql/parser` when iterating
+ "hogql-parser-rs==1.3.106", # built from rust/hogql/parser via the build-hogql-parser-rs workflow + published to PyPI; rebuild locally with `uv pip install -e rust/hogql/parser` when iterating
"humanize~=4.12.3",
"infi-clickhouse-orm",
"jsonref==1.1.0",
diff --git a/rust/Cargo.lock b/rust/Cargo.lock
index 6669d88fec54..c21bb71bdd22 100644
--- a/rust/Cargo.lock
+++ b/rust/Cargo.lock
@@ -4538,7 +4538,7 @@ dependencies = [
[[package]]
name = "hogql_parser_rs"
-version = "1.3.105"
+version = "1.3.106"
dependencies = [
"pyo3",
"serde_json",
diff --git a/rust/hogql/parser/Cargo.toml b/rust/hogql/parser/Cargo.toml
index 80781e2e8804..f4e2e8a3cd8b 100644
--- a/rust/hogql/parser/Cargo.toml
+++ b/rust/hogql/parser/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "hogql_parser_rs"
-# Versioned independently from the cpp parser in `common/hogql_parser/setup.py`. Both started from the same HogQL grammar revision, but the Rust port is bumped on its own whenever the hand-rolled parser changes (cpp is currently 1.3.72, this is 1.3.105); each ships as its own PyPI wheel.
-version = "1.3.105"
+# Versioned independently from the cpp parser in `common/hogql_parser/setup.py`. Both started from the same HogQL grammar revision, but the Rust port is bumped on its own whenever the hand-rolled parser changes; each ships as its own PyPI wheel.
+version = "1.3.106"
edition = "2021"
publish = false
diff --git a/rust/hogql/parser/README.md b/rust/hogql/parser/README.md
index cd180b223cb5..3c494e3831f0 100644
--- a/rust/hogql/parser/README.md
+++ b/rust/hogql/parser/README.md
@@ -442,12 +442,14 @@ Two more things to keep in mind:
## Known long-tail divergences
The PBT for `expr` and `select` exposes adversarial grammar surface
-that the production corpora never see: deep nested
-`BETWEEN low AND high` chains with embedded aliases and ternaries,
-extreme `WITHIN GROUP (ORDER BY …)` shapes, multi-token-`AND`-merged
+that the production corpora never see: extreme
+`WITHIN GROUP (ORDER BY …)` shapes and multi-token-`AND`-merged
operands. These take focused per-shape investigation; the
[PR description](https://github.com/PostHog/posthog/pull/58949) has
-the current numbers.
+the current numbers. (Deep `BETWEEN low AND high` chains with embedded
+aliases and ternaries used to be on this list; the two-tier grammar
+made BETWEEN bounds value-tier, so those shapes are now either
+unambiguous or rejected by both backends.)
The production corpora (`log_corpus_diagnostic`,
`hog_corpus_diagnostic`) stay above 90%, so anything the PBT surfaces
diff --git a/rust/hogql/parser/pyproject.toml b/rust/hogql/parser/pyproject.toml
index 6ec26c498c1f..c1359fad8443 100644
--- a/rust/hogql/parser/pyproject.toml
+++ b/rust/hogql/parser/pyproject.toml
@@ -8,8 +8,8 @@ build-backend = "maturin"
[project]
name = "hogql_parser_rs"
-# Mirrors `rust/hogql/parser/Cargo.toml` (always identical). Tracks but is NOT locked to `common/hogql_parser/setup.py`: the Rust port is versioned independently and bumped on its own whenever the hand-rolled parser changes (cpp is currently 1.3.72, this is 1.3.105).
-version = "1.3.105"
+# Mirrors `rust/hogql/parser/Cargo.toml` (always identical). Tracks but is NOT locked to `common/hogql_parser/setup.py`: the Rust port is versioned independently and bumped on its own whenever the hand-rolled parser changes.
+version = "1.3.106"
description = "Hand-rolled Rust HogQL parser with C++-parity AST output"
readme = "README.md"
requires-python = ">=3.12"
diff --git a/rust/hogql/parser/src/parse.rs b/rust/hogql/parser/src/parse.rs
index 9457ea8aec46..6727c60ee861 100644
--- a/rust/hogql/parser/src/parse.rs
+++ b/rust/hogql/parser/src/parse.rs
@@ -27,9 +27,8 @@ mod select;
mod template;
use bp::{
- build_infix, fold_call_or_exprcall, infix_bp, postfix_bp, BP_ADDITIVE, BP_ALIAS, BP_BETWEEN,
- BP_COMPARE, BP_IGNORE_NULLS, BP_IS_DISTINCT_FROM, BP_IS_NULL, BP_MULT, BP_NOT, BP_OR,
- BP_POSTFIX, BP_TERNARY, BP_UNARY_MINUS,
+ build_infix, fold_call_or_exprcall, infix_bp, postfix_bp, BP_ALIAS, BP_BETWEEN, BP_COMPARE,
+ BP_IGNORE_NULLS, BP_IS_DISTINCT_FROM, BP_IS_NULL, BP_MULT, BP_NOT, BP_TERNARY, BP_UNARY_MINUS,
};
use template::parse_template_body;
@@ -195,15 +194,11 @@ pub(crate) struct Parser<'a, E: Emitter = JsonEmitter> {
/// position. None outside such a construct. Saved/restored across
/// nesting.
pub(crate) cast_as_stop: Option<usize>,
- /// Depth tracker for nested `parse_between_body` calls. Used to
- /// switch arm ordering: the outermost call uses WIDE-first
- /// (consuming all in-between tokens greedy so split can find the
- /// rightmost AND), but nested calls switch to NARROW-first so an
- /// inner BETWEEN's body parse doesn't over-consume the outer's
- /// trailing ternary / AND / etc. Mirrors cpp's ANTLR left-recursive
- /// expansion where each nested BETWEEN matches the SHORTEST body
- /// that lets the outer rule succeed.
- pub(crate) between_body_depth: u32,
+ /// Set by the AS-alias infix arm and read (and reset) at the top of the next
+ /// Pratt-loop iteration. A bare alias sits in the loosest grammar tier, so only
+ /// an outer-tier operator (`AND`/`OR`/ternary/chained `AS`) may bind to it; a
+ /// value-tier operator terminates the expression. Guards `1 AS x + 2` etc.
+ pub(crate) after_bare_alias: bool,
/// When set, `parse_trailing_set_decorators` skips a trailing
/// `ORDER BY` at the selectSetStmt-wrapper level. Used by
/// `parse_call_argument_select` so that for inputs like
@@ -351,7 +346,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
peek1,
last_consumed_end: pos,
cast_as_stop: None,
- between_body_depth: 0,
+ after_bare_alias: false,
suppress_setstmt_trailing_order_by: false,
suppress_array_join_checks: false,
suppress_unvisited_clause_checks: false,
@@ -603,6 +598,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
pos: self.peek0.start,
last_consumed_end: self.last_consumed_end,
cast_as_stop: self.cast_as_stop,
+ after_bare_alias: self.after_bare_alias,
}
}
@@ -612,6 +608,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
self.set_lexer_pos(c.pos)?;
self.last_consumed_end = c.last_consumed_end;
self.cast_as_stop = c.cast_as_stop;
+ self.after_bare_alias = c.after_bare_alias;
Ok(())
}
@@ -731,6 +728,7 @@ pub(crate) struct Checkpoint {
pos: usize,
last_consumed_end: usize,
cast_as_stop: Option<usize>,
+ after_bare_alias: bool,
}
// Per-section method bodies live in the submodules:
diff --git a/rust/hogql/parser/src/parse/bp.rs b/rust/hogql/parser/src/parse/bp.rs
index 90ff165b7df6..7af47a164227 100644
--- a/rust/hogql/parser/src/parse/bp.rs
+++ b/rust/hogql/parser/src/parse/bp.rs
@@ -11,10 +11,19 @@ use crate::lex::{Kw, TokenKind};
pub(super) const BP_ALIAS: u8 = 10;
pub(super) const BP_TERNARY: u8 = 20;
-pub(super) const BP_BETWEEN: u8 = 30;
pub(super) const BP_OR: u8 = 40;
pub(super) const BP_AND: u8 = 50;
pub(super) const BP_NOT: u8 = 60;
+/// `BETWEEN` binds at the comparison tier — tighter than `NOT`/`AND`/`OR`,
+/// looser than every other value operator (it's the loosest alternative in
+/// the grammar's `columnExprValue` rule, declared after `NULLISH`). This is
+/// what makes `a BETWEEN low AND high AND rest` group as
+/// `(a BETWEEN low AND high) AND rest`: the bounds are parsed above `BP_AND`
+/// so they cannot swallow the `AND` chain. The low bound is parsed at
+/// `BP_BETWEEN` (a nested `BETWEEN` chains into it, matching cpp's greedy
+/// interior operand); the high bound at `BP_BETWEEN + 1` (a trailing
+/// `BETWEEN` chains left-associatively onto the whole expression instead).
+pub(super) const BP_BETWEEN: u8 = 65;
pub(super) const BP_NULLISH: u8 = 70;
/// `<=>` (MySQL null-safe equality) — declared *after* `IS [NOT]
/// DISTINCT FROM` in the grammar, so it binds one level looser:
@@ -100,6 +109,32 @@ pub(super) fn postfix_bp(kind: TokenKind) -> Option<u8> {
}
}
+/// Can `kind` extend a `NamedArgument` primary as a value-tier infix or
+/// postfix operator? cpp's `ColumnExprNamedArg` sits in the value tier, so
+/// when the named-arg value parse stops at a bare-alias boundary
+/// (`y := 1 as x [1]`), the trailing operator re-roots onto the
+/// NamedArgument itself. Mirrors the pratt loop's dispatch: the infix
+/// table, the postfix table, and the keyword-led special-infix arms.
+/// Over-inclusion is safe — a token that then fails to attach falls back
+/// to the caller's bare-NamedArgument handling.
+pub(super) fn can_extend_named_argument(kind: TokenKind) -> bool {
+ infix_bp(kind).is_some()
+ || postfix_bp(kind).is_some()
+ || matches!(
+ kind,
+ TokenKind::Keyword(
+ Kw::Between
+ | Kw::In
+ | Kw::Cohort
+ | Kw::Like
+ | Kw::Ilike
+ | Kw::Is
+ | Kw::Not
+ | Kw::Ignore
+ )
+ )
+}
+
pub(super) fn build_infix<E: Emitter>(
emit: &E,
op: InfixOp,
diff --git a/rust/hogql/parser/src/parse/expr.rs b/rust/hogql/parser/src/parse/expr.rs
index 2f5c136d202a..e062e680fc07 100644
--- a/rust/hogql/parser/src/parse/expr.rs
+++ b/rust/hogql/parser/src/parse/expr.rs
@@ -13,8 +13,8 @@ use super::{
build_infix, fold_call_or_exprcall, identifier_text, infix_bp, interval_call_name,
interval_call_name_case_sensitive, is_reserved_alias_name, kw_acts_as_ident_in_primary,
kw_valid_as_identifier, kw_valid_type_cast_ident, parse_number_literal, postfix_bp,
- unquote_single_string, Parser, BP_ADDITIVE, BP_ALIAS, BP_BETWEEN, BP_COMPARE, BP_IGNORE_NULLS,
- BP_IS_DISTINCT_FROM, BP_IS_NULL, BP_NOT, BP_OR, BP_POSTFIX, BP_TERNARY, BP_UNARY_MINUS,
+ unquote_single_string, Parser, BP_ALIAS, BP_BETWEEN, BP_COMPARE, BP_IGNORE_NULLS,
+ BP_IS_DISTINCT_FROM, BP_IS_NULL, BP_NOT, BP_TERNARY, BP_UNARY_MINUS,
};
use crate::emit::Emitter;
use crate::error::ParseError;
@@ -62,6 +62,21 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
) -> Result<E::Value, ParseError> {
loop {
let kind = self.peek();
+ // A bare alias was just built: only an outer-tier operator (AND, OR,
+ // ternary `?`, or a chained AS) may wrap it. Any value-tier operator
+ // terminates the expression here, matching cpp's two-tier grammar
+ // (`1 AS x AND y` is `(1 AS x) AND y`; `1 AS x + 2` rejects).
+ if std::mem::take(&mut self.after_bare_alias)
+ && !matches!(
+ kind,
+ TokenKind::Keyword(Kw::And)
+ | TokenKind::Keyword(Kw::Or)
+ | TokenKind::Keyword(Kw::As)
+ | TokenKind::QMark
+ )
+ {
+ break;
+ }
if let Some((lbp, rbp, op)) = infix_bp(kind) {
if lbp < min_bp {
break;
@@ -4546,11 +4561,17 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
if (matches!(self.peek(), TokenKind::Ident | TokenKind::QuotedIdent) || name_kw_ok)
&& self.peek_next() == TokenKind::ColonEquals
{
+ let named_start = self.peek0.start;
let name_tok = self.bump()?;
let name = identifier_text(self.text(name_tok), name_tok.kind);
self.bump()?; // consume `:=`
let value = self.parse_expr_bp(0)?;
- return Ok(self.emit.named_argument(&name, value));
+ // cpp's `ColumnExprNamedArg` is a value-tier primary, so a
+ // trailing value-tier operator re-roots onto the NamedArgument
+ // itself when the value parse stopped at a bare-alias boundary:
+ // `f(y := 1 as x [1])` is `ArrayAccess(NamedArgument(…), 1)`.
+ let named = self.emit.named_argument(&name, value);
+ return self.pratt_continue_with_lhs(named, 0, named_start);
}
self.parse_expr_bp(0)
}
@@ -4599,11 +4620,15 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
if (matches!(self.peek(), TokenKind::Ident | TokenKind::QuotedIdent) || name_kw_ok)
&& self.peek_next() == TokenKind::ColonEquals
{
+ let named_start = self.peek0.start;
let name_tok = self.bump()?;
let name = identifier_text(self.text(name_tok), name_tok.kind);
self.bump()?; // consume `:=`
let value = self.parse_expr_bp(0)?;
- return Ok(self.emit.named_argument(&name, value));
+ // See `parse_table_argument`: a trailing value-tier operator
+ // re-roots onto the NamedArgument primary, matching cpp.
+ let named = self.emit.named_argument(&name, value);
+ return self.pratt_continue_with_lhs(named, 0, named_start);
}
// A function-call argument is either a selectSetStmt (cpp's
// ColumnExprCallSelect) or a regular columnExpr. The grammar
@@ -5071,39 +5096,12 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
if BP_BETWEEN < min_bp {
return Ok(None);
}
- self.bump()?;
- self.bump()?;
- let (low, high, hoisted) = self.parse_between_body(min_bp)?;
+ self.bump()?; // NOT
+ self.bump()?; // BETWEEN
+ let (low, high) = self.parse_between_body()?;
let prev = std::mem::replace(lhs, self.emit.null());
- // Wrap the inner BetweenExpr with positions BEFORE the hoist loop. When a hoist
- // wrapper (Or / Ternary / Alias / Arith) is applied, the outer pratt-loop wrap_pos
- // at line ~126 stamps positions onto the OUTERMOST wrapper, but the BetweenExpr
- // is now buried inside (e.g. as `Call(if, [BetweenExpr, …])` for the ternary hoist)
- // and would not otherwise receive a span. cpp emits position info on BetweenExpr
- // unconditionally — match that. Simple BETWEEN spans through the high operand's
- // last consumed token (incl. a parenthesized high's trailing `)`) via wrap_pos;
- // the WIDE/hoist case can't (last_consumed_end overshoots past the hoist), so it
- // stamps the high operand's end directly. The high node `end` is paren-stripped,
- // so recover a parenthesized high's trailing `)` via `high_operand_paren_end`.
- let high_end = high_operand_paren_end(self, &high)
- .or_else(|| self.emit.get_field(&high, "end"));
let between_inner = self.emit.between(prev, low, high, true);
- let mut between = if hoisted.is_empty() {
- self.wrap_pos(between_inner, lhs_start)
- } else {
- match high_end {
- Some(end) => {
- self.emit
- .with_pos(between_inner, self.pos_obj(lhs_start), end)
- }
- None => self.wrap_pos(between_inner, lhs_start),
- }
- };
- for (hoist, hoist_end) in hoisted {
- between = apply_between_hoist(&self.emit, between, hoist);
- between = self.stamp_hoist_pos(between, lhs_start, hoist_end);
- }
- *lhs = between;
+ *lhs = self.wrap_pos(between_inner, lhs_start);
Ok(Some(true))
}
TokenKind::Keyword(Kw::In) => {
@@ -5142,40 +5140,21 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
}
_ => Ok(None),
},
- // `[e] BETWEEN low AND high`
+ // `[e] BETWEEN low AND high`. BETWEEN binds at the comparison tier
+ // (BP_BETWEEN), so the bounds are parsed above BP_AND and cannot swallow
+ // a trailing `AND` chain — `a BETWEEN b AND c AND d` becomes
+ // `(a BETWEEN b AND c) AND d`. The low bound parses at BP_BETWEEN (a
+ // nested BETWEEN chains into it); the high at BP_BETWEEN + 1 (a trailing
+ // BETWEEN chains left-associatively via the outer Pratt loop instead).
TokenKind::Keyword(Kw::Between) => {
if BP_BETWEEN < min_bp {
return Ok(None);
}
self.bump()?;
- let (low, high, hoisted) = self.parse_between_body(min_bp)?;
+ let (low, high) = self.parse_between_body()?;
let prev = std::mem::replace(lhs, self.emit.null());
- // The simple BETWEEN spans through the high operand's *last consumed*
- // token — including a trailing `)` that a parenthesized high
- // (`… and (3)`) strips from `high.end`. The WIDE/hoist case can't
- // use `last_consumed_end` (it's past the hoist), so it stamps the
- // high operand's end directly, recovering a parenthesized high's
- // trailing `)` via `high_operand_paren_end` (the node `end` is
- // paren-stripped).
- let high_end = high_operand_paren_end(self, &high)
- .or_else(|| self.emit.get_field(&high, "end"));
let between_inner = self.emit.between(prev, low, high, false);
- let mut between = if hoisted.is_empty() {
- self.wrap_pos(between_inner, lhs_start)
- } else {
- match high_end {
- Some(end) => {
- self.emit
- .with_pos(between_inner, self.pos_obj(lhs_start), end)
- }
- None => self.wrap_pos(between_inner, lhs_start),
- }
- };
- for (hoist, hoist_end) in hoisted {
- between = apply_between_hoist(&self.emit, between, hoist);
- between = self.stamp_hoist_pos(between, lhs_start, hoist_end);
- }
- *lhs = between;
+ *lhs = self.wrap_pos(between_inner, lhs_start);
Ok(Some(true))
}
// `[e] IN ...` (plain, no NOT)
@@ -5332,159 +5311,34 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
}
let prev = std::mem::replace(lhs, self.emit.null());
*lhs = self.emit.alias(prev, &name);
+ // `AS`/aliases sit in the loosest (boolean) grammar tier, so only an
+ // outer-tier operator may bind to a bare alias — `AND`, `OR`, ternary
+ // (`?`), or a chained `AS` wrap it, while a value-tier operator (`+`,
+ // `[`, `::`, `BETWEEN`, `IS`, a call `()`, …) cannot and terminates the
+ // expression (cpp rejects `1 AS x + 2`; parenthesise as `(1 AS x) + 2`).
+ // The Pratt loop's next iteration reads this flag and stops before
+ // folding a value-tier op onto the alias.
+ self.after_bare_alias = true;
Ok(Some(true))
}
_ => Ok(None),
}
}
- /// Parse the body of a BETWEEN (`<low> AND <high>`). cpp's grammar
- /// at line 285 is `columnExpr NOT? BETWEEN columnExpr AND columnExpr`,
- /// left-recursive; the line-284 TODO acknowledges cpp's resolution is
- /// "rightmost AND in body is the separator." Across body shapes:
- ///
- /// `a BETWEEN b AND c AND d` → low=And(b,c), high=d
- /// `a NOT BETWEEN b AND c OR d` → low=b, high=Or(c,d)
- /// `a BETWEEN y AS alias AND high` → low=Alias(y,alias), high=high
- /// `a BETWEEN lambda y : a AND b AND high` → low=Lambda(y, And(a,b)), high=high
- /// `a BETWEEN x ? y : c AND high` → low=if(x,y,c), high=high
- /// `a BETWEEN name := value AND high` → low=NamedArg(name,value), high=high
- /// `a BETWEEN b AND c ? then : else` → if(BETWEEN(a,b,c), then, else)
- /// `a NBT b AND c NBT 4 AND 5` → BETWEEN(BETWEEN(a,b,c), 4, 5)
- ///
- /// Strategy: `try_alt` between two alternatives that cover this set.
- ///
- /// **Narrow alt** (`BP_BETWEEN + 1`): the body parse stops at any
- /// operator with BP ≤ BP_BETWEEN — that's `TERNARY` (20), `ALIAS`
- /// (10), and BETWEEN itself (30). Everything tighter (AND, OR,
- /// comparison, arithmetic) chains into the body. The split then
- /// peels the rightmost AND.
- ///
- /// The narrow alt handles the trailing-construct cases cleanly:
- /// `a BTWN b AND c ? then : else` — body stops at `?`, returns
- /// (b, c); the outer Pratt loop applies the ternary OUTSIDE the
- /// BetweenExpr. `a NBT b AND c NBT 4 AND 5` — body stops at the
- /// second NBT, returns (b, c); the outer Pratt loop chains a
- /// second BETWEEN with the first as `.expr`. This is what made the
- /// `BetweenWrap` machinery unnecessary.
- ///
- /// **Wide alt** (`BP = 0`): handles the cases where the construct
- /// carrying the rightmost AND lives INSIDE the body — lambda's
- /// expression slot (`lambda y : a AND b AND high`), named-arg's
- /// value (`name := value AND high`), AS-alias's expression (`y AS
- /// alias AND high`), ternary's else-arm (`x ? y : c AND high`).
- /// `parse_expr_bp(0)` absorbs the lower-precedence wrappers; the
- /// split's descent rules in `split_at_rightmost_and` then walk
- /// into them to find the rightmost AND.
- ///
- /// Both alts share the same post-parse split + literal-AND
- /// fallback; the difference is just the starting BP.
- /// Stamp a hoisted BETWEEN wrapper's span. Every wrapper starts at the
- /// BETWEEN's leftmost operand (`start`); the `end` is the wrapper's own last
- /// token, captured during the split. `apply_between_hoist` builds a
- /// position-less node, so `with_pos` fills it; the OUTERMOST wrapper's span
- /// matches the outer pratt `wrap_pos` (idempotent). Falls back to
- /// `wrap_pos` when the end wasn't captured.
- fn stamp_hoist_pos(&self, node: E::Value, start: usize, end: Option<E::Value>) -> E::Value {
- match end {
- Some(e) => self.emit.with_pos(node, self.pos_obj(start), e),
- None => self.wrap_pos(node, start),
- }
- }
-
- fn parse_between_body(
- &mut self,
- outer_min_bp: u8,
- ) -> Result<BetweenSplit<E::Value>, ParseError> {
- // Depth-aware arm ordering:
- // - OUTERMOST call (depth=0): WIDE first. The body greedy
- // parse maximizes what's inside the OUTER BETWEEN; split
- // reassociates via low-peel / expr-hoist / alias-hoist /
- // ternary-hoist to produce cpp's shape.
- // - NESTED call (depth>=1): NARROW first. Inside an outer
- // body parse, a nested BETWEEN must NOT consume the outer's
- // trailing ternary / AND / etc. — cpp's left-recursive
- // grammar gives each nested BETWEEN the SHORTEST body that
- // lets the chain succeed.
- //
- // Arm ordering plus a hoist-compatibility filter on the WIDE
- // arm together model cpp's ANTLR ALL(*) "longest-parse-that-
- // lets-outer-succeed". WIDE explores the maximum body extent
- // (BP=0). If the resulting split's hoist contains a wrapper
- // whose precedence is below the outer context's `outer_min_bp`,
- // the WIDE arm REJECTS — the outer context owns that wrapper.
- // Example: in `x ? a : b BETWEEN c AND d AS al` with
- // outer_min_bp=BP_TERNARY=20, WIDE absorbs `c AND d AS al`,
- // splits to `(c, d, [Alias('al')])`. Alias' BP_ALIAS=10 <= 20,
- // so the WIDE alt rejects and the next narrower arm runs at
- // BP_ALIAS+1=11 (floored by outer_min_bp), which doesn't
- // absorb AS — letting the outer Pratt apply Alias(if(...),
- // al). For `... AS al AND y` (with a trailing AND), WIDE's
- // split gives `(Alias(And(c,d), al), y, [])` — empty hoist,
- // commit.
- self.between_body_depth += 1;
- let alt_bps: [u8; 3] = if self.between_body_depth == 1 {
- [0, BP_ALIAS + 1, BP_BETWEEN + 1]
- } else {
- [BP_BETWEEN + 1, BP_ALIAS + 1, 0]
- };
- // Narrower arms still respect outer_min_bp via flooring — they
- // serve as the fallback when WIDE rejects. WIDE itself is
- // intentionally UN-floored so its hoist-compatibility check
- // is the sole disambiguator at the top of the arm chain.
- let floored: [u8; 3] = [
- alt_bps[0],
- alt_bps[1].max(outer_min_bp),
- alt_bps[2].max(outer_min_bp),
- ];
- let result = self.try_alt(&[
- &|p| Self::parse_between_body_arm_wide(p, floored[0], outer_min_bp),
- &|p| Self::parse_between_body_arm(p, floored[1]),
- &|p| Self::parse_between_body_arm(p, floored[2]),
- ]);
- self.between_body_depth -= 1;
- result
- }
-
- /// Wide-arm wrapper: parses at the unfloored BP, then post-filters
- /// the split's hoist by `outer_min_bp`. A hoist of type X with BP <=
- /// outer_min_bp means the outer context wants to apply X itself,
- /// not have it inside BETWEEN's hoist chain — so we REJECT this
- /// arm and let `try_alt` fall to the next (narrower, floored) arm.
- fn parse_between_body_arm_wide(
- &mut self,
- start_bp: u8,
- outer_min_bp: u8,
- ) -> Result<BetweenSplit<E::Value>, ParseError> {
- let (low, high, hoisted) = Self::parse_between_body_arm(self, start_bp)?;
- if hoisted.iter().any(|(h, _)| hoist_min_bp(h) <= outer_min_bp) {
- return Err(
- self.err("WIDE body hoist conflicts with outer precedence; falling through")
- );
- }
- Ok((low, high, hoisted))
- }
-
- /// Shared body of `parse_between_body`'s two `try_alt` arms,
- /// parameterized by the starting binding power. See
- /// `parse_between_body` for the narrow/wide rationale.
- fn parse_between_body_arm(
- &mut self,
- start_bp: u8,
- ) -> Result<BetweenSplit<E::Value>, ParseError> {
- let chain = self.parse_expr_bp(start_bp)?;
- if let Some((low, high, hoisted)) = split_at_rightmost_and(self, &chain) {
- return Ok((low, high, hoisted));
- }
- // The body had no AND that the split could find — consume the
- // mandatory literal AND and parse `high` directly. Reached for
- // shapes like `a BETWEEN b AND c` parsed with the narrow alt
- // where the body parse stopped at the AND (BP_AND=50 vs
- // start_bp=31, both alts admit AND, so this branch is mostly a
- // safety net for inputs where the rightmost-AND descent fails).
+ /// Parse the `<low> AND <high>` body of a BETWEEN. BETWEEN binds at the
+ /// comparison tier (`BP_BETWEEN`, tighter than `AND`/`OR`/`NOT`), matching
+ /// cpp's grammar where the tested expression and both bounds are
+ /// `columnExprValue`. The `AND` separator sits at `BP_AND < BP_BETWEEN`, so
+ /// the low bound stops before it rather than swallowing the surrounding
+ /// `AND` chain. The low bound parses at `BP_BETWEEN` (a nested BETWEEN
+ /// chains into it — cpp's greedy interior operand); the high bound at
+ /// `BP_BETWEEN + 1` (a trailing BETWEEN instead chains left-associatively
+ /// onto the whole expression via the outer Pratt loop).
+ fn parse_between_body(&mut self) -> Result<(E::Value, E::Value), ParseError> {
+ let low = self.parse_expr_bp(BP_BETWEEN)?;
self.expect_kw(Kw::And, "AND")?;
let high = self.parse_expr_bp(BP_BETWEEN + 1)?;
- Ok((chain, high, Vec::new()))
+ Ok((low, high))
}
}
@@ -5704,1110 +5558,6 @@ fn peek_can_start_clause_body(tok: TokenKind) -> bool {
}
}
-/// One outer wrapper that the caller of `parse_between_body` should
-/// apply around the built BetweenExpr, in order (innermost first).
-/// Used to reassemble cpp's shape when Pratt's greedy body parse
-/// absorbed something that cpp's left-recursive grammar would have
-/// folded OUTSIDE the BETWEEN.
-///
-/// - `Alias(name)` — `BETWEEN body AND high AS alias` puts the alias
-/// on the BetweenExpr (BETWEEN binds tighter than alias-postfix).
-/// - `Between { low, high, negated }` — chained `<X> BETWEEN body1
-/// AND high1 BETWEEN body2 AND high2` builds left-recursively, so
-/// the SECOND BETWEEN wraps the FIRST. When the FIRST's body parse
-/// greedily consumed the second BETWEEN, we hoist the second out
-/// to be applied to the outer BetweenExpr the caller will build.
-/// - `Ternary { then_branch, else_branch }` — `(BETWEEN body AND
-/// high) ? then : else` parses with BETWEEN binding tighter than
-/// ternary, so the ternary wraps the BetweenExpr. When the body
-/// parse absorbed the AND inside an if-call's cond (`if(And(low,
-/// high), then, else)`), we hoist the ternary's then/else out to
-/// wrap the BetweenExpr the caller builds.
-#[derive(Debug, Clone)]
-pub(crate) enum BetweenHoist<V> {
- Alias(String),
- Between {
- low: V,
- high: V,
- negated: bool,
- },
- Ternary {
- then_branch: V,
- else_branch: V,
- },
- /// `Or(left_siblings ... , <expr>, right_siblings ...)` — the
- /// greedy body parse absorbed an OR whose AND-carrying child sits
- /// inside a looser wrapper (Alias / Lambda / NamedArg / Ternary).
- /// cpp's left-recursive grammar treats the wrapper as terminating
- /// BETWEEN's high body, so the OR (and its siblings) become an
- /// outer wrapper around the alias-wrapped BetweenExpr.
- Or {
- left_siblings: Vec<V>,
- right_siblings: Vec<V>,
- },
- /// `IsDistinctFrom(<expr>, right, negated?)` — `BETWEEN body AND
- /// high AS al IS [NOT] DISTINCT FROM rhs` parses with the IS
- /// DISTINCT FROM as the OUTERMOST node when an AS-alias sits
- /// between BETWEEN's high and the IS DISTINCT FROM (the alias
- /// terminates BETWEEN's high body, and IS DISTINCT FROM applies
- /// to the alias-wrapped BetweenExpr).
- IsDistinctFrom {
- right: V,
- negated: bool,
- },
- /// `IsNull(<expr>, negated?)` — `BETWEEN body AND high AS al IS
- /// [NOT] NULL` has the same shape: alias terminates body, IS NULL
- /// applies to the alias-wrapped BetweenExpr.
- IsNull {
- negated: bool,
- },
- /// `ArrayAccess(<expr>, property, nullish?)` — postfix `[…]`,
- /// `.<ident>` (when re-rooted), or `?.<ident>` on top of an
- /// alias-wrapped BetweenExpr. cpp's `ColumnExprArrayAccess` /
- /// nullish-property forms apply at higher precedence than the
- /// alias-wrap; when the body parse absorbed the access along
- /// with the alias, we hoist it OUTSIDE the alias around the
- /// BetweenExpr.
- ArrayAccess {
- property: V,
- nullish: bool,
- },
- /// `ExprCall(<expr>, args)` — postfix `(<args>)` on top of the
- /// alias-wrapped BetweenExpr. cpp's `ColumnExprCall` at
- /// BP_POSTFIX=130 wraps OUTSIDE BetweenExpr (BP_BETWEEN=30);
- /// when the WIDE body parse absorbed the call along with an
- /// inner Alias / Lambda layer carrying the BETWEEN-separator AND,
- /// the ExprCall hoists out alongside the alias to wrap the
- /// final BetweenExpr.
- ExprCall {
- args: Vec<V>,
- },
- /// `TypeCast(<expr>, "<type-ident>")` — postfix `:: <type>` at
- /// BP_POSTFIX=130. Same hoisting rationale as ExprCall: the
- /// type-cast attaches OUTSIDE the BetweenExpr after the inner
- /// AND-bearing wrapper chain is peeled.
- TypeCast {
- type_name: String,
- },
- /// `TupleAccess(<tuple>, index, nullish?)` — postfix `.<NUMBER>`
- /// / `?.<NUMBER>` at BP_POSTFIX=130. Same hoisting rationale as
- /// ArrayAccess (which carries the `.<ident>` / `?.<ident>` /
- /// `[<expr>]` cases). cpp lowers the two postfix families to
- /// different nodes (`TupleAccess` vs `ArrayAccess`) so we keep
- /// them as separate hoist variants rather than collapsing.
- TupleAccess {
- index: i64,
- nullish: bool,
- },
- /// `ArithmeticOperation(<expr>, op, right)` — a binary arith op
- /// whose AND was buried in its LEFT side (typically via an
- /// alias-around-And chain inside the .left). The arith op
- /// attaches OUTSIDE the BetweenExpr after the alias-wrapped
- /// And-chain is peeled. (The MIRRORED case of arith with AND in
- /// its RIGHT — `between c and ({}) * lambda q : ... and 999999`
- /// — is handled by the `.right`-descent branch in
- /// `split_at_rightmost_and` which keeps the arith node in place
- /// rather than hoisting.)
- ArithmeticOperation {
- op: String,
- right: V,
- },
-}
-
-/// A hoisted BETWEEN wrapper paired with the `end` position of the
-/// original node it was lifted from. The `end` lets the apply loop stamp
-/// `[lhs_start, end]` on each wrapper so the INNER ones (which the outer
-/// pratt `wrap_pos` never reaches once a further wrapper sits outside
-/// them) carry cpp's span — e.g. `1 between 2 and 3 as l :: Int` needs the
-/// Alias at `[0, end-of-`l`]` and the TypeCast at `[0, end-of-`Int`]`.
-type HoistWithEnd<V> = (BetweenHoist<V>, Option<V>);
-
-/// Result of finding the BETWEEN separator AND inside a greedy body
-/// parse. `hoisted` wrappers are applied around the BetweenExpr by
-/// the caller of `parse_between_body`, innermost first.
-type BetweenSplit<V> = (V, V, Vec<HoistWithEnd<V>>);
-
-/// The lowest binding power at which this hoist's outer wrapper can
-/// fire. Used by `parse_between_body_arm_wide` to detect when an
-/// outer Pratt context (the parent caller of `parse_between_body`)
-/// would itself claim the wrapper — in which case the WIDE arm must
-/// reject so the wrapper attaches at the outer level instead of
-/// being applied INSIDE the BETWEEN.
-fn hoist_min_bp<V>(hoist: &BetweenHoist<V>) -> u8 {
- match hoist {
- BetweenHoist::Alias(_) => BP_ALIAS,
- BetweenHoist::Ternary { .. } => BP_TERNARY,
- BetweenHoist::Between { .. } => BP_BETWEEN,
- BetweenHoist::Or { .. } => BP_OR,
- BetweenHoist::IsDistinctFrom { .. } => BP_IS_DISTINCT_FROM,
- BetweenHoist::IsNull { .. } => BP_IS_NULL,
- BetweenHoist::ArrayAccess { .. } => BP_POSTFIX,
- BetweenHoist::ExprCall { .. } => BP_POSTFIX,
- BetweenHoist::TypeCast { .. } => BP_POSTFIX,
- BetweenHoist::TupleAccess { .. } => BP_POSTFIX,
- // Arith hoists conservatively assume MULT (the tightest of
- // the binary arith family). If the WIDE arm absorbed a /+
- // -/concat/mod with the AND inside its left, we'd still want
- // to hoist — using the lowest member (additive at 100) would
- // still be above BP_BETWEEN so the gating check rarely
- // affects this hoist either way.
- BetweenHoist::ArithmeticOperation { .. } => BP_ADDITIVE,
- }
-}
-
-/// Apply one outer wrapper around an in-progress BetweenExpr.
-fn apply_between_hoist<E: Emitter>(
- emit: &E,
- expr: E::Value,
- hoist: BetweenHoist<E::Value>,
-) -> E::Value {
- match hoist {
- BetweenHoist::Alias(name) => emit.alias(expr, &name),
- BetweenHoist::Between { low, high, negated } => emit.between(expr, low, high, negated),
- BetweenHoist::Ternary {
- then_branch,
- else_branch,
- } => emit.call("if", vec![expr, then_branch, else_branch]),
- BetweenHoist::Or {
- left_siblings,
- right_siblings,
- } => {
- let mut all: Vec<E::Value> = left_siblings;
- all.push(expr);
- all.extend(right_siblings);
- emit.or_(all)
- }
- BetweenHoist::IsDistinctFrom { right, negated } => {
- emit.is_distinct_from(expr, right, negated)
- }
- BetweenHoist::IsNull { negated } => emit.compare_is_null(expr, negated),
- BetweenHoist::ArrayAccess { property, nullish } => {
- emit.array_access(expr, property, nullish)
- }
- BetweenHoist::ExprCall { args } => emit.expr_call(expr, args),
- BetweenHoist::TypeCast { type_name } => {
- // Reconstruct the TypeCast node the WIDE parse produced.
- // Inner field is `expr`; the type identifier is on
- // `type_name` (per cpp's `VISIT(ColumnTypeExprSimple)` —
- // it deserialises to the Python dataclass field of the
- // same name).
- emit.type_cast(expr, &type_name)
- }
- BetweenHoist::TupleAccess { index, nullish } => {
- // cpp's `VISIT(ColumnExprTupleAccess)` emits the inner
- // expression on the `tuple` field, and the dot-number
- // index on `index`. Mirror that.
- emit.tuple_access(expr, index, nullish)
- }
- BetweenHoist::ArithmeticOperation { op, right } => emit.arith(expr, &op, right),
- }
-}
-
-/// The byte offset carried by a position value, if present. ASCII-only —
-/// for non-ASCII sources this is a CHARACTER index, so callers that need a
-/// byte offset must gate on `parser.is_ascii_src` first. The JSON backend
-/// stores positions as `{line, column, offset}`; the Python backend stores
-/// the offset directly as an int — read whichever shape applies.
-fn pos_offset<E: Emitter>(emit: &E, pos: Option<&E::Value>) -> Option<usize> {
- let pos = pos?;
- if let Some(o) = emit.as_i64(pos) {
- return usize::try_from(o).ok();
- }
- let offset = emit.get_field(pos, "offset")?;
- usize::try_from(emit.as_i64(&offset)?).ok()
-}
-
-/// Given a child's inner `[start, end)` byte span, return the
-/// paren-inclusive `(outer_start, outer_end)` by counting the balanced
-/// `(`…`)` pairs that DIRECTLY wrap the child. A leading `(` (skipping
-/// whitespace) only counts when matched by a trailing `)` (skipping
-/// whitespace) — `min(leading_run, trailing_run)` — so parens belonging
-/// to a larger enclosing construct (the synthetic node itself, or a
-/// sibling group) are never absorbed. Byte-scanning is UTF-8-safe here:
-/// `(`, `)` and ASCII whitespace are single-byte and can't collide with
-/// any continuation byte.
-fn paren_inclusive_span(src: &str, start: usize, end: usize) -> (usize, usize) {
- let bytes = src.as_bytes();
- let mut lparens: Vec<usize> = Vec::new();
- let mut i = start;
- while i > 0 {
- i -= 1;
- match bytes[i] {
- b'(' => lparens.push(i),
- b if b.is_ascii_whitespace() => {}
- _ => break,
- }
- }
- let mut rparen_ends: Vec<usize> = Vec::new();
- let mut j = end;
- while j < bytes.len() {
- match bytes[j] {
- b')' => {
- rparen_ends.push(j + 1);
- j += 1;
- }
- b if b.is_ascii_whitespace() => j += 1,
- _ => break,
- }
- }
- let owned = lparens.len().min(rparen_ends.len());
- let new_start = if owned > 0 { lparens[owned - 1] } else { start };
- let new_end = if owned > 0 {
- rparen_ends[owned - 1]
- } else {
- end
- };
- (new_start, new_end)
-}
-
-/// `child`'s `start` position extended backward over the parens it owns,
-/// rebuilt via `parser.pos_obj`. None when `child` lacks scannable byte
-/// offsets (non-ASCII source or a `no_pos` child).
-fn paren_extended_start<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- child: &E::Value,
-) -> Option<E::Value> {
- if !parser.is_ascii_src {
- return None;
- }
- let cs = pos_offset(&parser.emit, parser.emit.get_field(child, "start").as_ref())?;
- let ce = pos_offset(&parser.emit, parser.emit.get_field(child, "end").as_ref())?;
- let (new_start, _) = paren_inclusive_span(parser.src, cs, ce);
- Some(parser.pos_obj(new_start))
-}
-
-/// `child`'s `end` position extended forward over the parens it owns.
-fn paren_extended_end<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- child: &E::Value,
-) -> Option<E::Value> {
- if !parser.is_ascii_src {
- return None;
- }
- let cs = pos_offset(&parser.emit, parser.emit.get_field(child, "start").as_ref())?;
- let ce = pos_offset(&parser.emit, parser.emit.get_field(child, "end").as_ref())?;
- let (_, new_end) = paren_inclusive_span(parser.src, cs, ce);
- Some(parser.pos_obj(new_end))
-}
-
-/// The source-end position of `child` for stamping a synthetic And/Or
-/// or re-stamping a wrapper. A positioned node yields its paren-inclusive
-/// end; a `no_pos` NamedArgument (null `end`, but `name := value` source)
-/// ends where its `value` ends, so descend into it. cpp derives these
-/// ends from the operand's ANTLR ctx stop token even when the visitor
-/// emitted the node without its own position. None when nothing
-/// positioned is reachable.
-fn child_source_end_value<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- child: &E::Value,
-) -> Option<E::Value> {
- if pos_offset(&parser.emit, parser.emit.get_field(child, "end").as_ref()).is_some() {
- return paren_extended_end(parser, child).or_else(|| parser.emit.get_field(child, "end"));
- }
- if parser.emit.node_kind(child).as_deref() == Some("NamedArgument") {
- return child_source_end_value(parser, &parser.emit.get_field(child, "value")?);
- }
- None
-}
-
-/// Re-stamp `node`'s `end` to `child`'s paren-inclusive end. Called by
-/// the stay-in-place wrapper arms of `split_at_rightmost_and` (Lambda /
-/// Not / ArithmeticOperation.right / the if-call else-branch) after they
-/// replace their rightmost child with the SHORTER left side of the AND
-/// split: the wrapper now ends where that child ends, not where the
-/// original greedy body parse stretched it. A `no_pos` wrapper (null
-/// `end`, e.g. NamedArgument) is left bare.
-fn restamp_end_from_child<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- node: &mut E::Value,
- child: &E::Value,
-) {
- // A node with no `end` field, or an explicitly null `end` (e.g. a
- // `no_pos` NamedArgument), is left bare.
- match parser.emit.get_field(node, "end") {
- None => return,
- Some(e) if parser.emit.is_null(&e) => return,
- Some(_) => {}
- }
- if let Some(e) = child_source_end_value(parser, child) {
- parser.emit.set_field(node, "end", e);
- }
-}
-
-/// Stamp `start` / `end` on a synthetic And/Or built by
-/// `split_at_rightmost_and` from a slice of pre-positioned children.
-/// `emit.and_` / `emit.or_` produce position-less JSON; an outer
-/// `wrap_pos` would catch the BETWEEN-level wrap but not the inner
-/// synthetic And/Or that lives inside BetweenExpr's `low` or `high`,
-/// because BetweenExpr's `low` / `high` are direct fields (not nested
-/// expressions that the pratt loop wraps). Derive the span from the
-/// first child's `start` and the last child's `end`. cpp positions
-/// these nodes from the ANTLR ctx of the boundary operands, whose
-/// `ColumnExprParens` start/stop tokens are the OUTER parens — but rust
-/// strips parens to inner spans, so extend the boundary children over
-/// the parens they own (matching the pratt loop's `lhs_start` capture,
-/// which sees the leading `(` as the first token).
-fn stamp_span_from_children<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- mut node: E::Value,
- children: &[E::Value],
-) -> E::Value {
- if children.is_empty() {
- return node;
- }
- let first = &children[0];
- let last = &children[children.len() - 1];
- let start =
- paren_extended_start(parser, first).or_else(|| parser.emit.get_field(first, "start"));
- let end = child_source_end_value(parser, last).or_else(|| parser.emit.get_field(last, "end"));
- if let Some(s) = start {
- parser.emit.set_field(&mut node, "start", s);
- }
- if let Some(e) = end {
- parser.emit.set_field(&mut node, "end", e);
- }
- node
-}
-
-/// Walk an already-parsed boolean tree to find the rightmost AND in
-/// source order and split there. Returns `(left_of_and, right_of_and)`.
-/// Used by `parse_between_body` to apply ANTLR's "rightmost AND is the
-/// separator" resolution to a tree we built greedily.
-///
-/// Walking semantics:
-/// - An `And` node IS the AND. Peel the last operand: `low =
-/// And(exprs[:-1])` (collapsed when length 2), `high = exprs[-1]`.
-/// - An `Or` node defers — walk children right-to-left so we find the
-/// *latest* AND-bearing child. Reconstruct the Or above the split.
-/// - Anything else has no AND in it; return None.
-/// True when `node` is wholly wrapped in parentheses in the source. Parens are
-/// stripped at parse time and the node carries the INNER span, so we look
-/// OUTWARD: the nearest non-whitespace byte before `start` must be `(`, the
-/// nearest at/after `end` must be `)`, and that `(` must balance-match that
-/// exact `)` (so `(b) and (c)` — whose outer `(`/`)` belong to different pairs —
-/// is NOT treated as wholly parenthesized). The split must treat such a node as
-/// opaque: cpp picks the rightmost AND at paren-depth 0, so an AND inside
-/// `(...)` is never the BETWEEN separator (`1 between a and (b and c)` keeps
-/// `high = (b and c)`, not the inner AND). Skips string / quoted-identifier
-/// bodies and block comments so parens inside literals don't miscount.
-/// ASCII-gated (byte-scan); callers fall back to descend-anyway on non-ASCII.
-fn is_wholly_parenthesized<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- node: &E::Value,
-) -> bool {
- let start = pos_offset(&parser.emit, parser.emit.get_field(node, "start").as_ref());
- let end = pos_offset(&parser.emit, parser.emit.get_field(node, "end").as_ref());
- match (start, end) {
- (Some(s), Some(e)) => wholly_parenthesized_close(parser, s, e).is_some(),
- _ => false,
- }
-}
-
-/// If the byte range `[start, end)` is wholly wrapped in one balanced `( … )`
-/// (ignoring surrounding whitespace, and skipping string / quoted-identifier
-/// bodies and block comments so parens inside literals don't miscount),
-/// return that pair's `(` / `)` byte offsets `(lp, rp)`. ASCII byte-scan;
-/// callers gate on `parser.is_ascii_src`.
-fn wholly_parenthesized_close<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- start: usize,
- end: usize,
-) -> Option<(usize, usize)> {
- let bytes = parser.src.as_bytes();
- if start >= end || end > bytes.len() {
- return None;
- }
- // Nearest non-whitespace byte before `start` must be an opening paren.
- let mut lp = start;
- loop {
- if lp == 0 {
- return None;
- }
- lp -= 1;
- if !bytes[lp].is_ascii_whitespace() {
- break;
- }
- }
- if bytes[lp] != b'(' {
- return None;
- }
- // Nearest non-whitespace byte at/after `end` must be a closing paren.
- let mut rp = end;
- while rp < bytes.len() && bytes[rp].is_ascii_whitespace() {
- rp += 1;
- }
- if rp >= bytes.len() || bytes[rp] != b')' {
- return None;
- }
- // The `(` at `lp` must balance-match the `)` at `rp` exactly.
- let mut depth = 0i32;
- let mut i = lp;
- while i <= rp {
- match bytes[i] {
- q @ (b'\'' | b'"' | b'`') => {
- i += 1;
- while i <= rp {
- let c = bytes[i];
- if c == b'\\' {
- i += 2; // backslash escape
- continue;
- }
- if c == q {
- if i < rp && bytes[i + 1] == q {
- i += 2; // doubled-quote escape
- continue;
- }
- break; // closing quote
- }
- i += 1;
- }
- }
- b'/' if i < rp && bytes[i + 1] == b'*' => {
- i += 2;
- while i < rp && !(bytes[i] == b'*' && bytes[i + 1] == b'/') {
- i += 1;
- }
- i += 1; // skip the `*`; the outer `i += 1` skips the `/`
- }
- b'(' => depth += 1,
- b')' => {
- depth -= 1;
- if depth == 0 {
- return (i == rp).then_some((lp, rp));
- }
- }
- _ => {}
- }
- i += 1;
- }
- None
-}
-
-/// The source offset just past a BETWEEN high operand, following any balanced
-/// wrapping parens. cpp's BetweenExpr span runs through a parenthesized high's
-/// trailing `)`, but the high AST node's `end` is the paren-stripped inner
-/// expr — so in the hoist case (where `last_consumed_end` has already moved
-/// past the hoist and can't be used) the node `end` undershoots by the closing
-/// paren(s). Returns a position object for the walked end, or `None` when the
-/// operand isn't parenthesized (caller keeps the node `end`) or src isn't ASCII.
-fn high_operand_paren_end<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- high: &E::Value,
-) -> Option<E::Value> {
- if !parser.is_ascii_src {
- return None;
- }
- let mut s = pos_offset(&parser.emit, parser.emit.get_field(high, "start").as_ref())?;
- let mut e = pos_offset(&parser.emit, parser.emit.get_field(high, "end").as_ref())?;
- let mut extended = false;
- while let Some((lp, rp)) = wholly_parenthesized_close(parser, s, e) {
- s = lp;
- e = rp + 1;
- extended = true;
- }
- extended.then(|| parser.pos_obj(e))
-}
-
-/// `a and (b and c)` flattens to `And([a,b,c])` (cpp does the same for a
-/// standalone expr), but in a BETWEEN body cpp keeps `(b and c)` as one high
-/// operand because the rightmost AND at paren-depth 0 is the one BEFORE the
-/// parens. The flattened node erases the grouping from its structure, so
-/// recover it from spans: scan from the node's start tracking paren-depth and
-/// split at the rightmost operand still at the node's base depth — the trailing
-/// deeper-nested operands are the parenthesized group (the high). Returns
-/// `(low, high)` only when such a trailing group exists (caller's normal split
-/// handles the rest). The group node gets the INNER span (its wrapping parens
-/// belong to the enclosing grammar, not the And/Or). ASCII-gated.
-fn try_trailing_paren_group_split<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- node: &E::Value,
- exprs: &[E::Value],
- is_or: bool,
-) -> Option<(E::Value, E::Value)> {
- if !parser.is_ascii_src || exprs.len() < 3 {
- return None;
- }
- let node_start = pos_offset(&parser.emit, parser.emit.get_field(node, "start").as_ref())?;
- let starts: Vec<usize> = exprs
- .iter()
- .map(|e| pos_offset(&parser.emit, parser.emit.get_field(e, "start").as_ref()))
- .collect::<Option<Vec<_>>>()?;
- let ends: Vec<usize> = exprs
- .iter()
- .map(|e| pos_offset(&parser.emit, parser.emit.get_field(e, "end").as_ref()))
- .collect::<Option<Vec<_>>>()?;
- let bytes = parser.src.as_bytes();
- let last_start = *starts.last().unwrap();
- if node_start > starts[0] || last_start >= bytes.len() {
- return None;
- }
- // For each junction k (gap between operand k and k+1) the AND/OR keyword sits
- // at the gap's MINIMUM paren-depth — after any `)` closes, before any `(`
- // opens. A junction at the node's base depth is a real top-level separator;
- // deeper ones are inside parens. Scan once, sampling the running depth across
- // each gap. (String / quoted-ident bodies and block comments are skipped so
- // their parens don't miscount.)
- let mut jmin = vec![i32::MAX; exprs.len() - 1];
- let mut depth = 0i32;
- let mut k_op = 0usize;
- let mut i = node_start;
- while i <= last_start {
- while k_op + 1 < starts.len() && i >= starts[k_op + 1] {
- k_op += 1;
- }
- let in_gap = k_op + 1 < exprs.len() && i >= ends[k_op];
- match bytes[i] {
- q @ (b'\'' | b'"' | b'`') => {
- i += 1;
- while i <= last_start {
- let c = bytes[i];
- if c == b'\\' {
- i += 2;
- continue;
- }
- if c == q {
- if i < last_start && bytes[i + 1] == q {
- i += 2;
- continue;
- }
- break;
- }
- i += 1;
- }
- }
- b'/' if i < last_start && bytes[i + 1] == b'*' => {
- i += 2;
- while i < last_start && !(bytes[i] == b'*' && bytes[i + 1] == b'/') {
- i += 1;
- }
- i += 1;
- }
- b'(' => {
- if in_gap {
- jmin[k_op] = jmin[k_op].min(depth);
- }
- depth += 1;
- }
- b')' => {
- if in_gap {
- jmin[k_op] = jmin[k_op].min(depth);
- }
- depth -= 1;
- }
- _ => {
- if in_gap {
- jmin[k_op] = jmin[k_op].min(depth);
- }
- }
- }
- i += 1;
- }
- let base = *jmin.iter().min().unwrap();
- let mut split_idx = 0usize;
- for (k, d) in jmin.iter().enumerate() {
- if *d == base {
- split_idx = k;
- }
- }
- // A trailing parenthesized group needs 2+ operands after the split point;
- // otherwise the normal "pop the last operand" split already matches.
- if split_idx >= exprs.len() - 2 {
- return None;
- }
- let build = |lo: usize, hi_excl: usize| -> E::Value {
- let group: Vec<E::Value> = exprs[lo..hi_excl].to_vec();
- if group.len() == 1 {
- return group.into_iter().next().unwrap();
- }
- let n = if is_or {
- parser.emit.or_(group.clone())
- } else {
- parser.emit.and_(group.clone())
- };
- // Span from the children (paren-extended per child), matching cpp's
- // ctx — the group's OWN wrapping parens belong to the enclosing grammar.
- stamp_span_from_children(parser, n, &group)
- };
- let low = build(0, split_idx + 1);
- let high = build(split_idx + 1, exprs.len());
- Some((low, high))
-}
-
-fn split_at_rightmost_and<'a, E: Emitter + Clone>(
- parser: &Parser<'a, E>,
- node: &E::Value,
-) -> Option<BetweenSplit<E::Value>> {
- // A parenthesized sub-expression is opaque to the rightmost-AND search:
- // its ANDs sit at paren-depth > 0 and can't be the BETWEEN separator.
- if parser.is_ascii_src && is_wholly_parenthesized(parser, node) {
- return None;
- }
- let node_name = parser.emit.node_kind(node);
- let node_name = node_name.as_deref();
- // `node`'s `end` is the end of the wrapper this frame hoists (Alias, cast,
- // postfix, …). Captured once so each `hoisted.push` can record it for the
- // apply loop to stamp the wrapper's `[lhs_start, end]` span — needed for
- // INNER wrappers the outer pratt `wrap_pos` never reaches.
- let node_end = parser.emit.get_field(node, "end");
- if node_name == Some("And") {
- let exprs = parser
- .emit
- .get_field(node, "exprs")
- .and_then(|v| parser.emit.as_list(&v))?;
- if exprs.len() < 2 {
- return None;
- }
- // A trailing parenthesized group (`a and (b and c)` -> And([a,b,c])) is
- // the opaque high; split before it at the paren-depth-0 AND.
- if let Some((low, high)) = try_trailing_paren_group_split(parser, node, &exprs, false) {
- return Some((low, high, Vec::new()));
- }
- // Try descending the LAST element first — it may itself contain
- // a deeper AND that's the rightmost in source order. e.g.
- // `(a) * b AND c := d AND e` parses as
- // `And(Arith, NamedArg(c, And(d, e)))`; the rightmost source
- // AND is between `d` and `e` (inside NamedArg.value). cpp
- // splits there, leaving NamedArg.value=d and using `e` as the
- // outer high. Without this descent we'd just pop the last
- // element (NamedArg) wholesale and lose that AND.
- if let Some((deep_left, deep_right, hoisted)) =
- split_at_rightmost_and(parser, &exprs[exprs.len() - 1])
- {
- let mut new_exprs = exprs.clone();
- let last_idx = new_exprs.len() - 1;
- new_exprs[last_idx] = deep_left;
- let new_left = if new_exprs.len() == 1 {
- new_exprs.into_iter().next().unwrap()
- } else {
- let synthetic = parser.emit.and_(new_exprs.clone());
- stamp_span_from_children(parser, synthetic, &new_exprs)
- };
- return Some((new_left, deep_right, hoisted));
- }
- // No deeper AND in the last element — pop it as the split.
- let mut exprs = exprs;
- let right = exprs.pop().unwrap();
- let left = if exprs.len() == 1 {
- exprs.pop().unwrap()
- } else {
- let synthetic = parser.emit.and_(exprs.clone());
- stamp_span_from_children(parser, synthetic, &exprs)
- };
- return Some((left, right, Vec::new()));
- }
- if node_name == Some("Or") {
- let exprs = parser
- .emit
- .get_field(node, "exprs")
- .and_then(|v| parser.emit.as_list(&v))?;
- for i in (0..exprs.len()).rev() {
- if let Some((left_in, right_in, mut hoisted)) =
- split_at_rightmost_and(parser, &exprs[i])
- {
- if hoisted.is_empty() {
- // AND was found directly inside the Or's child (no
- // looser-wrapper between them). cpp's grammar lets
- // BETWEEN's high absorb the OR, so left/right
- // children flow into the high alongside the descent
- // result. `x BETWEEN low AND high OR rest` →
- // BETWEEN(x, low, Or(high, rest)).
- let mut left_children: Vec<E::Value> = exprs[..i].to_vec();
- left_children.push(left_in);
- let left = if left_children.len() == 1 {
- left_children.pop().unwrap()
- } else {
- let synthetic = parser.emit.or_(left_children.clone());
- stamp_span_from_children(parser, synthetic, &left_children)
- };
- let mut right_children: Vec<E::Value> = Vec::with_capacity(exprs.len() - i);
- right_children.push(right_in);
- right_children.extend_from_slice(&exprs[i + 1..]);
- let right = if right_children.len() == 1 {
- right_children.pop().unwrap()
- } else {
- let synthetic = parser.emit.or_(right_children.clone());
- stamp_span_from_children(parser, synthetic, &right_children)
- };
- return Some((left, right, hoisted));
- }
- // The descent passed THROUGH a looser wrapper (Alias /
- // Lambda / NamedArg / Ternary). cpp treats the wrapper
- // as terminating BETWEEN's high body, so the OR (and
- // its siblings) hoist OUTSIDE the wrapper rather than
- // being absorbed into the high. Pushing the Or hoist
- // AFTER `hoisted` puts it OUTSIDE the wrappers the
- // descent has accumulated.
- let left_siblings: Vec<E::Value> = exprs[..i].to_vec();
- let right_siblings: Vec<E::Value> = exprs[i + 1..].to_vec();
- if !left_siblings.is_empty() || !right_siblings.is_empty() {
- hoisted.push((
- BetweenHoist::Or {
- left_siblings,
- right_siblings,
- },
- node_end,
- ));
- }
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // Wrappers whose rightmost expression slot can contain the AND
- // that ALL(*) treats as BETWEEN's separator. Recurse, then
- // reconstruct the wrapper around the left side; the right side
- // surfaces as BETWEEN's high.
- //
- // - Lambda.expr — bare-list / parens / colon lambda bodies.
- // - NamedArgument.value — `name := body AND high`.
- // - Call(name='if').args[2] — `cond ? then : else AND high` (the
- // ternary lowers to an `if` call with else in args[2]).
- // - Alias.expr — `body AND high AS outer` (greedy parse wraps the
- // AND in an Alias). cpp's grammar has BETWEEN at higher
- // precedence than alias-postfix, so the alias goes OUTSIDE the
- // BetweenExpr. Descend through the Alias and HOIST its name to
- // the caller's outer-wrap list.
- if node_name == Some("Lambda") {
- if let Some(inner) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, hoisted)) = split_at_rightmost_and(parser, &inner) {
- let mut new_node = node.clone();
- restamp_end_from_child(parser, &mut new_node, &left_in);
- parser.emit.set_field(&mut new_node, "expr", left_in);
- return Some((new_node, right_in, hoisted));
- }
- }
- }
- // `Not(expr)` — same shape as Lambda. The AND-reservation context
- // for BETWEEN's body must pass *through* a NOT prefix into the
- // wrapped expression. `a BETWEEN NOT lambda x : b AND c` parses
- // as `Not(Lambda(x, And(b, c)))` greedily; descending into
- // `Not.expr` peels the AND off so the outer BETWEEN sees its own
- // `low = Not(Lambda(x, b))`, `high = c` split.
- if node_name == Some("Not") {
- if let Some(inner) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, hoisted)) = split_at_rightmost_and(parser, &inner) {
- let mut new_node = node.clone();
- restamp_end_from_child(parser, &mut new_node, &left_in);
- parser.emit.set_field(&mut new_node, "expr", left_in);
- return Some((new_node, right_in, hoisted));
- }
- }
- }
- // ArithmeticOperation has two slots that can carry the BETWEEN-
- // separator AND, and the two shapes need DIFFERENT handling:
- //
- // 1. AND in `.right` (typically buried under a BP-resetting
- // wrapper like Lambda.expr or NamedArgument.value): the arith
- // op STAYS in place wrapping a piece of the BETWEEN LOW.
- // Example: `BETWEEN columns(*) AND {} * lambda q : ... AND
- // 999999` — the deepest source AND is inside Lambda's body
- // under Mul.right; the Mul itself belongs to the LOW.
- //
- // 2. AND in `.left` (typically via an Alias-around-And chain
- // inside the arith's left operand): the arith op HOISTS
- // outside the BetweenExpr. Example: `BETWEEN (1) AS p AND 2
- // AS al * y` — the rightmost AND is between `(1) as p` and
- // `2 as al`; the trailing `* y` wraps the BetweenExpr after
- // the inner alias's hoist applies.
- //
- // Try `.right` first (keep in place); on failure try `.left`
- // (hoist via BetweenHoist::ArithmeticOperation). The order
- // matters: when both slots could contain the AND (rare but
- // possible), cpp prefers the rightmost-in-source which lives in
- // `.right`.
- if node_name == Some("ArithmeticOperation") {
- if let Some(inner) = parser.emit.get_field(node, "right") {
- if let Some((left_in, right_in, hoisted)) = split_at_rightmost_and(parser, &inner) {
- let mut new_node = node.clone();
- restamp_end_from_child(parser, &mut new_node, &left_in);
- parser.emit.set_field(&mut new_node, "right", left_in);
- return Some((new_node, right_in, hoisted));
- }
- }
- if let Some(inner) = parser.emit.get_field(node, "left") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let op = parser
- .emit
- .get_field(node, "op")
- .and_then(|v| parser.emit.as_str(&v).map(|s| s.into_owned()))
- .unwrap_or_default();
- let right = parser
- .emit
- .get_field(node, "right")
- .unwrap_or_else(|| parser.emit.null());
- hoisted.push((BetweenHoist::ArithmeticOperation { op, right }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- if node_name == Some("NamedArgument") {
- if let Some(inner) = parser.emit.get_field(node, "value") {
- if let Some((left_in, right_in, hoisted)) = split_at_rightmost_and(parser, &inner) {
- let mut new_node = node.clone();
- parser.emit.set_field(&mut new_node, "value", left_in);
- return Some((new_node, right_in, hoisted));
- }
- }
- }
- if node_name == Some("Call")
- && parser
- .emit
- .get_field(node, "name")
- .and_then(|v| parser.emit.as_str(&v).map(|s| s.into_owned()))
- .as_deref()
- == Some("if")
- {
- if let Some(args) = parser
- .emit
- .get_field(node, "args")
- .and_then(|v| parser.emit.as_list(&v))
- {
- if args.len() == 3 {
- // Try the else-branch (args[2]) first: `cond ? then :
- // else AND high` parses with else absorbing the AND;
- // we peel and rewrap the if-call.
- if let Some((left_in, right_in, hoisted)) = split_at_rightmost_and(parser, &args[2])
- {
- let mut new_args = args.clone();
- new_args[2] = left_in;
- let mut new_node = node.clone();
- restamp_end_from_child(parser, &mut new_node, &new_args[2]);
- // `args` is a plain list field on the Call node (not an Array AST node), so rebuild it via `list_value`.
- parser
- .emit
- .set_field(&mut new_node, "args", parser.emit.list_value(new_args));
- return Some((new_node, right_in, hoisted));
- }
- // Try the cond (args[0]): `(BETWEEN body AND high) ?
- // then : else` parses with the AND inside the cond of
- // an outer ternary. Hoist the ternary's then/else
- // OUTSIDE the BETWEEN — cpp puts ternary at lower
- // precedence than BETWEEN, so the if-call wraps the
- // BetweenExpr the caller builds. The if-call node
- // itself dissolves: its then/else go to the hoist, its
- // cond's split becomes BETWEEN's low/high.
- if let Some((left_in, right_in, mut hoisted)) =
- split_at_rightmost_and(parser, &args[0])
- {
- hoisted.push((
- BetweenHoist::Ternary {
- then_branch: args[1].clone(),
- else_branch: args[2].clone(),
- },
- node_end,
- ));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- }
- if node_name == Some("Alias") {
- if let Some(inner) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- // Hoist *this* alias name. Caller wraps BetweenExpr
- // with each hoisted item in order (innermost first),
- // which matches cpp's `Alias(BetweenExpr(...),
- // outer_name)` shape.
- let name = parser
- .emit
- .get_field(node, "alias")
- .and_then(|v| parser.emit.as_str(&v).map(|s| s.into_owned()))
- .unwrap_or_default();
- hoisted.push((BetweenHoist::Alias(name), node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // `IsDistinctFrom(left, right, negated)` and `CompareOperation`
- // with `is_null_comparison_style=true` (the IS NULL postfix
- // representation) are TIGHTER than BETWEEN in cpp's grammar, BUT
- // when their `left` contains an alias-wrapped And-chain, the
- // alias terminates BETWEEN's body and the IS DISTINCT FROM / IS
- // NULL applies OUTSIDE the alias-wrapped BetweenExpr. Recurse
- // into `left`; on a successful descent (which will hoist the
- // intermediate Alias), hoist the IS-postfix itself AFTER the
- // accumulated wrappers so it ends up OUTERMOST around the
- // alias-wrapped BetweenExpr the caller will build.
- if node_name == Some("IsDistinctFrom") {
- if let Some(inner) = parser.emit.get_field(node, "left") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let right = parser
- .emit
- .get_field(node, "right")
- .unwrap_or_else(|| parser.emit.null());
- let negated = parser
- .emit
- .get_field(node, "negated")
- .and_then(|v| parser.emit.as_bool(&v))
- .unwrap_or(false);
- hoisted.push((BetweenHoist::IsDistinctFrom { right, negated }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- if node_name == Some("CompareOperation")
- && parser
- .emit
- .get_field(node, "is_null_comparison_style")
- .and_then(|v| parser.emit.as_bool(&v))
- == Some(true)
- {
- if let Some(inner) = parser.emit.get_field(node, "left") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- // `op` is "==" for IS NULL, "!=" for IS NOT NULL.
- let negated = parser
- .emit
- .get_field(node, "op")
- .and_then(|v| parser.emit.as_str(&v).map(|s| s.into_owned()))
- .as_deref()
- == Some("!=");
- hoisted.push((BetweenHoist::IsNull { negated }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // `ArrayAccess(<expr>, property, nullish?)` — postfix `[…]` /
- // `.<ident>` / `?.<ident>` over an alias-wrapped And-chain.
- // Descend through `array`; on success, hoist the access OUTSIDE
- // the alias so it wraps the BetweenExpr the caller builds.
- if node_name == Some("ArrayAccess") {
- if let Some(inner) = parser.emit.get_field(node, "array") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let property = parser
- .emit
- .get_field(node, "property")
- .unwrap_or_else(|| parser.emit.null());
- let nullish = parser
- .emit
- .get_field(node, "nullish")
- .and_then(|v| parser.emit.as_bool(&v))
- .unwrap_or(false);
- hoisted.push((BetweenHoist::ArrayAccess { property, nullish }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // `ExprCall(<expr>, args)` — postfix `(<args>)` at BP_POSTFIX=130
- // on top of an alias-wrapped And-chain. Same hoisting pattern as
- // ArrayAccess: descend through `.expr`, hoist the call OUTSIDE.
- // Reaches cases like `x BETWEEN lambda k : 1 AND ((2)) AS 'a'
- // (1)` where the WIDE body parse absorbs `(1)` as a postfix call
- // on `Alias(And(1, (2)), 'a')`, burying the BETWEEN-separator
- // AND inside the call's `.expr`.
- if node_name == Some("ExprCall") {
- if let Some(inner) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let args = parser
- .emit
- .get_field(node, "args")
- .and_then(|v| parser.emit.as_list(&v))
- .unwrap_or_default();
- hoisted.push((BetweenHoist::ExprCall { args }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // `TypeCast(<expr>, type_name)` — postfix `:: <type>` at
- // BP_POSTFIX=130. Same hoisting pattern as ExprCall.
- if node_name == Some("TypeCast") {
- if let Some(inner) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let type_name = parser
- .emit
- .get_field(node, "type_name")
- .and_then(|v| parser.emit.as_str(&v).map(|s| s.into_owned()))
- .unwrap_or_default();
- hoisted.push((BetweenHoist::TypeCast { type_name }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // `TupleAccess(<tuple>, index, nullish?)` — postfix `.<NUMBER>` /
- // `?.<NUMBER>` at BP_POSTFIX=130. Same hoisting pattern as
- // ArrayAccess but on a different node type with a different
- // field name (`tuple` vs `array`, `index` vs `property`).
- if node_name == Some("TupleAccess") {
- if let Some(inner) = parser.emit.get_field(node, "tuple") {
- if let Some((left_in, right_in, mut hoisted)) = split_at_rightmost_and(parser, &inner) {
- let index = parser
- .emit
- .get_field(node, "index")
- .and_then(|v| parser.emit.as_i64(&v))
- .unwrap_or(0);
- let nullish = parser
- .emit
- .get_field(node, "nullish")
- .and_then(|v| parser.emit.as_bool(&v))
- .unwrap_or(false);
- hoisted.push((BetweenHoist::TupleAccess { index, nullish }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- // BetweenExpr has TWO slots that can contain the AND we need.
- // ORDER MATTERS — cpp prefers nested-via-low when both options
- // are valid (e.g. `a BETWEEN b AND c BETWEEN d AND e AND f` →
- // outer(a, inner(And(b,c), d, e), f) NOT chained):
- //
- // 1. `low` first: classic nested-via-low case (`x BETWEEN y
- // BETWEEN z AND w AND v` → outer.low = BETWEEN(y, z, w),
- // outer.high = v; or 3-AND case where the inner BETWEEN's
- // low absorbs the extra AND). Peel one AND from inner.low:
- // the peeled-off right operand becomes the new inner.high;
- // the OLD inner.high surfaces as the outer's high. Recursion
- // peels N-1 ANDs across N levels.
- //
- // 2. `expr` fallback: when inner.low has no AND, the greedy body
- // parse must have consumed a later sibling BETWEEN with the
- // AND-chain ending up in the embedded BetweenExpr's `expr`
- // field. cpp parses that pattern LEFT-RECURSIVELY: the second
- // (rightmost-source) BETWEEN wraps the first. Hoist the whole
- // BetweenExpr's low / high / negated out so the caller wraps
- // with a second BETWEEN. Example:
- //
- // `a NOT BETWEEN b ? c : d AND e NOT BETWEEN f AND g`
- //
- // Pratt builds body = if(b, c, BetweenExpr(expr=And(d,e),
- // low=f, high=g, neg=true)). inner.low=f is a single field
- // (no AND), so the `low` peel above fails. Fall through to
- // `expr`: split And(d,e), hoist (f, g, neg=true).
- if node_name == Some("BetweenExpr") {
- if let (Some(inner_low), Some(inner_high)) = (
- parser.emit.get_field(node, "low"),
- parser.emit.get_field(node, "high"),
- ) {
- if let Some((new_low, new_high, hoisted)) = split_at_rightmost_and(parser, &inner_low) {
- let mut new_inner = node.clone();
- restamp_end_from_child(parser, &mut new_inner, &new_high);
- parser.emit.set_field(&mut new_inner, "low", new_low);
- parser.emit.set_field(&mut new_inner, "high", new_high);
- return Some((new_inner, inner_high, hoisted));
- }
- }
- if let Some(inner_expr) = parser.emit.get_field(node, "expr") {
- if let Some((left_in, right_in, mut hoisted)) =
- split_at_rightmost_and(parser, &inner_expr)
- {
- let low = parser
- .emit
- .get_field(node, "low")
- .unwrap_or_else(|| parser.emit.null());
- let high = parser
- .emit
- .get_field(node, "high")
- .unwrap_or_else(|| parser.emit.null());
- let negated = parser
- .emit
- .get_field(node, "negated")
- .and_then(|v| parser.emit.as_bool(&v))
- .unwrap_or(false);
- hoisted.push((BetweenHoist::Between { low, high, negated }, node_end));
- return Some((left_in, right_in, hoisted));
- }
- }
- }
- None
-}
-
/// True when `v` is a `Field` node with a single-element identifier
/// chain. Used by `parse_expr_list_until_terminators` to detect
/// speculatively-parsed clause keywords (e.g. `qualify`, `having`,
diff --git a/rust/hogql/parser/src/parse/program.rs b/rust/hogql/parser/src/parse/program.rs
index 689e190cfc43..049c4b17394d 100644
--- a/rust/hogql/parser/src/parse/program.rs
+++ b/rust/hogql/parser/src/parse/program.rs
@@ -26,6 +26,7 @@
//! - Block { declarations: [decl, ...] }
//! - Program { declarations: [decl, ...] }
+use super::bp::can_extend_named_argument;
use super::expr::is_pure_infix_op;
use super::{identifier_text, kw_valid_as_identifier, Parser};
use crate::emit::Emitter;
@@ -485,7 +486,33 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
let id = self.bump()?;
let name = identifier_text(self.text(id), id.kind);
self.bump()?; // `:=`
- let right = self.parse_stmt_rhs_expr()?;
+ let mut right = self.parse_stmt_rhs_expr()?;
+ // Same NamedArgument re-rooting as `parse_expr_or_assignment_stmt`:
+ // cpp's varAssignment alt can't absorb a value-tier operator after
+ // a bare alias, so `for (y := 1 as x [1]; …)` falls to the
+ // expression alt with the operator re-rooted onto the NamedArgument.
+ if can_extend_named_argument(self.peek()) {
+ let named = self.emit.named_argument(&name, right);
+ let prev_postfix = self.stop_postfix_call_before_colon_equals;
+ self.stop_postfix_call_before_colon_equals = true;
+ let prev_recover = self.stmt_rhs_recover_on_pratt_rhs_failure;
+ self.stmt_rhs_recover_on_pratt_rhs_failure = true;
+ let extended = self.pratt_continue_with_lhs(named, 0, id_start);
+ self.stop_postfix_call_before_colon_equals = prev_postfix;
+ self.stmt_rhs_recover_on_pratt_rhs_failure = prev_recover;
+ let extended = extended?;
+ let is_bare_named = self
+ .emit
+ .node_kind(&extended)
+ .is_some_and(|kind| kind == "NamedArgument");
+ if !is_bare_named {
+ return Ok(extended);
+ }
+ right = self
+ .emit
+ .get_field(&extended, "value")
+ .ok_or_else(|| self.err("NamedArgument without a value"))?;
+ }
let left = self.wrap_pos_to(
self.emit.field(vec![self.emit.string(&name)]),
id_start,
@@ -786,7 +813,7 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
let id = self.bump()?;
let name = identifier_text(self.text(id), id.kind);
self.bump()?; // `:=`
- let right = self.parse_stmt_rhs_expr()?;
+ let mut right = self.parse_stmt_rhs_expr()?;
// A *second* `:=` after the rhs means cpp's varAssignment
// separator is the second one, not the first — the leading
// `IDENT := <rhs>` becomes a NamedArgument as the lvalue of
@@ -801,6 +828,39 @@ impl<'a, E: Emitter + Clone> Parser<'a, E> {
let left = self.emit.named_argument(&name, right);
return Ok(self.emit.variable_assignment(left, outer_right));
}
+ // cpp parses `IDENT := rhs` as one expression (`ColumnExprNamedArg`,
+ // a value-tier primary) and only promotes a BARE NamedArgument to a
+ // VariableAssignment. When the rhs parse stopped at a value-tier
+ // operator (bare-alias boundary: `y := 1 as x [1]`), the trailing
+ // operator re-roots onto the NamedArgument and the statement is an
+ // ExprStatement of the extended expression. Only enter this path
+ // when the next token could actually extend; an extension that
+ // fails to attach (statement-splitting recovery, `y := x *= 2`)
+ // comes back as the bare NamedArgument and falls through to the
+ // plain assignment below.
+ if can_extend_named_argument(self.peek()) {
+ let named = self.emit.named_argument(&name, right);
+ let prev_postfix = self.stop_postfix_call_before_colon_equals;
+ self.stop_postfix_call_before_colon_equals = true;
+ let prev_recover = self.stmt_rhs_recover_on_pratt_rhs_failure;
+ self.stmt_rhs_recover_on_pratt_rhs_failure = true;
+ let extended = self.pratt_continue_with_lhs(named, 0, id_start);
+ self.stop_postfix_call_before_colon_equals = prev_postfix;
+ self.stmt_rhs_recover_on_pratt_rhs_failure = prev_recover;
+ let extended = extended?;
+ let is_bare_named = self
+ .emit
+ .node_kind(&extended)
+ .is_some_and(|kind| kind == "NamedArgument");
+ if !is_bare_named {
+ let _ = self.eat(TokenKind::Semicolon)?;
+ return Ok(self.emit.expr_statement(extended));
+ }
+ right = self
+ .emit
+ .get_field(&extended, "value")
+ .ok_or_else(|| self.err("NamedArgument without a value"))?;
+ }
// The `:=` form is an `exprStmt` (`expression (COLONEQUALS
// expression)? SEMICOLON?`) — consume the optional trailing
// `;` so `if (c) a := b ; else d` sees the `else`.
diff --git a/uv.lock b/uv.lock
index 1c85a1dfc2c4..9476dbd1ff20 100644
--- a/uv.lock
+++ b/uv.lock
@@ -3148,16 +3148,16 @@ wheels = [
[[package]]
name = "hogql-parser-rs"
-version = "1.3.105"
+version = "1.3.106"
source = { registry = "https://pypi.org/simple" }
-sdist = { url = "https://files.pythonhosted.org/packages/43/27/ef723addbc55f9c81bdaf9455391dc7154f77c0f5feb589e97c9e071dc52/hogql_parser_rs-1.3.105.tar.gz", hash = "sha256:41a745b54bca32565e54d6ec6541e5c59de04e1eb17b47c76493c5e55bae7bbc", size = 301124, upload-time = "2026-06-29T10:55:36.446Z" }
+sdist = { url = "https://files.pythonhosted.org/packages/c6/47/6690febe4d1495957c835d00b1f7c01fa625378287ac7ad7b52b86987928/hogql_parser_rs-1.3.106.tar.gz", hash = "sha256:d9fe032470a899644e019211ad7c3bd1170d2d3a23130f3af95d79ab5ee4c86d", size = 287692, upload-time = "2026-07-03T13:55:09.094Z" }
wheels = [
- { url = "https://files.pythonhosted.org/packages/7d/94/5a5301586b065d5ae9d6054976ef9c27da843008049836bb89fb05afccd4/hogql_parser_rs-1.3.105-cp312-abi3-macosx_10_12_x86_64.whl", hash = "sha256:1ff2dd8b1d60b15f07bb0bea0472c5fd4454d89fd303058846c9d74d9f1047d3", size = 741340, upload-time = "2026-06-29T10:55:26.884Z" },
- { url = "https://files.pythonhosted.org/packages/54/92/fc83c3d568ee78b89e7398fcbc4725e63764ba883486e30d74385bdf2384/hogql_parser_rs-1.3.105-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:318df3ed2d5366273d7e5c996d39497e9518734d3f5f6b0367b51cff08a4dde8", size = 698428, upload-time = "2026-06-29T10:55:28.454Z" },
- { url = "https://files.pythonhosted.org/packages/bd/a5/dfd6e096d15064f69d5e0a14223b1ee73791e7612073c8f2463be2e07d4c/hogql_parser_rs-1.3.105-cp312-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:f961e1e544cbf1702338de138a060248821bc76a3fed48a2de50e611356fbb42", size = 2500951, upload-time = "2026-06-29T10:55:29.996Z" },
- { url = "https://files.pythonhosted.org/packages/ab/84/eddc51cd966ab86cd173a5c54bb93092595c76b450e0155ae13d11bf38a2/hogql_parser_rs-1.3.105-cp312-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:571c8ae48ba1968a2645f48d32187c380ad9128b7943c2d8b917517852f6361d", size = 2763150, upload-time = "2026-06-29T10:55:31.587Z" },
- { url = "https://files.pythonhosted.org/packages/87/71/e2f398268b368ad09413c8bc6dde0945d66a51660d2b977f2473a110ef33/hogql_parser_rs-1.3.105-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:2d7121ca4c30fc8e66c3b7cab38d0d916f0788ccc85cd067cf8eb59a708020dd", size = 2675570, upload-time = "2026-06-29T10:55:33.259Z" },
- { url = "https://files.pythonhosted.org/packages/b9/76/fd785f06e799861a3695c57848c42ac0a2345fd00979ab6f6622a09663dd/hogql_parser_rs-1.3.105-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:e8d4d092d4a38713a98193ce11555f32ca0669cdc9f4125654eb0bc17c4743e2", size = 2724538, upload-time = "2026-06-29T10:55:34.682Z" },
+ { url = "https://files.pythonhosted.org/packages/d9/80/4f1ebb5af335af91dee119b097564c47c355dedfa8a561b575810a2b13e4/hogql_parser_rs-1.3.106-cp312-abi3-macosx_10_12_x86_64.whl", hash = "sha256:9e0c5f58cbe20f4c048c281d02d7a352cc3ac96dccdd3d6f495a15024db988c4", size = 700491, upload-time = "2026-07-03T13:55:00.532Z" },
+ { url = "https://files.pythonhosted.org/packages/f3/09/d980bdd3d945efa9e142986987a35cd223583fab245b61e77fad0d5542e0/hogql_parser_rs-1.3.106-cp312-abi3-macosx_11_0_arm64.whl", hash = "sha256:f4b68566d58ee146be561b08d7deace4274485c3ccbfd0ebb60cdf6dd943a605", size = 662023, upload-time = "2026-07-03T13:55:02.134Z" },
+ { url = "https://files.pythonhosted.org/packages/4a/6a/6bc32709cdf00075f32e84211ddbae1462f8ca3812b66363f33a20436d0f/hogql_parser_rs-1.3.106-cp312-abi3-manylinux_2_28_aarch64.whl", hash = "sha256:46d2e37972147cd285241855b3fb48967515c2bf1440f3b8e5778f0e1bc10824", size = 2410045, upload-time = "2026-07-03T13:55:03.424Z" },
+ { url = "https://files.pythonhosted.org/packages/25/32/9aadfa655cebef10e69804d68bf60c49d01702d17613978e57bf9dab48a2/hogql_parser_rs-1.3.106-cp312-abi3-manylinux_2_28_x86_64.whl", hash = "sha256:ba1d29683334b4d7b90c046b4603b85ab020e11b1ee80e72a5e54aead3601a99", size = 2664065, upload-time = "2026-07-03T13:55:04.78Z" },
+ { url = "https://files.pythonhosted.org/packages/aa/48/c848fef7e84251dd02bcce78df71d3b56f476e6c65f7378498a96803051b/hogql_parser_rs-1.3.106-cp312-abi3-musllinux_1_2_aarch64.whl", hash = "sha256:5a581160747ab1784d39ee795491daae752c9d0bb26a1ddaa2a90905c7afe65e", size = 2582693, upload-time = "2026-07-03T13:55:06.164Z" },
+ { url = "https://files.pythonhosted.org/packages/d5/2b/5f6b7a11aeb0a5e2922d9f40fe1722f271e816f8e857b32c7ea3a25e3c09/hogql_parser_rs-1.3.106-cp312-abi3-musllinux_1_2_x86_64.whl", hash = "sha256:cfa70f607c40373e2eae216cb89ae4fb3b4900a67c7132305f610c2ea4cbe70b", size = 2629564, upload-time = "2026-07-03T13:55:07.586Z" },
]
[[package]]
@@ -5882,7 +5882,7 @@ requires-dist = [
{ name = "grpcio", specifier = "~=1.71.0" },
{ name = "gspread", specifier = "==6.2.1" },
{ name = "hogql-parser", specifier = "==1.3.75" },
- { name = "hogql-parser-rs", specifier = "==1.3.105" },
+ { name = "hogql-parser-rs", specifier = "==1.3.106" },
{ name = "humanize", specifier = "~=4.12.3" },
{ name = "infi-clickhouse-orm", git = "https://github.com/PostHog/infi.clickhouse_orm?rev=4e3996becf66bf5c26580aff12a80425d9d56fe5" },
{ name = "jsonref", specifier = "==1.1.0" },