: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(hogql): remove pure-Python parser backend (#65499)
Robbieedea9f1a799f
diff --git a/.gitattributes b/.gitattributesindex f645d838e37a..e16adcc4ce7c 100644--- a/.gitattributes+++ b/.gitattributes@@ -27,14 +27,6 @@ posthog/temporal/proxy_service/proto/*_pb2*.py linguist-generatednodejs/src/ingestion/pipelines/ai/costs/providers/canonical-providers.ts linguist-generated-posthog/hogql/grammar/HogQLLexer.py linguist-generated-posthog/hogql/grammar/HogQLParser.py linguist-generated-posthog/hogql/grammar/HogQLParserVisitor.py linguist-generated-posthog/hogql/grammar/HogQLLexer.interp linguist-generated-posthog/hogql/grammar/HogQLParser.interp linguist-generated-posthog/hogql/grammar/HogQLLexer.tokens linguist-generated-posthog/hogql/grammar/HogQLParser.tokens linguist-generated-common/hogql_parser/HogQLLexer.cpp linguist-generatedcommon/hogql_parser/HogQLParser.cpp linguist-generatedcommon/hogql_parser/HogQLLexer.interp linguist-generateddiff --git a/hogli.yaml b/hogli.yamlindex e40d7b356d55..e5281d5264a6 100644--- a/hogli.yaml+++ b/hogli.yaml@@ -551,7 +551,7 @@ build:description: Generate OpenAPI schema and TypeScript types from the backendbuild:grammar:cmd: pnpm grammar:build- description: Generate HogQL grammar definitions (Python and C++)+ description: Generate HogQL grammar definitions (C++)build:products:cmd: pnpm --filter=@posthog/frontend run build:productsdescription: Build products manifest from TypeScript/JSX filesdiff --git a/package.json b/package.jsonindex 8ca075fd8080..9f1fc753d59a 100644--- a/package.json+++ b/package.json@@ -22,8 +22,7 @@"schema:build:python": "bash bin/build-schema-python.sh","taxonomy:build": "pnpm run taxonomy:build:json","taxonomy:build:json": "python bin/build-taxonomy-json.py",- "grammar:build": "pnpm grammar:build:python && pnpm grammar:build:cpp",- "grammar:build:python": "cd posthog/hogql/grammar && cat HogQLLexer.python.g4 > HogQLLexer.g4 && tail -n +2 HogQLLexer.common.g4 |sed s/isOpeningTag/self.isOpeningTag/ >> HogQLLexer.g4 && antlr -Dlanguage=Python3 HogQLLexer.g4 && rm HogQLLexer.g4 && antlr -visitor -no-listener -Dlanguage=Python3 HogQLParser.g4",+ "grammar:build": "pnpm grammar:build:cpp","grammar:build:cpp": "cd posthog/hogql/grammar && cat HogQLLexer.cpp.g4 > HogQLLexer.g4 && tail -n +2 HogQLLexer.common.g4 >> HogQLLexer.g4 && antlr -o ../../../common/hogql_parser -Dlanguage=Cpp HogQLLexer.g4 && rm HogQLLexer.g4 && antlr -o ../../../common/hogql_parser -visitor -no-listener -Dlanguage=Cpp HogQLParser.g4","build:products": "pnpm --filter=@posthog/frontend run build:products","generate:source-configs": "DEBUG=1 python manage.py generate_source_configs",diff --git a/posthog/hogql/constants.py b/posthog/hogql/constants.pyindex 8cd8907685e9..b81e96cc89c0 100644--- a/posthog/hogql/constants.py+++ b/posthog/hogql/constants.py@@ -55,7 +55,7 @@ type HogQLDialect = Literal["hogql", "clickhouse", "postgres", "duckdb", "mysql"# but not Postgres-specific features like PIVOT/UNPIVOT, TRY_CAST, or positional references.SQL_TARGET_DIALECTS: frozenset[HogQLDialect] = frozenset({"postgres", "duckdb", "mysql"})-type HogQLParserBackend = Literal["python", "cpp-json", "rust-json", "rust-py"]+type HogQLParserBackend = Literal["cpp-json", "rust-json", "rust-py"]class LimitContext(StrEnum):diff --git a/posthog/hogql/grammar/HogQLLexer.interp b/posthog/hogql/grammar/HogQLLexer.interpdeleted file mode 100644index 5da043f5089d..000000000000--- a/posthog/hogql/grammar/HogQLLexer.interp+++ /dev/null@@ -1,690 +0,0 @@-token literal names:-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-'->'-'*'-'`'-'\\'-'::'-':='-':'-','-'||'-'-'-'$'-'.'-'=='-null-'>='-null-'#'-'~*'-'=~*'-'{'-'['-'('-'<=>'-'<='-'<'-'</'-null-'!~*'-'!~'-'?.'-'??'-'%'-'+'-'?'-'"'-'f\''-'F\''-'\''-'~'-'=~'-'}'-']'-')'-';'-'/'-null-'_'-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null--token symbolic names:-null-ALL-AND-ANTI-ANY-ARRAY-AS-ASCENDING-ASOF-BETWEEN-BOTH-BY-CASE-CAST-CATCH-COHORT-COLLATE-COLUMNS-CROSS-CUBE-CURRENT-DATE-DAY-DESC-DESCENDING-DISTINCT-ELSE-END-EXCEPT-EXCLUDE-EXTRACT-FINAL-FILL-FILTER-FINALLY-FIRST-FN-FOLLOWING-FOR-FROM-FULL-FUN-GROUP-GROUPING-HAVING-HOUR-ID-IF-ILIKE-IGNORE-INCLUDE-IN-INF-INNER-INTERSECT-INTERPOLATE-INTERVAL-IS-JOIN-KEY-LAMBDA-LAST-LEADING-LEFT-LET-LIKE-LIMIT-MATERIALIZED-MINUTE-MONTH-NAME-NATURAL-NAN_SQL-NOT-NULL_SQL-NULLS-OFFSET-ON-OR-ORDER-OUTER-OVER-PARTITION-PIVOT-POSITIONAL-PRECEDING-PREWHERE-QUALIFY-QUARTER-RANGE-RECURSIVE-REPLACE-RETURN-RIGHT-ROLLUP-ROW-ROWS-SAMPLE-SECOND-SELECT-SEMI-SETS-SETTINGS-STEP-SUBSTRING-THEN-THROW-TIES-TIMESTAMP-TIME-LOCAL-ZONE-TO-TOP-TOTALS-TRAILING-TRIM-TRUNCATE-TRY-TRY_CAST-UNBOUNDED-UNION-UNPIVOT-USING-VALUES-WEEK-WHEN-WHERE-WHILE-WINDOW-WITH-WITHIN-YEAR-ESCAPE_CHAR_COMMON-IDENTIFIER-QUOTED_IDENTIFIER-FLOATING_LITERAL-BINARY_LITERAL-OCTAL_LITERAL-DECIMAL_LITERAL-HEXADECIMAL_LITERAL-OCTAL_PREFIX_LITERAL-MALFORMED_BINARY_LITERAL-STRING_LITERAL-ARROW-ASTERISK-BACKQUOTE-BACKSLASH-DOUBLECOLON-COLONEQUALS-COLON-COMMA-CONCAT-DASH-DOLLAR-DOT-EQ_DOUBLE-EQ_SINGLE-GT_EQ-GT-HASH-IREGEX_SINGLE-IREGEX_DOUBLE-LBRACE-LBRACKET-LPAREN-NULL_SAFE_EQ-LT_EQ-LT-LT_SLASH-NOT_EQ-NOT_IREGEX-NOT_REGEX-NULL_PROPERTY-NULLISH-PERCENT-PLUS-QUERY-QUOTE_DOUBLE-QUOTE_SINGLE_TEMPLATE-QUOTE_SINGLE_TEMPLATE_FULL-QUOTE_SINGLE-REGEX_SINGLE-REGEX_DOUBLE-RBRACE-RBRACKET-RPAREN-SEMICOLON-SLASH-SLASH_GT-UNDERSCORE-MULTI_LINE_COMMENT-SINGLE_LINE_COMMENT-HASH_COMMENT-WHITESPACE-UNEXPECTED_CHARACTER-STRING_TEXT-STRING_ESCAPE_TRIGGER-FULL_STRING_TEXT-FULL_STRING_ESCAPE_TRIGGER-TAG_MULTI_LINE_COMMENT-TAG_SINGLE_LINE_COMMENT-TAG_WS-TAGC_MULTI_LINE_COMMENT-TAGC_SINGLE_LINE_COMMENT-TAGC_WS-HOGQLX_TEXT_TEXT-HOGQLX_TEXT_WS--rule names:-ALL-AND-ANTI-ANY-ARRAY-AS-ASCENDING-ASOF-BETWEEN-BOTH-BY-CASE-CAST-CATCH-COHORT-COLLATE-COLUMNS-CROSS-CUBE-CURRENT-DATE-DAY-DESC-DESCENDING-DISTINCT-ELSE-END-EXCEPT-EXCLUDE-EXTRACT-FINAL-FILL-FILTER-FINALLY-FIRST-FN-FOLLOWING-FOR-FROM-FULL-FUN-GROUP-GROUPING-HAVING-HOUR-ID-IF-ILIKE-IGNORE-INCLUDE-IN-INF-INNER-INTERSECT-INTERPOLATE-INTERVAL-IS-JOIN-KEY-LAMBDA-LAST-LEADING-LEFT-LET-LIKE-LIMIT-MATERIALIZED-MINUTE-MONTH-NAME-NATURAL-NAN_SQL-NOT-NULL_SQL-NULLS-OFFSET-ON-OR-ORDER-OUTER-OVER-PARTITION-PIVOT-POSITIONAL-PRECEDING-PREWHERE-QUALIFY-QUARTER-RANGE-RECURSIVE-REPLACE-RETURN-RIGHT-ROLLUP-ROW-ROWS-SAMPLE-SECOND-SELECT-SEMI-SETS-SETTINGS-STEP-SUBSTRING-THEN-THROW-TIES-TIMESTAMP-TIME-LOCAL-ZONE-TO-TOP-TOTALS-TRAILING-TRIM-TRUNCATE-TRY-TRY_CAST-UNBOUNDED-UNION-UNPIVOT-USING-VALUES-WEEK-WHEN-WHERE-WHILE-WINDOW-WITH-WITHIN-YEAR-ESCAPE_CHAR_COMMON-IDENTIFIER-QUOTED_IDENTIFIER-FLOATING_LITERAL-BINARY_LITERAL-OCTAL_LITERAL-DECIMAL_LITERAL-HEXADECIMAL_LITERAL-OCTAL_PREFIX_LITERAL-MALFORMED_BINARY_LITERAL-STRING_LITERAL-A-B-C-D-E-F-G-H-I-J-K-L-M-N-O-P-Q-R-S-T-U-V-W-X-Y-Z-LETTER-BIN_DIGIT-OCT_DIGIT-DEC_DIGIT-HEX_DIGIT-ARROW-ASTERISK-BACKQUOTE-BACKSLASH-DOUBLECOLON-COLONEQUALS-COLON-COMMA-CONCAT-DASH-DOLLAR-DOT-EQ_DOUBLE-EQ_SINGLE-GT_EQ-GT-HASH-IREGEX_SINGLE-IREGEX_DOUBLE-LBRACE-LBRACKET-LPAREN-NULL_SAFE_EQ-LT_EQ-TAG_LT_SLASH-TAG_LT_OPEN-LT-LT_SLASH-NOT_EQ-NOT_IREGEX-NOT_REGEX-NULL_PROPERTY-NULLISH-PERCENT-PLUS-QUERY-QUOTE_DOUBLE-QUOTE_SINGLE_TEMPLATE-QUOTE_SINGLE_TEMPLATE_FULL-QUOTE_SINGLE-REGEX_SINGLE-REGEX_DOUBLE-RBRACE-RBRACKET-RPAREN-SEMICOLON-SLASH-SLASH_GT-UNDERSCORE-MULTI_LINE_COMMENT-SINGLE_LINE_COMMENT-HASH_COMMENT-WHITESPACE-UNEXPECTED_CHARACTER-STRING_TEXT-STRING_ESCAPE_TRIGGER-STRING_QUOTE_SINGLE-FULL_STRING_TEXT-FULL_STRING_ESCAPE_TRIGGER-TAG_SELF_CLOSE_GT-TAG_OPEN_GT-TAG_MULTI_LINE_COMMENT-TAG_SINGLE_LINE_COMMENT-TAG_IDENT-TAG_EQ-TAG_STRING-TAG_WS-TAG_LBRACE-TAG_UNEXPECTED-TAGC_GT-TAGC_MULTI_LINE_COMMENT-TAGC_SINGLE_LINE_COMMENT-TAGC_IDENT-TAGC_WS-TAGC_UNEXPECTED-HOGQLX_TEXT_TEXT-HOGQLX_TEXT_LBRACE-HOGQLX_TEXT_LT_SLASH-HOGQLX_TEXT_LT-HOGQLX_TEXT_WS--channel names:-DEFAULT_TOKEN_CHANNEL-HIDDEN--mode names:-DEFAULT_MODE-IN_TEMPLATE_STRING-IN_FULL_TEMPLATE_STRING-HOGQLX_TAG_OPEN-HOGQLX_TAG_CLOSE-HOGQLX_TEXT--atn:-[4, 0, 207, 2026, 6, -1, 6, -1, 6, -1, 6, -1, 6, -1, 6, -1, 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, 2, 119, 7, 119, 2, 120, 7, 120, 2, 121, 7, 121, 2, 122, 7, 122, 2, 123, 7, 123, 2, 124, 7, 124, 2, 125, 7, 125, 2, 126, 7, 126, 2, 127, 7, 127, 2, 128, 7, 128, 2, 129, 7, 129, 2, 130, 7, 130, 2, 131, 7, 131, 2, 132, 7, 132, 2, 133, 7, 133, 2, 134, 7, 134, 2, 135, 7, 135, 2, 136, 7, 136, 2, 137, 7, 137, 2, 138, 7, 138, 2, 139, 7, 139, 2, 140, 7, 140, 2, 141, 7, 141, 2, 142, 7, 142, 2, 143, 7, 143, 2, 144, 7, 144, 2, 145, 7, 145, 2, 146, 7, 146, 2, 147, 7, 147, 2, 148, 7, 148, 2, 149, 7, 149, 2, 150, 7, 150, 2, 151, 7, 151, 2, 152, 7, 152, 2, 153, 7, 153, 2, 154, 7, 154, 2, 155, 7, 155, 2, 156, 7, 156, 2, 157, 7, 157, 2, 158, 7, 158, 2, 159, 7, 159, 2, 160, 7, 160, 2, 161, 7, 161, 2, 162, 7, 162, 2, 163, 7, 163, 2, 164, 7, 164, 2, 165, 7, 165, 2, 166, 7, 166, 2, 167, 7, 167, 2, 168, 7, 168, 2, 169, 7, 169, 2, 170, 7, 170, 2, 171, 7, 171, 2, 172, 7, 172, 2, 173, 7, 173, 2, 174, 7, 174, 2, 175, 7, 175, 2, 176, 7, 176, 2, 177, 7, 177, 2, 178, 7, 178, 2, 179, 7, 179, 2, 180, 7, 180, 2, 181, 7, 181, 2, 182, 7, 182, 2, 183, 7, 183, 2, 184, 7, 184, 2, 185, 7, 185, 2, 186, 7, 186, 2, 187, 7, 187, 2, 188, 7, 188, 2, 189, 7, 189, 2, 190, 7, 190, 2, 191, 7, 191, 2, 192, 7, 192, 2, 193, 7, 193, 2, 194, 7, 194, 2, 195, 7, 195, 2, 196, 7, 196, 2, 197, 7, 197, 2, 198, 7, 198, 2, 199, 7, 199, 2, 200, 7, 200, 2, 201, 7, 201, 2, 202, 7, 202, 2, 203, 7, 203, 2, 204, 7, 204, 2, 205, 7, 205, 2, 206, 7, 206, 2, 207, 7, 207, 2, 208, 7, 208, 2, 209, 7, 209, 2, 210, 7, 210, 2, 211, 7, 211, 2, 212, 7, 212, 2, 213, 7, 213, 2, 214, 7, 214, 2, 215, 7, 215, 2, 216, 7, 216, 2, 217, 7, 217, 2, 218, 7, 218, 2, 219, 7, 219, 2, 220, 7, 220, 2, 221, 7, 221, 2, 222, 7, 222, 2, 223, 7, 223, 2, 224, 7, 224, 2, 225, 7, 225, 2, 226, 7, 226, 2, 227, 7, 227, 2, 228, 7, 228, 2, 229, 7, 229, 2, 230, 7, 230, 2, 231, 7, 231, 2, 232, 7, 232, 2, 233, 7, 233, 2, 234, 7, 234, 2, 235, 7, 235, 2, 236, 7, 236, 2, 237, 7, 237, 2, 238, 7, 238, 2, 239, 7, 239, 2, 240, 7, 240, 2, 241, 7, 241, 2, 242, 7, 242, 2, 243, 7, 243, 2, 244, 7, 244, 2, 245, 7, 245, 2, 246, 7, 246, 2, 247, 7, 247, 2, 248, 7, 248, 2, 249, 7, 249, 2, 250, 7, 250, 2, 251, 7, 251, 2, 252, 7, 252, 2, 253, 7, 253, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 555, 8, 6, 1, 7, 1, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 12, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 17, 1, 18, 1, 18, 1, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 19, 1, 20, 1, 20, 1, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 21, 1, 21, 1, 22, 1, 22, 1, 22, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 23, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 24, 1, 25, 1, 25, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 27, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 28, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 1, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 1, 44, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 1, 50, 1, 50, 1, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 835, 8, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 61, 1, 62, 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, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 67, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 68, 1, 69, 1, 69, 1, 69, 1, 69, 1, 69, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 70, 1, 71, 1, 71, 1, 71, 1, 71, 1, 72, 1, 72, 1, 72, 1, 72, 1, 73, 1, 73, 1, 73, 1, 73, 1, 73, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 74, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 75, 1, 76, 1, 76, 1, 76, 1, 77, 1, 77, 1, 77, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 78, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 79, 1, 80, 1, 80, 1, 80, 1, 80, 1, 80, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 81, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 82, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 83, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 84, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 85, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 86, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 87, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 88, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 89, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 90, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 91, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 92, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 93, 1, 94, 1, 94, 1, 94, 1, 94, 1, 95, 1, 95, 1, 95, 1, 95, 1, 95, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 96, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 97, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 98, 1, 99, 1, 99, 1, 99, 1, 99, 1, 99, 1, 100, 1, 100, 1, 100, 1, 100, 1, 100, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 101, 1, 102, 1, 102, 1, 102, 1, 102, 1, 102, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 103, 1, 104, 1, 104, 1, 104, 1, 104, 1, 104, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 105, 1, 106, 1, 106, 1, 106, 1, 106, 1, 106, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 107, 1, 108, 1, 108, 1, 108, 1, 108, 1, 108, 1, 109, 1, 109, 1, 109, 1, 109, 1, 109, 1, 109, 1, 110, 1, 110, 1, 110, 1, 110, 1, 110, 1, 111, 1, 111, 1, 111, 1, 112, 1, 112, 1, 112, 1, 112, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 113, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114, 1, 114, 1, 115, 1, 115, 1, 115, 1, 115, 1, 115, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 1, 116, 1, 117, 1, 117, 1, 117, 1, 117, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 118, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 119, 1, 120, 1, 120, 1, 120, 1, 120, 1, 120, 1, 120, 1, 121, 1, 121, 1, 121, 1, 121, 1, 121, 1, 121, 1, 121, 1, 121, 1, 122, 1, 122, 1, 122, 1, 122, 1, 122, 1, 122, 1, 123, 1, 123, 1, 123, 1, 123, 1, 123, 1, 123, 1, 123, 1, 124, 1, 124, 1, 124, 1, 124, 1, 124, 1, 125, 1, 125, 1, 125, 1, 125, 1, 125, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 1, 126, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 1, 127, 1, 128, 1, 128, 1, 128, 1, 128, 1, 128, 1, 128, 1, 128, 1, 129, 1, 129, 1, 129, 1, 129, 1, 129, 1, 130, 1, 130, 1, 130, 1, 130, 1, 130, 1, 130, 1, 130, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 1, 131, 3, 131, 1364, 8, 131, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 1, 132, 3, 132, 1398, 8, 132, 1, 133, 1, 133, 1, 133, 3, 133, 1403, 8, 133, 1, 133, 1, 133, 1, 133, 1, 133, 5, 133, 1409, 8, 133, 10, 133, 12, 133, 1412, 9, 133, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 5, 134, 1423, 8, 134, 10, 134, 12, 134, 1426, 9, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 1, 134, 5, 134, 1439, 8, 134, 10, 134, 12, 134, 1442, 9, 134, 1, 134, 1, 134, 3, 134, 1446, 8, 134, 1, 135, 1, 135, 1, 135, 5, 135, 1451, 8, 135, 10, 135, 12, 135, 1454, 9, 135, 1, 135, 1, 135, 1, 135, 3, 135, 1459, 8, 135, 1, 135, 4, 135, 1462, 8, 135, 11, 135, 12, 135, 1463, 1, 135, 1, 135, 1, 135, 1, 135, 3, 135, 1470, 8, 135, 1, 135, 4, 135, 1473, 8, 135, 11, 135, 12, 135, 1474, 1, 135, 1, 135, 1, 135, 5, 135, 1480, 8, 135, 10, 135, 12, 135, 1483, 9, 135, 1, 135, 1, 135, 1, 135, 3, 135, 1488, 8, 135, 1, 135, 4, 135, 1491, 8, 135, 11, 135, 12, 135, 1492, 1, 135, 1, 135, 1, 135, 1, 135, 1, 135, 3, 135, 1500, 8, 135, 1, 135, 4, 135, 1503, 8, 135, 11, 135, 12, 135, 1504, 1, 135, 1, 135, 1, 135, 1, 135, 3, 135, 1511, 8, 135, 1, 135, 4, 135, 1514, 8, 135, 11, 135, 12, 135, 1515, 3, 135, 1518, 8, 135, 1, 136, 1, 136, 1, 136, 4, 136, 1523, 8, 136, 11, 136, 12, 136, 1524, 1, 137, 1, 137, 4, 137, 1529, 8, 137, 11, 137, 12, 137, 1530, 1, 138, 4, 138, 1534, 8, 138, 11, 138, 12, 138, 1535, 1, 139, 1, 139, 1, 139, 4, 139, 1541, 8, 139, 11, 139, 12, 139, 1542, 1, 140, 1, 140, 1, 140, 4, 140, 1548, 8, 140, 11, 140, 12, 140, 1549, 1, 141, 1, 141, 1, 141, 4, 141, 1555, 8, 141, 11, 141, 12, 141, 1556, 1, 142, 1, 142, 1, 142, 1, 142, 1, 142, 1, 142, 1, 142, 1, 142, 1, 142, 5, 142, 1568, 8, 142, 10, 142, 12, 142, 1571, 9, 142, 1, 142, 1, 142, 1, 143, 1, 143, 1, 144, 1, 144, 1, 145, 1, 145, 1, 146, 1, 146, 1, 147, 1, 147, 1, 148, 1, 148, 1, 149, 1, 149, 1, 150, 1, 150, 1, 151, 1, 151, 1, 152, 1, 152, 1, 153, 1, 153, 1, 154, 1, 154, 1, 155, 1, 155, 1, 156, 1, 156, 1, 157, 1, 157, 1, 158, 1, 158, 1, 159, 1, 159, 1, 160, 1, 160, 1, 161, 1, 161, 1, 162, 1, 162, 1, 163, 1, 163, 1, 164, 1, 164, 1, 165, 1, 165, 1, 166, 1, 166, 1, 167, 1, 167, 1, 168, 1, 168, 1, 169, 1, 169, 1, 170, 1, 170, 1, 171, 1, 171, 1, 172, 1, 172, 1, 173, 1, 173, 1, 174, 1, 174, 1, 174, 1, 175, 1, 175, 1, 176, 1, 176, 1, 177, 1, 177, 1, 178, 1, 178, 1, 178, 1, 179, 1, 179, 1, 179, 1, 180, 1, 180, 1, 181, 1, 181, 1, 182, 1, 182, 1, 182, 1, 183, 1, 183, 1, 184, 1, 184, 1, 185, 1, 185, 1, 186, 1, 186, 1, 186, 1, 187, 1, 187, 1, 188, 1, 188, 1, 188, 1, 189, 1, 189, 1, 190, 1, 190, 1, 191, 1, 191, 1, 191, 1, 192, 1, 192, 1, 192, 1, 192, 1, 193, 1, 193, 1, 193, 1, 193, 1, 194, 1, 194, 1, 195, 1, 195, 1, 196, 1, 196, 1, 196, 1, 196, 1, 197, 1, 197, 1, 197, 1, 198, 1, 198, 1, 198, 1, 198, 1, 198, 1, 198, 1, 199, 1, 199, 1, 199, 1, 199, 1, 199, 1, 199, 1, 200, 1, 200, 1, 201, 1, 201, 1, 201, 1, 202, 1, 202, 1, 202, 1, 202, 3, 202, 1720, 8, 202, 1, 203, 1, 203, 1, 203, 1, 203, 1, 204, 1, 204, 1, 204, 1, 205, 1, 205, 1, 205, 1, 206, 1, 206, 1, 206, 1, 207, 1, 207, 1, 208, 1, 208, 1, 209, 1, 209, 1, 210, 1, 210, 1, 211, 1, 211, 1, 211, 1, 211, 1, 211, 1, 212, 1, 212, 1, 212, 1, 212, 1, 212, 1, 213, 1, 213, 1, 214, 1, 214, 1, 215, 1, 215, 1, 215, 1, 216, 1, 216, 1, 216, 1, 216, 1, 217, 1, 217, 1, 218, 1, 218, 1, 219, 1, 219, 1, 220, 1, 220, 1, 221, 1, 221, 1, 221, 1, 222, 1, 222, 1, 223, 1, 223, 1, 223, 1, 223, 5, 223, 1781, 8, 223, 10, 223, 12, 223, 1784, 9, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 223, 1, 224, 1, 224, 1, 224, 1, 224, 3, 224, 1795, 8, 224, 1, 224, 5, 224, 1798, 8, 224, 10, 224, 12, 224, 1801, 9, 224, 1, 224, 3, 224, 1804, 8, 224, 1, 224, 1, 224, 1, 225, 1, 225, 1, 225, 5, 225, 1811, 8, 225, 10, 225, 12, 225, 1814, 9, 225, 3, 225, 1816, 8, 225, 1, 225, 3, 225, 1819, 8, 225, 1, 225, 1, 225, 1, 226, 1, 226, 1, 226, 1, 226, 1, 227, 1, 227, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 1, 228, 4, 228, 1840, 8, 228, 11, 228, 12, 228, 1841, 1, 229, 1, 229, 1, 229, 1, 229, 1, 230, 1, 230, 1, 230, 1, 230, 1, 230, 1, 231, 1, 231, 1, 231, 1, 231, 1, 231, 4, 231, 1858, 8, 231, 11, 231, 12, 231, 1859, 1, 232, 1, 232, 1, 232, 1, 232, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 233, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 234, 1, 235, 1, 235, 1, 235, 1, 235, 5, 235, 1882, 8, 235, 10, 235, 12, 235, 1885, 9, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 235, 1, 236, 1, 236, 1, 236, 1, 236, 3, 236, 1896, 8, 236, 1, 236, 5, 236, 1899, 8, 236, 10, 236, 12, 236, 1902, 9, 236, 1, 236, 3, 236, 1905, 8, 236, 1, 236, 1, 236, 1, 237, 1, 237, 5, 237, 1911, 8, 237, 10, 237, 12, 237, 1914, 9, 237, 1, 237, 1, 237, 1, 238, 1, 238, 1, 238, 1, 238, 1, 239, 1, 239, 1, 239, 1, 239, 1, 240, 4, 240, 1927, 8, 240, 11, 240, 12, 240, 1928, 1, 240, 1, 240, 1, 241, 1, 241, 1, 241, 1, 241, 1, 241, 1, 242, 1, 242, 1, 242, 1, 242, 1, 243, 1, 243, 1, 243, 1, 243, 1, 243, 1, 244, 1, 244, 1, 244, 1, 244, 5, 244, 1951, 8, 244, 10, 244, 12, 244, 1954, 9, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 244, 1, 245, 1, 245, 1, 245, 1, 245, 3, 245, 1965, 8, 245, 1, 245, 5, 245, 1968, 8, 245, 10, 245, 12, 245, 1971, 9, 245, 1, 245, 3, 245, 1974, 8, 245, 1, 245, 1, 245, 1, 246, 1, 246, 5, 246, 1980, 8, 246, 10, 246, 12, 246, 1983, 9, 246, 1, 246, 1, 246, 1, 247, 4, 247, 1988, 8, 247, 11, 247, 12, 247, 1989, 1, 247, 1, 247, 1, 248, 1, 248, 1, 248, 1, 248, 1, 249, 4, 249, 1999, 8, 249, 11, 249, 12, 249, 2000, 1, 250, 1, 250, 1, 250, 1, 250, 1, 250, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 251, 1, 252, 1, 252, 1, 252, 1, 252, 1, 252, 1, 253, 4, 253, 2021, 8, 253, 11, 253, 12, 253, 2022, 1, 253, 1, 253, 3, 1782, 1883, 1952, 0, 254, 6, 1, 8, 2, 10, 3, 12, 4, 14, 5, 16, 6, 18, 7, 20, 8, 22, 9, 24, 10, 26, 11, 28, 12, 30, 13, 32, 14, 34, 15, 36, 16, 38, 17, 40, 18, 42, 19, 44, 20, 46, 21, 48, 22, 50, 23, 52, 24, 54, 25, 56, 26, 58, 27, 60, 28, 62, 29, 64, 30, 66, 31, 68, 32, 70, 33, 72, 34, 74, 35, 76, 36, 78, 37, 80, 38, 82, 39, 84, 40, 86, 41, 88, 42, 90, 43, 92, 44, 94, 45, 96, 46, 98, 47, 100, 48, 102, 49, 104, 50, 106, 51, 108, 52, 110, 53, 112, 54, 114, 55, 116, 56, 118, 57, 120, 58, 122, 59, 124, 60, 126, 61, 128, 62, 130, 63, 132, 64, 134, 65, 136, 66, 138, 67, 140, 68, 142, 69, 144, 70, 146, 71, 148, 72, 150, 73, 152, 74, 154, 75, 156, 76, 158, 77, 160, 78, 162, 79, 164, 80, 166, 81, 168, 82, 170, 83, 172, 84, 174, 85, 176, 86, 178, 87, 180, 88, 182, 89, 184, 90, 186, 91, 188, 92, 190, 93, 192, 94, 194, 95, 196, 96, 198, 97, 200, 98, 202, 99, 204, 100, 206, 101, 208, 102, 210, 103, 212, 104, 214, 105, 216, 106, 218, 107, 220, 108, 222, 109, 224, 110, 226, 111, 228, 112, 230, 113, 232, 114, 234, 115, 236, 116, 238, 117, 240, 118, 242, 119, 244, 120, 246, 121, 248, 122, 250, 123, 252, 124, 254, 125, 256, 126, 258, 127, 260, 128, 262, 129, 264, 130, 266, 131, 268, 132, 270, 133, 272, 134, 274, 135, 276, 136, 278, 137, 280, 138, 282, 139, 284, 140, 286, 141, 288, 142, 290, 143, 292, 0, 294, 0, 296, 0, 298, 0, 300, 0, 302, 0, 304, 0, 306, 0, 308, 0, 310, 0, 312, 0, 314, 0, 316, 0, 318, 0, 320, 0, 322, 0, 324, 0, 326, 0, 328, 0, 330, 0, 332, 0, 334, 0, 336, 0, 338, 0, 340, 0, 342, 0, 344, 0, 346, 0, 348, 0, 350, 0, 352, 0, 354, 144, 356, 145, 358, 146, 360, 147, 362, 148, 364, 149, 366, 150, 368, 151, 370, 152, 372, 153, 374, 154, 376, 155, 378, 156, 380, 157, 382, 158, 384, 159, 386, 160, 388, 161, 390, 162, 392, 163, 394, 164, 396, 165, 398, 166, 400, 167, 402, 0, 404, 0, 406, 168, 408, 169, 410, 170, 412, 171, 414, 172, 416, 173, 418, 174, 420, 175, 422, 176, 424, 177, 426, 178, 428, 179, 430, 180, 432, 181, 434, 182, 436, 183, 438, 184, 440, 185, 442, 186, 444, 187, 446, 188, 448, 189, 450, 190, 452, 191, 454, 192, 456, 193, 458, 194, 460, 195, 462, 196, 464, 197, 466, 0, 468, 198, 470, 199, 472, 0, 474, 0, 476, 200, 478, 201, 480, 0, 482, 0, 484, 0, 486, 202, 488, 0, 490, 0, 492, 0, 494, 203, 496, 204, 498, 0, 500, 205, 502, 0, 504, 206, 506, 0, 508, 0, 510, 0, 512, 207, 6, 0, 1, 2, 3, 4, 5, 44, 2, 0, 92, 92, 96, 96, 2, 0, 34, 34, 92, 92, 2, 0, 79, 79, 111, 111, 2, 0, 66, 66, 98, 98, 2, 0, 39, 39, 92, 92, 2, 0, 65, 65, 97, 97, 2, 0, 67, 67, 99, 99, 2, 0, 68, 68, 100, 100, 2, 0, 69, 69, 101, 101, 2, 0, 70, 70, 102, 102, 2, 0, 71, 71, 103, 103, 2, 0, 72, 72, 104, 104, 2, 0, 73, 73, 105, 105, 2, 0, 74, 74, 106, 106, 2, 0, 75, 75, 107, 107, 2, 0, 76, 76, 108, 108, 2, 0, 77, 77, 109, 109, 2, 0, 78, 78, 110, 110, 2, 0, 80, 80, 112, 112, 2, 0, 81, 81, 113, 113, 2, 0, 82, 82, 114, 114, 2, 0, 83, 83, 115, 115, 2, 0, 84, 84, 116, 116, 2, 0, 85, 85, 117, 117, 2, 0, 86, 86, 118, 118, 2, 0, 87, 87, 119, 119, 2, 0, 88, 88, 120, 120, 2, 0, 89, 89, 121, 121, 2, 0, 90, 90, 122, 122, 2, 0, 65, 90, 97, 122, 1, 0, 48, 49, 1, 0, 48, 55, 1, 0, 48, 57, 3, 0, 48, 57, 65, 70, 97, 102, 2, 0, 10, 10, 13, 13, 2, 1, 10, 10, 13, 13, 3, 0, 10, 10, 13, 13, 48, 57, 11, 0, 9, 13, 32, 32, 133, 133, 160, 160, 5760, 5760, 8192, 8202, 8232, 8233, 8239, 8239, 8287, 8287, 12288, 12288, 65279, 65279, 3, 0, 39, 39, 92, 92, 123, 123, 1, 0, 123, 123, 3, 0, 65, 90, 95, 95, 97, 122, 5, 0, 45, 45, 48, 57, 65, 90, 95, 95, 97, 122, 3, 0, 9, 10, 13, 13, 32, 32, 2, 0, 60, 60, 123, 123, 2073, 0, 6, 1, 0, 0, 0, 0, 8, 1, 0, 0, 0, 0, 10, 1, 0, 0, 0, 0, 12, 1, 0, 0, 0, 0, 14, 1, 0, 0, 0, 0, 16, 1, 0, 0, 0, 0, 18, 1, 0, 0, 0, 0, 20, 1, 0, 0, 0, 0, 22, 1, 0, 0, 0, 0, 24, 1, 0, 0, 0, 0, 26, 1, 0, 0, 0, 0, 28, 1, 0, 0, 0, 0, 30, 1, 0, 0, 0, 0, 32, 1, 0, 0, 0, 0, 34, 1, 0, 0, 0, 0, 36, 1, 0, 0, 0, 0, 38, 1, 0, 0, 0, 0, 40, 1, 0, 0, 0, 0, 42, 1, 0, 0, 0, 0, 44, 1, 0, 0, 0, 0, 46, 1, 0, 0, 0, 0, 48, 1, 0, 0, 0, 0, 50, 1, 0, 0, 0, 0, 52, 1, 0, 0, 0, 0, 54, 1, 0, 0, 0, 0, 56, 1, 0, 0, 0, 0, 58, 1, 0, 0, 0, 0, 60, 1, 0, 0, 0, 0, 62, 1, 0, 0, 0, 0, 64, 1, 0, 0, 0, 0, 66, 1, 0, 0, 0, 0, 68, 1, 0, 0, 0, 0, 70, 1, 0, 0, 0, 0, 72, 1, 0, 0, 0, 0, 74, 1, 0, 0, 0, 0, 76, 1, 0, 0, 0, 0, 78, 1, 0, 0, 0, 0, 80, 1, 0, 0, 0, 0, 82, 1, 0, 0, 0, 0, 84, 1, 0, 0, 0, 0, 86, 1, 0, 0, 0, 0, 88, 1, 0, 0, 0, 0, 90, 1, 0, 0, 0, 0, 92, 1, 0, 0, 0, 0, 94, 1, 0, 0, 0, 0, 96, 1, 0, 0, 0, 0, 98, 1, 0, 0, 0, 0, 100, 1, 0, 0, 0, 0, 102, 1, 0, 0, 0, 0, 104, 1, 0, 0, 0, 0, 106, 1, 0, 0, 0, 0, 108, 1, 0, 0, 0, 0, 110, 1, 0, 0, 0, 0, 112, 1, 0, 0, 0, 0, 114, 1, 0, 0, 0, 0, 116, 1, 0, 0, 0, 0, 118, 1, 0, 0, 0, 0, 120, 1, 0, 0, 0, 0, 122, 1, 0, 0, 0, 0, 124, 1, 0, 0, 0, 0, 126, 1, 0, 0, 0, 0, 128, 1, 0, 0, 0, 0, 130, 1, 0, 0, 0, 0, 132, 1, 0, 0, 0, 0, 134, 1, 0, 0, 0, 0, 136, 1, 0, 0, 0, 0, 138, 1, 0, 0, 0, 0, 140, 1, 0, 0, 0, 0, 142, 1, 0, 0, 0, 0, 144, 1, 0, 0, 0, 0, 146, 1, 0, 0, 0, 0, 148, 1, 0, 0, 0, 0, 150, 1, 0, 0, 0, 0, 152, 1, 0, 0, 0, 0, 154, 1, 0, 0, 0, 0, 156, 1, 0, 0, 0, 0, 158, 1, 0, 0, 0, 0, 160, 1, 0, 0, 0, 0, 162, 1, 0, 0, 0, 0, 164, 1, 0, 0, 0, 0, 166, 1, 0, 0, 0, 0, 168, 1, 0, 0, 0, 0, 170, 1, 0, 0, 0, 0, 172, 1, 0, 0, 0, 0, 174, 1, 0, 0, 0, 0, 176, 1, 0, 0, 0, 0, 178, 1, 0, 0, 0, 0, 180, 1, 0, 0, 0, 0, 182, 1, 0, 0, 0, 0, 184, 1, 0, 0, 0, 0, 186, 1, 0, 0, 0, 0, 188, 1, 0, 0, 0, 0, 190, 1, 0, 0, 0, 0, 192, 1, 0, 0, 0, 0, 194, 1, 0, 0, 0, 0, 196, 1, 0, 0, 0, 0, 198, 1, 0, 0, 0, 0, 200, 1, 0, 0, 0, 0, 202, 1, 0, 0, 0, 0, 204, 1, 0, 0, 0, 0, 206, 1, 0, 0, 0, 0, 208, 1, 0, 0, 0, 0, 210, 1, 0, 0, 0, 0, 212, 1, 0, 0, 0, 0, 214, 1, 0, 0, 0, 0, 216, 1, 0, 0, 0, 0, 218, 1, 0, 0, 0, 0, 220, 1, 0, 0, 0, 0, 222, 1, 0, 0, 0, 0, 224, 1, 0, 0, 0, 0, 226, 1, 0, 0, 0, 0, 228, 1, 0, 0, 0, 0, 230, 1, 0, 0, 0, 0, 232, 1, 0, 0, 0, 0, 234, 1, 0, 0, 0, 0, 236, 1, 0, 0, 0, 0, 238, 1, 0, 0, 0, 0, 240, 1, 0, 0, 0, 0, 242, 1, 0, 0, 0, 0, 244, 1, 0, 0, 0, 0, 246, 1, 0, 0, 0, 0, 248, 1, 0, 0, 0, 0, 250, 1, 0, 0, 0, 0, 252, 1, 0, 0, 0, 0, 254, 1, 0, 0, 0, 0, 256, 1, 0, 0, 0, 0, 258, 1, 0, 0, 0, 0, 260, 1, 0, 0, 0, 0, 262, 1, 0, 0, 0, 0, 264, 1, 0, 0, 0, 0, 266, 1, 0, 0, 0, 0, 268, 1, 0, 0, 0, 0, 270, 1, 0, 0, 0, 0, 272, 1, 0, 0, 0, 0, 274, 1, 0, 0, 0, 0, 276, 1, 0, 0, 0, 0, 278, 1, 0, 0, 0, 0, 280, 1, 0, 0, 0, 0, 282, 1, 0, 0, 0, 0, 284, 1, 0, 0, 0, 0, 286, 1, 0, 0, 0, 0, 288, 1, 0, 0, 0, 0, 290, 1, 0, 0, 0, 0, 354, 1, 0, 0, 0, 0, 356, 1, 0, 0, 0, 0, 358, 1, 0, 0, 0, 0, 360, 1, 0, 0, 0, 0, 362, 1, 0, 0, 0, 0, 364, 1, 0, 0, 0, 0, 366, 1, 0, 0, 0, 0, 368, 1, 0, 0, 0, 0, 370, 1, 0, 0, 0, 0, 372, 1, 0, 0, 0, 0, 374, 1, 0, 0, 0, 0, 376, 1, 0, 0, 0, 0, 378, 1, 0, 0, 0, 0, 380, 1, 0, 0, 0, 0, 382, 1, 0, 0, 0, 0, 384, 1, 0, 0, 0, 0, 386, 1, 0, 0, 0, 0, 388, 1, 0, 0, 0, 0, 390, 1, 0, 0, 0, 0, 392, 1, 0, 0, 0, 0, 394, 1, 0, 0, 0, 0, 396, 1, 0, 0, 0, 0, 398, 1, 0, 0, 0, 0, 400, 1, 0, 0, 0, 0, 402, 1, 0, 0, 0, 0, 404, 1, 0, 0, 0, 0, 406, 1, 0, 0, 0, 0, 408, 1, 0, 0, 0, 0, 410, 1, 0, 0, 0, 0, 412, 1, 0, 0, 0, 0, 414, 1, 0, 0, 0, 0, 416, 1, 0, 0, 0, 0, 418, 1, 0, 0, 0, 0, 420, 1, 0, 0, 0, 0, 422, 1, 0, 0, 0, 0, 424, 1, 0, 0, 0, 0, 426, 1, 0, 0, 0, 0, 428, 1, 0, 0, 0, 0, 430, 1, 0, 0, 0, 0, 432, 1, 0, 0, 0, 0, 434, 1, 0, 0, 0, 0, 436, 1, 0, 0, 0, 0, 438, 1, 0, 0, 0, 0, 440, 1, 0, 0, 0, 0, 442, 1, 0, 0, 0, 0, 444, 1, 0, 0, 0, 0, 446, 1, 0, 0, 0, 0, 448, 1, 0, 0, 0, 0, 450, 1, 0, 0, 0, 0, 452, 1, 0, 0, 0, 0, 454, 1, 0, 0, 0, 0, 456, 1, 0, 0, 0, 0, 458, 1, 0, 0, 0, 0, 460, 1, 0, 0, 0, 1, 462, 1, 0, 0, 0, 1, 464, 1, 0, 0, 0, 1, 466, 1, 0, 0, 0, 2, 468, 1, 0, 0, 0, 2, 470, 1, 0, 0, 0, 3, 472, 1, 0, 0, 0, 3, 474, 1, 0, 0, 0, 3, 476, 1, 0, 0, 0, 3, 478, 1, 0, 0, 0, 3, 480, 1, 0, 0, 0, 3, 482, 1, 0, 0, 0, 3, 484, 1, 0, 0, 0, 3, 486, 1, 0, 0, 0, 3, 488, 1, 0, 0, 0, 3, 490, 1, 0, 0, 0, 4, 492, 1, 0, 0, 0, 4, 494, 1, 0, 0, 0, 4, 496, 1, 0, 0, 0, 4, 498, 1, 0, 0, 0, 4, 500, 1, 0, 0, 0, 4, 502, 1, 0, 0, 0, 5, 504, 1, 0, 0, 0, 5, 506, 1, 0, 0, 0, 5, 508, 1, 0, 0, 0, 5, 510, 1, 0, 0, 0, 5, 512, 1, 0, 0, 0, 6, 514, 1, 0, 0, 0, 8, 518, 1, 0, 0, 0, 10, 522, 1, 0, 0, 0, 12, 527, 1, 0, 0, 0, 14, 531, 1, 0, 0, 0, 16, 537, 1, 0, 0, 0, 18, 554, 1, 0, 0, 0, 20, 556, 1, 0, 0, 0, 22, 561, 1, 0, 0, 0, 24, 569, 1, 0, 0, 0, 26, 574, 1, 0, 0, 0, 28, 577, 1, 0, 0, 0, 30, 582, 1, 0, 0, 0, 32, 587, 1, 0, 0, 0, 34, 593, 1, 0, 0, 0, 36, 600, 1, 0, 0, 0, 38, 608, 1, 0, 0, 0, 40, 616, 1, 0, 0, 0, 42, 622, 1, 0, 0, 0, 44, 627, 1, 0, 0, 0, 46, 635, 1, 0, 0, 0, 48, 640, 1, 0, 0, 0, 50, 644, 1, 0, 0, 0, 52, 649, 1, 0, 0, 0, 54, 660, 1, 0, 0, 0, 56, 669, 1, 0, 0, 0, 58, 674, 1, 0, 0, 0, 60, 678, 1, 0, 0, 0, 62, 685, 1, 0, 0, 0, 64, 693, 1, 0, 0, 0, 66, 701, 1, 0, 0, 0, 68, 707, 1, 0, 0, 0, 70, 712, 1, 0, 0, 0, 72, 719, 1, 0, 0, 0, 74, 727, 1, 0, 0, 0, 76, 733, 1, 0, 0, 0, 78, 736, 1, 0, 0, 0, 80, 746, 1, 0, 0, 0, 82, 750, 1, 0, 0, 0, 84, 755, 1, 0, 0, 0, 86, 760, 1, 0, 0, 0, 88, 764, 1, 0, 0, 0, 90, 770, 1, 0, 0, 0, 92, 779, 1, 0, 0, 0, 94, 786, 1, 0, 0, 0, 96, 791, 1, 0, 0, 0, 98, 794, 1, 0, 0, 0, 100, 797, 1, 0, 0, 0, 102, 803, 1, 0, 0, 0, 104, 810, 1, 0, 0, 0, 106, 818, 1, 0, 0, 0, 108, 834, 1, 0, 0, 0, 110, 836, 1, 0, 0, 0, 112, 842, 1, 0, 0, 0, 114, 852, 1, 0, 0, 0, 116, 864, 1, 0, 0, 0, 118, 873, 1, 0, 0, 0, 120, 876, 1, 0, 0, 0, 122, 881, 1, 0, 0, 0, 124, 885, 1, 0, 0, 0, 126, 892, 1, 0, 0, 0, 128, 897, 1, 0, 0, 0, 130, 905, 1, 0, 0, 0, 132, 910, 1, 0, 0, 0, 134, 914, 1, 0, 0, 0, 136, 919, 1, 0, 0, 0, 138, 925, 1, 0, 0, 0, 140, 938, 1, 0, 0, 0, 142, 945, 1, 0, 0, 0, 144, 951, 1, 0, 0, 0, 146, 956, 1, 0, 0, 0, 148, 964, 1, 0, 0, 0, 150, 968, 1, 0, 0, 0, 152, 972, 1, 0, 0, 0, 154, 977, 1, 0, 0, 0, 156, 983, 1, 0, 0, 0, 158, 990, 1, 0, 0, 0, 160, 993, 1, 0, 0, 0, 162, 996, 1, 0, 0, 0, 164, 1002, 1, 0, 0, 0, 166, 1008, 1, 0, 0, 0, 168, 1013, 1, 0, 0, 0, 170, 1023, 1, 0, 0, 0, 172, 1029, 1, 0, 0, 0, 174, 1040, 1, 0, 0, 0, 176, 1050, 1, 0, 0, 0, 178, 1059, 1, 0, 0, 0, 180, 1067, 1, 0, 0, 0, 182, 1075, 1, 0, 0, 0, 184, 1081, 1, 0, 0, 0, 186, 1091, 1, 0, 0, 0, 188, 1099, 1, 0, 0, 0, 190, 1106, 1, 0, 0, 0, 192, 1112, 1, 0, 0, 0, 194, 1119, 1, 0, 0, 0, 196, 1123, 1, 0, 0, 0, 198, 1128, 1, 0, 0, 0, 200, 1135, 1, 0, 0, 0, 202, 1142, 1, 0, 0, 0, 204, 1149, 1, 0, 0, 0, 206, 1154, 1, 0, 0, 0, 208, 1159, 1, 0, 0, 0, 210, 1168, 1, 0, 0, 0, 212, 1173, 1, 0, 0, 0, 214, 1183, 1, 0, 0, 0, 216, 1188, 1, 0, 0, 0, 218, 1194, 1, 0, 0, 0, 220, 1199, 1, 0, 0, 0, 222, 1209, 1, 0, 0, 0, 224, 1214, 1, 0, 0, 0, 226, 1220, 1, 0, 0, 0, 228, 1225, 1, 0, 0, 0, 230, 1228, 1, 0, 0, 0, 232, 1232, 1, 0, 0, 0, 234, 1239, 1, 0, 0, 0, 236, 1248, 1, 0, 0, 0, 238, 1253, 1, 0, 0, 0, 240, 1262, 1, 0, 0, 0, 242, 1266, 1, 0, 0, 0, 244, 1275, 1, 0, 0, 0, 246, 1285, 1, 0, 0, 0, 248, 1291, 1, 0, 0, 0, 250, 1299, 1, 0, 0, 0, 252, 1305, 1, 0, 0, 0, 254, 1312, 1, 0, 0, 0, 256, 1317, 1, 0, 0, 0, 258, 1322, 1, 0, 0, 0, 260, 1328, 1, 0, 0, 0, 262, 1334, 1, 0, 0, 0, 264, 1341, 1, 0, 0, 0, 266, 1346, 1, 0, 0, 0, 268, 1363, 1, 0, 0, 0, 270, 1397, 1, 0, 0, 0, 272, 1402, 1, 0, 0, 0, 274, 1445, 1, 0, 0, 0, 276, 1517, 1, 0, 0, 0, 278, 1519, 1, 0, 0, 0, 280, 1526, 1, 0, 0, 0, 282, 1533, 1, 0, 0, 0, 284, 1537, 1, 0, 0, 0, 286, 1544, 1, 0, 0, 0, 288, 1551, 1, 0, 0, 0, 290, 1558, 1, 0, 0, 0, 292, 1574, 1, 0, 0, 0, 294, 1576, 1, 0, 0, 0, 296, 1578, 1, 0, 0, 0, 298, 1580, 1, 0, 0, 0, 300, 1582, 1, 0, 0, 0, 302, 1584, 1, 0, 0, 0, 304, 1586, 1, 0, 0, 0, 306, 1588, 1, 0, 0, 0, 308, 1590, 1, 0, 0, 0, 310, 1592, 1, 0, 0, 0, 312, 1594, 1, 0, 0, 0, 314, 1596, 1, 0, 0, 0, 316, 1598, 1, 0, 0, 0, 318, 1600, 1, 0, 0, 0, 320, 1602, 1, 0, 0, 0, 322, 1604, 1, 0, 0, 0, 324, 1606, 1, 0, 0, 0, 326, 1608, 1, 0, 0, 0, 328, 1610, 1, 0, 0, 0, 330, 1612, 1, 0, 0, 0, 332, 1614, 1, 0, 0, 0, 334, 1616, 1, 0, 0, 0, 336, 1618, 1, 0, 0, 0, 338, 1620, 1, 0, 0, 0, 340, 1622, 1, 0, 0, 0, 342, 1624, 1, 0, 0, 0, 344, 1626, 1, 0, 0, 0, 346, 1628, 1, 0, 0, 0, 348, 1630, 1, 0, 0, 0, 350, 1632, 1, 0, 0, 0, 352, 1634, 1, 0, 0, 0, 354, 1636, 1, 0, 0, 0, 356, 1639, 1, 0, 0, 0, 358, 1641, 1, 0, 0, 0, 360, 1643, 1, 0, 0, 0, 362, 1645, 1, 0, 0, 0, 364, 1648, 1, 0, 0, 0, 366, 1651, 1, 0, 0, 0, 368, 1653, 1, 0, 0, 0, 370, 1655, 1, 0, 0, 0, 372, 1658, 1, 0, 0, 0, 374, 1660, 1, 0, 0, 0, 376, 1662, 1, 0, 0, 0, 378, 1664, 1, 0, 0, 0, 380, 1667, 1, 0, 0, 0, 382, 1669, 1, 0, 0, 0, 384, 1672, 1, 0, 0, 0, 386, 1674, 1, 0, 0, 0, 388, 1676, 1, 0, 0, 0, 390, 1679, 1, 0, 0, 0, 392, 1683, 1, 0, 0, 0, 394, 1687, 1, 0, 0, 0, 396, 1689, 1, 0, 0, 0, 398, 1691, 1, 0, 0, 0, 400, 1695, 1, 0, 0, 0, 402, 1698, 1, 0, 0, 0, 404, 1704, 1, 0, 0, 0, 406, 1710, 1, 0, 0, 0, 408, 1712, 1, 0, 0, 0, 410, 1719, 1, 0, 0, 0, 412, 1721, 1, 0, 0, 0, 414, 1725, 1, 0, 0, 0, 416, 1728, 1, 0, 0, 0, 418, 1731, 1, 0, 0, 0, 420, 1734, 1, 0, 0, 0, 422, 1736, 1, 0, 0, 0, 424, 1738, 1, 0, 0, 0, 426, 1740, 1, 0, 0, 0, 428, 1742, 1, 0, 0, 0, 430, 1747, 1, 0, 0, 0, 432, 1752, 1, 0, 0, 0, 434, 1754, 1, 0, 0, 0, 436, 1756, 1, 0, 0, 0, 438, 1759, 1, 0, 0, 0, 440, 1763, 1, 0, 0, 0, 442, 1765, 1, 0, 0, 0, 444, 1767, 1, 0, 0, 0, 446, 1769, 1, 0, 0, 0, 448, 1771, 1, 0, 0, 0, 450, 1774, 1, 0, 0, 0, 452, 1776, 1, 0, 0, 0, 454, 1794, 1, 0, 0, 0, 456, 1807, 1, 0, 0, 0, 458, 1822, 1, 0, 0, 0, 460, 1826, 1, 0, 0, 0, 462, 1839, 1, 0, 0, 0, 464, 1843, 1, 0, 0, 0, 466, 1847, 1, 0, 0, 0, 468, 1857, 1, 0, 0, 0, 470, 1861, 1, 0, 0, 0, 472, 1865, 1, 0, 0, 0, 474, 1871, 1, 0, 0, 0, 476, 1877, 1, 0, 0, 0, 478, 1895, 1, 0, 0, 0, 480, 1908, 1, 0, 0, 0, 482, 1917, 1, 0, 0, 0, 484, 1921, 1, 0, 0, 0, 486, 1926, 1, 0, 0, 0, 488, 1932, 1, 0, 0, 0, 490, 1937, 1, 0, 0, 0, 492, 1941, 1, 0, 0, 0, 494, 1946, 1, 0, 0, 0, 496, 1964, 1, 0, 0, 0, 498, 1977, 1, 0, 0, 0, 500, 1987, 1, 0, 0, 0, 502, 1993, 1, 0, 0, 0, 504, 1998, 1, 0, 0, 0, 506, 2002, 1, 0, 0, 0, 508, 2007, 1, 0, 0, 0, 510, 2014, 1, 0, 0, 0, 512, 2020, 1, 0, 0, 0, 514, 515, 3, 292, 143, 0, 515, 516, 3, 314, 154, 0, 516, 517, 3, 314, 154, 0, 517, 7, 1, 0, 0, 0, 518, 519, 3, 292, 143, 0, 519, 520, 3, 318, 156, 0, 520, 521, 3, 298, 146, 0, 521, 9, 1, 0, 0, 0, 522, 523, 3, 292, 143, 0, 523, 524, 3, 318, 156, 0, 524, 525, 3, 330, 162, 0, 525, 526, 3, 308, 151, 0, 526, 11, 1, 0, 0, 0, 527, 528, 3, 292, 143, 0, 528, 529, 3, 318, 156, 0, 529, 530, 3, 340, 167, 0, 530, 13, 1, 0, 0, 0, 531, 532, 3, 292, 143, 0, 532, 533, 3, 326, 160, 0, 533, 534, 3, 326, 160, 0, 534, 535, 3, 292, 143, 0, 535, 536, 3, 340, 167, 0, 536, 15, 1, 0, 0, 0, 537, 538, 3, 292, 143, 0, 538, 539, 3, 328, 161, 0, 539, 17, 1, 0, 0, 0, 540, 541, 3, 292, 143, 0, 541, 542, 3, 328, 161, 0, 542, 543, 3, 296, 145, 0, 543, 555, 1, 0, 0, 0, 544, 545, 3, 292, 143, 0, 545, 546, 3, 328, 161, 0, 546, 547, 3, 296, 145, 0, 547, 548, 3, 300, 147, 0, 548, 549, 3, 318, 156, 0, 549, 550, 3, 298, 146, 0, 550, 551, 3, 308, 151, 0, 551, 552, 3, 318, 156, 0, 552, 553, 3, 304, 149, 0, 553, 555, 1, 0, 0, 0, 554, 540, 1, 0, 0, 0, 554, 544, 1, 0, 0, 0, 555, 19, 1, 0, 0, 0, 556, 557, 3, 292, 143, 0, 557, 558, 3, 328, 161, 0, 558, 559, 3, 320, 157, 0, 559, 560, 3, 302, 148, 0, 560, 21, 1, 0, 0, 0, 561, 562, 3, 294, 144, 0, 562, 563, 3, 300, 147, 0, 563, 564, 3, 330, 162, 0, 564, 565, 3, 336, 165, 0, 565, 566, 3, 300, 147, 0, 566, 567, 3, 300, 147, 0, 567, 568, 3, 318, 156, 0, 568, 23, 1, 0, 0, 0, 569, 570, 3, 294, 144, 0, 570, 571, 3, 320, 157, 0, 571, 572, 3, 330, 162, 0, 572, 573, 3, 306, 150, 0, 573, 25, 1, 0, 0, 0, 574, 575, 3, 294, 144, 0, 575, 576, 3, 340, 167, 0, 576, 27, 1, 0, 0, 0, 577, 578, 3, 296, 145, 0, 578, 579, 3, 292, 143, 0, 579, 580, 3, 328, 161, 0, 580, 581, 3, 300, 147, 0, 581, 29, 1, 0, 0, 0, 582, 583, 3, 296, 145, 0, 583, 584, 3, 292, 143, 0, 584, 585, 3, 328, 161, 0, 585, 586, 3, 330, 162, 0, 586, 31, 1, 0, 0, 0, 587, 588, 3, 296, 145, 0, 588, 589, 3, 292, 143, 0, 589, 590, 3, 330, 162, 0, 590, 591, 3, 296, 145, 0, 591, 592, 3, 306, 150, 0, 592, 33, 1, 0, 0, 0, 593, 594, 3, 296, 145, 0, 594, 595, 3, 320, 157, 0, 595, 596, 3, 306, 150, 0, 596, 597, 3, 320, 157, 0, 597, 598, 3, 326, 160, 0, 598, 599, 3, 330, 162, 0, 599, 35, 1, 0, 0, 0, 600, 601, 3, 296, 145, 0, 601, 602, 3, 320, 157, 0, 602, 603, 3, 314, 154, 0, 603, 604, 3, 314, 154, 0, 604, 605, 3, 292, 143, 0, 605, 606, 3, 330, 162, 0, 606, 607, 3, 300, 147, 0, 607, 37, 1, 0, 0, 0, 608, 609, 3, 296, 145, 0, 609, 610, 3, 320, 157, 0, 610, 611, 3, 314, 154, 0, 611, 612, 3, 332, 163, 0, 612, 613, 3, 316, 155, 0, 613, 614, 3, 318, 156, 0, 614, 615, 3, 328, 161, 0, 615, 39, 1, 0, 0, 0, 616, 617, 3, 296, 145, 0, 617, 618, 3, 326, 160, 0, 618, 619, 3, 320, 157, 0, 619, 620, 3, 328, 161, 0, 620, 621, 3, 328, 161, 0, 621, 41, 1, 0, 0, 0, 622, 623, 3, 296, 145, 0, 623, 624, 3, 332, 163, 0, 624, 625, 3, 294, 144, 0, 625, 626, 3, 300, 147, 0, 626, 43, 1, 0, 0, 0, 627, 628, 3, 296, 145, 0, 628, 629, 3, 332, 163, 0, 629, 630, 3, 326, 160, 0, 630, 631, 3, 326, 160, 0, 631, 632, 3, 300, 147, 0, 632, 633, 3, 318, 156, 0, 633, 634, 3, 330, 162, 0, 634, 45, 1, 0, 0, 0, 635, 636, 3, 298, 146, 0, 636, 637, 3, 292, 143, 0, 637, 638, 3, 330, 162, 0, 638, 639, 3, 300, 147, 0, 639, 47, 1, 0, 0, 0, 640, 641, 3, 298, 146, 0, 641, 642, 3, 292, 143, 0, 642, 643, 3, 340, 167, 0, 643, 49, 1, 0, 0, 0, 644, 645, 3, 298, 146, 0, 645, 646, 3, 300, 147, 0, 646, 647, 3, 328, 161, 0, 647, 648, 3, 296, 145, 0, 648, 51, 1, 0, 0, 0, 649, 650, 3, 298, 146, 0, 650, 651, 3, 300, 147, 0, 651, 652, 3, 328, 161, 0, 652, 653, 3, 296, 145, 0, 653, 654, 3, 300, 147, 0, 654, 655, 3, 318, 156, 0, 655, 656, 3, 298, 146, 0, 656, 657, 3, 308, 151, 0, 657, 658, 3, 318, 156, 0, 658, 659, 3, 304, 149, 0, 659, 53, 1, 0, 0, 0, 660, 661, 3, 298, 146, 0, 661, 662, 3, 308, 151, 0, 662, 663, 3, 328, 161, 0, 663, 664, 3, 330, 162, 0, 664, 665, 3, 308, 151, 0, 665, 666, 3, 318, 156, 0, 666, 667, 3, 296, 145, 0, 667, 668, 3, 330, 162, 0, 668, 55, 1, 0, 0, 0, 669, 670, 3, 300, 147, 0, 670, 671, 3, 314, 154, 0, 671, 672, 3, 328, 161, 0, 672, 673, 3, 300, 147, 0, 673, 57, 1, 0, 0, 0, 674, 675, 3, 300, 147, 0, 675, 676, 3, 318, 156, 0, 676, 677, 3, 298, 146, 0, 677, 59, 1, 0, 0, 0, 678, 679, 3, 300, 147, 0, 679, 680, 3, 338, 166, 0, 680, 681, 3, 296, 145, 0, 681, 682, 3, 300, 147, 0, 682, 683, 3, 322, 158, 0, 683, 684, 3, 330, 162, 0, 684, 61, 1, 0, 0, 0, 685, 686, 3, 300, 147, 0, 686, 687, 3, 338, 166, 0, 687, 688, 3, 296, 145, 0, 688, 689, 3, 314, 154, 0, 689, 690, 3, 332, 163, 0, 690, 691, 3, 298, 146, 0, 691, 692, 3, 300, 147, 0, 692, 63, 1, 0, 0, 0, 693, 694, 3, 300, 147, 0, 694, 695, 3, 338, 166, 0, 695, 696, 3, 330, 162, 0, 696, 697, 3, 326, 160, 0, 697, 698, 3, 292, 143, 0, 698, 699, 3, 296, 145, 0, 699, 700, 3, 330, 162, 0, 700, 65, 1, 0, 0, 0, 701, 702, 3, 302, 148, 0, 702, 703, 3, 308, 151, 0, 703, 704, 3, 318, 156, 0, 704, 705, 3, 292, 143, 0, 705, 706, 3, 314, 154, 0, 706, 67, 1, 0, 0, 0, 707, 708, 3, 302, 148, 0, 708, 709, 3, 308, 151, 0, 709, 710, 3, 314, 154, 0, 710, 711, 3, 314, 154, 0, 711, 69, 1, 0, 0, 0, 712, 713, 3, 302, 148, 0, 713, 714, 3, 308, 151, 0, 714, 715, 3, 314, 154, 0, 715, 716, 3, 330, 162, 0, 716, 717, 3, 300, 147, 0, 717, 718, 3, 326, 160, 0, 718, 71, 1, 0, 0, 0, 719, 720, 3, 302, 148, 0, 720, 721, 3, 308, 151, 0, 721, 722, 3, 318, 156, 0, 722, 723, 3, 292, 143, 0, 723, 724, 3, 314, 154, 0, 724, 725, 3, 314, 154, 0, 725, 726, 3, 340, 167, 0, 726, 73, 1, 0, 0, 0, 727, 728, 3, 302, 148, 0, 728, 729, 3, 308, 151, 0, 729, 730, 3, 326, 160, 0, 730, 731, 3, 328, 161, 0, 731, 732, 3, 330, 162, 0, 732, 75, 1, 0, 0, 0, 733, 734, 3, 302, 148, 0, 734, 735, 3, 318, 156, 0, 735, 77, 1, 0, 0, 0, 736, 737, 3, 302, 148, 0, 737, 738, 3, 320, 157, 0, 738, 739, 3, 314, 154, 0, 739, 740, 3, 314, 154, 0, 740, 741, 3, 320, 157, 0, 741, 742, 3, 336, 165, 0, 742, 743, 3, 308, 151, 0, 743, 744, 3, 318, 156, 0, 744, 745, 3, 304, 149, 0, 745, 79, 1, 0, 0, 0, 746, 747, 3, 302, 148, 0, 747, 748, 3, 320, 157, 0, 748, 749, 3, 326, 160, 0, 749, 81, 1, 0, 0, 0, 750, 751, 3, 302, 148, 0, 751, 752, 3, 326, 160, 0, 752, 753, 3, 320, 157, 0, 753, 754, 3, 316, 155, 0, 754, 83, 1, 0, 0, 0, 755, 756, 3, 302, 148, 0, 756, 757, 3, 332, 163, 0, 757, 758, 3, 314, 154, 0, 758, 759, 3, 314, 154, 0, 759, 85, 1, 0, 0, 0, 760, 761, 3, 302, 148, 0, 761, 762, 3, 332, 163, 0, 762, 763, 3, 318, 156, 0, 763, 87, 1, 0, 0, 0, 764, 765, 3, 304, 149, 0, 765, 766, 3, 326, 160, 0, 766, 767, 3, 320, 157, 0, 767, 768, 3, 332, 163, 0, 768, 769, 3, 322, 158, 0, 769, 89, 1, 0, 0, 0, 770, 771, 3, 304, 149, 0, 771, 772, 3, 326, 160, 0, 772, 773, 3, 320, 157, 0, 773, 774, 3, 332, 163, 0, 774, 775, 3, 322, 158, 0, 775, 776, 3, 308, 151, 0, 776, 777, 3, 318, 156, 0, 777, 778, 3, 304, 149, 0, 778, 91, 1, 0, 0, 0, 779, 780, 3, 306, 150, 0, 780, 781, 3, 292, 143, 0, 781, 782, 3, 334, 164, 0, 782, 783, 3, 308, 151, 0, 783, 784, 3, 318, 156, 0, 784, 785, 3, 304, 149, 0, 785, 93, 1, 0, 0, 0, 786, 787, 3, 306, 150, 0, 787, 788, 3, 320, 157, 0, 788, 789, 3, 332, 163, 0, 789, 790, 3, 326, 160, 0, 790, 95, 1, 0, 0, 0, 791, 792, 3, 308, 151, 0, 792, 793, 3, 298, 146, 0, 793, 97, 1, 0, 0, 0, 794, 795, 3, 308, 151, 0, 795, 796, 3, 302, 148, 0, 796, 99, 1, 0, 0, 0, 797, 798, 3, 308, 151, 0, 798, 799, 3, 314, 154, 0, 799, 800, 3, 308, 151, 0, 800, 801, 3, 312, 153, 0, 801, 802, 3, 300, 147, 0, 802, 101, 1, 0, 0, 0, 803, 804, 3, 308, 151, 0, 804, 805, 3, 304, 149, 0, 805, 806, 3, 318, 156, 0, 806, 807, 3, 320, 157, 0, 807, 808, 3, 326, 160, 0, 808, 809, 3, 300, 147, 0, 809, 103, 1, 0, 0, 0, 810, 811, 3, 308, 151, 0, 811, 812, 3, 318, 156, 0, 812, 813, 3, 296, 145, 0, 813, 814, 3, 314, 154, 0, 814, 815, 3, 332, 163, 0, 815, 816, 3, 298, 146, 0, 816, 817, 3, 300, 147, 0, 817, 105, 1, 0, 0, 0, 818, 819, 3, 308, 151, 0, 819, 820, 3, 318, 156, 0, 820, 107, 1, 0, 0, 0, 821, 822, 3, 308, 151, 0, 822, 823, 3, 318, 156, 0, 823, 824, 3, 302, 148, 0, 824, 835, 1, 0, 0, 0, 825, 826, 3, 308, 151, 0, 826, 827, 3, 318, 156, 0, 827, 828, 3, 302, 148, 0, 828, 829, 3, 308, 151, 0, 829, 830, 3, 318, 156, 0, 830, 831, 3, 308, 151, 0, 831, 832, 3, 330, 162, 0, 832, 833, 3, 340, 167, 0, 833, 835, 1, 0, 0, 0, 834, 821, 1, 0, 0, 0, 834, 825, 1, 0, 0, 0, 835, 109, 1, 0, 0, 0, 836, 837, 3, 308, 151, 0, 837, 838, 3, 318, 156, 0, 838, 839, 3, 318, 156, 0, 839, 840, 3, 300, 147, 0, 840, 841, 3, 326, 160, 0, 841, 111, 1, 0, 0, 0, 842, 843, 3, 308, 151, 0, 843, 844, 3, 318, 156, 0, 844, 845, 3, 330, 162, 0, 845, 846, 3, 300, 147, 0, 846, 847, 3, 326, 160, 0, 847, 848, 3, 328, 161, 0, 848, 849, 3, 300, 147, 0, 849, 850, 3, 296, 145, 0, 850, 851, 3, 330, 162, 0, 851, 113, 1, 0, 0, 0, 852, 853, 3, 308, 151, 0, 853, 854, 3, 318, 156, 0, 854, 855, 3, 330, 162, 0, 855, 856, 3, 300, 147, 0, 856, 857, 3, 326, 160, 0, 857, 858, 3, 322, 158, 0, 858, 859, 3, 320, 157, 0, 859, 860, 3, 314, 154, 0, 860, 861, 3, 292, 143, 0, 861, 862, 3, 330, 162, 0, 862, 863, 3, 300, 147, 0, 863, 115, 1, 0, 0, 0, 864, 865, 3, 308, 151, 0, 865, 866, 3, 318, 156, 0, 866, 867, 3, 330, 162, 0, 867, 868, 3, 300, 147, 0, 868, 869, 3, 326, 160, 0, 869, 870, 3, 334, 164, 0, 870, 871, 3, 292, 143, 0, 871, 872, 3, 314, 154, 0, 872, 117, 1, 0, 0, 0, 873, 874, 3, 308, 151, 0, 874, 875, 3, 328, 161, 0, 875, 119, 1, 0, 0, 0, 876, 877, 3, 310, 152, 0, 877, 878, 3, 320, 157, 0, 878, 879, 3, 308, 151, 0, 879, 880, 3, 318, 156, 0, 880, 121, 1, 0, 0, 0, 881, 882, 3, 312, 153, 0, 882, 883, 3, 300, 147, 0, 883, 884, 3, 340, 167, 0, 884, 123, 1, 0, 0, 0, 885, 886, 3, 314, 154, 0, 886, 887, 3, 292, 143, 0, 887, 888, 3, 316, 155, 0, 888, 889, 3, 294, 144, 0, 889, 890, 3, 298, 146, 0, 890, 891, 3, 292, 143, 0, 891, 125, 1, 0, 0, 0, 892, 893, 3, 314, 154, 0, 893, 894, 3, 292, 143, 0, 894, 895, 3, 328, 161, 0, 895, 896, 3, 330, 162, 0, 896, 127, 1, 0, 0, 0, 897, 898, 3, 314, 154, 0, 898, 899, 3, 300, 147, 0, 899, 900, 3, 292, 143, 0, 900, 901, 3, 298, 146, 0, 901, 902, 3, 308, 151, 0, 902, 903, 3, 318, 156, 0, 903, 904, 3, 304, 149, 0, 904, 129, 1, 0, 0, 0, 905, 906, 3, 314, 154, 0, 906, 907, 3, 300, 147, 0, 907, 908, 3, 302, 148, 0, 908, 909, 3, 330, 162, 0, 909, 131, 1, 0, 0, 0, 910, 911, 3, 314, 154, 0, 911, 912, 3, 300, 147, 0, 912, 913, 3, 330, 162, 0, 913, 133, 1, 0, 0, 0, 914, 915, 3, 314, 154, 0, 915, 916, 3, 308, 151, 0, 916, 917, 3, 312, 153, 0, 917, 918, 3, 300, 147, 0, 918, 135, 1, 0, 0, 0, 919, 920, 3, 314, 154, 0, 920, 921, 3, 308, 151, 0, 921, 922, 3, 316, 155, 0, 922, 923, 3, 308, 151, 0, 923, 924, 3, 330, 162, 0, 924, 137, 1, 0, 0, 0, 925, 926, 3, 316, 155, 0, 926, 927, 3, 292, 143, 0, 927, 928, 3, 330, 162, 0, 928, 929, 3, 300, 147, 0, 929, 930, 3, 326, 160, 0, 930, 931, 3, 308, 151, 0, 931, 932, 3, 292, 143, 0, 932, 933, 3, 314, 154, 0, 933, 934, 3, 308, 151, 0, 934, 935, 3, 342, 168, 0, 935, 936, 3, 300, 147, 0, 936, 937, 3, 298, 146, 0, 937, 139, 1, 0, 0, 0, 938, 939, 3, 316, 155, 0, 939, 940, 3, 308, 151, 0, 940, 941, 3, 318, 156, 0, 941, 942, 3, 332, 163, 0, 942, 943, 3, 330, 162, 0, 943, 944, 3, 300, 147, 0, 944, 141, 1, 0, 0, 0, 945, 946, 3, 316, 155, 0, 946, 947, 3, 320, 157, 0, 947, 948, 3, 318, 156, 0, 948, 949, 3, 330, 162, 0, 949, 950, 3, 306, 150, 0, 950, 143, 1, 0, 0, 0, 951, 952, 3, 318, 156, 0, 952, 953, 3, 292, 143, 0, 953, 954, 3, 316, 155, 0, 954, 955, 3, 300, 147, 0, 955, 145, 1, 0, 0, 0, 956, 957, 3, 318, 156, 0, 957, 958, 3, 292, 143, 0, 958, 959, 3, 330, 162, 0, 959, 960, 3, 332, 163, 0, 960, 961, 3, 326, 160, 0, 961, 962, 3, 292, 143, 0, 962, 963, 3, 314, 154, 0, 963, 147, 1, 0, 0, 0, 964, 965, 3, 318, 156, 0, 965, 966, 3, 292, 143, 0, 966, 967, 3, 318, 156, 0, 967, 149, 1, 0, 0, 0, 968, 969, 3, 318, 156, 0, 969, 970, 3, 320, 157, 0, 970, 971, 3, 330, 162, 0, 971, 151, 1, 0, 0, 0, 972, 973, 3, 318, 156, 0, 973, 974, 3, 332, 163, 0, 974, 975, 3, 314, 154, 0, 975, 976, 3, 314, 154, 0, 976, 153, 1, 0, 0, 0, 977, 978, 3, 318, 156, 0, 978, 979, 3, 332, 163, 0, 979, 980, 3, 314, 154, 0, 980, 981, 3, 314, 154, 0, 981, 982, 3, 328, 161, 0, 982, 155, 1, 0, 0, 0, 983, 984, 3, 320, 157, 0, 984, 985, 3, 302, 148, 0, 985, 986, 3, 302, 148, 0, 986, 987, 3, 328, 161, 0, 987, 988, 3, 300, 147, 0, 988, 989, 3, 330, 162, 0, 989, 157, 1, 0, 0, 0, 990, 991, 3, 320, 157, 0, 991, 992, 3, 318, 156, 0, 992, 159, 1, 0, 0, 0, 993, 994, 3, 320, 157, 0, 994, 995, 3, 326, 160, 0, 995, 161, 1, 0, 0, 0, 996, 997, 3, 320, 157, 0, 997, 998, 3, 326, 160, 0, 998, 999, 3, 298, 146, 0, 999, 1000, 3, 300, 147, 0, 1000, 1001, 3, 326, 160, 0, 1001, 163, 1, 0, 0, 0, 1002, 1003, 3, 320, 157, 0, 1003, 1004, 3, 332, 163, 0, 1004, 1005, 3, 330, 162, 0, 1005, 1006, 3, 300, 147, 0, 1006, 1007, 3, 326, 160, 0, 1007, 165, 1, 0, 0, 0, 1008, 1009, 3, 320, 157, 0, 1009, 1010, 3, 334, 164, 0, 1010, 1011, 3, 300, 147, 0, 1011, 1012, 3, 326, 160, 0, 1012, 167, 1, 0, 0, 0, 1013, 1014, 3, 322, 158, 0, 1014, 1015, 3, 292, 143, 0, 1015, 1016, 3, 326, 160, 0, 1016, 1017, 3, 330, 162, 0, 1017, 1018, 3, 308, 151, 0, 1018, 1019, 3, 330, 162, 0, 1019, 1020, 3, 308, 151, 0, 1020, 1021, 3, 320, 157, 0, 1021, 1022, 3, 318, 156, 0, 1022, 169, 1, 0, 0, 0, 1023, 1024, 3, 322, 158, 0, 1024, 1025, 3, 308, 151, 0, 1025, 1026, 3, 334, 164, 0, 1026, 1027, 3, 320, 157, 0, 1027, 1028, 3, 330, 162, 0, 1028, 171, 1, 0, 0, 0, 1029, 1030, 3, 322, 158, 0, 1030, 1031, 3, 320, 157, 0, 1031, 1032, 3, 328, 161, 0, 1032, 1033, 3, 308, 151, 0, 1033, 1034, 3, 330, 162, 0, 1034, 1035, 3, 308, 151, 0, 1035, 1036, 3, 320, 157, 0, 1036, 1037, 3, 318, 156, 0, 1037, 1038, 3, 292, 143, 0, 1038, 1039, 3, 314, 154, 0, 1039, 173, 1, 0, 0, 0, 1040, 1041, 3, 322, 158, 0, 1041, 1042, 3, 326, 160, 0, 1042, 1043, 3, 300, 147, 0, 1043, 1044, 3, 296, 145, 0, 1044, 1045, 3, 300, 147, 0, 1045, 1046, 3, 298, 146, 0, 1046, 1047, 3, 308, 151, 0, 1047, 1048, 3, 318, 156, 0, 1048, 1049, 3, 304, 149, 0, 1049, 175, 1, 0, 0, 0, 1050, 1051, 3, 322, 158, 0, 1051, 1052, 3, 326, 160, 0, 1052, 1053, 3, 300, 147, 0, 1053, 1054, 3, 336, 165, 0, 1054, 1055, 3, 306, 150, 0, 1055, 1056, 3, 300, 147, 0, 1056, 1057, 3, 326, 160, 0, 1057, 1058, 3, 300, 147, 0, 1058, 177, 1, 0, 0, 0, 1059, 1060, 3, 324, 159, 0, 1060, 1061, 3, 332, 163, 0, 1061, 1062, 3, 292, 143, 0, 1062, 1063, 3, 314, 154, 0, 1063, 1064, 3, 308, 151, 0, 1064, 1065, 3, 302, 148, 0, 1065, 1066, 3, 340, 167, 0, 1066, 179, 1, 0, 0, 0, 1067, 1068, 3, 324, 159, 0, 1068, 1069, 3, 332, 163, 0, 1069, 1070, 3, 292, 143, 0, 1070, 1071, 3, 326, 160, 0, 1071, 1072, 3, 330, 162, 0, 1072, 1073, 3, 300, 147, 0, 1073, 1074, 3, 326, 160, 0, 1074, 181, 1, 0, 0, 0, 1075, 1076, 3, 326, 160, 0, 1076, 1077, 3, 292, 143, 0, 1077, 1078, 3, 318, 156, 0, 1078, 1079, 3, 304, 149, 0, 1079, 1080, 3, 300, 147, 0, 1080, 183, 1, 0, 0, 0, 1081, 1082, 3, 326, 160, 0, 1082, 1083, 3, 300, 147, 0, 1083, 1084, 3, 296, 145, 0, 1084, 1085, 3, 332, 163, 0, 1085, 1086, 3, 326, 160, 0, 1086, 1087, 3, 328, 161, 0, 1087, 1088, 3, 308, 151, 0, 1088, 1089, 3, 334, 164, 0, 1089, 1090, 3, 300, 147, 0, 1090, 185, 1, 0, 0, 0, 1091, 1092, 3, 326, 160, 0, 1092, 1093, 3, 300, 147, 0, 1093, 1094, 3, 322, 158, 0, 1094, 1095, 3, 314, 154, 0, 1095, 1096, 3, 292, 143, 0, 1096, 1097, 3, 296, 145, 0, 1097, 1098, 3, 300, 147, 0, 1098, 187, 1, 0, 0, 0, 1099, 1100, 3, 326, 160, 0, 1100, 1101, 3, 300, 147, 0, 1101, 1102, 3, 330, 162, 0, 1102, 1103, 3, 332, 163, 0, 1103, 1104, 3, 326, 160, 0, 1104, 1105, 3, 318, 156, 0, 1105, 189, 1, 0, 0, 0, 1106, 1107, 3, 326, 160, 0, 1107, 1108, 3, 308, 151, 0, 1108, 1109, 3, 304, 149, 0, 1109, 1110, 3, 306, 150, 0, 1110, 1111, 3, 330, 162, 0, 1111, 191, 1, 0, 0, 0, 1112, 1113, 3, 326, 160, 0, 1113, 1114, 3, 320, 157, 0, 1114, 1115, 3, 314, 154, 0, 1115, 1116, 3, 314, 154, 0, 1116, 1117, 3, 332, 163, 0, 1117, 1118, 3, 322, 158, 0, 1118, 193, 1, 0, 0, 0, 1119, 1120, 3, 326, 160, 0, 1120, 1121, 3, 320, 157, 0, 1121, 1122, 3, 336, 165, 0, 1122, 195, 1, 0, 0, 0, 1123, 1124, 3, 326, 160, 0, 1124, 1125, 3, 320, 157, 0, 1125, 1126, 3, 336, 165, 0, 1126, 1127, 3, 328, 161, 0, 1127, 197, 1, 0, 0, 0, 1128, 1129, 3, 328, 161, 0, 1129, 1130, 3, 292, 143, 0, 1130, 1131, 3, 316, 155, 0, 1131, 1132, 3, 322, 158, 0, 1132, 1133, 3, 314, 154, 0, 1133, 1134, 3, 300, 147, 0, 1134, 199, 1, 0, 0, 0, 1135, 1136, 3, 328, 161, 0, 1136, 1137, 3, 300, 147, 0, 1137, 1138, 3, 296, 145, 0, 1138, 1139, 3, 320, 157, 0, 1139, 1140, 3, 318, 156, 0, 1140, 1141, 3, 298, 146, 0, 1141, 201, 1, 0, 0, 0, 1142, 1143, 3, 328, 161, 0, 1143, 1144, 3, 300, 147, 0, 1144, 1145, 3, 314, 154, 0, 1145, 1146, 3, 300, 147, 0, 1146, 1147, 3, 296, 145, 0, 1147, 1148, 3, 330, 162, 0, 1148, 203, 1, 0, 0, 0, 1149, 1150, 3, 328, 161, 0, 1150, 1151, 3, 300, 147, 0, 1151, 1152, 3, 316, 155, 0, 1152, 1153, 3, 308, 151, 0, 1153, 205, 1, 0, 0, 0, 1154, 1155, 3, 328, 161, 0, 1155, 1156, 3, 300, 147, 0, 1156, 1157, 3, 330, 162, 0, 1157, 1158, 3, 328, 161, 0, 1158, 207, 1, 0, 0, 0, 1159, 1160, 3, 328, 161, 0, 1160, 1161, 3, 300, 147, 0, 1161, 1162, 3, 330, 162, 0, 1162, 1163, 3, 330, 162, 0, 1163, 1164, 3, 308, 151, 0, 1164, 1165, 3, 318, 156, 0, 1165, 1166, 3, 304, 149, 0, 1166, 1167, 3, 328, 161, 0, 1167, 209, 1, 0, 0, 0, 1168, 1169, 3, 328, 161, 0, 1169, 1170, 3, 330, 162, 0, 1170, 1171, 3, 300, 147, 0, 1171, 1172, 3, 322, 158, 0, 1172, 211, 1, 0, 0, 0, 1173, 1174, 3, 328, 161, 0, 1174, 1175, 3, 332, 163, 0, 1175, 1176, 3, 294, 144, 0, 1176, 1177, 3, 328, 161, 0, 1177, 1178, 3, 330, 162, 0, 1178, 1179, 3, 326, 160, 0, 1179, 1180, 3, 308, 151, 0, 1180, 1181, 3, 318, 156, 0, 1181, 1182, 3, 304, 149, 0, 1182, 213, 1, 0, 0, 0, 1183, 1184, 3, 330, 162, 0, 1184, 1185, 3, 306, 150, 0, 1185, 1186, 3, 300, 147, 0, 1186, 1187, 3, 318, 156, 0, 1187, 215, 1, 0, 0, 0, 1188, 1189, 3, 330, 162, 0, 1189, 1190, 3, 306, 150, 0, 1190, 1191, 3, 326, 160, 0, 1191, 1192, 3, 320, 157, 0, 1192, 1193, 3, 336, 165, 0, 1193, 217, 1, 0, 0, 0, 1194, 1195, 3, 330, 162, 0, 1195, 1196, 3, 308, 151, 0, 1196, 1197, 3, 300, 147, 0, 1197, 1198, 3, 328, 161, 0, 1198, 219, 1, 0, 0, 0, 1199, 1200, 3, 330, 162, 0, 1200, 1201, 3, 308, 151, 0, 1201, 1202, 3, 316, 155, 0, 1202, 1203, 3, 300, 147, 0, 1203, 1204, 3, 328, 161, 0, 1204, 1205, 3, 330, 162, 0, 1205, 1206, 3, 292, 143, 0, 1206, 1207, 3, 316, 155, 0, 1207, 1208, 3, 322, 158, 0, 1208, 221, 1, 0, 0, 0, 1209, 1210, 3, 330, 162, 0, 1210, 1211, 3, 308, 151, 0, 1211, 1212, 3, 316, 155, 0, 1212, 1213, 3, 300, 147, 0, 1213, 223, 1, 0, 0, 0, 1214, 1215, 3, 314, 154, 0, 1215, 1216, 3, 320, 157, 0, 1216, 1217, 3, 296, 145, 0, 1217, 1218, 3, 292, 143, 0, 1218, 1219, 3, 314, 154, 0, 1219, 225, 1, 0, 0, 0, 1220, 1221, 3, 342, 168, 0, 1221, 1222, 3, 320, 157, 0, 1222, 1223, 3, 318, 156, 0, 1223, 1224, 3, 300, 147, 0, 1224, 227, 1, 0, 0, 0, 1225, 1226, 3, 330, 162, 0, 1226, 1227, 3, 320, 157, 0, 1227, 229, 1, 0, 0, 0, 1228, 1229, 3, 330, 162, 0, 1229, 1230, 3, 320, 157, 0, 1230, 1231, 3, 322, 158, 0, 1231, 231, 1, 0, 0, 0, 1232, 1233, 3, 330, 162, 0, 1233, 1234, 3, 320, 157, 0, 1234, 1235, 3, 330, 162, 0, 1235, 1236, 3, 292, 143, 0, 1236, 1237, 3, 314, 154, 0, 1237, 1238, 3, 328, 161, 0, 1238, 233, 1, 0, 0, 0, 1239, 1240, 3, 330, 162, 0, 1240, 1241, 3, 326, 160, 0, 1241, 1242, 3, 292, 143, 0, 1242, 1243, 3, 308, 151, 0, 1243, 1244, 3, 314, 154, 0, 1244, 1245, 3, 308, 151, 0, 1245, 1246, 3, 318, 156, 0, 1246, 1247, 3, 304, 149, 0, 1247, 235, 1, 0, 0, 0, 1248, 1249, 3, 330, 162, 0, 1249, 1250, 3, 326, 160, 0, 1250, 1251, 3, 308, 151, 0, 1251, 1252, 3, 316, 155, 0, 1252, 237, 1, 0, 0, 0, 1253, 1254, 3, 330, 162, 0, 1254, 1255, 3, 326, 160, 0, 1255, 1256, 3, 332, 163, 0, 1256, 1257, 3, 318, 156, 0, 1257, 1258, 3, 296, 145, 0, 1258, 1259, 3, 292, 143, 0, 1259, 1260, 3, 330, 162, 0, 1260, 1261, 3, 300, 147, 0, 1261, 239, 1, 0, 0, 0, 1262, 1263, 3, 330, 162, 0, 1263, 1264, 3, 326, 160, 0, 1264, 1265, 3, 340, 167, 0, 1265, 241, 1, 0, 0, 0, 1266, 1267, 3, 330, 162, 0, 1267, 1268, 3, 326, 160, 0, 1268, 1269, 3, 340, 167, 0, 1269, 1270, 5, 95, 0, 0, 1270, 1271, 3, 296, 145, 0, 1271, 1272, 3, 292, 143, 0, 1272, 1273, 3, 328, 161, 0, 1273, 1274, 3, 330, 162, 0, 1274, 243, 1, 0, 0, 0, 1275, 1276, 3, 332, 163, 0, 1276, 1277, 3, 318, 156, 0, 1277, 1278, 3, 294, 144, 0, 1278, 1279, 3, 320, 157, 0, 1279, 1280, 3, 332, 163, 0, 1280, 1281, 3, 318, 156, 0, 1281, 1282, 3, 298, 146, 0, 1282, 1283, 3, 300, 147, 0, 1283, 1284, 3, 298, 146, 0, 1284, 245, 1, 0, 0, 0, 1285, 1286, 3, 332, 163, 0, 1286, 1287, 3, 318, 156, 0, 1287, 1288, 3, 308, 151, 0, 1288, 1289, 3, 320, 157, 0, 1289, 1290, 3, 318, 156, 0, 1290, 247, 1, 0, 0, 0, 1291, 1292, 3, 332, 163, 0, 1292, 1293, 3, 318, 156, 0, 1293, 1294, 3, 322, 158, 0, 1294, 1295, 3, 308, 151, 0, 1295, 1296, 3, 334, 164, 0, 1296, 1297, 3, 320, 157, 0, 1297, 1298, 3, 330, 162, 0, 1298, 249, 1, 0, 0, 0, 1299, 1300, 3, 332, 163, 0, 1300, 1301, 3, 328, 161, 0, 1301, 1302, 3, 308, 151, 0, 1302, 1303, 3, 318, 156, 0, 1303, 1304, 3, 304, 149, 0, 1304, 251, 1, 0, 0, 0, 1305, 1306, 3, 334, 164, 0, 1306, 1307, 3, 292, 143, 0, 1307, 1308, 3, 314, 154, 0, 1308, 1309, 3, 332, 163, 0, 1309, 1310, 3, 300, 147, 0, 1310, 1311, 3, 328, 161, 0, 1311, 253, 1, 0, 0, 0, 1312, 1313, 3, 336, 165, 0, 1313, 1314, 3, 300, 147, 0, 1314, 1315, 3, 300, 147, 0, 1315, 1316, 3, 312, 153, 0, 1316, 255, 1, 0, 0, 0, 1317, 1318, 3, 336, 165, 0, 1318, 1319, 3, 306, 150, 0, 1319, 1320, 3, 300, 147, 0, 1320, 1321, 3, 318, 156, 0, 1321, 257, 1, 0, 0, 0, 1322, 1323, 3, 336, 165, 0, 1323, 1324, 3, 306, 150, 0, 1324, 1325, 3, 300, 147, 0, 1325, 1326, 3, 326, 160, 0, 1326, 1327, 3, 300, 147, 0, 1327, 259, 1, 0, 0, 0, 1328, 1329, 3, 336, 165, 0, 1329, 1330, 3, 306, 150, 0, 1330, 1331, 3, 308, 151, 0, 1331, 1332, 3, 314, 154, 0, 1332, 1333, 3, 300, 147, 0, 1333, 261, 1, 0, 0, 0, 1334, 1335, 3, 336, 165, 0, 1335, 1336, 3, 308, 151, 0, 1336, 1337, 3, 318, 156, 0, 1337, 1338, 3, 298, 146, 0, 1338, 1339, 3, 320, 157, 0, 1339, 1340, 3, 336, 165, 0, 1340, 263, 1, 0, 0, 0, 1341, 1342, 3, 336, 165, 0, 1342, 1343, 3, 308, 151, 0, 1343, 1344, 3, 330, 162, 0, 1344, 1345, 3, 306, 150, 0, 1345, 265, 1, 0, 0, 0, 1346, 1347, 3, 336, 165, 0, 1347, 1348, 3, 308, 151, 0, 1348, 1349, 3, 330, 162, 0, 1349, 1350, 3, 306, 150, 0, 1350, 1351, 3, 308, 151, 0, 1351, 1352, 3, 318, 156, 0, 1352, 267, 1, 0, 0, 0, 1353, 1354, 3, 340, 167, 0, 1354, 1355, 3, 300, 147, 0, 1355, 1356, 3, 292, 143, 0, 1356, 1357, 3, 326, 160, 0, 1357, 1364, 1, 0, 0, 0, 1358, 1359, 3, 340, 167, 0, 1359, 1360, 3, 340, 167, 0, 1360, 1361, 3, 340, 167, 0, 1361, 1362, 3, 340, 167, 0, 1362, 1364, 1, 0, 0, 0, 1363, 1353, 1, 0, 0, 0, 1363, 1358, 1, 0, 0, 0, 1364, 269, 1, 0, 0, 0, 1365, 1366, 3, 360, 177, 0, 1366, 1367, 3, 294, 144, 0, 1367, 1398, 1, 0, 0, 0, 1368, 1369, 3, 360, 177, 0, 1369, 1370, 3, 302, 148, 0, 1370, 1398, 1, 0, 0, 0, 1371, 1372, 3, 360, 177, 0, 1372, 1373, 3, 326, 160, 0, 1373, 1398, 1, 0, 0, 0, 1374, 1375, 3, 360, 177, 0, 1375, 1376, 3, 318, 156, 0, 1376, 1398, 1, 0, 0, 0, 1377, 1378, 3, 360, 177, 0, 1378, 1379, 3, 330, 162, 0, 1379, 1398, 1, 0, 0, 0, 1380, 1381, 3, 360, 177, 0, 1381, 1382, 5, 48, 0, 0, 1382, 1398, 1, 0, 0, 0, 1383, 1384, 3, 360, 177, 0, 1384, 1385, 3, 292, 143, 0, 1385, 1398, 1, 0, 0, 0, 1386, 1387, 3, 360, 177, 0, 1387, 1388, 3, 334, 164, 0, 1388, 1398, 1, 0, 0, 0, 1389, 1390, 3, 360, 177, 0, 1390, 1391, 3, 360, 177, 0, 1391, 1398, 1, 0, 0, 0, 1392, 1393, 3, 360, 177, 0, 1393, 1394, 3, 338, 166, 0, 1394, 1395, 3, 352, 173, 0, 1395, 1396, 3, 352, 173, 0, 1396, 1398, 1, 0, 0, 0, 1397, 1365, 1, 0, 0, 0, 1397, 1368, 1, 0, 0, 0, 1397, 1371, 1, 0, 0, 0, 1397, 1374, 1, 0, 0, 0, 1397, 1377, 1, 0, 0, 0, 1397, 1380, 1, 0, 0, 0, 1397, 1383, 1, 0, 0, 0, 1397, 1386, 1, 0, 0, 0, 1397, 1389, 1, 0, 0, 0, 1397, 1392, 1, 0, 0, 0, 1398, 271, 1, 0, 0, 0, 1399, 1403, 3, 344, 169, 0, 1400, 1403, 3, 450, 222, 0, 1401, 1403, 3, 374, 184, 0, 1402, 1399, 1, 0, 0, 0, 1402, 1400, 1, 0, 0, 0, 1402, 1401, 1, 0, 0, 0, 1403, 1410, 1, 0, 0, 0, 1404, 1409, 3, 344, 169, 0, 1405, 1409, 3, 450, 222, 0, 1406, 1409, 3, 350, 172, 0, 1407, 1409, 3, 374, 184, 0, 1408, 1404, 1, 0, 0, 0, 1408, 1405, 1, 0, 0, 0, 1408, 1406, 1, 0, 0, 0, 1408, 1407, 1, 0, 0, 0, 1409, 1412, 1, 0, 0, 0, 1410, 1408, 1, 0, 0, 0, 1410, 1411, 1, 0, 0, 0, 1411, 273, 1, 0, 0, 0, 1412, 1410, 1, 0, 0, 0, 1413, 1424, 3, 358, 176, 0, 1414, 1423, 8, 0, 0, 0, 1415, 1423, 3, 270, 132, 0, 1416, 1417, 3, 360, 177, 0, 1417, 1418, 3, 432, 213, 0, 1418, 1423, 1, 0, 0, 0, 1419, 1420, 3, 358, 176, 0, 1420, 1421, 3, 358, 176, 0, 1421, 1423, 1, 0, 0, 0, 1422, 1414, 1, 0, 0, 0, 1422, 1415, 1, 0, 0, 0, 1422, 1416, 1, 0, 0, 0, 1422, 1419, 1, 0, 0, 0, 1423, 1426, 1, 0, 0, 0, 1424, 1422, 1, 0, 0, 0, 1424, 1425, 1, 0, 0, 0, 1425, 1427, 1, 0, 0, 0, 1426, 1424, 1, 0, 0, 0, 1427, 1428, 3, 358, 176, 0, 1428, 1446, 1, 0, 0, 0, 1429, 1440, 3, 426, 210, 0, 1430, 1439, 8, 1, 0, 0, 1431, 1439, 3, 270, 132, 0, 1432, 1433, 3, 360, 177, 0, 1433, 1434, 3, 426, 210, 0, 1434, 1439, 1, 0, 0, 0, 1435, 1436, 3, 426, 210, 0, 1436, 1437, 3, 426, 210, 0, 1437, 1439, 1, 0, 0, 0, 1438, 1430, 1, 0, 0, 0, 1438, 1431, 1, 0, 0, 0, 1438, 1432, 1, 0, 0, 0, 1438, 1435, 1, 0, 0, 0, 1439, 1442, 1, 0, 0, 0, 1440, 1438, 1, 0, 0, 0, 1440, 1441, 1, 0, 0, 0, 1441, 1443, 1, 0, 0, 0, 1442, 1440, 1, 0, 0, 0, 1443, 1444, 3, 426, 210, 0, 1444, 1446, 1, 0, 0, 0, 1445, 1413, 1, 0, 0, 0, 1445, 1429, 1, 0, 0, 0, 1446, 275, 1, 0, 0, 0, 1447, 1448, 3, 284, 139, 0, 1448, 1452, 3, 376, 185, 0, 1449, 1451, 3, 352, 173, 0, 1450, 1449, 1, 0, 0, 0, 1451, 1454, 1, 0, 0, 0, 1452, 1450, 1, 0, 0, 0, 1452, 1453, 1, 0, 0, 0, 1453, 1455, 1, 0, 0, 0, 1454, 1452, 1, 0, 0, 0, 1455, 1458, 3, 322, 158, 0, 1456, 1459, 3, 422, 208, 0, 1457, 1459, 3, 372, 183, 0, 1458, 1456, 1, 0, 0, 0, 1458, 1457, 1, 0, 0, 0, 1458, 1459, 1, 0, 0, 0, 1459, 1461, 1, 0, 0, 0, 1460, 1462, 3, 350, 172, 0, 1461, 1460, 1, 0, 0, 0, 1462, 1463, 1, 0, 0, 0, 1463, 1461, 1, 0, 0, 0, 1463, 1464, 1, 0, 0, 0, 1464, 1518, 1, 0, 0, 0, 1465, 1466, 3, 284, 139, 0, 1466, 1469, 3, 322, 158, 0, 1467, 1470, 3, 422, 208, 0, 1468, 1470, 3, 372, 183, 0, 1469, 1467, 1, 0, 0, 0, 1469, 1468, 1, 0, 0, 0, 1469, 1470, 1, 0, 0, 0, 1470, 1472, 1, 0, 0, 0, 1471, 1473, 3, 350, 172, 0, 1472, 1471, 1, 0, 0, 0, 1473, 1474, 1, 0, 0, 0, 1474, 1472, 1, 0, 0, 0, 1474, 1475, 1, 0, 0, 0, 1475, 1518, 1, 0, 0, 0, 1476, 1477, 3, 282, 138, 0, 1477, 1481, 3, 376, 185, 0, 1478, 1480, 3, 350, 172, 0, 1479, 1478, 1, 0, 0, 0, 1480, 1483, 1, 0, 0, 0, 1481, 1479, 1, 0, 0, 0, 1481, 1482, 1, 0, 0, 0, 1482, 1484, 1, 0, 0, 0, 1483, 1481, 1, 0, 0, 0, 1484, 1487, 3, 300, 147, 0, 1485, 1488, 3, 422, 208, 0, 1486, 1488, 3, 372, 183, 0, 1487, 1485, 1, 0, 0, 0, 1487, 1486, 1, 0, 0, 0, 1487, 1488, 1, 0, 0, 0, 1488, 1490, 1, 0, 0, 0, 1489, 1491, 3, 350, 172, 0, 1490, 1489, 1, 0, 0, 0, 1491, 1492, 1, 0, 0, 0, 1492, 1490, 1, 0, 0, 0, 1492, 1493, 1, 0, 0, 0, 1493, 1518, 1, 0, 0, 0, 1494, 1495, 3, 376, 185, 0, 1495, 1496, 3, 282, 138, 0, 1496, 1499, 3, 300, 147, 0, 1497, 1500, 3, 422, 208, 0, 1498, 1500, 3, 372, 183, 0, 1499, 1497, 1, 0, 0, 0, 1499, 1498, 1, 0, 0, 0, 1499, 1500, 1, 0, 0, 0, 1500, 1502, 1, 0, 0, 0, 1501, 1503, 3, 350, 172, 0, 1502, 1501, 1, 0, 0, 0, 1503, 1504, 1, 0, 0, 0, 1504, 1502, 1, 0, 0, 0, 1504, 1505, 1, 0, 0, 0, 1505, 1518, 1, 0, 0, 0, 1506, 1507, 3, 282, 138, 0, 1507, 1510, 3, 300, 147, 0, 1508, 1511, 3, 422, 208, 0, 1509, 1511, 3, 372, 183, 0, 1510, 1508, 1, 0, 0, 0, 1510, 1509, 1, 0, 0, 0, 1510, 1511, 1, 0, 0, 0, 1511, 1513, 1, 0, 0, 0, 1512, 1514, 3, 350, 172, 0, 1513, 1512, 1, 0, 0, 0, 1514, 1515, 1, 0, 0, 0, 1515, 1513, 1, 0, 0, 0, 1515, 1516, 1, 0, 0, 0, 1516, 1518, 1, 0, 0, 0, 1517, 1447, 1, 0, 0, 0, 1517, 1465, 1, 0, 0, 0, 1517, 1476, 1, 0, 0, 0, 1517, 1494, 1, 0, 0, 0, 1517, 1506, 1, 0, 0, 0, 1518, 277, 1, 0, 0, 0, 1519, 1520, 5, 48, 0, 0, 1520, 1522, 3, 294, 144, 0, 1521, 1523, 3, 346, 170, 0, 1522, 1521, 1, 0, 0, 0, 1523, 1524, 1, 0, 0, 0, 1524, 1522, 1, 0, 0, 0, 1524, 1525, 1, 0, 0, 0, 1525, 279, 1, 0, 0, 0, 1526, 1528, 5, 48, 0, 0, 1527, 1529, 3, 348, 171, 0, 1528, 1527, 1, 0, 0, 0, 1529, 1530, 1, 0, 0, 0, 1530, 1528, 1, 0, 0, 0, 1530, 1531, 1, 0, 0, 0, 1531, 281, 1, 0, 0, 0, 1532, 1534, 3, 350, 172, 0, 1533, 1532, 1, 0, 0, 0, 1534, 1535, 1, 0, 0, 0, 1535, 1533, 1, 0, 0, 0, 1535, 1536, 1, 0, 0, 0, 1536, 283, 1, 0, 0, 0, 1537, 1538, 5, 48, 0, 0, 1538, 1540, 3, 338, 166, 0, 1539, 1541, 3, 352, 173, 0, 1540, 1539, 1, 0, 0, 0, 1541, 1542, 1, 0, 0, 0, 1542, 1540, 1, 0, 0, 0, 1542, 1543, 1, 0, 0, 0, 1543, 285, 1, 0, 0, 0, 1544, 1545, 5, 48, 0, 0, 1545, 1547, 7, 2, 0, 0, 1546, 1548, 3, 350, 172, 0, 1547, 1546, 1, 0, 0, 0, 1548, 1549, 1, 0, 0, 0, 1549, 1547, 1, 0, 0, 0, 1549, 1550, 1, 0, 0, 0, 1550, 287, 1, 0, 0, 0, 1551, 1552, 5, 48, 0, 0, 1552, 1554, 7, 3, 0, 0, 1553, 1555, 3, 350, 172, 0, 1554, 1553, 1, 0, 0, 0, 1555, 1556, 1, 0, 0, 0, 1556, 1554, 1, 0, 0, 0, 1556, 1557, 1, 0, 0, 0, 1557, 289, 1, 0, 0, 0, 1558, 1569, 3, 432, 213, 0, 1559, 1568, 8, 4, 0, 0, 1560, 1568, 3, 270, 132, 0, 1561, 1562, 3, 360, 177, 0, 1562, 1563, 3, 432, 213, 0, 1563, 1568, 1, 0, 0, 0, 1564, 1565, 3, 432, 213, 0, 1565, 1566, 3, 432, 213, 0, 1566, 1568, 1, 0, 0, 0, 1567, 1559, 1, 0, 0, 0, 1567, 1560, 1, 0, 0, 0, 1567, 1561, 1, 0, 0, 0, 1567, 1564, 1, 0, 0, 0, 1568, 1571, 1, 0, 0, 0, 1569, 1567, 1, 0, 0, 0, 1569, 1570, 1, 0, 0, 0, 1570, 1572, 1, 0, 0, 0, 1571, 1569, 1, 0, 0, 0, 1572, 1573, 3, 432, 213, 0, 1573, 291, 1, 0, 0, 0, 1574, 1575, 7, 5, 0, 0, 1575, 293, 1, 0, 0, 0, 1576, 1577, 7, 3, 0, 0, 1577, 295, 1, 0, 0, 0, 1578, 1579, 7, 6, 0, 0, 1579, 297, 1, 0, 0, 0, 1580, 1581, 7, 7, 0, 0, 1581, 299, 1, 0, 0, 0, 1582, 1583, 7, 8, 0, 0, 1583, 301, 1, 0, 0, 0, 1584, 1585, 7, 9, 0, 0, 1585, 303, 1, 0, 0, 0, 1586, 1587, 7, 10, 0, 0, 1587, 305, 1, 0, 0, 0, 1588, 1589, 7, 11, 0, 0, 1589, 307, 1, 0, 0, 0, 1590, 1591, 7, 12, 0, 0, 1591, 309, 1, 0, 0, 0, 1592, 1593, 7, 13, 0, 0, 1593, 311, 1, 0, 0, 0, 1594, 1595, 7, 14, 0, 0, 1595, 313, 1, 0, 0, 0, 1596, 1597, 7, 15, 0, 0, 1597, 315, 1, 0, 0, 0, 1598, 1599, 7, 16, 0, 0, 1599, 317, 1, 0, 0, 0, 1600, 1601, 7, 17, 0, 0, 1601, 319, 1, 0, 0, 0, 1602, 1603, 7, 2, 0, 0, 1603, 321, 1, 0, 0, 0, 1604, 1605, 7, 18, 0, 0, 1605, 323, 1, 0, 0, 0, 1606, 1607, 7, 19, 0, 0, 1607, 325, 1, 0, 0, 0, 1608, 1609, 7, 20, 0, 0, 1609, 327, 1, 0, 0, 0, 1610, 1611, 7, 21, 0, 0, 1611, 329, 1, 0, 0, 0, 1612, 1613, 7, 22, 0, 0, 1613, 331, 1, 0, 0, 0, 1614, 1615, 7, 23, 0, 0, 1615, 333, 1, 0, 0, 0, 1616, 1617, 7, 24, 0, 0, 1617, 335, 1, 0, 0, 0, 1618, 1619, 7, 25, 0, 0, 1619, 337, 1, 0, 0, 0, 1620, 1621, 7, 26, 0, 0, 1621, 339, 1, 0, 0, 0, 1622, 1623, 7, 27, 0, 0, 1623, 341, 1, 0, 0, 0, 1624, 1625, 7, 28, 0, 0, 1625, 343, 1, 0, 0, 0, 1626, 1627, 7, 29, 0, 0, 1627, 345, 1, 0, 0, 0, 1628, 1629, 7, 30, 0, 0, 1629, 347, 1, 0, 0, 0, 1630, 1631, 7, 31, 0, 0, 1631, 349, 1, 0, 0, 0, 1632, 1633, 7, 32, 0, 0, 1633, 351, 1, 0, 0, 0, 1634, 1635, 7, 33, 0, 0, 1635, 353, 1, 0, 0, 0, 1636, 1637, 5, 45, 0, 0, 1637, 1638, 5, 62, 0, 0, 1638, 355, 1, 0, 0, 0, 1639, 1640, 5, 42, 0, 0, 1640, 357, 1, 0, 0, 0, 1641, 1642, 5, 96, 0, 0, 1642, 359, 1, 0, 0, 0, 1643, 1644, 5, 92, 0, 0, 1644, 361, 1, 0, 0, 0, 1645, 1646, 5, 58, 0, 0, 1646, 1647, 5, 58, 0, 0, 1647, 363, 1, 0, 0, 0, 1648, 1649, 5, 58, 0, 0, 1649, 1650, 5, 61, 0, 0, 1650, 365, 1, 0, 0, 0, 1651, 1652, 5, 58, 0, 0, 1652, 367, 1, 0, 0, 0, 1653, 1654, 5, 44, 0, 0, 1654, 369, 1, 0, 0, 0, 1655, 1656, 5, 124, 0, 0, 1656, 1657, 5, 124, 0, 0, 1657, 371, 1, 0, 0, 0, 1658, 1659, 5, 45, 0, 0, 1659, 373, 1, 0, 0, 0, 1660, 1661, 5, 36, 0, 0, 1661, 375, 1, 0, 0, 0, 1662, 1663, 5, 46, 0, 0, 1663, 377, 1, 0, 0, 0, 1664, 1665, 5, 61, 0, 0, 1665, 1666, 5, 61, 0, 0, 1666, 379, 1, 0, 0, 0, 1667, 1668, 5, 61, 0, 0, 1668, 381, 1, 0, 0, 0, 1669, 1670, 5, 62, 0, 0, 1670, 1671, 5, 61, 0, 0, 1671, 383, 1, 0, 0, 0, 1672, 1673, 5, 62, 0, 0, 1673, 385, 1, 0, 0, 0, 1674, 1675, 5, 35, 0, 0, 1675, 387, 1, 0, 0, 0, 1676, 1677, 5, 126, 0, 0, 1677, 1678, 5, 42, 0, 0, 1678, 389, 1, 0, 0, 0, 1679, 1680, 5, 61, 0, 0, 1680, 1681, 5, 126, 0, 0, 1681, 1682, 5, 42, 0, 0, 1682, 391, 1, 0, 0, 0, 1683, 1684, 5, 123, 0, 0, 1684, 1685, 1, 0, 0, 0, 1685, 1686, 6, 193, 0, 0, 1686, 393, 1, 0, 0, 0, 1687, 1688, 5, 91, 0, 0, 1688, 395, 1, 0, 0, 0, 1689, 1690, 5, 40, 0, 0, 1690, 397, 1, 0, 0, 0, 1691, 1692, 5, 60, 0, 0, 1692, 1693, 5, 61, 0, 0, 1693, 1694, 5, 62, 0, 0, 1694, 399, 1, 0, 0, 0, 1695, 1696, 5, 60, 0, 0, 1696, 1697, 5, 61, 0, 0, 1697, 401, 1, 0, 0, 0, 1698, 1699, 5, 60, 0, 0, 1699, 1700, 5, 47, 0, 0, 1700, 1701, 1, 0, 0, 0, 1701, 1702, 6, 198, 1, 0, 1702, 1703, 6, 198, 2, 0, 1703, 403, 1, 0, 0, 0, 1704, 1705, 5, 60, 0, 0, 1705, 1706, 4, 199, 0, 0, 1706, 1707, 1, 0, 0, 0, 1707, 1708, 6, 199, 3, 0, 1708, 1709, 6, 199, 4, 0, 1709, 405, 1, 0, 0, 0, 1710, 1711, 5, 60, 0, 0, 1711, 407, 1, 0, 0, 0, 1712, 1713, 5, 60, 0, 0, 1713, 1714, 5, 47, 0, 0, 1714, 409, 1, 0, 0, 0, 1715, 1716, 5, 33, 0, 0, 1716, 1720, 5, 61, 0, 0, 1717, 1718, 5, 60, 0, 0, 1718, 1720, 5, 62, 0, 0, 1719, 1715, 1, 0, 0, 0, 1719, 1717, 1, 0, 0, 0, 1720, 411, 1, 0, 0, 0, 1721, 1722, 5, 33, 0, 0, 1722, 1723, 5, 126, 0, 0, 1723, 1724, 5, 42, 0, 0, 1724, 413, 1, 0, 0, 0, 1725, 1726, 5, 33, 0, 0, 1726, 1727, 5, 126, 0, 0, 1727, 415, 1, 0, 0, 0, 1728, 1729, 5, 63, 0, 0, 1729, 1730, 5, 46, 0, 0, 1730, 417, 1, 0, 0, 0, 1731, 1732, 5, 63, 0, 0, 1732, 1733, 5, 63, 0, 0, 1733, 419, 1, 0, 0, 0, 1734, 1735, 5, 37, 0, 0, 1735, 421, 1, 0, 0, 0, 1736, 1737, 5, 43, 0, 0, 1737, 423, 1, 0, 0, 0, 1738, 1739, 5, 63, 0, 0, 1739, 425, 1, 0, 0, 0, 1740, 1741, 5, 34, 0, 0, 1741, 427, 1, 0, 0, 0, 1742, 1743, 5, 102, 0, 0, 1743, 1744, 5, 39, 0, 0, 1744, 1745, 1, 0, 0, 0, 1745, 1746, 6, 211, 5, 0, 1746, 429, 1, 0, 0, 0, 1747, 1748, 5, 70, 0, 0, 1748, 1749, 5, 39, 0, 0, 1749, 1750, 1, 0, 0, 0, 1750, 1751, 6, 212, 6, 0, 1751, 431, 1, 0, 0, 0, 1752, 1753, 5, 39, 0, 0, 1753, 433, 1, 0, 0, 0, 1754, 1755, 5, 126, 0, 0, 1755, 435, 1, 0, 0, 0, 1756, 1757, 5, 61, 0, 0, 1757, 1758, 5, 126, 0, 0, 1758, 437, 1, 0, 0, 0, 1759, 1760, 5, 125, 0, 0, 1760, 1761, 1, 0, 0, 0, 1761, 1762, 6, 216, 7, 0, 1762, 439, 1, 0, 0, 0, 1763, 1764, 5, 93, 0, 0, 1764, 441, 1, 0, 0, 0, 1765, 1766, 5, 41, 0, 0, 1766, 443, 1, 0, 0, 0, 1767, 1768, 5, 59, 0, 0, 1768, 445, 1, 0, 0, 0, 1769, 1770, 5, 47, 0, 0, 1770, 447, 1, 0, 0, 0, 1771, 1772, 5, 47, 0, 0, 1772, 1773, 5, 62, 0, 0, 1773, 449, 1, 0, 0, 0, 1774, 1775, 5, 95, 0, 0, 1775, 451, 1, 0, 0, 0, 1776, 1777, 5, 47, 0, 0, 1777, 1778, 5, 42, 0, 0, 1778, 1782, 1, 0, 0, 0, 1779, 1781, 9, 0, 0, 0, 1780, 1779, 1, 0, 0, 0, 1781, 1784, 1, 0, 0, 0, 1782, 1783, 1, 0, 0, 0, 1782, 1780, 1, 0, 0, 0, 1783, 1785, 1, 0, 0, 0, 1784, 1782, 1, 0, 0, 0, 1785, 1786, 5, 42, 0, 0, 1786, 1787, 5, 47, 0, 0, 1787, 1788, 1, 0, 0, 0, 1788, 1789, 6, 223, 8, 0, 1789, 453, 1, 0, 0, 0, 1790, 1791, 5, 45, 0, 0, 1791, 1795, 5, 45, 0, 0, 1792, 1793, 5, 47, 0, 0, 1793, 1795, 5, 47, 0, 0, 1794, 1790, 1, 0, 0, 0, 1794, 1792, 1, 0, 0, 0, 1795, 1799, 1, 0, 0, 0, 1796, 1798, 8, 34, 0, 0, 1797, 1796, 1, 0, 0, 0, 1798, 1801, 1, 0, 0, 0, 1799, 1797, 1, 0, 0, 0, 1799, 1800, 1, 0, 0, 0, 1800, 1803, 1, 0, 0, 0, 1801, 1799, 1, 0, 0, 0, 1802, 1804, 7, 35, 0, 0, 1803, 1802, 1, 0, 0, 0, 1804, 1805, 1, 0, 0, 0, 1805, 1806, 6, 224, 8, 0, 1806, 455, 1, 0, 0, 0, 1807, 1815, 5, 35, 0, 0, 1808, 1812, 8, 36, 0, 0, 1809, 1811, 8, 34, 0, 0, 1810, 1809, 1, 0, 0, 0, 1811, 1814, 1, 0, 0, 0, 1812, 1810, 1, 0, 0, 0, 1812, 1813, 1, 0, 0, 0, 1813, 1816, 1, 0, 0, 0, 1814, 1812, 1, 0, 0, 0, 1815, 1808, 1, 0, 0, 0, 1815, 1816, 1, 0, 0, 0, 1816, 1818, 1, 0, 0, 0, 1817, 1819, 7, 35, 0, 0, 1818, 1817, 1, 0, 0, 0, 1819, 1820, 1, 0, 0, 0, 1820, 1821, 6, 225, 8, 0, 1821, 457, 1, 0, 0, 0, 1822, 1823, 7, 37, 0, 0, 1823, 1824, 1, 0, 0, 0, 1824, 1825, 6, 226, 9, 0, 1825, 459, 1, 0, 0, 0, 1826, 1827, 9, 0, 0, 0, 1827, 461, 1, 0, 0, 0, 1828, 1840, 8, 38, 0, 0, 1829, 1840, 3, 270, 132, 0, 1830, 1831, 3, 360, 177, 0, 1831, 1832, 3, 432, 213, 0, 1832, 1840, 1, 0, 0, 0, 1833, 1834, 3, 360, 177, 0, 1834, 1835, 3, 392, 193, 0, 1835, 1840, 1, 0, 0, 0, 1836, 1837, 3, 432, 213, 0, 1837, 1838, 3, 432, 213, 0, 1838, 1840, 1, 0, 0, 0, 1839, 1828, 1, 0, 0, 0, 1839, 1829, 1, 0, 0, 0, 1839, 1830, 1, 0, 0, 0, 1839, 1833, 1, 0, 0, 0, 1839, 1836, 1, 0, 0, 0, 1840, 1841, 1, 0, 0, 0, 1841, 1839, 1, 0, 0, 0, 1841, 1842, 1, 0, 0, 0, 1842, 463, 1, 0, 0, 0, 1843, 1844, 3, 392, 193, 0, 1844, 1845, 1, 0, 0, 0, 1845, 1846, 6, 229, 0, 0, 1846, 465, 1, 0, 0, 0, 1847, 1848, 3, 432, 213, 0, 1848, 1849, 1, 0, 0, 0, 1849, 1850, 6, 230, 10, 0, 1850, 1851, 6, 230, 7, 0, 1851, 467, 1, 0, 0, 0, 1852, 1858, 8, 39, 0, 0, 1853, 1858, 3, 270, 132, 0, 1854, 1855, 3, 360, 177, 0, 1855, 1856, 3, 392, 193, 0, 1856, 1858, 1, 0, 0, 0, 1857, 1852, 1, 0, 0, 0, 1857, 1853, 1, 0, 0, 0, 1857, 1854, 1, 0, 0, 0, 1858, 1859, 1, 0, 0, 0, 1859, 1857, 1, 0, 0, 0, 1859, 1860, 1, 0, 0, 0, 1860, 469, 1, 0, 0, 0, 1861, 1862, 3, 392, 193, 0, 1862, 1863, 1, 0, 0, 0, 1863, 1864, 6, 232, 0, 0, 1864, 471, 1, 0, 0, 0, 1865, 1866, 5, 47, 0, 0, 1866, 1867, 5, 62, 0, 0, 1867, 1868, 1, 0, 0, 0, 1868, 1869, 6, 233, 11, 0, 1869, 1870, 6, 233, 7, 0, 1870, 473, 1, 0, 0, 0, 1871, 1872, 5, 62, 0, 0, 1872, 1873, 1, 0, 0, 0, 1873, 1874, 6, 234, 12, 0, 1874, 1875, 6, 234, 7, 0, 1875, 1876, 6, 234, 13, 0, 1876, 475, 1, 0, 0, 0, 1877, 1878, 5, 47, 0, 0, 1878, 1879, 5, 42, 0, 0, 1879, 1883, 1, 0, 0, 0, 1880, 1882, 9, 0, 0, 0, 1881, 1880, 1, 0, 0, 0, 1882, 1885, 1, 0, 0, 0, 1883, 1884, 1, 0, 0, 0, 1883, 1881, 1, 0, 0, 0, 1884, 1886, 1, 0, 0, 0, 1885, 1883, 1, 0, 0, 0, 1886, 1887, 5, 42, 0, 0, 1887, 1888, 5, 47, 0, 0, 1888, 1889, 1, 0, 0, 0, 1889, 1890, 6, 235, 8, 0, 1890, 477, 1, 0, 0, 0, 1891, 1892, 5, 45, 0, 0, 1892, 1896, 5, 45, 0, 0, 1893, 1894, 5, 47, 0, 0, 1894, 1896, 5, 47, 0, 0, 1895, 1891, 1, 0, 0, 0, 1895, 1893, 1, 0, 0, 0, 1896, 1900, 1, 0, 0, 0, 1897, 1899, 8, 34, 0, 0, 1898, 1897, 1, 0, 0, 0, 1899, 1902, 1, 0, 0, 0, 1900, 1898, 1, 0, 0, 0, 1900, 1901, 1, 0, 0, 0, 1901, 1904, 1, 0, 0, 0, 1902, 1900, 1, 0, 0, 0, 1903, 1905, 7, 35, 0, 0, 1904, 1903, 1, 0, 0, 0, 1905, 1906, 1, 0, 0, 0, 1906, 1907, 6, 236, 8, 0, 1907, 479, 1, 0, 0, 0, 1908, 1912, 7, 40, 0, 0, 1909, 1911, 7, 41, 0, 0, 1910, 1909, 1, 0, 0, 0, 1911, 1914, 1, 0, 0, 0, 1912, 1910, 1, 0, 0, 0, 1912, 1913, 1, 0, 0, 0, 1913, 1915, 1, 0, 0, 0, 1914, 1912, 1, 0, 0, 0, 1915, 1916, 6, 237, 14, 0, 1916, 481, 1, 0, 0, 0, 1917, 1918, 5, 61, 0, 0, 1918, 1919, 1, 0, 0, 0, 1919, 1920, 6, 238, 15, 0, 1920, 483, 1, 0, 0, 0, 1921, 1922, 3, 290, 142, 0, 1922, 1923, 1, 0, 0, 0, 1923, 1924, 6, 239, 16, 0, 1924, 485, 1, 0, 0, 0, 1925, 1927, 7, 42, 0, 0, 1926, 1925, 1, 0, 0, 0, 1927, 1928, 1, 0, 0, 0, 1928, 1926, 1, 0, 0, 0, 1928, 1929, 1, 0, 0, 0, 1929, 1930, 1, 0, 0, 0, 1930, 1931, 6, 240, 9, 0, 1931, 487, 1, 0, 0, 0, 1932, 1933, 5, 123, 0, 0, 1933, 1934, 1, 0, 0, 0, 1934, 1935, 6, 241, 17, 0, 1935, 1936, 6, 241, 0, 0, 1936, 489, 1, 0, 0, 0, 1937, 1938, 9, 0, 0, 0, 1938, 1939, 1, 0, 0, 0, 1939, 1940, 6, 242, 18, 0, 1940, 491, 1, 0, 0, 0, 1941, 1942, 5, 62, 0, 0, 1942, 1943, 1, 0, 0, 0, 1943, 1944, 6, 243, 12, 0, 1944, 1945, 6, 243, 7, 0, 1945, 493, 1, 0, 0, 0, 1946, 1947, 5, 47, 0, 0, 1947, 1948, 5, 42, 0, 0, 1948, 1952, 1, 0, 0, 0, 1949, 1951, 9, 0, 0, 0, 1950, 1949, 1, 0, 0, 0, 1951, 1954, 1, 0, 0, 0, 1952, 1953, 1, 0, 0, 0, 1952, 1950, 1, 0, 0, 0, 1953, 1955, 1, 0, 0, 0, 1954, 1952, 1, 0, 0, 0, 1955, 1956, 5, 42, 0, 0, 1956, 1957, 5, 47, 0, 0, 1957, 1958, 1, 0, 0, 0, 1958, 1959, 6, 244, 8, 0, 1959, 495, 1, 0, 0, 0, 1960, 1961, 5, 45, 0, 0, 1961, 1965, 5, 45, 0, 0, 1962, 1963, 5, 47, 0, 0, 1963, 1965, 5, 47, 0, 0, 1964, 1960, 1, 0, 0, 0, 1964, 1962, 1, 0, 0, 0, 1965, 1969, 1, 0, 0, 0, 1966, 1968, 8, 34, 0, 0, 1967, 1966, 1, 0, 0, 0, 1968, 1971, 1, 0, 0, 0, 1969, 1967, 1, 0, 0, 0, 1969, 1970, 1, 0, 0, 0, 1970, 1973, 1, 0, 0, 0, 1971, 1969, 1, 0, 0, 0, 1972, 1974, 7, 35, 0, 0, 1973, 1972, 1, 0, 0, 0, 1974, 1975, 1, 0, 0, 0, 1975, 1976, 6, 245, 8, 0, 1976, 497, 1, 0, 0, 0, 1977, 1981, 7, 40, 0, 0, 1978, 1980, 7, 41, 0, 0, 1979, 1978, 1, 0, 0, 0, 1980, 1983, 1, 0, 0, 0, 1981, 1979, 1, 0, 0, 0, 1981, 1982, 1, 0, 0, 0, 1982, 1984, 1, 0, 0, 0, 1983, 1981, 1, 0, 0, 0, 1984, 1985, 6, 246, 14, 0, 1985, 499, 1, 0, 0, 0, 1986, 1988, 7, 42, 0, 0, 1987, 1986, 1, 0, 0, 0, 1988, 1989, 1, 0, 0, 0, 1989, 1987, 1, 0, 0, 0, 1989, 1990, 1, 0, 0, 0, 1990, 1991, 1, 0, 0, 0, 1991, 1992, 6, 247, 9, 0, 1992, 501, 1, 0, 0, 0, 1993, 1994, 9, 0, 0, 0, 1994, 1995, 1, 0, 0, 0, 1995, 1996, 6, 248, 18, 0, 1996, 503, 1, 0, 0, 0, 1997, 1999, 8, 43, 0, 0, 1998, 1997, 1, 0, 0, 0, 1999, 2000, 1, 0, 0, 0, 2000, 1998, 1, 0, 0, 0, 2000, 2001, 1, 0, 0, 0, 2001, 505, 1, 0, 0, 0, 2002, 2003, 5, 123, 0, 0, 2003, 2004, 1, 0, 0, 0, 2004, 2005, 6, 250, 17, 0, 2005, 2006, 6, 250, 0, 0, 2006, 507, 1, 0, 0, 0, 2007, 2008, 5, 60, 0, 0, 2008, 2009, 5, 47, 0, 0, 2009, 2010, 1, 0, 0, 0, 2010, 2011, 6, 251, 1, 0, 2011, 2012, 6, 251, 7, 0, 2012, 2013, 6, 251, 2, 0, 2013, 509, 1, 0, 0, 0, 2014, 2015, 5, 60, 0, 0, 2015, 2016, 1, 0, 0, 0, 2016, 2017, 6, 252, 3, 0, 2017, 2018, 6, 252, 4, 0, 2018, 511, 1, 0, 0, 0, 2019, 2021, 7, 42, 0, 0, 2020, 2019, 1, 0, 0, 0, 2021, 2022, 1, 0, 0, 0, 2022, 2020, 1, 0, 0, 0, 2022, 2023, 1, 0, 0, 0, 2023, 2024, 1, 0, 0, 0, 2024, 2025, 6, 253, 9, 0, 2025, 513, 1, 0, 0, 0, 65, 0, 1, 2, 3, 4, 5, 554, 834, 1363, 1397, 1402, 1408, 1410, 1422, 1424, 1438, 1440, 1445, 1452, 1458, 1463, 1469, 1474, 1481, 1487, 1492, 1499, 1504, 1510, 1515, 1517, 1524, 1530, 1535, 1542, 1549, 1556, 1567, 1569, 1719, 1782, 1794, 1799, 1803, 1812, 1815, 1818, 1839, 1841, 1857, 1859, 1883, 1895, 1900, 1904, 1912, 1928, 1952, 1964, 1969, 1973, 1981, 1989, 2000, 2022, 19, 5, 0, 0, 7, 169, 0, 5, 4, 0, 7, 168, 0, 5, 3, 0, 5, 1, 0, 5, 2, 0, 4, 0, 0, 6, 0, 0, 0, 1, 0, 7, 181, 0, 7, 189, 0, 7, 159, 0, 5, 5, 0, 7, 134, 0, 7, 157, 0, 7, 143, 0, 7, 163, 0, 7, 195, 0]\ No newline at end of filediff --git a/posthog/hogql/grammar/HogQLLexer.py b/posthog/hogql/grammar/HogQLLexer.pydeleted file mode 100644index 48624ffcc358..000000000000--- a/posthog/hogql/grammar/HogQLLexer.py+++ /dev/null@@ -1,1242 +0,0 @@-# Generated from HogQLLexer.g4 by ANTLR 4.13.2-from antlr4 import *-from io import StringIO-import sys-if sys.version_info[1] > 5:- from typing import TextIO-else:- from typing.io import TextIO----# put any global imports you need here-import sys----def serializedATN():- return [- 4,0,207,2026,6,-1,6,-1,6,-1,6,-1,6,-1,6,-1,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,2,119,7,119,2,120,7,120,2,121,7,121,2,122,7,122,2,123,- 7,123,2,124,7,124,2,125,7,125,2,126,7,126,2,127,7,127,2,128,7,128,- 2,129,7,129,2,130,7,130,2,131,7,131,2,132,7,132,2,133,7,133,2,134,- 7,134,2,135,7,135,2,136,7,136,2,137,7,137,2,138,7,138,2,139,7,139,- 2,140,7,140,2,141,7,141,2,142,7,142,2,143,7,143,2,144,7,144,2,145,- 7,145,2,146,7,146,2,147,7,147,2,148,7,148,2,149,7,149,2,150,7,150,- 2,151,7,151,2,152,7,152,2,153,7,153,2,154,7,154,2,155,7,155,2,156,- 7,156,2,157,7,157,2,158,7,158,2,159,7,159,2,160,7,160,2,161,7,161,- 2,162,7,162,2,163,7,163,2,164,7,164,2,165,7,165,2,166,7,166,2,167,- 7,167,2,168,7,168,2,169,7,169,2,170,7,170,2,171,7,171,2,172,7,172,- 2,173,7,173,2,174,7,174,2,175,7,175,2,176,7,176,2,177,7,177,2,178,- 7,178,2,179,7,179,2,180,7,180,2,181,7,181,2,182,7,182,2,183,7,183,- 2,184,7,184,2,185,7,185,2,186,7,186,2,187,7,187,2,188,7,188,2,189,- 7,189,2,190,7,190,2,191,7,191,2,192,7,192,2,193,7,193,2,194,7,194,- 2,195,7,195,2,196,7,196,2,197,7,197,2,198,7,198,2,199,7,199,2,200,- 7,200,2,201,7,201,2,202,7,202,2,203,7,203,2,204,7,204,2,205,7,205,- 2,206,7,206,2,207,7,207,2,208,7,208,2,209,7,209,2,210,7,210,2,211,- 7,211,2,212,7,212,2,213,7,213,2,214,7,214,2,215,7,215,2,216,7,216,- 2,217,7,217,2,218,7,218,2,219,7,219,2,220,7,220,2,221,7,221,2,222,- 7,222,2,223,7,223,2,224,7,224,2,225,7,225,2,226,7,226,2,227,7,227,- 2,228,7,228,2,229,7,229,2,230,7,230,2,231,7,231,2,232,7,232,2,233,- 7,233,2,234,7,234,2,235,7,235,2,236,7,236,2,237,7,237,2,238,7,238,- 2,239,7,239,2,240,7,240,2,241,7,241,2,242,7,242,2,243,7,243,2,244,- 7,244,2,245,7,245,2,246,7,246,2,247,7,247,2,248,7,248,2,249,7,249,- 2,250,7,250,2,251,7,251,2,252,7,252,2,253,7,253,1,0,1,0,1,0,1,0,- 1,1,1,1,1,1,1,1,1,2,1,2,1,2,1,2,1,2,1,3,1,3,1,3,1,3,1,4,1,4,1,4,- 1,4,1,4,1,4,1,5,1,5,1,5,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,1,6,- 1,6,1,6,1,6,1,6,3,6,555,8,6,1,7,1,7,1,7,1,7,1,7,1,8,1,8,1,8,1,8,- 1,8,1,8,1,8,1,8,1,9,1,9,1,9,1,9,1,9,1,10,1,10,1,10,1,11,1,11,1,11,- 1,11,1,11,1,12,1,12,1,12,1,12,1,12,1,13,1,13,1,13,1,13,1,13,1,13,- 1,14,1,14,1,14,1,14,1,14,1,14,1,14,1,15,1,15,1,15,1,15,1,15,1,15,- 1,15,1,15,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,16,1,17,1,17,1,17,- 1,17,1,17,1,17,1,18,1,18,1,18,1,18,1,18,1,19,1,19,1,19,1,19,1,19,- 1,19,1,19,1,19,1,20,1,20,1,20,1,20,1,20,1,21,1,21,1,21,1,21,1,22,- 1,22,1,22,1,22,1,22,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,1,23,- 1,23,1,23,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,24,1,25,1,25,- 1,25,1,25,1,25,1,26,1,26,1,26,1,26,1,27,1,27,1,27,1,27,1,27,1,27,- 1,27,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,28,1,29,1,29,1,29,1,29,- 1,29,1,29,1,29,1,29,1,30,1,30,1,30,1,30,1,30,1,30,1,31,1,31,1,31,- 1,31,1,31,1,32,1,32,1,32,1,32,1,32,1,32,1,32,1,33,1,33,1,33,1,33,- 1,33,1,33,1,33,1,33,1,34,1,34,1,34,1,34,1,34,1,34,1,35,1,35,1,35,- 1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,36,1,37,1,37,1,37,- 1,37,1,38,1,38,1,38,1,38,1,38,1,39,1,39,1,39,1,39,1,39,1,40,1,40,- 1,40,1,40,1,41,1,41,1,41,1,41,1,41,1,41,1,42,1,42,1,42,1,42,1,42,- 1,42,1,42,1,42,1,42,1,43,1,43,1,43,1,43,1,43,1,43,1,43,1,44,1,44,- 1,44,1,44,1,44,1,45,1,45,1,45,1,46,1,46,1,46,1,47,1,47,1,47,1,47,- 1,47,1,47,1,48,1,48,1,48,1,48,1,48,1,48,1,48,1,49,1,49,1,49,1,49,- 1,49,1,49,1,49,1,49,1,50,1,50,1,50,1,51,1,51,1,51,1,51,1,51,1,51,- 1,51,1,51,1,51,1,51,1,51,1,51,1,51,3,51,835,8,51,1,52,1,52,1,52,- 1,52,1,52,1,52,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,1,53,- 1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,54,1,55,- 1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,55,1,56,1,56,1,56,1,57,1,57,- 1,57,1,57,1,57,1,58,1,58,1,58,1,58,1,59,1,59,1,59,1,59,1,59,1,59,- 1,59,1,60,1,60,1,60,1,60,1,60,1,61,1,61,1,61,1,61,1,61,1,61,1,61,- 1,61,1,62,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,65,1,65,1,65,1,65,1,65,1,65,1,66,1,66,1,66,1,66,1,66,- 1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,66,1,67,1,67,1,67,1,67,1,67,- 1,67,1,67,1,68,1,68,1,68,1,68,1,68,1,68,1,69,1,69,1,69,1,69,1,69,- 1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,70,1,71,1,71,1,71,1,71,1,72,- 1,72,1,72,1,72,1,73,1,73,1,73,1,73,1,73,1,74,1,74,1,74,1,74,1,74,- 1,74,1,75,1,75,1,75,1,75,1,75,1,75,1,75,1,76,1,76,1,76,1,77,1,77,- 1,77,1,78,1,78,1,78,1,78,1,78,1,78,1,79,1,79,1,79,1,79,1,79,1,79,- 1,80,1,80,1,80,1,80,1,80,1,81,1,81,1,81,1,81,1,81,1,81,1,81,1,81,- 1,81,1,81,1,82,1,82,1,82,1,82,1,82,1,82,1,83,1,83,1,83,1,83,1,83,- 1,83,1,83,1,83,1,83,1,83,1,83,1,84,1,84,1,84,1,84,1,84,1,84,1,84,- 1,84,1,84,1,84,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,85,1,86,- 1,86,1,86,1,86,1,86,1,86,1,86,1,86,1,87,1,87,1,87,1,87,1,87,1,87,- 1,87,1,87,1,88,1,88,1,88,1,88,1,88,1,88,1,89,1,89,1,89,1,89,1,89,- 1,89,1,89,1,89,1,89,1,89,1,90,1,90,1,90,1,90,1,90,1,90,1,90,1,90,- 1,91,1,91,1,91,1,91,1,91,1,91,1,91,1,92,1,92,1,92,1,92,1,92,1,92,- 1,93,1,93,1,93,1,93,1,93,1,93,1,93,1,94,1,94,1,94,1,94,1,95,1,95,- 1,95,1,95,1,95,1,96,1,96,1,96,1,96,1,96,1,96,1,96,1,97,1,97,1,97,- 1,97,1,97,1,97,1,97,1,98,1,98,1,98,1,98,1,98,1,98,1,98,1,99,1,99,- 1,99,1,99,1,99,1,100,1,100,1,100,1,100,1,100,1,101,1,101,1,101,1,- 101,1,101,1,101,1,101,1,101,1,101,1,102,1,102,1,102,1,102,1,102,- 1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,103,1,104,- 1,104,1,104,1,104,1,104,1,105,1,105,1,105,1,105,1,105,1,105,1,106,- 1,106,1,106,1,106,1,106,1,107,1,107,1,107,1,107,1,107,1,107,1,107,- 1,107,1,107,1,107,1,108,1,108,1,108,1,108,1,108,1,109,1,109,1,109,- 1,109,1,109,1,109,1,110,1,110,1,110,1,110,1,110,1,111,1,111,1,111,- 1,112,1,112,1,112,1,112,1,113,1,113,1,113,1,113,1,113,1,113,1,113,- 1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,114,1,115,1,115,- 1,115,1,115,1,115,1,116,1,116,1,116,1,116,1,116,1,116,1,116,1,116,- 1,116,1,117,1,117,1,117,1,117,1,118,1,118,1,118,1,118,1,118,1,118,- 1,118,1,118,1,118,1,119,1,119,1,119,1,119,1,119,1,119,1,119,1,119,- 1,119,1,119,1,120,1,120,1,120,1,120,1,120,1,120,1,121,1,121,1,121,- 1,121,1,121,1,121,1,121,1,121,1,122,1,122,1,122,1,122,1,122,1,122,- 1,123,1,123,1,123,1,123,1,123,1,123,1,123,1,124,1,124,1,124,1,124,- 1,124,1,125,1,125,1,125,1,125,1,125,1,126,1,126,1,126,1,126,1,126,- 1,126,1,127,1,127,1,127,1,127,1,127,1,127,1,128,1,128,1,128,1,128,- 1,128,1,128,1,128,1,129,1,129,1,129,1,129,1,129,1,130,1,130,1,130,- 1,130,1,130,1,130,1,130,1,131,1,131,1,131,1,131,1,131,1,131,1,131,- 1,131,1,131,1,131,3,131,1364,8,131,1,132,1,132,1,132,1,132,1,132,- 1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,- 1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,1,132,- 1,132,1,132,1,132,1,132,1,132,3,132,1398,8,132,1,133,1,133,1,133,- 3,133,1403,8,133,1,133,1,133,1,133,1,133,5,133,1409,8,133,10,133,- 12,133,1412,9,133,1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,- 1,134,5,134,1423,8,134,10,134,12,134,1426,9,134,1,134,1,134,1,134,- 1,134,1,134,1,134,1,134,1,134,1,134,1,134,1,134,5,134,1439,8,134,- 10,134,12,134,1442,9,134,1,134,1,134,3,134,1446,8,134,1,135,1,135,- 1,135,5,135,1451,8,135,10,135,12,135,1454,9,135,1,135,1,135,1,135,- 3,135,1459,8,135,1,135,4,135,1462,8,135,11,135,12,135,1463,1,135,- 1,135,1,135,1,135,3,135,1470,8,135,1,135,4,135,1473,8,135,11,135,- 12,135,1474,1,135,1,135,1,135,5,135,1480,8,135,10,135,12,135,1483,- 9,135,1,135,1,135,1,135,3,135,1488,8,135,1,135,4,135,1491,8,135,- 11,135,12,135,1492,1,135,1,135,1,135,1,135,1,135,3,135,1500,8,135,- 1,135,4,135,1503,8,135,11,135,12,135,1504,1,135,1,135,1,135,1,135,- 3,135,1511,8,135,1,135,4,135,1514,8,135,11,135,12,135,1515,3,135,- 1518,8,135,1,136,1,136,1,136,4,136,1523,8,136,11,136,12,136,1524,- 1,137,1,137,4,137,1529,8,137,11,137,12,137,1530,1,138,4,138,1534,- 8,138,11,138,12,138,1535,1,139,1,139,1,139,4,139,1541,8,139,11,139,- 12,139,1542,1,140,1,140,1,140,4,140,1548,8,140,11,140,12,140,1549,- 1,141,1,141,1,141,4,141,1555,8,141,11,141,12,141,1556,1,142,1,142,- 1,142,1,142,1,142,1,142,1,142,1,142,1,142,5,142,1568,8,142,10,142,- 12,142,1571,9,142,1,142,1,142,1,143,1,143,1,144,1,144,1,145,1,145,- 1,146,1,146,1,147,1,147,1,148,1,148,1,149,1,149,1,150,1,150,1,151,- 1,151,1,152,1,152,1,153,1,153,1,154,1,154,1,155,1,155,1,156,1,156,- 1,157,1,157,1,158,1,158,1,159,1,159,1,160,1,160,1,161,1,161,1,162,- 1,162,1,163,1,163,1,164,1,164,1,165,1,165,1,166,1,166,1,167,1,167,- 1,168,1,168,1,169,1,169,1,170,1,170,1,171,1,171,1,172,1,172,1,173,- 1,173,1,174,1,174,1,174,1,175,1,175,1,176,1,176,1,177,1,177,1,178,- 1,178,1,178,1,179,1,179,1,179,1,180,1,180,1,181,1,181,1,182,1,182,- 1,182,1,183,1,183,1,184,1,184,1,185,1,185,1,186,1,186,1,186,1,187,- 1,187,1,188,1,188,1,188,1,189,1,189,1,190,1,190,1,191,1,191,1,191,- 1,192,1,192,1,192,1,192,1,193,1,193,1,193,1,193,1,194,1,194,1,195,- 1,195,1,196,1,196,1,196,1,196,1,197,1,197,1,197,1,198,1,198,1,198,- 1,198,1,198,1,198,1,199,1,199,1,199,1,199,1,199,1,199,1,200,1,200,- 1,201,1,201,1,201,1,202,1,202,1,202,1,202,3,202,1720,8,202,1,203,- 1,203,1,203,1,203,1,204,1,204,1,204,1,205,1,205,1,205,1,206,1,206,- 1,206,1,207,1,207,1,208,1,208,1,209,1,209,1,210,1,210,1,211,1,211,- 1,211,1,211,1,211,1,212,1,212,1,212,1,212,1,212,1,213,1,213,1,214,- 1,214,1,215,1,215,1,215,1,216,1,216,1,216,1,216,1,217,1,217,1,218,- 1,218,1,219,1,219,1,220,1,220,1,221,1,221,1,221,1,222,1,222,1,223,- 1,223,1,223,1,223,5,223,1781,8,223,10,223,12,223,1784,9,223,1,223,- 1,223,1,223,1,223,1,223,1,224,1,224,1,224,1,224,3,224,1795,8,224,- 1,224,5,224,1798,8,224,10,224,12,224,1801,9,224,1,224,3,224,1804,- 8,224,1,224,1,224,1,225,1,225,1,225,5,225,1811,8,225,10,225,12,225,- 1814,9,225,3,225,1816,8,225,1,225,3,225,1819,8,225,1,225,1,225,1,- 226,1,226,1,226,1,226,1,227,1,227,1,228,1,228,1,228,1,228,1,228,- 1,228,1,228,1,228,1,228,1,228,1,228,4,228,1840,8,228,11,228,12,228,- 1841,1,229,1,229,1,229,1,229,1,230,1,230,1,230,1,230,1,230,1,231,- 1,231,1,231,1,231,1,231,4,231,1858,8,231,11,231,12,231,1859,1,232,- 1,232,1,232,1,232,1,233,1,233,1,233,1,233,1,233,1,233,1,234,1,234,- 1,234,1,234,1,234,1,234,1,235,1,235,1,235,1,235,5,235,1882,8,235,- 10,235,12,235,1885,9,235,1,235,1,235,1,235,1,235,1,235,1,236,1,236,- 1,236,1,236,3,236,1896,8,236,1,236,5,236,1899,8,236,10,236,12,236,- 1902,9,236,1,236,3,236,1905,8,236,1,236,1,236,1,237,1,237,5,237,- 1911,8,237,10,237,12,237,1914,9,237,1,237,1,237,1,238,1,238,1,238,- 1,238,1,239,1,239,1,239,1,239,1,240,4,240,1927,8,240,11,240,12,240,- 1928,1,240,1,240,1,241,1,241,1,241,1,241,1,241,1,242,1,242,1,242,- 1,242,1,243,1,243,1,243,1,243,1,243,1,244,1,244,1,244,1,244,5,244,- 1951,8,244,10,244,12,244,1954,9,244,1,244,1,244,1,244,1,244,1,244,- 1,245,1,245,1,245,1,245,3,245,1965,8,245,1,245,5,245,1968,8,245,- 10,245,12,245,1971,9,245,1,245,3,245,1974,8,245,1,245,1,245,1,246,- 1,246,5,246,1980,8,246,10,246,12,246,1983,9,246,1,246,1,246,1,247,- 4,247,1988,8,247,11,247,12,247,1989,1,247,1,247,1,248,1,248,1,248,- 1,248,1,249,4,249,1999,8,249,11,249,12,249,2000,1,250,1,250,1,250,- 1,250,1,250,1,251,1,251,1,251,1,251,1,251,1,251,1,251,1,252,1,252,- 1,252,1,252,1,252,1,253,4,253,2021,8,253,11,253,12,253,2022,1,253,- 1,253,3,1782,1883,1952,0,254,6,1,8,2,10,3,12,4,14,5,16,6,18,7,20,- 8,22,9,24,10,26,11,28,12,30,13,32,14,34,15,36,16,38,17,40,18,42,- 19,44,20,46,21,48,22,50,23,52,24,54,25,56,26,58,27,60,28,62,29,64,- 30,66,31,68,32,70,33,72,34,74,35,76,36,78,37,80,38,82,39,84,40,86,- 41,88,42,90,43,92,44,94,45,96,46,98,47,100,48,102,49,104,50,106,- 51,108,52,110,53,112,54,114,55,116,56,118,57,120,58,122,59,124,60,- 126,61,128,62,130,63,132,64,134,65,136,66,138,67,140,68,142,69,144,- 70,146,71,148,72,150,73,152,74,154,75,156,76,158,77,160,78,162,79,- 164,80,166,81,168,82,170,83,172,84,174,85,176,86,178,87,180,88,182,- 89,184,90,186,91,188,92,190,93,192,94,194,95,196,96,198,97,200,98,- 202,99,204,100,206,101,208,102,210,103,212,104,214,105,216,106,218,- 107,220,108,222,109,224,110,226,111,228,112,230,113,232,114,234,- 115,236,116,238,117,240,118,242,119,244,120,246,121,248,122,250,- 123,252,124,254,125,256,126,258,127,260,128,262,129,264,130,266,- 131,268,132,270,133,272,134,274,135,276,136,278,137,280,138,282,- 139,284,140,286,141,288,142,290,143,292,0,294,0,296,0,298,0,300,- 0,302,0,304,0,306,0,308,0,310,0,312,0,314,0,316,0,318,0,320,0,322,- 0,324,0,326,0,328,0,330,0,332,0,334,0,336,0,338,0,340,0,342,0,344,- 0,346,0,348,0,350,0,352,0,354,144,356,145,358,146,360,147,362,148,- 364,149,366,150,368,151,370,152,372,153,374,154,376,155,378,156,- 380,157,382,158,384,159,386,160,388,161,390,162,392,163,394,164,- 396,165,398,166,400,167,402,0,404,0,406,168,408,169,410,170,412,- 171,414,172,416,173,418,174,420,175,422,176,424,177,426,178,428,- 179,430,180,432,181,434,182,436,183,438,184,440,185,442,186,444,- 187,446,188,448,189,450,190,452,191,454,192,456,193,458,194,460,- 195,462,196,464,197,466,0,468,198,470,199,472,0,474,0,476,200,478,- 201,480,0,482,0,484,0,486,202,488,0,490,0,492,0,494,203,496,204,- 498,0,500,205,502,0,504,206,506,0,508,0,510,0,512,207,6,0,1,2,3,- 4,5,44,2,0,92,92,96,96,2,0,34,34,92,92,2,0,79,79,111,111,2,0,66,- 66,98,98,2,0,39,39,92,92,2,0,65,65,97,97,2,0,67,67,99,99,2,0,68,- 68,100,100,2,0,69,69,101,101,2,0,70,70,102,102,2,0,71,71,103,103,- 2,0,72,72,104,104,2,0,73,73,105,105,2,0,74,74,106,106,2,0,75,75,- 107,107,2,0,76,76,108,108,2,0,77,77,109,109,2,0,78,78,110,110,2,- 0,80,80,112,112,2,0,81,81,113,113,2,0,82,82,114,114,2,0,83,83,115,- 115,2,0,84,84,116,116,2,0,85,85,117,117,2,0,86,86,118,118,2,0,87,- 87,119,119,2,0,88,88,120,120,2,0,89,89,121,121,2,0,90,90,122,122,- 2,0,65,90,97,122,1,0,48,49,1,0,48,55,1,0,48,57,3,0,48,57,65,70,97,- 102,2,0,10,10,13,13,2,1,10,10,13,13,3,0,10,10,13,13,48,57,11,0,9,- 13,32,32,133,133,160,160,5760,5760,8192,8202,8232,8233,8239,8239,- 8287,8287,12288,12288,65279,65279,3,0,39,39,92,92,123,123,1,0,123,- 123,3,0,65,90,95,95,97,122,5,0,45,45,48,57,65,90,95,95,97,122,3,- 0,9,10,13,13,32,32,2,0,60,60,123,123,2073,0,6,1,0,0,0,0,8,1,0,0,- 0,0,10,1,0,0,0,0,12,1,0,0,0,0,14,1,0,0,0,0,16,1,0,0,0,0,18,1,0,0,- 0,0,20,1,0,0,0,0,22,1,0,0,0,0,24,1,0,0,0,0,26,1,0,0,0,0,28,1,0,0,- 0,0,30,1,0,0,0,0,32,1,0,0,0,0,34,1,0,0,0,0,36,1,0,0,0,0,38,1,0,0,- 0,0,40,1,0,0,0,0,42,1,0,0,0,0,44,1,0,0,0,0,46,1,0,0,0,0,48,1,0,0,- 0,0,50,1,0,0,0,0,52,1,0,0,0,0,54,1,0,0,0,0,56,1,0,0,0,0,58,1,0,0,- 0,0,60,1,0,0,0,0,62,1,0,0,0,0,64,1,0,0,0,0,66,1,0,0,0,0,68,1,0,0,- 0,0,70,1,0,0,0,0,72,1,0,0,0,0,74,1,0,0,0,0,76,1,0,0,0,0,78,1,0,0,- 0,0,80,1,0,0,0,0,82,1,0,0,0,0,84,1,0,0,0,0,86,1,0,0,0,0,88,1,0,0,- 0,0,90,1,0,0,0,0,92,1,0,0,0,0,94,1,0,0,0,0,96,1,0,0,0,0,98,1,0,0,- 0,0,100,1,0,0,0,0,102,1,0,0,0,0,104,1,0,0,0,0,106,1,0,0,0,0,108,- 1,0,0,0,0,110,1,0,0,0,0,112,1,0,0,0,0,114,1,0,0,0,0,116,1,0,0,0,- 0,118,1,0,0,0,0,120,1,0,0,0,0,122,1,0,0,0,0,124,1,0,0,0,0,126,1,- 0,0,0,0,128,1,0,0,0,0,130,1,0,0,0,0,132,1,0,0,0,0,134,1,0,0,0,0,- 136,1,0,0,0,0,138,1,0,0,0,0,140,1,0,0,0,0,142,1,0,0,0,0,144,1,0,- 0,0,0,146,1,0,0,0,0,148,1,0,0,0,0,150,1,0,0,0,0,152,1,0,0,0,0,154,- 1,0,0,0,0,156,1,0,0,0,0,158,1,0,0,0,0,160,1,0,0,0,0,162,1,0,0,0,- 0,164,1,0,0,0,0,166,1,0,0,0,0,168,1,0,0,0,0,170,1,0,0,0,0,172,1,- 0,0,0,0,174,1,0,0,0,0,176,1,0,0,0,0,178,1,0,0,0,0,180,1,0,0,0,0,- 182,1,0,0,0,0,184,1,0,0,0,0,186,1,0,0,0,0,188,1,0,0,0,0,190,1,0,- 0,0,0,192,1,0,0,0,0,194,1,0,0,0,0,196,1,0,0,0,0,198,1,0,0,0,0,200,- 1,0,0,0,0,202,1,0,0,0,0,204,1,0,0,0,0,206,1,0,0,0,0,208,1,0,0,0,- 0,210,1,0,0,0,0,212,1,0,0,0,0,214,1,0,0,0,0,216,1,0,0,0,0,218,1,- 0,0,0,0,220,1,0,0,0,0,222,1,0,0,0,0,224,1,0,0,0,0,226,1,0,0,0,0,- 228,1,0,0,0,0,230,1,0,0,0,0,232,1,0,0,0,0,234,1,0,0,0,0,236,1,0,- 0,0,0,238,1,0,0,0,0,240,1,0,0,0,0,242,1,0,0,0,0,244,1,0,0,0,0,246,- 1,0,0,0,0,248,1,0,0,0,0,250,1,0,0,0,0,252,1,0,0,0,0,254,1,0,0,0,- 0,256,1,0,0,0,0,258,1,0,0,0,0,260,1,0,0,0,0,262,1,0,0,0,0,264,1,- 0,0,0,0,266,1,0,0,0,0,268,1,0,0,0,0,270,1,0,0,0,0,272,1,0,0,0,0,- 274,1,0,0,0,0,276,1,0,0,0,0,278,1,0,0,0,0,280,1,0,0,0,0,282,1,0,- 0,0,0,284,1,0,0,0,0,286,1,0,0,0,0,288,1,0,0,0,0,290,1,0,0,0,0,354,- 1,0,0,0,0,356,1,0,0,0,0,358,1,0,0,0,0,360,1,0,0,0,0,362,1,0,0,0,- 0,364,1,0,0,0,0,366,1,0,0,0,0,368,1,0,0,0,0,370,1,0,0,0,0,372,1,- 0,0,0,0,374,1,0,0,0,0,376,1,0,0,0,0,378,1,0,0,0,0,380,1,0,0,0,0,- 382,1,0,0,0,0,384,1,0,0,0,0,386,1,0,0,0,0,388,1,0,0,0,0,390,1,0,- 0,0,0,392,1,0,0,0,0,394,1,0,0,0,0,396,1,0,0,0,0,398,1,0,0,0,0,400,- 1,0,0,0,0,402,1,0,0,0,0,404,1,0,0,0,0,406,1,0,0,0,0,408,1,0,0,0,- 0,410,1,0,0,0,0,412,1,0,0,0,0,414,1,0,0,0,0,416,1,0,0,0,0,418,1,- 0,0,0,0,420,1,0,0,0,0,422,1,0,0,0,0,424,1,0,0,0,0,426,1,0,0,0,0,- 428,1,0,0,0,0,430,1,0,0,0,0,432,1,0,0,0,0,434,1,0,0,0,0,436,1,0,- 0,0,0,438,1,0,0,0,0,440,1,0,0,0,0,442,1,0,0,0,0,444,1,0,0,0,0,446,- 1,0,0,0,0,448,1,0,0,0,0,450,1,0,0,0,0,452,1,0,0,0,0,454,1,0,0,0,- 0,456,1,0,0,0,0,458,1,0,0,0,0,460,1,0,0,0,1,462,1,0,0,0,1,464,1,- 0,0,0,1,466,1,0,0,0,2,468,1,0,0,0,2,470,1,0,0,0,3,472,1,0,0,0,3,- 474,1,0,0,0,3,476,1,0,0,0,3,478,1,0,0,0,3,480,1,0,0,0,3,482,1,0,- 0,0,3,484,1,0,0,0,3,486,1,0,0,0,3,488,1,0,0,0,3,490,1,0,0,0,4,492,- 1,0,0,0,4,494,1,0,0,0,4,496,1,0,0,0,4,498,1,0,0,0,4,500,1,0,0,0,- 4,502,1,0,0,0,5,504,1,0,0,0,5,506,1,0,0,0,5,508,1,0,0,0,5,510,1,- 0,0,0,5,512,1,0,0,0,6,514,1,0,0,0,8,518,1,0,0,0,10,522,1,0,0,0,12,- 527,1,0,0,0,14,531,1,0,0,0,16,537,1,0,0,0,18,554,1,0,0,0,20,556,- 1,0,0,0,22,561,1,0,0,0,24,569,1,0,0,0,26,574,1,0,0,0,28,577,1,0,- 0,0,30,582,1,0,0,0,32,587,1,0,0,0,34,593,1,0,0,0,36,600,1,0,0,0,- 38,608,1,0,0,0,40,616,1,0,0,0,42,622,1,0,0,0,44,627,1,0,0,0,46,635,- 1,0,0,0,48,640,1,0,0,0,50,644,1,0,0,0,52,649,1,0,0,0,54,660,1,0,- 0,0,56,669,1,0,0,0,58,674,1,0,0,0,60,678,1,0,0,0,62,685,1,0,0,0,- 64,693,1,0,0,0,66,701,1,0,0,0,68,707,1,0,0,0,70,712,1,0,0,0,72,719,- 1,0,0,0,74,727,1,0,0,0,76,733,1,0,0,0,78,736,1,0,0,0,80,746,1,0,- 0,0,82,750,1,0,0,0,84,755,1,0,0,0,86,760,1,0,0,0,88,764,1,0,0,0,- 90,770,1,0,0,0,92,779,1,0,0,0,94,786,1,0,0,0,96,791,1,0,0,0,98,794,- 1,0,0,0,100,797,1,0,0,0,102,803,1,0,0,0,104,810,1,0,0,0,106,818,- 1,0,0,0,108,834,1,0,0,0,110,836,1,0,0,0,112,842,1,0,0,0,114,852,- 1,0,0,0,116,864,1,0,0,0,118,873,1,0,0,0,120,876,1,0,0,0,122,881,- 1,0,0,0,124,885,1,0,0,0,126,892,1,0,0,0,128,897,1,0,0,0,130,905,- 1,0,0,0,132,910,1,0,0,0,134,914,1,0,0,0,136,919,1,0,0,0,138,925,- 1,0,0,0,140,938,1,0,0,0,142,945,1,0,0,0,144,951,1,0,0,0,146,956,- 1,0,0,0,148,964,1,0,0,0,150,968,1,0,0,0,152,972,1,0,0,0,154,977,- 1,0,0,0,156,983,1,0,0,0,158,990,1,0,0,0,160,993,1,0,0,0,162,996,- 1,0,0,0,164,1002,1,0,0,0,166,1008,1,0,0,0,168,1013,1,0,0,0,170,1023,- 1,0,0,0,172,1029,1,0,0,0,174,1040,1,0,0,0,176,1050,1,0,0,0,178,1059,- 1,0,0,0,180,1067,1,0,0,0,182,1075,1,0,0,0,184,1081,1,0,0,0,186,1091,- 1,0,0,0,188,1099,1,0,0,0,190,1106,1,0,0,0,192,1112,1,0,0,0,194,1119,- 1,0,0,0,196,1123,1,0,0,0,198,1128,1,0,0,0,200,1135,1,0,0,0,202,1142,- 1,0,0,0,204,1149,1,0,0,0,206,1154,1,0,0,0,208,1159,1,0,0,0,210,1168,- 1,0,0,0,212,1173,1,0,0,0,214,1183,1,0,0,0,216,1188,1,0,0,0,218,1194,- 1,0,0,0,220,1199,1,0,0,0,222,1209,1,0,0,0,224,1214,1,0,0,0,226,1220,- 1,0,0,0,228,1225,1,0,0,0,230,1228,1,0,0,0,232,1232,1,0,0,0,234,1239,- 1,0,0,0,236,1248,1,0,0,0,238,1253,1,0,0,0,240,1262,1,0,0,0,242,1266,- 1,0,0,0,244,1275,1,0,0,0,246,1285,1,0,0,0,248,1291,1,0,0,0,250,1299,- 1,0,0,0,252,1305,1,0,0,0,254,1312,1,0,0,0,256,1317,1,0,0,0,258,1322,- 1,0,0,0,260,1328,1,0,0,0,262,1334,1,0,0,0,264,1341,1,0,0,0,266,1346,- 1,0,0,0,268,1363,1,0,0,0,270,1397,1,0,0,0,272,1402,1,0,0,0,274,1445,- 1,0,0,0,276,1517,1,0,0,0,278,1519,1,0,0,0,280,1526,1,0,0,0,282,1533,- 1,0,0,0,284,1537,1,0,0,0,286,1544,1,0,0,0,288,1551,1,0,0,0,290,1558,- 1,0,0,0,292,1574,1,0,0,0,294,1576,1,0,0,0,296,1578,1,0,0,0,298,1580,- 1,0,0,0,300,1582,1,0,0,0,302,1584,1,0,0,0,304,1586,1,0,0,0,306,1588,- 1,0,0,0,308,1590,1,0,0,0,310,1592,1,0,0,0,312,1594,1,0,0,0,314,1596,- 1,0,0,0,316,1598,1,0,0,0,318,1600,1,0,0,0,320,1602,1,0,0,0,322,1604,- 1,0,0,0,324,1606,1,0,0,0,326,1608,1,0,0,0,328,1610,1,0,0,0,330,1612,- 1,0,0,0,332,1614,1,0,0,0,334,1616,1,0,0,0,336,1618,1,0,0,0,338,1620,- 1,0,0,0,340,1622,1,0,0,0,342,1624,1,0,0,0,344,1626,1,0,0,0,346,1628,- 1,0,0,0,348,1630,1,0,0,0,350,1632,1,0,0,0,352,1634,1,0,0,0,354,1636,- 1,0,0,0,356,1639,1,0,0,0,358,1641,1,0,0,0,360,1643,1,0,0,0,362,1645,- 1,0,0,0,364,1648,1,0,0,0,366,1651,1,0,0,0,368,1653,1,0,0,0,370,1655,- 1,0,0,0,372,1658,1,0,0,0,374,1660,1,0,0,0,376,1662,1,0,0,0,378,1664,- 1,0,0,0,380,1667,1,0,0,0,382,1669,1,0,0,0,384,1672,1,0,0,0,386,1674,- 1,0,0,0,388,1676,1,0,0,0,390,1679,1,0,0,0,392,1683,1,0,0,0,394,1687,- 1,0,0,0,396,1689,1,0,0,0,398,1691,1,0,0,0,400,1695,1,0,0,0,402,1698,- 1,0,0,0,404,1704,1,0,0,0,406,1710,1,0,0,0,408,1712,1,0,0,0,410,1719,- 1,0,0,0,412,1721,1,0,0,0,414,1725,1,0,0,0,416,1728,1,0,0,0,418,1731,- 1,0,0,0,420,1734,1,0,0,0,422,1736,1,0,0,0,424,1738,1,0,0,0,426,1740,- 1,0,0,0,428,1742,1,0,0,0,430,1747,1,0,0,0,432,1752,1,0,0,0,434,1754,- 1,0,0,0,436,1756,1,0,0,0,438,1759,1,0,0,0,440,1763,1,0,0,0,442,1765,- 1,0,0,0,444,1767,1,0,0,0,446,1769,1,0,0,0,448,1771,1,0,0,0,450,1774,- 1,0,0,0,452,1776,1,0,0,0,454,1794,1,0,0,0,456,1807,1,0,0,0,458,1822,- 1,0,0,0,460,1826,1,0,0,0,462,1839,1,0,0,0,464,1843,1,0,0,0,466,1847,- 1,0,0,0,468,1857,1,0,0,0,470,1861,1,0,0,0,472,1865,1,0,0,0,474,1871,- 1,0,0,0,476,1877,1,0,0,0,478,1895,1,0,0,0,480,1908,1,0,0,0,482,1917,- 1,0,0,0,484,1921,1,0,0,0,486,1926,1,0,0,0,488,1932,1,0,0,0,490,1937,- 1,0,0,0,492,1941,1,0,0,0,494,1946,1,0,0,0,496,1964,1,0,0,0,498,1977,- 1,0,0,0,500,1987,1,0,0,0,502,1993,1,0,0,0,504,1998,1,0,0,0,506,2002,- 1,0,0,0,508,2007,1,0,0,0,510,2014,1,0,0,0,512,2020,1,0,0,0,514,515,- 3,292,143,0,515,516,3,314,154,0,516,517,3,314,154,0,517,7,1,0,0,- 0,518,519,3,292,143,0,519,520,3,318,156,0,520,521,3,298,146,0,521,- 9,1,0,0,0,522,523,3,292,143,0,523,524,3,318,156,0,524,525,3,330,- 162,0,525,526,3,308,151,0,526,11,1,0,0,0,527,528,3,292,143,0,528,- 529,3,318,156,0,529,530,3,340,167,0,530,13,1,0,0,0,531,532,3,292,- 143,0,532,533,3,326,160,0,533,534,3,326,160,0,534,535,3,292,143,- 0,535,536,3,340,167,0,536,15,1,0,0,0,537,538,3,292,143,0,538,539,- 3,328,161,0,539,17,1,0,0,0,540,541,3,292,143,0,541,542,3,328,161,- 0,542,543,3,296,145,0,543,555,1,0,0,0,544,545,3,292,143,0,545,546,- 3,328,161,0,546,547,3,296,145,0,547,548,3,300,147,0,548,549,3,318,- 156,0,549,550,3,298,146,0,550,551,3,308,151,0,551,552,3,318,156,- 0,552,553,3,304,149,0,553,555,1,0,0,0,554,540,1,0,0,0,554,544,1,- 0,0,0,555,19,1,0,0,0,556,557,3,292,143,0,557,558,3,328,161,0,558,- 559,3,320,157,0,559,560,3,302,148,0,560,21,1,0,0,0,561,562,3,294,- 144,0,562,563,3,300,147,0,563,564,3,330,162,0,564,565,3,336,165,- 0,565,566,3,300,147,0,566,567,3,300,147,0,567,568,3,318,156,0,568,- 23,1,0,0,0,569,570,3,294,144,0,570,571,3,320,157,0,571,572,3,330,- 162,0,572,573,3,306,150,0,573,25,1,0,0,0,574,575,3,294,144,0,575,- 576,3,340,167,0,576,27,1,0,0,0,577,578,3,296,145,0,578,579,3,292,- 143,0,579,580,3,328,161,0,580,581,3,300,147,0,581,29,1,0,0,0,582,- 583,3,296,145,0,583,584,3,292,143,0,584,585,3,328,161,0,585,586,- 3,330,162,0,586,31,1,0,0,0,587,588,3,296,145,0,588,589,3,292,143,- 0,589,590,3,330,162,0,590,591,3,296,145,0,591,592,3,306,150,0,592,- 33,1,0,0,0,593,594,3,296,145,0,594,595,3,320,157,0,595,596,3,306,- 150,0,596,597,3,320,157,0,597,598,3,326,160,0,598,599,3,330,162,- 0,599,35,1,0,0,0,600,601,3,296,145,0,601,602,3,320,157,0,602,603,- 3,314,154,0,603,604,3,314,154,0,604,605,3,292,143,0,605,606,3,330,- 162,0,606,607,3,300,147,0,607,37,1,0,0,0,608,609,3,296,145,0,609,- 610,3,320,157,0,610,611,3,314,154,0,611,612,3,332,163,0,612,613,- 3,316,155,0,613,614,3,318,156,0,614,615,3,328,161,0,615,39,1,0,0,- 0,616,617,3,296,145,0,617,618,3,326,160,0,618,619,3,320,157,0,619,- 620,3,328,161,0,620,621,3,328,161,0,621,41,1,0,0,0,622,623,3,296,- 145,0,623,624,3,332,163,0,624,625,3,294,144,0,625,626,3,300,147,- 0,626,43,1,0,0,0,627,628,3,296,145,0,628,629,3,332,163,0,629,630,- 3,326,160,0,630,631,3,326,160,0,631,632,3,300,147,0,632,633,3,318,- 156,0,633,634,3,330,162,0,634,45,1,0,0,0,635,636,3,298,146,0,636,- 637,3,292,143,0,637,638,3,330,162,0,638,639,3,300,147,0,639,47,1,- 0,0,0,640,641,3,298,146,0,641,642,3,292,143,0,642,643,3,340,167,- 0,643,49,1,0,0,0,644,645,3,298,146,0,645,646,3,300,147,0,646,647,- 3,328,161,0,647,648,3,296,145,0,648,51,1,0,0,0,649,650,3,298,146,- 0,650,651,3,300,147,0,651,652,3,328,161,0,652,653,3,296,145,0,653,- 654,3,300,147,0,654,655,3,318,156,0,655,656,3,298,146,0,656,657,- 3,308,151,0,657,658,3,318,156,0,658,659,3,304,149,0,659,53,1,0,0,- 0,660,661,3,298,146,0,661,662,3,308,151,0,662,663,3,328,161,0,663,- 664,3,330,162,0,664,665,3,308,151,0,665,666,3,318,156,0,666,667,- 3,296,145,0,667,668,3,330,162,0,668,55,1,0,0,0,669,670,3,300,147,- 0,670,671,3,314,154,0,671,672,3,328,161,0,672,673,3,300,147,0,673,- 57,1,0,0,0,674,675,3,300,147,0,675,676,3,318,156,0,676,677,3,298,- 146,0,677,59,1,0,0,0,678,679,3,300,147,0,679,680,3,338,166,0,680,- 681,3,296,145,0,681,682,3,300,147,0,682,683,3,322,158,0,683,684,- 3,330,162,0,684,61,1,0,0,0,685,686,3,300,147,0,686,687,3,338,166,- 0,687,688,3,296,145,0,688,689,3,314,154,0,689,690,3,332,163,0,690,- 691,3,298,146,0,691,692,3,300,147,0,692,63,1,0,0,0,693,694,3,300,- 147,0,694,695,3,338,166,0,695,696,3,330,162,0,696,697,3,326,160,- 0,697,698,3,292,143,0,698,699,3,296,145,0,699,700,3,330,162,0,700,- 65,1,0,0,0,701,702,3,302,148,0,702,703,3,308,151,0,703,704,3,318,- 156,0,704,705,3,292,143,0,705,706,3,314,154,0,706,67,1,0,0,0,707,- 708,3,302,148,0,708,709,3,308,151,0,709,710,3,314,154,0,710,711,- 3,314,154,0,711,69,1,0,0,0,712,713,3,302,148,0,713,714,3,308,151,- 0,714,715,3,314,154,0,715,716,3,330,162,0,716,717,3,300,147,0,717,- 718,3,326,160,0,718,71,1,0,0,0,719,720,3,302,148,0,720,721,3,308,- 151,0,721,722,3,318,156,0,722,723,3,292,143,0,723,724,3,314,154,- 0,724,725,3,314,154,0,725,726,3,340,167,0,726,73,1,0,0,0,727,728,- 3,302,148,0,728,729,3,308,151,0,729,730,3,326,160,0,730,731,3,328,- 161,0,731,732,3,330,162,0,732,75,1,0,0,0,733,734,3,302,148,0,734,- 735,3,318,156,0,735,77,1,0,0,0,736,737,3,302,148,0,737,738,3,320,- 157,0,738,739,3,314,154,0,739,740,3,314,154,0,740,741,3,320,157,- 0,741,742,3,336,165,0,742,743,3,308,151,0,743,744,3,318,156,0,744,- 745,3,304,149,0,745,79,1,0,0,0,746,747,3,302,148,0,747,748,3,320,- 157,0,748,749,3,326,160,0,749,81,1,0,0,0,750,751,3,302,148,0,751,- 752,3,326,160,0,752,753,3,320,157,0,753,754,3,316,155,0,754,83,1,- 0,0,0,755,756,3,302,148,0,756,757,3,332,163,0,757,758,3,314,154,- 0,758,759,3,314,154,0,759,85,1,0,0,0,760,761,3,302,148,0,761,762,- 3,332,163,0,762,763,3,318,156,0,763,87,1,0,0,0,764,765,3,304,149,- 0,765,766,3,326,160,0,766,767,3,320,157,0,767,768,3,332,163,0,768,- 769,3,322,158,0,769,89,1,0,0,0,770,771,3,304,149,0,771,772,3,326,- 160,0,772,773,3,320,157,0,773,774,3,332,163,0,774,775,3,322,158,- 0,775,776,3,308,151,0,776,777,3,318,156,0,777,778,3,304,149,0,778,- 91,1,0,0,0,779,780,3,306,150,0,780,781,3,292,143,0,781,782,3,334,- 164,0,782,783,3,308,151,0,783,784,3,318,156,0,784,785,3,304,149,- 0,785,93,1,0,0,0,786,787,3,306,150,0,787,788,3,320,157,0,788,789,- 3,332,163,0,789,790,3,326,160,0,790,95,1,0,0,0,791,792,3,308,151,- 0,792,793,3,298,146,0,793,97,1,0,0,0,794,795,3,308,151,0,795,796,- 3,302,148,0,796,99,1,0,0,0,797,798,3,308,151,0,798,799,3,314,154,- 0,799,800,3,308,151,0,800,801,3,312,153,0,801,802,3,300,147,0,802,- 101,1,0,0,0,803,804,3,308,151,0,804,805,3,304,149,0,805,806,3,318,- 156,0,806,807,3,320,157,0,807,808,3,326,160,0,808,809,3,300,147,- 0,809,103,1,0,0,0,810,811,3,308,151,0,811,812,3,318,156,0,812,813,- 3,296,145,0,813,814,3,314,154,0,814,815,3,332,163,0,815,816,3,298,- 146,0,816,817,3,300,147,0,817,105,1,0,0,0,818,819,3,308,151,0,819,- 820,3,318,156,0,820,107,1,0,0,0,821,822,3,308,151,0,822,823,3,318,- 156,0,823,824,3,302,148,0,824,835,1,0,0,0,825,826,3,308,151,0,826,- 827,3,318,156,0,827,828,3,302,148,0,828,829,3,308,151,0,829,830,- 3,318,156,0,830,831,3,308,151,0,831,832,3,330,162,0,832,833,3,340,- 167,0,833,835,1,0,0,0,834,821,1,0,0,0,834,825,1,0,0,0,835,109,1,- 0,0,0,836,837,3,308,151,0,837,838,3,318,156,0,838,839,3,318,156,- 0,839,840,3,300,147,0,840,841,3,326,160,0,841,111,1,0,0,0,842,843,- 3,308,151,0,843,844,3,318,156,0,844,845,3,330,162,0,845,846,3,300,- 147,0,846,847,3,326,160,0,847,848,3,328,161,0,848,849,3,300,147,- 0,849,850,3,296,145,0,850,851,3,330,162,0,851,113,1,0,0,0,852,853,- 3,308,151,0,853,854,3,318,156,0,854,855,3,330,162,0,855,856,3,300,- 147,0,856,857,3,326,160,0,857,858,3,322,158,0,858,859,3,320,157,- 0,859,860,3,314,154,0,860,861,3,292,143,0,861,862,3,330,162,0,862,- 863,3,300,147,0,863,115,1,0,0,0,864,865,3,308,151,0,865,866,3,318,- 156,0,866,867,3,330,162,0,867,868,3,300,147,0,868,869,3,326,160,- 0,869,870,3,334,164,0,870,871,3,292,143,0,871,872,3,314,154,0,872,- 117,1,0,0,0,873,874,3,308,151,0,874,875,3,328,161,0,875,119,1,0,- 0,0,876,877,3,310,152,0,877,878,3,320,157,0,878,879,3,308,151,0,- 879,880,3,318,156,0,880,121,1,0,0,0,881,882,3,312,153,0,882,883,- 3,300,147,0,883,884,3,340,167,0,884,123,1,0,0,0,885,886,3,314,154,- 0,886,887,3,292,143,0,887,888,3,316,155,0,888,889,3,294,144,0,889,- 890,3,298,146,0,890,891,3,292,143,0,891,125,1,0,0,0,892,893,3,314,- 154,0,893,894,3,292,143,0,894,895,3,328,161,0,895,896,3,330,162,- 0,896,127,1,0,0,0,897,898,3,314,154,0,898,899,3,300,147,0,899,900,- 3,292,143,0,900,901,3,298,146,0,901,902,3,308,151,0,902,903,3,318,- 156,0,903,904,3,304,149,0,904,129,1,0,0,0,905,906,3,314,154,0,906,- 907,3,300,147,0,907,908,3,302,148,0,908,909,3,330,162,0,909,131,- 1,0,0,0,910,911,3,314,154,0,911,912,3,300,147,0,912,913,3,330,162,- 0,913,133,1,0,0,0,914,915,3,314,154,0,915,916,3,308,151,0,916,917,- 3,312,153,0,917,918,3,300,147,0,918,135,1,0,0,0,919,920,3,314,154,- 0,920,921,3,308,151,0,921,922,3,316,155,0,922,923,3,308,151,0,923,- 924,3,330,162,0,924,137,1,0,0,0,925,926,3,316,155,0,926,927,3,292,- 143,0,927,928,3,330,162,0,928,929,3,300,147,0,929,930,3,326,160,- 0,930,931,3,308,151,0,931,932,3,292,143,0,932,933,3,314,154,0,933,- 934,3,308,151,0,934,935,3,342,168,0,935,936,3,300,147,0,936,937,- 3,298,146,0,937,139,1,0,0,0,938,939,3,316,155,0,939,940,3,308,151,- 0,940,941,3,318,156,0,941,942,3,332,163,0,942,943,3,330,162,0,943,- 944,3,300,147,0,944,141,1,0,0,0,945,946,3,316,155,0,946,947,3,320,- 157,0,947,948,3,318,156,0,948,949,3,330,162,0,949,950,3,306,150,- 0,950,143,1,0,0,0,951,952,3,318,156,0,952,953,3,292,143,0,953,954,- 3,316,155,0,954,955,3,300,147,0,955,145,1,0,0,0,956,957,3,318,156,- 0,957,958,3,292,143,0,958,959,3,330,162,0,959,960,3,332,163,0,960,- 961,3,326,160,0,961,962,3,292,143,0,962,963,3,314,154,0,963,147,- 1,0,0,0,964,965,3,318,156,0,965,966,3,292,143,0,966,967,3,318,156,- 0,967,149,1,0,0,0,968,969,3,318,156,0,969,970,3,320,157,0,970,971,- 3,330,162,0,971,151,1,0,0,0,972,973,3,318,156,0,973,974,3,332,163,- 0,974,975,3,314,154,0,975,976,3,314,154,0,976,153,1,0,0,0,977,978,- 3,318,156,0,978,979,3,332,163,0,979,980,3,314,154,0,980,981,3,314,- 154,0,981,982,3,328,161,0,982,155,1,0,0,0,983,984,3,320,157,0,984,- 985,3,302,148,0,985,986,3,302,148,0,986,987,3,328,161,0,987,988,- 3,300,147,0,988,989,3,330,162,0,989,157,1,0,0,0,990,991,3,320,157,- 0,991,992,3,318,156,0,992,159,1,0,0,0,993,994,3,320,157,0,994,995,- 3,326,160,0,995,161,1,0,0,0,996,997,3,320,157,0,997,998,3,326,160,- 0,998,999,3,298,146,0,999,1000,3,300,147,0,1000,1001,3,326,160,0,- 1001,163,1,0,0,0,1002,1003,3,320,157,0,1003,1004,3,332,163,0,1004,- 1005,3,330,162,0,1005,1006,3,300,147,0,1006,1007,3,326,160,0,1007,- 165,1,0,0,0,1008,1009,3,320,157,0,1009,1010,3,334,164,0,1010,1011,- 3,300,147,0,1011,1012,3,326,160,0,1012,167,1,0,0,0,1013,1014,3,322,- 158,0,1014,1015,3,292,143,0,1015,1016,3,326,160,0,1016,1017,3,330,- 162,0,1017,1018,3,308,151,0,1018,1019,3,330,162,0,1019,1020,3,308,- 151,0,1020,1021,3,320,157,0,1021,1022,3,318,156,0,1022,169,1,0,0,- 0,1023,1024,3,322,158,0,1024,1025,3,308,151,0,1025,1026,3,334,164,- 0,1026,1027,3,320,157,0,1027,1028,3,330,162,0,1028,171,1,0,0,0,1029,- 1030,3,322,158,0,1030,1031,3,320,157,0,1031,1032,3,328,161,0,1032,- 1033,3,308,151,0,1033,1034,3,330,162,0,1034,1035,3,308,151,0,1035,- 1036,3,320,157,0,1036,1037,3,318,156,0,1037,1038,3,292,143,0,1038,- 1039,3,314,154,0,1039,173,1,0,0,0,1040,1041,3,322,158,0,1041,1042,- 3,326,160,0,1042,1043,3,300,147,0,1043,1044,3,296,145,0,1044,1045,- 3,300,147,0,1045,1046,3,298,146,0,1046,1047,3,308,151,0,1047,1048,- 3,318,156,0,1048,1049,3,304,149,0,1049,175,1,0,0,0,1050,1051,3,322,- 158,0,1051,1052,3,326,160,0,1052,1053,3,300,147,0,1053,1054,3,336,- 165,0,1054,1055,3,306,150,0,1055,1056,3,300,147,0,1056,1057,3,326,- 160,0,1057,1058,3,300,147,0,1058,177,1,0,0,0,1059,1060,3,324,159,- 0,1060,1061,3,332,163,0,1061,1062,3,292,143,0,1062,1063,3,314,154,- 0,1063,1064,3,308,151,0,1064,1065,3,302,148,0,1065,1066,3,340,167,- 0,1066,179,1,0,0,0,1067,1068,3,324,159,0,1068,1069,3,332,163,0,1069,- 1070,3,292,143,0,1070,1071,3,326,160,0,1071,1072,3,330,162,0,1072,- 1073,3,300,147,0,1073,1074,3,326,160,0,1074,181,1,0,0,0,1075,1076,- 3,326,160,0,1076,1077,3,292,143,0,1077,1078,3,318,156,0,1078,1079,- 3,304,149,0,1079,1080,3,300,147,0,1080,183,1,0,0,0,1081,1082,3,326,- 160,0,1082,1083,3,300,147,0,1083,1084,3,296,145,0,1084,1085,3,332,- 163,0,1085,1086,3,326,160,0,1086,1087,3,328,161,0,1087,1088,3,308,- 151,0,1088,1089,3,334,164,0,1089,1090,3,300,147,0,1090,185,1,0,0,- 0,1091,1092,3,326,160,0,1092,1093,3,300,147,0,1093,1094,3,322,158,- 0,1094,1095,3,314,154,0,1095,1096,3,292,143,0,1096,1097,3,296,145,- 0,1097,1098,3,300,147,0,1098,187,1,0,0,0,1099,1100,3,326,160,0,1100,- 1101,3,300,147,0,1101,1102,3,330,162,0,1102,1103,3,332,163,0,1103,- 1104,3,326,160,0,1104,1105,3,318,156,0,1105,189,1,0,0,0,1106,1107,- 3,326,160,0,1107,1108,3,308,151,0,1108,1109,3,304,149,0,1109,1110,- 3,306,150,0,1110,1111,3,330,162,0,1111,191,1,0,0,0,1112,1113,3,326,- 160,0,1113,1114,3,320,157,0,1114,1115,3,314,154,0,1115,1116,3,314,- 154,0,1116,1117,3,332,163,0,1117,1118,3,322,158,0,1118,193,1,0,0,- 0,1119,1120,3,326,160,0,1120,1121,3,320,157,0,1121,1122,3,336,165,- 0,1122,195,1,0,0,0,1123,1124,3,326,160,0,1124,1125,3,320,157,0,1125,- 1126,3,336,165,0,1126,1127,3,328,161,0,1127,197,1,0,0,0,1128,1129,- 3,328,161,0,1129,1130,3,292,143,0,1130,1131,3,316,155,0,1131,1132,- 3,322,158,0,1132,1133,3,314,154,0,1133,1134,3,300,147,0,1134,199,- 1,0,0,0,1135,1136,3,328,161,0,1136,1137,3,300,147,0,1137,1138,3,- 296,145,0,1138,1139,3,320,157,0,1139,1140,3,318,156,0,1140,1141,- 3,298,146,0,1141,201,1,0,0,0,1142,1143,3,328,161,0,1143,1144,3,300,- 147,0,1144,1145,3,314,154,0,1145,1146,3,300,147,0,1146,1147,3,296,- 145,0,1147,1148,3,330,162,0,1148,203,1,0,0,0,1149,1150,3,328,161,- 0,1150,1151,3,300,147,0,1151,1152,3,316,155,0,1152,1153,3,308,151,- 0,1153,205,1,0,0,0,1154,1155,3,328,161,0,1155,1156,3,300,147,0,1156,- 1157,3,330,162,0,1157,1158,3,328,161,0,1158,207,1,0,0,0,1159,1160,- 3,328,161,0,1160,1161,3,300,147,0,1161,1162,3,330,162,0,1162,1163,- 3,330,162,0,1163,1164,3,308,151,0,1164,1165,3,318,156,0,1165,1166,- 3,304,149,0,1166,1167,3,328,161,0,1167,209,1,0,0,0,1168,1169,3,328,- 161,0,1169,1170,3,330,162,0,1170,1171,3,300,147,0,1171,1172,3,322,- 158,0,1172,211,1,0,0,0,1173,1174,3,328,161,0,1174,1175,3,332,163,- 0,1175,1176,3,294,144,0,1176,1177,3,328,161,0,1177,1178,3,330,162,- 0,1178,1179,3,326,160,0,1179,1180,3,308,151,0,1180,1181,3,318,156,- 0,1181,1182,3,304,149,0,1182,213,1,0,0,0,1183,1184,3,330,162,0,1184,- 1185,3,306,150,0,1185,1186,3,300,147,0,1186,1187,3,318,156,0,1187,- 215,1,0,0,0,1188,1189,3,330,162,0,1189,1190,3,306,150,0,1190,1191,- 3,326,160,0,1191,1192,3,320,157,0,1192,1193,3,336,165,0,1193,217,- 1,0,0,0,1194,1195,3,330,162,0,1195,1196,3,308,151,0,1196,1197,3,- 300,147,0,1197,1198,3,328,161,0,1198,219,1,0,0,0,1199,1200,3,330,- 162,0,1200,1201,3,308,151,0,1201,1202,3,316,155,0,1202,1203,3,300,- 147,0,1203,1204,3,328,161,0,1204,1205,3,330,162,0,1205,1206,3,292,- 143,0,1206,1207,3,316,155,0,1207,1208,3,322,158,0,1208,221,1,0,0,- 0,1209,1210,3,330,162,0,1210,1211,3,308,151,0,1211,1212,3,316,155,- 0,1212,1213,3,300,147,0,1213,223,1,0,0,0,1214,1215,3,314,154,0,1215,- 1216,3,320,157,0,1216,1217,3,296,145,0,1217,1218,3,292,143,0,1218,- 1219,3,314,154,0,1219,225,1,0,0,0,1220,1221,3,342,168,0,1221,1222,- 3,320,157,0,1222,1223,3,318,156,0,1223,1224,3,300,147,0,1224,227,- 1,0,0,0,1225,1226,3,330,162,0,1226,1227,3,320,157,0,1227,229,1,0,- 0,0,1228,1229,3,330,162,0,1229,1230,3,320,157,0,1230,1231,3,322,- 158,0,1231,231,1,0,0,0,1232,1233,3,330,162,0,1233,1234,3,320,157,- 0,1234,1235,3,330,162,0,1235,1236,3,292,143,0,1236,1237,3,314,154,- 0,1237,1238,3,328,161,0,1238,233,1,0,0,0,1239,1240,3,330,162,0,1240,- 1241,3,326,160,0,1241,1242,3,292,143,0,1242,1243,3,308,151,0,1243,- 1244,3,314,154,0,1244,1245,3,308,151,0,1245,1246,3,318,156,0,1246,- 1247,3,304,149,0,1247,235,1,0,0,0,1248,1249,3,330,162,0,1249,1250,- 3,326,160,0,1250,1251,3,308,151,0,1251,1252,3,316,155,0,1252,237,- 1,0,0,0,1253,1254,3,330,162,0,1254,1255,3,326,160,0,1255,1256,3,- 332,163,0,1256,1257,3,318,156,0,1257,1258,3,296,145,0,1258,1259,- 3,292,143,0,1259,1260,3,330,162,0,1260,1261,3,300,147,0,1261,239,- 1,0,0,0,1262,1263,3,330,162,0,1263,1264,3,326,160,0,1264,1265,3,- 340,167,0,1265,241,1,0,0,0,1266,1267,3,330,162,0,1267,1268,3,326,- 160,0,1268,1269,3,340,167,0,1269,1270,5,95,0,0,1270,1271,3,296,145,- 0,1271,1272,3,292,143,0,1272,1273,3,328,161,0,1273,1274,3,330,162,- 0,1274,243,1,0,0,0,1275,1276,3,332,163,0,1276,1277,3,318,156,0,1277,- 1278,3,294,144,0,1278,1279,3,320,157,0,1279,1280,3,332,163,0,1280,- 1281,3,318,156,0,1281,1282,3,298,146,0,1282,1283,3,300,147,0,1283,- 1284,3,298,146,0,1284,245,1,0,0,0,1285,1286,3,332,163,0,1286,1287,- 3,318,156,0,1287,1288,3,308,151,0,1288,1289,3,320,157,0,1289,1290,- 3,318,156,0,1290,247,1,0,0,0,1291,1292,3,332,163,0,1292,1293,3,318,- 156,0,1293,1294,3,322,158,0,1294,1295,3,308,151,0,1295,1296,3,334,- 164,0,1296,1297,3,320,157,0,1297,1298,3,330,162,0,1298,249,1,0,0,- 0,1299,1300,3,332,163,0,1300,1301,3,328,161,0,1301,1302,3,308,151,- 0,1302,1303,3,318,156,0,1303,1304,3,304,149,0,1304,251,1,0,0,0,1305,- 1306,3,334,164,0,1306,1307,3,292,143,0,1307,1308,3,314,154,0,1308,- 1309,3,332,163,0,1309,1310,3,300,147,0,1310,1311,3,328,161,0,1311,- 253,1,0,0,0,1312,1313,3,336,165,0,1313,1314,3,300,147,0,1314,1315,- 3,300,147,0,1315,1316,3,312,153,0,1316,255,1,0,0,0,1317,1318,3,336,- 165,0,1318,1319,3,306,150,0,1319,1320,3,300,147,0,1320,1321,3,318,- 156,0,1321,257,1,0,0,0,1322,1323,3,336,165,0,1323,1324,3,306,150,- 0,1324,1325,3,300,147,0,1325,1326,3,326,160,0,1326,1327,3,300,147,- 0,1327,259,1,0,0,0,1328,1329,3,336,165,0,1329,1330,3,306,150,0,1330,- 1331,3,308,151,0,1331,1332,3,314,154,0,1332,1333,3,300,147,0,1333,- 261,1,0,0,0,1334,1335,3,336,165,0,1335,1336,3,308,151,0,1336,1337,- 3,318,156,0,1337,1338,3,298,146,0,1338,1339,3,320,157,0,1339,1340,- 3,336,165,0,1340,263,1,0,0,0,1341,1342,3,336,165,0,1342,1343,3,308,- 151,0,1343,1344,3,330,162,0,1344,1345,3,306,150,0,1345,265,1,0,0,- 0,1346,1347,3,336,165,0,1347,1348,3,308,151,0,1348,1349,3,330,162,- 0,1349,1350,3,306,150,0,1350,1351,3,308,151,0,1351,1352,3,318,156,- 0,1352,267,1,0,0,0,1353,1354,3,340,167,0,1354,1355,3,300,147,0,1355,- 1356,3,292,143,0,1356,1357,3,326,160,0,1357,1364,1,0,0,0,1358,1359,- 3,340,167,0,1359,1360,3,340,167,0,1360,1361,3,340,167,0,1361,1362,- 3,340,167,0,1362,1364,1,0,0,0,1363,1353,1,0,0,0,1363,1358,1,0,0,- 0,1364,269,1,0,0,0,1365,1366,3,360,177,0,1366,1367,3,294,144,0,1367,- 1398,1,0,0,0,1368,1369,3,360,177,0,1369,1370,3,302,148,0,1370,1398,- 1,0,0,0,1371,1372,3,360,177,0,1372,1373,3,326,160,0,1373,1398,1,- 0,0,0,1374,1375,3,360,177,0,1375,1376,3,318,156,0,1376,1398,1,0,- 0,0,1377,1378,3,360,177,0,1378,1379,3,330,162,0,1379,1398,1,0,0,- 0,1380,1381,3,360,177,0,1381,1382,5,48,0,0,1382,1398,1,0,0,0,1383,- 1384,3,360,177,0,1384,1385,3,292,143,0,1385,1398,1,0,0,0,1386,1387,- 3,360,177,0,1387,1388,3,334,164,0,1388,1398,1,0,0,0,1389,1390,3,- 360,177,0,1390,1391,3,360,177,0,1391,1398,1,0,0,0,1392,1393,3,360,- 177,0,1393,1394,3,338,166,0,1394,1395,3,352,173,0,1395,1396,3,352,- 173,0,1396,1398,1,0,0,0,1397,1365,1,0,0,0,1397,1368,1,0,0,0,1397,- 1371,1,0,0,0,1397,1374,1,0,0,0,1397,1377,1,0,0,0,1397,1380,1,0,0,- 0,1397,1383,1,0,0,0,1397,1386,1,0,0,0,1397,1389,1,0,0,0,1397,1392,- 1,0,0,0,1398,271,1,0,0,0,1399,1403,3,344,169,0,1400,1403,3,450,222,- 0,1401,1403,3,374,184,0,1402,1399,1,0,0,0,1402,1400,1,0,0,0,1402,- 1401,1,0,0,0,1403,1410,1,0,0,0,1404,1409,3,344,169,0,1405,1409,3,- 450,222,0,1406,1409,3,350,172,0,1407,1409,3,374,184,0,1408,1404,- 1,0,0,0,1408,1405,1,0,0,0,1408,1406,1,0,0,0,1408,1407,1,0,0,0,1409,- 1412,1,0,0,0,1410,1408,1,0,0,0,1410,1411,1,0,0,0,1411,273,1,0,0,- 0,1412,1410,1,0,0,0,1413,1424,3,358,176,0,1414,1423,8,0,0,0,1415,- 1423,3,270,132,0,1416,1417,3,360,177,0,1417,1418,3,432,213,0,1418,- 1423,1,0,0,0,1419,1420,3,358,176,0,1420,1421,3,358,176,0,1421,1423,- 1,0,0,0,1422,1414,1,0,0,0,1422,1415,1,0,0,0,1422,1416,1,0,0,0,1422,- 1419,1,0,0,0,1423,1426,1,0,0,0,1424,1422,1,0,0,0,1424,1425,1,0,0,- 0,1425,1427,1,0,0,0,1426,1424,1,0,0,0,1427,1428,3,358,176,0,1428,- 1446,1,0,0,0,1429,1440,3,426,210,0,1430,1439,8,1,0,0,1431,1439,3,- 270,132,0,1432,1433,3,360,177,0,1433,1434,3,426,210,0,1434,1439,- 1,0,0,0,1435,1436,3,426,210,0,1436,1437,3,426,210,0,1437,1439,1,- 0,0,0,1438,1430,1,0,0,0,1438,1431,1,0,0,0,1438,1432,1,0,0,0,1438,- 1435,1,0,0,0,1439,1442,1,0,0,0,1440,1438,1,0,0,0,1440,1441,1,0,0,- 0,1441,1443,1,0,0,0,1442,1440,1,0,0,0,1443,1444,3,426,210,0,1444,- 1446,1,0,0,0,1445,1413,1,0,0,0,1445,1429,1,0,0,0,1446,275,1,0,0,- 0,1447,1448,3,284,139,0,1448,1452,3,376,185,0,1449,1451,3,352,173,- 0,1450,1449,1,0,0,0,1451,1454,1,0,0,0,1452,1450,1,0,0,0,1452,1453,- 1,0,0,0,1453,1455,1,0,0,0,1454,1452,1,0,0,0,1455,1458,3,322,158,- 0,1456,1459,3,422,208,0,1457,1459,3,372,183,0,1458,1456,1,0,0,0,- 1458,1457,1,0,0,0,1458,1459,1,0,0,0,1459,1461,1,0,0,0,1460,1462,- 3,350,172,0,1461,1460,1,0,0,0,1462,1463,1,0,0,0,1463,1461,1,0,0,- 0,1463,1464,1,0,0,0,1464,1518,1,0,0,0,1465,1466,3,284,139,0,1466,- 1469,3,322,158,0,1467,1470,3,422,208,0,1468,1470,3,372,183,0,1469,- 1467,1,0,0,0,1469,1468,1,0,0,0,1469,1470,1,0,0,0,1470,1472,1,0,0,- 0,1471,1473,3,350,172,0,1472,1471,1,0,0,0,1473,1474,1,0,0,0,1474,- 1472,1,0,0,0,1474,1475,1,0,0,0,1475,1518,1,0,0,0,1476,1477,3,282,- 138,0,1477,1481,3,376,185,0,1478,1480,3,350,172,0,1479,1478,1,0,- 0,0,1480,1483,1,0,0,0,1481,1479,1,0,0,0,1481,1482,1,0,0,0,1482,1484,- 1,0,0,0,1483,1481,1,0,0,0,1484,1487,3,300,147,0,1485,1488,3,422,- 208,0,1486,1488,3,372,183,0,1487,1485,1,0,0,0,1487,1486,1,0,0,0,- 1487,1488,1,0,0,0,1488,1490,1,0,0,0,1489,1491,3,350,172,0,1490,1489,- 1,0,0,0,1491,1492,1,0,0,0,1492,1490,1,0,0,0,1492,1493,1,0,0,0,1493,- 1518,1,0,0,0,1494,1495,3,376,185,0,1495,1496,3,282,138,0,1496,1499,- 3,300,147,0,1497,1500,3,422,208,0,1498,1500,3,372,183,0,1499,1497,- 1,0,0,0,1499,1498,1,0,0,0,1499,1500,1,0,0,0,1500,1502,1,0,0,0,1501,- 1503,3,350,172,0,1502,1501,1,0,0,0,1503,1504,1,0,0,0,1504,1502,1,- 0,0,0,1504,1505,1,0,0,0,1505,1518,1,0,0,0,1506,1507,3,282,138,0,- 1507,1510,3,300,147,0,1508,1511,3,422,208,0,1509,1511,3,372,183,- 0,1510,1508,1,0,0,0,1510,1509,1,0,0,0,1510,1511,1,0,0,0,1511,1513,- 1,0,0,0,1512,1514,3,350,172,0,1513,1512,1,0,0,0,1514,1515,1,0,0,- 0,1515,1513,1,0,0,0,1515,1516,1,0,0,0,1516,1518,1,0,0,0,1517,1447,- 1,0,0,0,1517,1465,1,0,0,0,1517,1476,1,0,0,0,1517,1494,1,0,0,0,1517,- 1506,1,0,0,0,1518,277,1,0,0,0,1519,1520,5,48,0,0,1520,1522,3,294,- 144,0,1521,1523,3,346,170,0,1522,1521,1,0,0,0,1523,1524,1,0,0,0,- 1524,1522,1,0,0,0,1524,1525,1,0,0,0,1525,279,1,0,0,0,1526,1528,5,- 48,0,0,1527,1529,3,348,171,0,1528,1527,1,0,0,0,1529,1530,1,0,0,0,- 1530,1528,1,0,0,0,1530,1531,1,0,0,0,1531,281,1,0,0,0,1532,1534,3,- 350,172,0,1533,1532,1,0,0,0,1534,1535,1,0,0,0,1535,1533,1,0,0,0,- 1535,1536,1,0,0,0,1536,283,1,0,0,0,1537,1538,5,48,0,0,1538,1540,- 3,338,166,0,1539,1541,3,352,173,0,1540,1539,1,0,0,0,1541,1542,1,- 0,0,0,1542,1540,1,0,0,0,1542,1543,1,0,0,0,1543,285,1,0,0,0,1544,- 1545,5,48,0,0,1545,1547,7,2,0,0,1546,1548,3,350,172,0,1547,1546,- 1,0,0,0,1548,1549,1,0,0,0,1549,1547,1,0,0,0,1549,1550,1,0,0,0,1550,- 287,1,0,0,0,1551,1552,5,48,0,0,1552,1554,7,3,0,0,1553,1555,3,350,- 172,0,1554,1553,1,0,0,0,1555,1556,1,0,0,0,1556,1554,1,0,0,0,1556,- 1557,1,0,0,0,1557,289,1,0,0,0,1558,1569,3,432,213,0,1559,1568,8,- 4,0,0,1560,1568,3,270,132,0,1561,1562,3,360,177,0,1562,1563,3,432,- 213,0,1563,1568,1,0,0,0,1564,1565,3,432,213,0,1565,1566,3,432,213,- 0,1566,1568,1,0,0,0,1567,1559,1,0,0,0,1567,1560,1,0,0,0,1567,1561,- 1,0,0,0,1567,1564,1,0,0,0,1568,1571,1,0,0,0,1569,1567,1,0,0,0,1569,- 1570,1,0,0,0,1570,1572,1,0,0,0,1571,1569,1,0,0,0,1572,1573,3,432,- 213,0,1573,291,1,0,0,0,1574,1575,7,5,0,0,1575,293,1,0,0,0,1576,1577,- 7,3,0,0,1577,295,1,0,0,0,1578,1579,7,6,0,0,1579,297,1,0,0,0,1580,- 1581,7,7,0,0,1581,299,1,0,0,0,1582,1583,7,8,0,0,1583,301,1,0,0,0,- 1584,1585,7,9,0,0,1585,303,1,0,0,0,1586,1587,7,10,0,0,1587,305,1,- 0,0,0,1588,1589,7,11,0,0,1589,307,1,0,0,0,1590,1591,7,12,0,0,1591,- 309,1,0,0,0,1592,1593,7,13,0,0,1593,311,1,0,0,0,1594,1595,7,14,0,- 0,1595,313,1,0,0,0,1596,1597,7,15,0,0,1597,315,1,0,0,0,1598,1599,- 7,16,0,0,1599,317,1,0,0,0,1600,1601,7,17,0,0,1601,319,1,0,0,0,1602,- 1603,7,2,0,0,1603,321,1,0,0,0,1604,1605,7,18,0,0,1605,323,1,0,0,- 0,1606,1607,7,19,0,0,1607,325,1,0,0,0,1608,1609,7,20,0,0,1609,327,- 1,0,0,0,1610,1611,7,21,0,0,1611,329,1,0,0,0,1612,1613,7,22,0,0,1613,- 331,1,0,0,0,1614,1615,7,23,0,0,1615,333,1,0,0,0,1616,1617,7,24,0,- 0,1617,335,1,0,0,0,1618,1619,7,25,0,0,1619,337,1,0,0,0,1620,1621,- 7,26,0,0,1621,339,1,0,0,0,1622,1623,7,27,0,0,1623,341,1,0,0,0,1624,- 1625,7,28,0,0,1625,343,1,0,0,0,1626,1627,7,29,0,0,1627,345,1,0,0,- 0,1628,1629,7,30,0,0,1629,347,1,0,0,0,1630,1631,7,31,0,0,1631,349,- 1,0,0,0,1632,1633,7,32,0,0,1633,351,1,0,0,0,1634,1635,7,33,0,0,1635,- 353,1,0,0,0,1636,1637,5,45,0,0,1637,1638,5,62,0,0,1638,355,1,0,0,- 0,1639,1640,5,42,0,0,1640,357,1,0,0,0,1641,1642,5,96,0,0,1642,359,- 1,0,0,0,1643,1644,5,92,0,0,1644,361,1,0,0,0,1645,1646,5,58,0,0,1646,- 1647,5,58,0,0,1647,363,1,0,0,0,1648,1649,5,58,0,0,1649,1650,5,61,- 0,0,1650,365,1,0,0,0,1651,1652,5,58,0,0,1652,367,1,0,0,0,1653,1654,- 5,44,0,0,1654,369,1,0,0,0,1655,1656,5,124,0,0,1656,1657,5,124,0,- 0,1657,371,1,0,0,0,1658,1659,5,45,0,0,1659,373,1,0,0,0,1660,1661,- 5,36,0,0,1661,375,1,0,0,0,1662,1663,5,46,0,0,1663,377,1,0,0,0,1664,- 1665,5,61,0,0,1665,1666,5,61,0,0,1666,379,1,0,0,0,1667,1668,5,61,- 0,0,1668,381,1,0,0,0,1669,1670,5,62,0,0,1670,1671,5,61,0,0,1671,- 383,1,0,0,0,1672,1673,5,62,0,0,1673,385,1,0,0,0,1674,1675,5,35,0,- 0,1675,387,1,0,0,0,1676,1677,5,126,0,0,1677,1678,5,42,0,0,1678,389,- 1,0,0,0,1679,1680,5,61,0,0,1680,1681,5,126,0,0,1681,1682,5,42,0,- 0,1682,391,1,0,0,0,1683,1684,5,123,0,0,1684,1685,1,0,0,0,1685,1686,- 6,193,0,0,1686,393,1,0,0,0,1687,1688,5,91,0,0,1688,395,1,0,0,0,1689,- 1690,5,40,0,0,1690,397,1,0,0,0,1691,1692,5,60,0,0,1692,1693,5,61,- 0,0,1693,1694,5,62,0,0,1694,399,1,0,0,0,1695,1696,5,60,0,0,1696,- 1697,5,61,0,0,1697,401,1,0,0,0,1698,1699,5,60,0,0,1699,1700,5,47,- 0,0,1700,1701,1,0,0,0,1701,1702,6,198,1,0,1702,1703,6,198,2,0,1703,- 403,1,0,0,0,1704,1705,5,60,0,0,1705,1706,4,199,0,0,1706,1707,1,0,- 0,0,1707,1708,6,199,3,0,1708,1709,6,199,4,0,1709,405,1,0,0,0,1710,- 1711,5,60,0,0,1711,407,1,0,0,0,1712,1713,5,60,0,0,1713,1714,5,47,- 0,0,1714,409,1,0,0,0,1715,1716,5,33,0,0,1716,1720,5,61,0,0,1717,- 1718,5,60,0,0,1718,1720,5,62,0,0,1719,1715,1,0,0,0,1719,1717,1,0,- 0,0,1720,411,1,0,0,0,1721,1722,5,33,0,0,1722,1723,5,126,0,0,1723,- 1724,5,42,0,0,1724,413,1,0,0,0,1725,1726,5,33,0,0,1726,1727,5,126,- 0,0,1727,415,1,0,0,0,1728,1729,5,63,0,0,1729,1730,5,46,0,0,1730,- 417,1,0,0,0,1731,1732,5,63,0,0,1732,1733,5,63,0,0,1733,419,1,0,0,- 0,1734,1735,5,37,0,0,1735,421,1,0,0,0,1736,1737,5,43,0,0,1737,423,- 1,0,0,0,1738,1739,5,63,0,0,1739,425,1,0,0,0,1740,1741,5,34,0,0,1741,- 427,1,0,0,0,1742,1743,5,102,0,0,1743,1744,5,39,0,0,1744,1745,1,0,- 0,0,1745,1746,6,211,5,0,1746,429,1,0,0,0,1747,1748,5,70,0,0,1748,- 1749,5,39,0,0,1749,1750,1,0,0,0,1750,1751,6,212,6,0,1751,431,1,0,- 0,0,1752,1753,5,39,0,0,1753,433,1,0,0,0,1754,1755,5,126,0,0,1755,- 435,1,0,0,0,1756,1757,5,61,0,0,1757,1758,5,126,0,0,1758,437,1,0,- 0,0,1759,1760,5,125,0,0,1760,1761,1,0,0,0,1761,1762,6,216,7,0,1762,- 439,1,0,0,0,1763,1764,5,93,0,0,1764,441,1,0,0,0,1765,1766,5,41,0,- 0,1766,443,1,0,0,0,1767,1768,5,59,0,0,1768,445,1,0,0,0,1769,1770,- 5,47,0,0,1770,447,1,0,0,0,1771,1772,5,47,0,0,1772,1773,5,62,0,0,- 1773,449,1,0,0,0,1774,1775,5,95,0,0,1775,451,1,0,0,0,1776,1777,5,- 47,0,0,1777,1778,5,42,0,0,1778,1782,1,0,0,0,1779,1781,9,0,0,0,1780,- 1779,1,0,0,0,1781,1784,1,0,0,0,1782,1783,1,0,0,0,1782,1780,1,0,0,- 0,1783,1785,1,0,0,0,1784,1782,1,0,0,0,1785,1786,5,42,0,0,1786,1787,- 5,47,0,0,1787,1788,1,0,0,0,1788,1789,6,223,8,0,1789,453,1,0,0,0,- 1790,1791,5,45,0,0,1791,1795,5,45,0,0,1792,1793,5,47,0,0,1793,1795,- 5,47,0,0,1794,1790,1,0,0,0,1794,1792,1,0,0,0,1795,1799,1,0,0,0,1796,- 1798,8,34,0,0,1797,1796,1,0,0,0,1798,1801,1,0,0,0,1799,1797,1,0,- 0,0,1799,1800,1,0,0,0,1800,1803,1,0,0,0,1801,1799,1,0,0,0,1802,1804,- 7,35,0,0,1803,1802,1,0,0,0,1804,1805,1,0,0,0,1805,1806,6,224,8,0,- 1806,455,1,0,0,0,1807,1815,5,35,0,0,1808,1812,8,36,0,0,1809,1811,- 8,34,0,0,1810,1809,1,0,0,0,1811,1814,1,0,0,0,1812,1810,1,0,0,0,1812,- 1813,1,0,0,0,1813,1816,1,0,0,0,1814,1812,1,0,0,0,1815,1808,1,0,0,- 0,1815,1816,1,0,0,0,1816,1818,1,0,0,0,1817,1819,7,35,0,0,1818,1817,- 1,0,0,0,1819,1820,1,0,0,0,1820,1821,6,225,8,0,1821,457,1,0,0,0,1822,- 1823,7,37,0,0,1823,1824,1,0,0,0,1824,1825,6,226,9,0,1825,459,1,0,- 0,0,1826,1827,9,0,0,0,1827,461,1,0,0,0,1828,1840,8,38,0,0,1829,1840,- 3,270,132,0,1830,1831,3,360,177,0,1831,1832,3,432,213,0,1832,1840,- 1,0,0,0,1833,1834,3,360,177,0,1834,1835,3,392,193,0,1835,1840,1,- 0,0,0,1836,1837,3,432,213,0,1837,1838,3,432,213,0,1838,1840,1,0,- 0,0,1839,1828,1,0,0,0,1839,1829,1,0,0,0,1839,1830,1,0,0,0,1839,1833,- 1,0,0,0,1839,1836,1,0,0,0,1840,1841,1,0,0,0,1841,1839,1,0,0,0,1841,- 1842,1,0,0,0,1842,463,1,0,0,0,1843,1844,3,392,193,0,1844,1845,1,- 0,0,0,1845,1846,6,229,0,0,1846,465,1,0,0,0,1847,1848,3,432,213,0,- 1848,1849,1,0,0,0,1849,1850,6,230,10,0,1850,1851,6,230,7,0,1851,- 467,1,0,0,0,1852,1858,8,39,0,0,1853,1858,3,270,132,0,1854,1855,3,- 360,177,0,1855,1856,3,392,193,0,1856,1858,1,0,0,0,1857,1852,1,0,- 0,0,1857,1853,1,0,0,0,1857,1854,1,0,0,0,1858,1859,1,0,0,0,1859,1857,- 1,0,0,0,1859,1860,1,0,0,0,1860,469,1,0,0,0,1861,1862,3,392,193,0,- 1862,1863,1,0,0,0,1863,1864,6,232,0,0,1864,471,1,0,0,0,1865,1866,- 5,47,0,0,1866,1867,5,62,0,0,1867,1868,1,0,0,0,1868,1869,6,233,11,- 0,1869,1870,6,233,7,0,1870,473,1,0,0,0,1871,1872,5,62,0,0,1872,1873,- 1,0,0,0,1873,1874,6,234,12,0,1874,1875,6,234,7,0,1875,1876,6,234,- 13,0,1876,475,1,0,0,0,1877,1878,5,47,0,0,1878,1879,5,42,0,0,1879,- 1883,1,0,0,0,1880,1882,9,0,0,0,1881,1880,1,0,0,0,1882,1885,1,0,0,- 0,1883,1884,1,0,0,0,1883,1881,1,0,0,0,1884,1886,1,0,0,0,1885,1883,- 1,0,0,0,1886,1887,5,42,0,0,1887,1888,5,47,0,0,1888,1889,1,0,0,0,- 1889,1890,6,235,8,0,1890,477,1,0,0,0,1891,1892,5,45,0,0,1892,1896,- 5,45,0,0,1893,1894,5,47,0,0,1894,1896,5,47,0,0,1895,1891,1,0,0,0,- 1895,1893,1,0,0,0,1896,1900,1,0,0,0,1897,1899,8,34,0,0,1898,1897,- 1,0,0,0,1899,1902,1,0,0,0,1900,1898,1,0,0,0,1900,1901,1,0,0,0,1901,- 1904,1,0,0,0,1902,1900,1,0,0,0,1903,1905,7,35,0,0,1904,1903,1,0,- 0,0,1905,1906,1,0,0,0,1906,1907,6,236,8,0,1907,479,1,0,0,0,1908,- 1912,7,40,0,0,1909,1911,7,41,0,0,1910,1909,1,0,0,0,1911,1914,1,0,- 0,0,1912,1910,1,0,0,0,1912,1913,1,0,0,0,1913,1915,1,0,0,0,1914,1912,- 1,0,0,0,1915,1916,6,237,14,0,1916,481,1,0,0,0,1917,1918,5,61,0,0,- 1918,1919,1,0,0,0,1919,1920,6,238,15,0,1920,483,1,0,0,0,1921,1922,- 3,290,142,0,1922,1923,1,0,0,0,1923,1924,6,239,16,0,1924,485,1,0,- 0,0,1925,1927,7,42,0,0,1926,1925,1,0,0,0,1927,1928,1,0,0,0,1928,- 1926,1,0,0,0,1928,1929,1,0,0,0,1929,1930,1,0,0,0,1930,1931,6,240,- 9,0,1931,487,1,0,0,0,1932,1933,5,123,0,0,1933,1934,1,0,0,0,1934,- 1935,6,241,17,0,1935,1936,6,241,0,0,1936,489,1,0,0,0,1937,1938,9,- 0,0,0,1938,1939,1,0,0,0,1939,1940,6,242,18,0,1940,491,1,0,0,0,1941,- 1942,5,62,0,0,1942,1943,1,0,0,0,1943,1944,6,243,12,0,1944,1945,6,- 243,7,0,1945,493,1,0,0,0,1946,1947,5,47,0,0,1947,1948,5,42,0,0,1948,- 1952,1,0,0,0,1949,1951,9,0,0,0,1950,1949,1,0,0,0,1951,1954,1,0,0,- 0,1952,1953,1,0,0,0,1952,1950,1,0,0,0,1953,1955,1,0,0,0,1954,1952,- 1,0,0,0,1955,1956,5,42,0,0,1956,1957,5,47,0,0,1957,1958,1,0,0,0,- 1958,1959,6,244,8,0,1959,495,1,0,0,0,1960,1961,5,45,0,0,1961,1965,- 5,45,0,0,1962,1963,5,47,0,0,1963,1965,5,47,0,0,1964,1960,1,0,0,0,- 1964,1962,1,0,0,0,1965,1969,1,0,0,0,1966,1968,8,34,0,0,1967,1966,- 1,0,0,0,1968,1971,1,0,0,0,1969,1967,1,0,0,0,1969,1970,1,0,0,0,1970,- 1973,1,0,0,0,1971,1969,1,0,0,0,1972,1974,7,35,0,0,1973,1972,1,0,- 0,0,1974,1975,1,0,0,0,1975,1976,6,245,8,0,1976,497,1,0,0,0,1977,- 1981,7,40,0,0,1978,1980,7,41,0,0,1979,1978,1,0,0,0,1980,1983,1,0,- 0,0,1981,1979,1,0,0,0,1981,1982,1,0,0,0,1982,1984,1,0,0,0,1983,1981,- 1,0,0,0,1984,1985,6,246,14,0,1985,499,1,0,0,0,1986,1988,7,42,0,0,- 1987,1986,1,0,0,0,1988,1989,1,0,0,0,1989,1987,1,0,0,0,1989,1990,- 1,0,0,0,1990,1991,1,0,0,0,1991,1992,6,247,9,0,1992,501,1,0,0,0,1993,- 1994,9,0,0,0,1994,1995,1,0,0,0,1995,1996,6,248,18,0,1996,503,1,0,- 0,0,1997,1999,8,43,0,0,1998,1997,1,0,0,0,1999,2000,1,0,0,0,2000,- 1998,1,0,0,0,2000,2001,1,0,0,0,2001,505,1,0,0,0,2002,2003,5,123,- 0,0,2003,2004,1,0,0,0,2004,2005,6,250,17,0,2005,2006,6,250,0,0,2006,- 507,1,0,0,0,2007,2008,5,60,0,0,2008,2009,5,47,0,0,2009,2010,1,0,- 0,0,2010,2011,6,251,1,0,2011,2012,6,251,7,0,2012,2013,6,251,2,0,- 2013,509,1,0,0,0,2014,2015,5,60,0,0,2015,2016,1,0,0,0,2016,2017,- 6,252,3,0,2017,2018,6,252,4,0,2018,511,1,0,0,0,2019,2021,7,42,0,- 0,2020,2019,1,0,0,0,2021,2022,1,0,0,0,2022,2020,1,0,0,0,2022,2023,- 1,0,0,0,2023,2024,1,0,0,0,2024,2025,6,253,9,0,2025,513,1,0,0,0,65,- 0,1,2,3,4,5,554,834,1363,1397,1402,1408,1410,1422,1424,1438,1440,- 1445,1452,1458,1463,1469,1474,1481,1487,1492,1499,1504,1510,1515,- 1517,1524,1530,1535,1542,1549,1556,1567,1569,1719,1782,1794,1799,- 1803,1812,1815,1818,1839,1841,1857,1859,1883,1895,1900,1904,1912,- 1928,1952,1964,1969,1973,1981,1989,2000,2022,19,5,0,0,7,169,0,5,- 4,0,7,168,0,5,3,0,5,1,0,5,2,0,4,0,0,6,0,0,0,1,0,7,181,0,7,189,0,- 7,159,0,5,5,0,7,134,0,7,157,0,7,143,0,7,163,0,7,195,0- ]--class HogQLLexer(Lexer):-- atn = ATNDeserializer().deserialize(serializedATN())-- decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]-- IN_TEMPLATE_STRING = 1- IN_FULL_TEMPLATE_STRING = 2- HOGQLX_TAG_OPEN = 3- HOGQLX_TAG_CLOSE = 4- HOGQLX_TEXT = 5-- ALL = 1- AND = 2- ANTI = 3- ANY = 4- ARRAY = 5- AS = 6- ASCENDING = 7- ASOF = 8- BETWEEN = 9- BOTH = 10- BY = 11- CASE = 12- CAST = 13- CATCH = 14- COHORT = 15- COLLATE = 16- COLUMNS = 17- CROSS = 18- CUBE = 19- CURRENT = 20- DATE = 21- DAY = 22- DESC = 23- DESCENDING = 24- DISTINCT = 25- ELSE = 26- END = 27- EXCEPT = 28- EXCLUDE = 29- EXTRACT = 30- FINAL = 31- FILL = 32- FILTER = 33- FINALLY = 34- FIRST = 35- FN = 36- FOLLOWING = 37- FOR = 38- FROM = 39- FULL = 40- FUN = 41- GROUP = 42- GROUPING = 43- HAVING = 44- HOUR = 45- ID = 46- IF = 47- ILIKE = 48- IGNORE = 49- INCLUDE = 50- IN = 51- INF = 52- INNER = 53- INTERSECT = 54- INTERPOLATE = 55- INTERVAL = 56- IS = 57- JOIN = 58- KEY = 59- LAMBDA = 60- LAST = 61- LEADING = 62- LEFT = 63- LET = 64- LIKE = 65- LIMIT = 66- MATERIALIZED = 67- MINUTE = 68- MONTH = 69- NAME = 70- NATURAL = 71- NAN_SQL = 72- NOT = 73- NULL_SQL = 74- NULLS = 75- OFFSET = 76- ON = 77- OR = 78- ORDER = 79- OUTER = 80- OVER = 81- PARTITION = 82- PIVOT = 83- POSITIONAL = 84- PRECEDING = 85- PREWHERE = 86- QUALIFY = 87- QUARTER = 88- RANGE = 89- RECURSIVE = 90- REPLACE = 91- RETURN = 92- RIGHT = 93- ROLLUP = 94- ROW = 95- ROWS = 96- SAMPLE = 97- SECOND = 98- SELECT = 99- SEMI = 100- SETS = 101- SETTINGS = 102- STEP = 103- SUBSTRING = 104- THEN = 105- THROW = 106- TIES = 107- TIMESTAMP = 108- TIME = 109- LOCAL = 110- ZONE = 111- TO = 112- TOP = 113- TOTALS = 114- TRAILING = 115- TRIM = 116- TRUNCATE = 117- TRY = 118- TRY_CAST = 119- UNBOUNDED = 120- UNION = 121- UNPIVOT = 122- USING = 123- VALUES = 124- WEEK = 125- WHEN = 126- WHERE = 127- WHILE = 128- WINDOW = 129- WITH = 130- WITHIN = 131- YEAR = 132- ESCAPE_CHAR_COMMON = 133- IDENTIFIER = 134- QUOTED_IDENTIFIER = 135- FLOATING_LITERAL = 136- BINARY_LITERAL = 137- OCTAL_LITERAL = 138- DECIMAL_LITERAL = 139- HEXADECIMAL_LITERAL = 140- OCTAL_PREFIX_LITERAL = 141- MALFORMED_BINARY_LITERAL = 142- STRING_LITERAL = 143- ARROW = 144- ASTERISK = 145- BACKQUOTE = 146- BACKSLASH = 147- DOUBLECOLON = 148- COLONEQUALS = 149- COLON = 150- COMMA = 151- CONCAT = 152- DASH = 153- DOLLAR = 154- DOT = 155- EQ_DOUBLE = 156- EQ_SINGLE = 157- GT_EQ = 158- GT = 159- HASH = 160- IREGEX_SINGLE = 161- IREGEX_DOUBLE = 162- LBRACE = 163- LBRACKET = 164- LPAREN = 165- NULL_SAFE_EQ = 166- LT_EQ = 167- LT = 168- LT_SLASH = 169- NOT_EQ = 170- NOT_IREGEX = 171- NOT_REGEX = 172- NULL_PROPERTY = 173- NULLISH = 174- PERCENT = 175- PLUS = 176- QUERY = 177- QUOTE_DOUBLE = 178- QUOTE_SINGLE_TEMPLATE = 179- QUOTE_SINGLE_TEMPLATE_FULL = 180- QUOTE_SINGLE = 181- REGEX_SINGLE = 182- REGEX_DOUBLE = 183- RBRACE = 184- RBRACKET = 185- RPAREN = 186- SEMICOLON = 187- SLASH = 188- SLASH_GT = 189- UNDERSCORE = 190- MULTI_LINE_COMMENT = 191- SINGLE_LINE_COMMENT = 192- HASH_COMMENT = 193- WHITESPACE = 194- UNEXPECTED_CHARACTER = 195- STRING_TEXT = 196- STRING_ESCAPE_TRIGGER = 197- FULL_STRING_TEXT = 198- FULL_STRING_ESCAPE_TRIGGER = 199- TAG_MULTI_LINE_COMMENT = 200- TAG_SINGLE_LINE_COMMENT = 201- TAG_WS = 202- TAGC_MULTI_LINE_COMMENT = 203- TAGC_SINGLE_LINE_COMMENT = 204- TAGC_WS = 205- HOGQLX_TEXT_TEXT = 206- HOGQLX_TEXT_WS = 207-- channelNames = [ u"DEFAULT_TOKEN_CHANNEL", u"HIDDEN" ]-- modeNames = [ "DEFAULT_MODE", "IN_TEMPLATE_STRING", "IN_FULL_TEMPLATE_STRING",- "HOGQLX_TAG_OPEN", "HOGQLX_TAG_CLOSE", "HOGQLX_TEXT" ]-- literalNames = [ "<INVALID>",- "'->'", "'*'", "'`'", "'\\'", "'::'", "':='", "':'", "','",- "'||'", "'-'", "'$'", "'.'", "'=='", "'>='", "'#'", "'~*'",- "'=~*'", "'{'", "'['", "'('", "'<=>'", "'<='", "'<'", "'</'",- "'!~*'", "'!~'", "'?.'", "'??'", "'%'", "'+'", "'?'", "'\"'",- "'f''", "'F''", "'''", "'~'", "'=~'", "'}'", "']'", "')'", "';'",- "'/'", "'_'" ]-- symbolicNames = [ "<INVALID>",- "ALL", "AND", "ANTI", "ANY", "ARRAY", "AS", "ASCENDING", "ASOF",- "BETWEEN", "BOTH", "BY", "CASE", "CAST", "CATCH", "COHORT",- "COLLATE", "COLUMNS", "CROSS", "CUBE", "CURRENT", "DATE", "DAY",- "DESC", "DESCENDING", "DISTINCT", "ELSE", "END", "EXCEPT", "EXCLUDE",- "EXTRACT", "FINAL", "FILL", "FILTER", "FINALLY", "FIRST", "FN",- "FOLLOWING", "FOR", "FROM", "FULL", "FUN", "GROUP", "GROUPING",- "HAVING", "HOUR", "ID", "IF", "ILIKE", "IGNORE", "INCLUDE",- "IN", "INF", "INNER", "INTERSECT", "INTERPOLATE", "INTERVAL",- "IS", "JOIN", "KEY", "LAMBDA", "LAST", "LEADING", "LEFT", "LET",- "LIKE", "LIMIT", "MATERIALIZED", "MINUTE", "MONTH", "NAME",- "NATURAL", "NAN_SQL", "NOT", "NULL_SQL", "NULLS", "OFFSET",- "ON", "OR", "ORDER", "OUTER", "OVER", "PARTITION", "PIVOT",- "POSITIONAL", "PRECEDING", "PREWHERE", "QUALIFY", "QUARTER",- "RANGE", "RECURSIVE", "REPLACE", "RETURN", "RIGHT", "ROLLUP",- "ROW", "ROWS", "SAMPLE", "SECOND", "SELECT", "SEMI", "SETS",- "SETTINGS", "STEP", "SUBSTRING", "THEN", "THROW", "TIES", "TIMESTAMP",- "TIME", "LOCAL", "ZONE", "TO", "TOP", "TOTALS", "TRAILING",- "TRIM", "TRUNCATE", "TRY", "TRY_CAST", "UNBOUNDED", "UNION",- "UNPIVOT", "USING", "VALUES", "WEEK", "WHEN", "WHERE", "WHILE",- "WINDOW", "WITH", "WITHIN", "YEAR", "ESCAPE_CHAR_COMMON", "IDENTIFIER",- "QUOTED_IDENTIFIER", "FLOATING_LITERAL", "BINARY_LITERAL", "OCTAL_LITERAL",- "DECIMAL_LITERAL", "HEXADECIMAL_LITERAL", "OCTAL_PREFIX_LITERAL",- "MALFORMED_BINARY_LITERAL", "STRING_LITERAL", "ARROW", "ASTERISK",- "BACKQUOTE", "BACKSLASH", "DOUBLECOLON", "COLONEQUALS", "COLON",- "COMMA", "CONCAT", "DASH", "DOLLAR", "DOT", "EQ_DOUBLE", "EQ_SINGLE",- "GT_EQ", "GT", "HASH", "IREGEX_SINGLE", "IREGEX_DOUBLE", "LBRACE",- "LBRACKET", "LPAREN", "NULL_SAFE_EQ", "LT_EQ", "LT", "LT_SLASH",- "NOT_EQ", "NOT_IREGEX", "NOT_REGEX", "NULL_PROPERTY", "NULLISH",- "PERCENT", "PLUS", "QUERY", "QUOTE_DOUBLE", "QUOTE_SINGLE_TEMPLATE",- "QUOTE_SINGLE_TEMPLATE_FULL", "QUOTE_SINGLE", "REGEX_SINGLE",- "REGEX_DOUBLE", "RBRACE", "RBRACKET", "RPAREN", "SEMICOLON",- "SLASH", "SLASH_GT", "UNDERSCORE", "MULTI_LINE_COMMENT", "SINGLE_LINE_COMMENT",- "HASH_COMMENT", "WHITESPACE", "UNEXPECTED_CHARACTER", "STRING_TEXT",- "STRING_ESCAPE_TRIGGER", "FULL_STRING_TEXT", "FULL_STRING_ESCAPE_TRIGGER",- "TAG_MULTI_LINE_COMMENT", "TAG_SINGLE_LINE_COMMENT", "TAG_WS",- "TAGC_MULTI_LINE_COMMENT", "TAGC_SINGLE_LINE_COMMENT", "TAGC_WS",- "HOGQLX_TEXT_TEXT", "HOGQLX_TEXT_WS" ]-- ruleNames = [ "ALL", "AND", "ANTI", "ANY", "ARRAY", "AS", "ASCENDING",- "ASOF", "BETWEEN", "BOTH", "BY", "CASE", "CAST", "CATCH",- "COHORT", "COLLATE", "COLUMNS", "CROSS", "CUBE", "CURRENT",- "DATE", "DAY", "DESC", "DESCENDING", "DISTINCT", "ELSE",- "END", "EXCEPT", "EXCLUDE", "EXTRACT", "FINAL", "FILL",- "FILTER", "FINALLY", "FIRST", "FN", "FOLLOWING", "FOR",- "FROM", "FULL", "FUN", "GROUP", "GROUPING", "HAVING",- "HOUR", "ID", "IF", "ILIKE", "IGNORE", "INCLUDE", "IN",- "INF", "INNER", "INTERSECT", "INTERPOLATE", "INTERVAL",- "IS", "JOIN", "KEY", "LAMBDA", "LAST", "LEADING", "LEFT",- "LET", "LIKE", "LIMIT", "MATERIALIZED", "MINUTE", "MONTH",- "NAME", "NATURAL", "NAN_SQL", "NOT", "NULL_SQL", "NULLS",- "OFFSET", "ON", "OR", "ORDER", "OUTER", "OVER", "PARTITION",- "PIVOT", "POSITIONAL", "PRECEDING", "PREWHERE", "QUALIFY",- "QUARTER", "RANGE", "RECURSIVE", "REPLACE", "RETURN",- "RIGHT", "ROLLUP", "ROW", "ROWS", "SAMPLE", "SECOND",- "SELECT", "SEMI", "SETS", "SETTINGS", "STEP", "SUBSTRING",- "THEN", "THROW", "TIES", "TIMESTAMP", "TIME", "LOCAL",- "ZONE", "TO", "TOP", "TOTALS", "TRAILING", "TRIM", "TRUNCATE",- "TRY", "TRY_CAST", "UNBOUNDED", "UNION", "UNPIVOT", "USING",- "VALUES", "WEEK", "WHEN", "WHERE", "WHILE", "WINDOW",- "WITH", "WITHIN", "YEAR", "ESCAPE_CHAR_COMMON", "IDENTIFIER",- "QUOTED_IDENTIFIER", "FLOATING_LITERAL", "BINARY_LITERAL",- "OCTAL_LITERAL", "DECIMAL_LITERAL", "HEXADECIMAL_LITERAL",- "OCTAL_PREFIX_LITERAL", "MALFORMED_BINARY_LITERAL", "STRING_LITERAL",- "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K",- "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V",- "W", "X", "Y", "Z", "LETTER", "BIN_DIGIT", "OCT_DIGIT",- "DEC_DIGIT", "HEX_DIGIT", "ARROW", "ASTERISK", "BACKQUOTE",- "BACKSLASH", "DOUBLECOLON", "COLONEQUALS", "COLON", "COMMA",- "CONCAT", "DASH", "DOLLAR", "DOT", "EQ_DOUBLE", "EQ_SINGLE",- "GT_EQ", "GT", "HASH", "IREGEX_SINGLE", "IREGEX_DOUBLE",- "LBRACE", "LBRACKET", "LPAREN", "NULL_SAFE_EQ", "LT_EQ",- "TAG_LT_SLASH", "TAG_LT_OPEN", "LT", "LT_SLASH", "NOT_EQ",- "NOT_IREGEX", "NOT_REGEX", "NULL_PROPERTY", "NULLISH",- "PERCENT", "PLUS", "QUERY", "QUOTE_DOUBLE", "QUOTE_SINGLE_TEMPLATE",- "QUOTE_SINGLE_TEMPLATE_FULL", "QUOTE_SINGLE", "REGEX_SINGLE",- "REGEX_DOUBLE", "RBRACE", "RBRACKET", "RPAREN", "SEMICOLON",- "SLASH", "SLASH_GT", "UNDERSCORE", "MULTI_LINE_COMMENT",- "SINGLE_LINE_COMMENT", "HASH_COMMENT", "WHITESPACE", "UNEXPECTED_CHARACTER",- "STRING_TEXT", "STRING_ESCAPE_TRIGGER", "STRING_QUOTE_SINGLE",- "FULL_STRING_TEXT", "FULL_STRING_ESCAPE_TRIGGER", "TAG_SELF_CLOSE_GT",- "TAG_OPEN_GT", "TAG_MULTI_LINE_COMMENT", "TAG_SINGLE_LINE_COMMENT",- "TAG_IDENT", "TAG_EQ", "TAG_STRING", "TAG_WS", "TAG_LBRACE",- "TAG_UNEXPECTED", "TAGC_GT", "TAGC_MULTI_LINE_COMMENT",- "TAGC_SINGLE_LINE_COMMENT", "TAGC_IDENT", "TAGC_WS", "TAGC_UNEXPECTED",- "HOGQLX_TEXT_TEXT", "HOGQLX_TEXT_LBRACE", "HOGQLX_TEXT_LT_SLASH",- "HOGQLX_TEXT_LT", "HOGQLX_TEXT_WS" ]-- grammarFileName = "HogQLLexer.g4"-- def __init__(self, input=None, output:TextIO = sys.stdout):- super().__init__(input, output)- self.checkVersion("4.13.2")- self._interp = LexerATNSimulator(self, self.atn, self.decisionsToDFA, PredictionContextCache())- self._actions = None- self._predicates = None---- def _peek_char(self, k: int) -> str:- """Return the k-th look-ahead as a *single-char string* or '\0' at EOF."""- c = self._input.LA(k) # int code point or IntStream.EOF (-1)- if c < 0 or c > 0x10FFFF: # EOF or out-of-range → sentinel- return '\0'- return chr(c)-- def _skip_ws_and_comments(self, idx: int) -> int:- """Return the first index ≥ idx that is *not* whitespace / single-line comment."""- while True:- ch = self._peek_char(idx)- if ch.isspace(): # spaces, newlines, tabs …- idx += 1- continue-- # single-line comments- if ch == '/' and self._peek_char(idx + 1) == '/': # //- idx += 2- elif ch == '-' and self._peek_char(idx + 1) == '-': # --- idx += 2- elif ch == '#': # #- idx += 1- else:- break # no ws / comment- # consume until EOL / EOF- while self._peek_char(idx) not in ('\0', '\n', '\r'):- idx += 1- return idx-- # ───── opening tag test ─────- def isOpeningTag(self) -> bool:- ch1 = self._peek_char(1)- if not (ch1.isalpha() or ch1 == '_'):- return False # not a tag name start-- # skip tag name- i = 2- while True:- ch = self._peek_char(i)- if ch.isalnum() or ch in ('_', '-'):- i += 1- else:- break-- ch = self._peek_char(i)-- # immediate delimiter → tag- if ch in ('>', '/'):- return True-- # need to look beyond whitespace- if ch.isspace():- i = self._skip_ws_and_comments(i + 1)- ch = self._peek_char(i)- return ch in ('>', '/') or ch.isalnum() or ch == '_'-- # anything else → not a tag- return False---- def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int):- if self._predicates is None:- preds = dict()- preds[199] = self.TAG_LT_OPEN_sempred- self._predicates = preds- pred = self._predicates.get(ruleIndex, None)- if pred is not None:- return pred(localctx, predIndex)- else:- raise Exception("No registered predicate for:" + str(ruleIndex))-- def TAG_LT_OPEN_sempred(self, localctx:RuleContext, predIndex:int):- if predIndex == 0:- return self.isOpeningTag()---diff --git a/posthog/hogql/grammar/HogQLLexer.python.g4 b/posthog/hogql/grammar/HogQLLexer.python.g4deleted file mode 100644index 8fa1dc47e976..000000000000--- a/posthog/hogql/grammar/HogQLLexer.python.g4+++ /dev/null@@ -1,71 +0,0 @@-lexer grammar HogQLLexer;--@header {--# put any global imports you need here-import sys--}--@members {--def _peek_char(self, k: int) -> str:- """Return the k-th look-ahead as a *single-char string* or '\0' at EOF."""- c = self._input.LA(k) # int code point or IntStream.EOF (-1)- if c < 0 or c > 0x10FFFF: # EOF or out-of-range → sentinel- return '\0'- return chr(c)--def _skip_ws_and_comments(self, idx: int) -> int:- """Return the first index ≥ idx that is *not* whitespace / single-line comment."""- while True:- ch = self._peek_char(idx)- if ch.isspace(): # spaces, newlines, tabs …- idx += 1- continue-- # single-line comments- if ch == '/' and self._peek_char(idx + 1) == '/': # //- idx += 2- elif ch == '-' and self._peek_char(idx + 1) == '-': # --- idx += 2- elif ch == '#': # #- idx += 1- else:- break # no ws / comment- # consume until EOL / EOF- while self._peek_char(idx) not in ('\0', '\n', '\r'):- idx += 1- return idx--# ───── opening tag test ─────-def isOpeningTag(self) -> bool:- ch1 = self._peek_char(1)- if not (ch1.isalpha() or ch1 == '_'):- return False # not a tag name start-- # skip tag name- i = 2- while True:- ch = self._peek_char(i)- if ch.isalnum() or ch in ('_', '-'):- i += 1- else:- break-- ch = self._peek_char(i)-- # immediate delimiter → tag- if ch in ('>', '/'):- return True-- # need to look beyond whitespace- if ch.isspace():- i = self._skip_ws_and_comments(i + 1)- ch = self._peek_char(i)- return ch in ('>', '/') or ch.isalnum() or ch == '_'-- # anything else → not a tag- return False--}diff --git a/posthog/hogql/grammar/HogQLLexer.tokens b/posthog/hogql/grammar/HogQLLexer.tokensdeleted file mode 100644index ec8049642de3..000000000000--- a/posthog/hogql/grammar/HogQLLexer.tokens+++ /dev/null@@ -1,250 +0,0 @@-ALL=1-AND=2-ANTI=3-ANY=4-ARRAY=5-AS=6-ASCENDING=7-ASOF=8-BETWEEN=9-BOTH=10-BY=11-CASE=12-CAST=13-CATCH=14-COHORT=15-COLLATE=16-COLUMNS=17-CROSS=18-CUBE=19-CURRENT=20-DATE=21-DAY=22-DESC=23-DESCENDING=24-DISTINCT=25-ELSE=26-END=27-EXCEPT=28-EXCLUDE=29-EXTRACT=30-FINAL=31-FILL=32-FILTER=33-FINALLY=34-FIRST=35-FN=36-FOLLOWING=37-FOR=38-FROM=39-FULL=40-FUN=41-GROUP=42-GROUPING=43-HAVING=44-HOUR=45-ID=46-IF=47-ILIKE=48-IGNORE=49-INCLUDE=50-IN=51-INF=52-INNER=53-INTERSECT=54-INTERPOLATE=55-INTERVAL=56-IS=57-JOIN=58-KEY=59-LAMBDA=60-LAST=61-LEADING=62-LEFT=63-LET=64-LIKE=65-LIMIT=66-MATERIALIZED=67-MINUTE=68-MONTH=69-NAME=70-NATURAL=71-NAN_SQL=72-NOT=73-NULL_SQL=74-NULLS=75-OFFSET=76-ON=77-OR=78-ORDER=79-OUTER=80-OVER=81-PARTITION=82-PIVOT=83-POSITIONAL=84-PRECEDING=85-PREWHERE=86-QUALIFY=87-QUARTER=88-RANGE=89-RECURSIVE=90-REPLACE=91-RETURN=92-RIGHT=93-ROLLUP=94-ROW=95-ROWS=96-SAMPLE=97-SECOND=98-SELECT=99-SEMI=100-SETS=101-SETTINGS=102-STEP=103-SUBSTRING=104-THEN=105-THROW=106-TIES=107-TIMESTAMP=108-TIME=109-LOCAL=110-ZONE=111-TO=112-TOP=113-TOTALS=114-TRAILING=115-TRIM=116-TRUNCATE=117-TRY=118-TRY_CAST=119-UNBOUNDED=120-UNION=121-UNPIVOT=122-USING=123-VALUES=124-WEEK=125-WHEN=126-WHERE=127-WHILE=128-WINDOW=129-WITH=130-WITHIN=131-YEAR=132-ESCAPE_CHAR_COMMON=133-IDENTIFIER=134-QUOTED_IDENTIFIER=135-FLOATING_LITERAL=136-BINARY_LITERAL=137-OCTAL_LITERAL=138-DECIMAL_LITERAL=139-HEXADECIMAL_LITERAL=140-OCTAL_PREFIX_LITERAL=141-MALFORMED_BINARY_LITERAL=142-STRING_LITERAL=143-ARROW=144-ASTERISK=145-BACKQUOTE=146-BACKSLASH=147-DOUBLECOLON=148-COLONEQUALS=149-COLON=150-COMMA=151-CONCAT=152-DASH=153-DOLLAR=154-DOT=155-EQ_DOUBLE=156-EQ_SINGLE=157-GT_EQ=158-GT=159-HASH=160-IREGEX_SINGLE=161-IREGEX_DOUBLE=162-LBRACE=163-LBRACKET=164-LPAREN=165-NULL_SAFE_EQ=166-LT_EQ=167-LT=168-LT_SLASH=169-NOT_EQ=170-NOT_IREGEX=171-NOT_REGEX=172-NULL_PROPERTY=173-NULLISH=174-PERCENT=175-PLUS=176-QUERY=177-QUOTE_DOUBLE=178-QUOTE_SINGLE_TEMPLATE=179-QUOTE_SINGLE_TEMPLATE_FULL=180-QUOTE_SINGLE=181-REGEX_SINGLE=182-REGEX_DOUBLE=183-RBRACE=184-RBRACKET=185-RPAREN=186-SEMICOLON=187-SLASH=188-SLASH_GT=189-UNDERSCORE=190-MULTI_LINE_COMMENT=191-SINGLE_LINE_COMMENT=192-HASH_COMMENT=193-WHITESPACE=194-UNEXPECTED_CHARACTER=195-STRING_TEXT=196-STRING_ESCAPE_TRIGGER=197-FULL_STRING_TEXT=198-FULL_STRING_ESCAPE_TRIGGER=199-TAG_MULTI_LINE_COMMENT=200-TAG_SINGLE_LINE_COMMENT=201-TAG_WS=202-TAGC_MULTI_LINE_COMMENT=203-TAGC_SINGLE_LINE_COMMENT=204-TAGC_WS=205-HOGQLX_TEXT_TEXT=206-HOGQLX_TEXT_WS=207-'->'=144-'*'=145-'`'=146-'\\'=147-'::'=148-':='=149-':'=150-','=151-'||'=152-'-'=153-'$'=154-'.'=155-'=='=156-'>='=158-'#'=160-'~*'=161-'=~*'=162-'{'=163-'['=164-'('=165-'<=>'=166-'<='=167-'<'=168-'</'=169-'!~*'=171-'!~'=172-'?.'=173-'??'=174-'%'=175-'+'=176-'?'=177-'"'=178-'f\''=179-'F\''=180-'\''=181-'~'=182-'=~'=183-'}'=184-']'=185-')'=186-';'=187-'/'=188-'_'=190diff --git a/posthog/hogql/grammar/HogQLParser.interp b/posthog/hogql/grammar/HogQLParser.interpdeleted file mode 100644index 5dc03f5e808a..000000000000--- a/posthog/hogql/grammar/HogQLParser.interp+++ /dev/null@@ -1,543 +0,0 @@-token literal names:-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-'->'-'*'-'`'-'\\'-'::'-':='-':'-','-'||'-'-'-'$'-'.'-'=='-null-'>='-null-'#'-'~*'-'=~*'-'{'-'['-'('-'<=>'-'<='-'<'-'</'-null-'!~*'-'!~'-'?.'-'??'-'%'-'+'-'?'-'"'-'f\''-'F\''-'\''-'~'-'=~'-'}'-']'-')'-';'-'/'-null-'_'-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null-null--token symbolic names:-null-ALL-AND-ANTI-ANY-ARRAY-AS-ASCENDING-ASOF-BETWEEN-BOTH-BY-CASE-CAST-CATCH-COHORT-COLLATE-COLUMNS-CROSS-CUBE-CURRENT-DATE-DAY-DESC-DESCENDING-DISTINCT-ELSE-END-EXCEPT-EXCLUDE-EXTRACT-FINAL-FILL-FILTER-FINALLY-FIRST-FN-FOLLOWING-FOR-FROM-FULL-FUN-GROUP-GROUPING-HAVING-HOUR-ID-IF-ILIKE-IGNORE-INCLUDE-IN-INF-INNER-INTERSECT-INTERPOLATE-INTERVAL-IS-JOIN-KEY-LAMBDA-LAST-LEADING-LEFT-LET-LIKE-LIMIT-MATERIALIZED-MINUTE-MONTH-NAME-NATURAL-NAN_SQL-NOT-NULL_SQL-NULLS-OFFSET-ON-OR-ORDER-OUTER-OVER-PARTITION-PIVOT-POSITIONAL-PRECEDING-PREWHERE-QUALIFY-QUARTER-RANGE-RECURSIVE-REPLACE-RETURN-RIGHT-ROLLUP-ROW-ROWS-SAMPLE-SECOND-SELECT-SEMI-SETS-SETTINGS-STEP-SUBSTRING-THEN-THROW-TIES-TIMESTAMP-TIME-LOCAL-ZONE-TO-TOP-TOTALS-TRAILING-TRIM-TRUNCATE-TRY-TRY_CAST-UNBOUNDED-UNION-UNPIVOT-USING-VALUES-WEEK-WHEN-WHERE-WHILE-WINDOW-WITH-WITHIN-YEAR-ESCAPE_CHAR_COMMON-IDENTIFIER-QUOTED_IDENTIFIER-FLOATING_LITERAL-BINARY_LITERAL-OCTAL_LITERAL-DECIMAL_LITERAL-HEXADECIMAL_LITERAL-OCTAL_PREFIX_LITERAL-MALFORMED_BINARY_LITERAL-STRING_LITERAL-ARROW-ASTERISK-BACKQUOTE-BACKSLASH-DOUBLECOLON-COLONEQUALS-COLON-COMMA-CONCAT-DASH-DOLLAR-DOT-EQ_DOUBLE-EQ_SINGLE-GT_EQ-GT-HASH-IREGEX_SINGLE-IREGEX_DOUBLE-LBRACE-LBRACKET-LPAREN-NULL_SAFE_EQ-LT_EQ-LT-LT_SLASH-NOT_EQ-NOT_IREGEX-NOT_REGEX-NULL_PROPERTY-NULLISH-PERCENT-PLUS-QUERY-QUOTE_DOUBLE-QUOTE_SINGLE_TEMPLATE-QUOTE_SINGLE_TEMPLATE_FULL-QUOTE_SINGLE-REGEX_SINGLE-REGEX_DOUBLE-RBRACE-RBRACKET-RPAREN-SEMICOLON-SLASH-SLASH_GT-UNDERSCORE-MULTI_LINE_COMMENT-SINGLE_LINE_COMMENT-HASH_COMMENT-WHITESPACE-UNEXPECTED_CHARACTER-STRING_TEXT-STRING_ESCAPE_TRIGGER-FULL_STRING_TEXT-FULL_STRING_ESCAPE_TRIGGER-TAG_MULTI_LINE_COMMENT-TAG_SINGLE_LINE_COMMENT-TAG_WS-TAGC_MULTI_LINE_COMMENT-TAGC_SINGLE_LINE_COMMENT-TAGC_WS-HOGQLX_TEXT_TEXT-HOGQLX_TEXT_WS--rule names:-program-declaration-expression-varDecl-identifierList-statement-returnStmt-throwStmt-catchBlock-tryCatchStmt-ifStmt-whileStmt-forStmt-forInStmt-funcStmt-varAssignment-exprStmt-emptyStmt-block-kvPair-kvPairList-select-selectStmtWithParens-subsequentSelectSetClause-selectSetStmt-limitAndOffsetClauseOptional-selectStmt-withClause-topClause-fromClause-arrayJoinClause-windowClause-prewhereClause-whereClause-groupByClause-groupingSetList-groupingSet-havingClause-qualifyClause-orderByClause-interpolateClause-projectionOrderByClause-limitByClause-limitAndOffsetClause-offsetOnlyClause-settingsClause-valuesClause-valuesRow-joinExpr-joinOp-joinOpCross-joinConstraintClause-sampleClause-limitExpr-orderExprList-orderExpr-withFillClause-interpolateExpr-ratioExpr-settingExprList-settingExpr-windowExpr-winPartitionByClause-winOrderByClause-withinGroupClause-winFrameClause-winFrameExtend-winFrameBound-expr-columnTypeExpr-columnTypeCastExpr-columnTypeCastIdentifier-keywordForTypeCast-columnExprList-selectColumnExprListBeforeFrom-selectColumnExprList-selectColumnExpr-columnExpr-columnLambdaExpr-columnsReplaceList-columnsReplaceItem-hogqlxChildElement-hogqlxText-hogqlxTagElement-hogqlxTagAttribute-withExprList-withExpr-withExprColumnNameList-columnIdentifier-nestedIdentifier-tableExpr-pivotColumnList-pivotColumn-unpivotColumnList-unpivotColumn-columnExprTupleOrSingle-columnAliases-tableFunctionExpr-tableIdentifier-tableArgList-databaseIdentifier-floatingLiteral-numberLiteral-literal-interval-keyword-keywordForAlias-keywordForImplicitAlias-alias-implicitAlias-identifier-enumValue-placeholder-string-templateString-stringContents-fullTemplateString-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 filediff --git a/posthog/hogql/grammar/HogQLParser.py b/posthog/hogql/grammar/HogQLParser.pydeleted file mode 100644index 6c51c92b1392..000000000000--- a/posthog/hogql/grammar/HogQLParser.py+++ /dev/null@@ -1,15350 +0,0 @@-# Generated from HogQLParser.g4 by ANTLR 4.13.2-# encoding: utf-8-from antlr4 import *-from io import StringIO-import sys-if sys.version_info[1] > 5:- from typing import TextIO-else:- from typing.io import TextIO--def serializedATN():- return [- 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- ]--class HogQLParser ( Parser ):-- grammarFileName = "HogQLParser.g4"-- atn = ATNDeserializer().deserialize(serializedATN())-- decisionsToDFA = [ DFA(ds, i) for i, ds in enumerate(atn.decisionToState) ]-- sharedContextCache = PredictionContextCache()-- literalNames = [ "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "<INVALID>", "<INVALID>", "<INVALID>", "<INVALID>",- "'->'", "'*'", "'`'", "'\\'", "'::'", "':='", "':'",- "','", "'||'", "'-'", "'$'", "'.'", "'=='", "<INVALID>",- "'>='", "<INVALID>", "'#'", "'~*'", "'=~*'", "'{'",- "'['", "'('", "'<=>'", "'<='", "'<'", "'</'", "<INVALID>",- "'!~*'", "'!~'", "'?.'", "'??'", "'%'", "'+'", "'?'",- "'\"'", "'f''", "'F''", "'''", "'~'", "'=~'", "'}'",- "']'", "')'", "';'", "'/'", "<INVALID>", "'_'" ]-- symbolicNames = [ "<INVALID>", "ALL", "AND", "ANTI", "ANY", "ARRAY",- "AS", "ASCENDING", "ASOF", "BETWEEN", "BOTH", "BY",- "CASE", "CAST", "CATCH", "COHORT", "COLLATE", "COLUMNS",- "CROSS", "CUBE", "CURRENT", "DATE", "DAY", "DESC",- "DESCENDING", "DISTINCT", "ELSE", "END", "EXCEPT",- "EXCLUDE", "EXTRACT", "FINAL", "FILL", "FILTER", "FINALLY",- "FIRST", "FN", "FOLLOWING", "FOR", "FROM", "FULL",- "FUN", "GROUP", "GROUPING", "HAVING", "HOUR", "ID",- "IF", "ILIKE", "IGNORE", "INCLUDE", "IN", "INF", "INNER",- "INTERSECT", "INTERPOLATE", "INTERVAL", "IS", "JOIN",- "KEY", "LAMBDA", "LAST", "LEADING", "LEFT", "LET",- "LIKE", "LIMIT", "MATERIALIZED", "MINUTE", "MONTH",- "NAME", "NATURAL", "NAN_SQL", "NOT", "NULL_SQL", "NULLS",- "OFFSET", "ON", "OR", "ORDER", "OUTER", "OVER", "PARTITION",- "PIVOT", "POSITIONAL", "PRECEDING", "PREWHERE", "QUALIFY",- "QUARTER", "RANGE", "RECURSIVE", "REPLACE", "RETURN",- "RIGHT", "ROLLUP", "ROW", "ROWS", "SAMPLE", "SECOND",- "SELECT", "SEMI", "SETS", "SETTINGS", "STEP", "SUBSTRING",- "THEN", "THROW", "TIES", "TIMESTAMP", "TIME", "LOCAL",- "ZONE", "TO", "TOP", "TOTALS", "TRAILING", "TRIM",- "TRUNCATE", "TRY", "TRY_CAST", "UNBOUNDED", "UNION",- "UNPIVOT", "USING", "VALUES", "WEEK", "WHEN", "WHERE",- "WHILE", "WINDOW", "WITH", "WITHIN", "YEAR", "ESCAPE_CHAR_COMMON",- "IDENTIFIER", "QUOTED_IDENTIFIER", "FLOATING_LITERAL",- "BINARY_LITERAL", "OCTAL_LITERAL", "DECIMAL_LITERAL",- "HEXADECIMAL_LITERAL", "OCTAL_PREFIX_LITERAL", "MALFORMED_BINARY_LITERAL",- "STRING_LITERAL", "ARROW", "ASTERISK", "BACKQUOTE",- "BACKSLASH", "DOUBLECOLON", "COLONEQUALS", "COLON",- "COMMA", "CONCAT", "DASH", "DOLLAR", "DOT", "EQ_DOUBLE",- "EQ_SINGLE", "GT_EQ", "GT", "HASH", "IREGEX_SINGLE",- "IREGEX_DOUBLE", "LBRACE", "LBRACKET", "LPAREN", "NULL_SAFE_EQ",- "LT_EQ", "LT", "LT_SLASH", "NOT_EQ", "NOT_IREGEX",- "NOT_REGEX", "NULL_PROPERTY", "NULLISH", "PERCENT",- "PLUS", "QUERY", "QUOTE_DOUBLE", "QUOTE_SINGLE_TEMPLATE",- "QUOTE_SINGLE_TEMPLATE_FULL", "QUOTE_SINGLE", "REGEX_SINGLE",- "REGEX_DOUBLE", "RBRACE", "RBRACKET", "RPAREN", "SEMICOLON",- "SLASH", "SLASH_GT", "UNDERSCORE", "MULTI_LINE_COMMENT",- "SINGLE_LINE_COMMENT", "HASH_COMMENT", "WHITESPACE",- "UNEXPECTED_CHARACTER", "STRING_TEXT", "STRING_ESCAPE_TRIGGER",- "FULL_STRING_TEXT", "FULL_STRING_ESCAPE_TRIGGER",- "TAG_MULTI_LINE_COMMENT", "TAG_SINGLE_LINE_COMMENT",- "TAG_WS", "TAGC_MULTI_LINE_COMMENT", "TAGC_SINGLE_LINE_COMMENT",- "TAGC_WS", "HOGQLX_TEXT_TEXT", "HOGQLX_TEXT_WS" ]-- RULE_program = 0- RULE_declaration = 1- RULE_expression = 2- RULE_varDecl = 3- RULE_identifierList = 4- RULE_statement = 5- RULE_returnStmt = 6- RULE_throwStmt = 7- RULE_catchBlock = 8- RULE_tryCatchStmt = 9- RULE_ifStmt = 10- RULE_whileStmt = 11- RULE_forStmt = 12- RULE_forInStmt = 13- RULE_funcStmt = 14- RULE_varAssignment = 15- RULE_exprStmt = 16- RULE_emptyStmt = 17- RULE_block = 18- RULE_kvPair = 19- RULE_kvPairList = 20- RULE_select = 21- RULE_selectStmtWithParens = 22- RULE_subsequentSelectSetClause = 23- RULE_selectSetStmt = 24- RULE_limitAndOffsetClauseOptional = 25- RULE_selectStmt = 26- RULE_withClause = 27- RULE_topClause = 28- RULE_fromClause = 29- RULE_arrayJoinClause = 30- RULE_windowClause = 31- RULE_prewhereClause = 32- RULE_whereClause = 33- RULE_groupByClause = 34- RULE_groupingSetList = 35- RULE_groupingSet = 36- RULE_havingClause = 37- RULE_qualifyClause = 38- RULE_orderByClause = 39- RULE_interpolateClause = 40- RULE_projectionOrderByClause = 41- RULE_limitByClause = 42- RULE_limitAndOffsetClause = 43- RULE_offsetOnlyClause = 44- RULE_settingsClause = 45- RULE_valuesClause = 46- RULE_valuesRow = 47- RULE_joinExpr = 48- RULE_joinOp = 49- RULE_joinOpCross = 50- RULE_joinConstraintClause = 51- RULE_sampleClause = 52- RULE_limitExpr = 53- RULE_orderExprList = 54- RULE_orderExpr = 55- RULE_withFillClause = 56- RULE_interpolateExpr = 57- RULE_ratioExpr = 58- RULE_settingExprList = 59- RULE_settingExpr = 60- RULE_windowExpr = 61- RULE_winPartitionByClause = 62- RULE_winOrderByClause = 63- RULE_withinGroupClause = 64- RULE_winFrameClause = 65- RULE_winFrameExtend = 66- RULE_winFrameBound = 67- RULE_expr = 68- RULE_columnTypeExpr = 69- RULE_columnTypeCastExpr = 70- RULE_columnTypeCastIdentifier = 71- RULE_keywordForTypeCast = 72- RULE_columnExprList = 73- RULE_selectColumnExprListBeforeFrom = 74- RULE_selectColumnExprList = 75- RULE_selectColumnExpr = 76- RULE_columnExpr = 77- RULE_columnLambdaExpr = 78- RULE_columnsReplaceList = 79- RULE_columnsReplaceItem = 80- RULE_hogqlxChildElement = 81- RULE_hogqlxText = 82- RULE_hogqlxTagElement = 83- RULE_hogqlxTagAttribute = 84- RULE_withExprList = 85- RULE_withExpr = 86- RULE_withExprColumnNameList = 87- RULE_columnIdentifier = 88- RULE_nestedIdentifier = 89- RULE_tableExpr = 90- RULE_pivotColumnList = 91- RULE_pivotColumn = 92- RULE_unpivotColumnList = 93- RULE_unpivotColumn = 94- RULE_columnExprTupleOrSingle = 95- RULE_columnAliases = 96- RULE_tableFunctionExpr = 97- RULE_tableIdentifier = 98- RULE_tableArgList = 99- RULE_databaseIdentifier = 100- RULE_floatingLiteral = 101- RULE_numberLiteral = 102- RULE_literal = 103- RULE_interval = 104- RULE_keyword = 105- RULE_keywordForAlias = 106- RULE_keywordForImplicitAlias = 107- RULE_alias = 108- RULE_implicitAlias = 109- RULE_identifier = 110- RULE_enumValue = 111- RULE_placeholder = 112- RULE_string = 113- RULE_templateString = 114- RULE_stringContents = 115- RULE_fullTemplateString = 116- RULE_stringContentsFull = 117-- ruleNames = [ "program", "declaration", "expression", "varDecl", "identifierList",- "statement", "returnStmt", "throwStmt", "catchBlock",- "tryCatchStmt", "ifStmt", "whileStmt", "forStmt", "forInStmt",- "funcStmt", "varAssignment", "exprStmt", "emptyStmt",- "block", "kvPair", "kvPairList", "select", "selectStmtWithParens",- "subsequentSelectSetClause", "selectSetStmt", "limitAndOffsetClauseOptional",- "selectStmt", "withClause", "topClause", "fromClause",- "arrayJoinClause", "windowClause", "prewhereClause",- "whereClause", "groupByClause", "groupingSetList", "groupingSet",- "havingClause", "qualifyClause", "orderByClause", "interpolateClause",- "projectionOrderByClause", "limitByClause", "limitAndOffsetClause",- "offsetOnlyClause", "settingsClause", "valuesClause",- "valuesRow", "joinExpr", "joinOp", "joinOpCross", "joinConstraintClause",- "sampleClause", "limitExpr", "orderExprList", "orderExpr",- "withFillClause", "interpolateExpr", "ratioExpr", "settingExprList",- "settingExpr", "windowExpr", "winPartitionByClause",- "winOrderByClause", "withinGroupClause", "winFrameClause",- "winFrameExtend", "winFrameBound", "expr", "columnTypeExpr",- "columnTypeCastExpr", "columnTypeCastIdentifier", "keywordForTypeCast",- "columnExprList", "selectColumnExprListBeforeFrom", "selectColumnExprList",- "selectColumnExpr", "columnExpr", "columnLambdaExpr",- "columnsReplaceList", "columnsReplaceItem", "hogqlxChildElement",- "hogqlxText", "hogqlxTagElement", "hogqlxTagAttribute",- "withExprList", "withExpr", "withExprColumnNameList",- "columnIdentifier", "nestedIdentifier", "tableExpr",- "pivotColumnList", "pivotColumn", "unpivotColumnList",- "unpivotColumn", "columnExprTupleOrSingle", "columnAliases",- "tableFunctionExpr", "tableIdentifier", "tableArgList",- "databaseIdentifier", "floatingLiteral", "numberLiteral",- "literal", "interval", "keyword", "keywordForAlias",- "keywordForImplicitAlias", "alias", "implicitAlias",- "identifier", "enumValue", "placeholder", "string", "templateString",- "stringContents", "fullTemplateString", "stringContentsFull" ]-- EOF = Token.EOF- ALL=1- AND=2- ANTI=3- ANY=4- ARRAY=5- AS=6- ASCENDING=7- ASOF=8- BETWEEN=9- BOTH=10- BY=11- CASE=12- CAST=13- CATCH=14- COHORT=15- COLLATE=16- COLUMNS=17- CROSS=18- CUBE=19- CURRENT=20- DATE=21- DAY=22- DESC=23- DESCENDING=24- DISTINCT=25- ELSE=26- END=27- EXCEPT=28- EXCLUDE=29- EXTRACT=30- FINAL=31- FILL=32- FILTER=33- FINALLY=34- FIRST=35- FN=36- FOLLOWING=37- FOR=38- FROM=39- FULL=40- FUN=41- GROUP=42- GROUPING=43- HAVING=44- HOUR=45- ID=46- IF=47- ILIKE=48- IGNORE=49- INCLUDE=50- IN=51- INF=52- INNER=53- INTERSECT=54- INTERPOLATE=55- INTERVAL=56- IS=57- JOIN=58- KEY=59- LAMBDA=60- LAST=61- LEADING=62- LEFT=63- LET=64- LIKE=65- LIMIT=66- MATERIALIZED=67- MINUTE=68- MONTH=69- NAME=70- NATURAL=71- NAN_SQL=72- NOT=73- NULL_SQL=74- NULLS=75- OFFSET=76- ON=77- OR=78- ORDER=79- OUTER=80- OVER=81- PARTITION=82- PIVOT=83- POSITIONAL=84- PRECEDING=85- PREWHERE=86- QUALIFY=87- QUARTER=88- RANGE=89- RECURSIVE=90- REPLACE=91- RETURN=92- RIGHT=93- ROLLUP=94- ROW=95- ROWS=96- SAMPLE=97- SECOND=98- SELECT=99- SEMI=100- SETS=101- SETTINGS=102- STEP=103- SUBSTRING=104- THEN=105- THROW=106- TIES=107- TIMESTAMP=108- TIME=109- LOCAL=110- ZONE=111- TO=112- TOP=113- TOTALS=114- TRAILING=115- TRIM=116- TRUNCATE=117- TRY=118- TRY_CAST=119- UNBOUNDED=120- UNION=121- UNPIVOT=122- USING=123- VALUES=124- WEEK=125- WHEN=126- WHERE=127- WHILE=128- WINDOW=129- WITH=130- WITHIN=131- YEAR=132- ESCAPE_CHAR_COMMON=133- IDENTIFIER=134- QUOTED_IDENTIFIER=135- FLOATING_LITERAL=136- BINARY_LITERAL=137- OCTAL_LITERAL=138- DECIMAL_LITERAL=139- HEXADECIMAL_LITERAL=140- OCTAL_PREFIX_LITERAL=141- MALFORMED_BINARY_LITERAL=142- STRING_LITERAL=143- ARROW=144- ASTERISK=145- BACKQUOTE=146- BACKSLASH=147- DOUBLECOLON=148- COLONEQUALS=149- COLON=150- COMMA=151- CONCAT=152- DASH=153- DOLLAR=154- DOT=155- EQ_DOUBLE=156- EQ_SINGLE=157- GT_EQ=158- GT=159- HASH=160- IREGEX_SINGLE=161- IREGEX_DOUBLE=162- LBRACE=163- LBRACKET=164- LPAREN=165- NULL_SAFE_EQ=166- LT_EQ=167- LT=168- LT_SLASH=169- NOT_EQ=170- NOT_IREGEX=171- NOT_REGEX=172- NULL_PROPERTY=173- NULLISH=174- PERCENT=175- PLUS=176- QUERY=177- QUOTE_DOUBLE=178- QUOTE_SINGLE_TEMPLATE=179- QUOTE_SINGLE_TEMPLATE_FULL=180- QUOTE_SINGLE=181- REGEX_SINGLE=182- REGEX_DOUBLE=183- RBRACE=184- RBRACKET=185- RPAREN=186- SEMICOLON=187- SLASH=188- SLASH_GT=189- UNDERSCORE=190- MULTI_LINE_COMMENT=191- SINGLE_LINE_COMMENT=192- HASH_COMMENT=193- WHITESPACE=194- UNEXPECTED_CHARACTER=195- STRING_TEXT=196- STRING_ESCAPE_TRIGGER=197- FULL_STRING_TEXT=198- FULL_STRING_ESCAPE_TRIGGER=199- TAG_MULTI_LINE_COMMENT=200- TAG_SINGLE_LINE_COMMENT=201- TAG_WS=202- TAGC_MULTI_LINE_COMMENT=203- TAGC_SINGLE_LINE_COMMENT=204- TAGC_WS=205- HOGQLX_TEXT_TEXT=206- HOGQLX_TEXT_WS=207-- def __init__(self, input:TokenStream, output:TextIO = sys.stdout):- super().__init__(input, output)- self.checkVersion("4.13.2")- self._interp = ParserATNSimulator(self, self.atn, self.decisionsToDFA, self.sharedContextCache)- self._predicates = None----- class ProgramContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def EOF(self):- return self.getToken(HogQLParser.EOF, 0)-- def declaration(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.DeclarationContext)- else:- return self.getTypedRuleContext(HogQLParser.DeclarationContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_program-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitProgram" ):- return visitor.visitProgram(self)- else:- return visitor.visitChildren(self)----- def program(self):-- localctx = HogQLParser.ProgramContext(self, self._ctx, self.state)- self.enterRule(localctx, 0, self.RULE_program)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 239- self._errHandler.sync(self)- _la = self._input.LA(1)- while (((_la) & ~0x3f) == 0 and ((1 << _la) & -18014415957803010) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -9) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & 578995371586535383) != 0):- self.state = 236- self.declaration()- self.state = 241- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 242- self.match(HogQLParser.EOF)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class DeclarationContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def varDecl(self):- return self.getTypedRuleContext(HogQLParser.VarDeclContext,0)--- def statement(self):- return self.getTypedRuleContext(HogQLParser.StatementContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_declaration-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitDeclaration" ):- return visitor.visitDeclaration(self)- else:- return visitor.visitChildren(self)----- def declaration(self):-- localctx = HogQLParser.DeclarationContext(self, self._ctx, self.state)- self.enterRule(localctx, 2, self.RULE_declaration)- try:- self.state = 246- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [64]:- self.enterOuterAlt(localctx, 1)- self.state = 244- self.varDecl()- pass- elif token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 132, 134, 135, 136, 137, 138, 139, 140, 141, 143, 145, 153, 155, 160, 163, 164, 165, 168, 176, 179, 187]:- self.enterOuterAlt(localctx, 2)- self.state = 245- self.statement()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ExpressionContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_expression-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitExpression" ):- return visitor.visitExpression(self)- else:- return visitor.visitChildren(self)----- def expression(self):-- localctx = HogQLParser.ExpressionContext(self, self._ctx, self.state)- self.enterRule(localctx, 4, self.RULE_expression)- try:- self.enterOuterAlt(localctx, 1)- self.state = 248- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class VarDeclContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LET(self):- return self.getToken(HogQLParser.LET, 0)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def COLONEQUALS(self):- return self.getToken(HogQLParser.COLONEQUALS, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_varDecl-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitVarDecl" ):- return visitor.visitVarDecl(self)- else:- return visitor.visitChildren(self)----- def varDecl(self):-- localctx = HogQLParser.VarDeclContext(self, self._ctx, self.state)- self.enterRule(localctx, 6, self.RULE_varDecl)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 250- self.match(HogQLParser.LET)- self.state = 251- self.identifier()- self.state = 254- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==149:- self.state = 252- self.match(HogQLParser.COLONEQUALS)- self.state = 253- self.expression()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class IdentifierListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def nestedIdentifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.NestedIdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.NestedIdentifierContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_identifierList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitIdentifierList" ):- return visitor.visitIdentifierList(self)- else:- return visitor.visitChildren(self)----- def identifierList(self):-- localctx = HogQLParser.IdentifierListContext(self, self._ctx, self.state)- self.enterRule(localctx, 8, self.RULE_identifierList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 256- self.nestedIdentifier()- self.state = 261- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,3,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 257- self.match(HogQLParser.COMMA)- self.state = 258- self.nestedIdentifier()- self.state = 263- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,3,self._ctx)-- self.state = 265- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 264- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class StatementContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def returnStmt(self):- return self.getTypedRuleContext(HogQLParser.ReturnStmtContext,0)--- def throwStmt(self):- return self.getTypedRuleContext(HogQLParser.ThrowStmtContext,0)--- def tryCatchStmt(self):- return self.getTypedRuleContext(HogQLParser.TryCatchStmtContext,0)--- def ifStmt(self):- return self.getTypedRuleContext(HogQLParser.IfStmtContext,0)--- def whileStmt(self):- return self.getTypedRuleContext(HogQLParser.WhileStmtContext,0)--- def forInStmt(self):- return self.getTypedRuleContext(HogQLParser.ForInStmtContext,0)--- def forStmt(self):- return self.getTypedRuleContext(HogQLParser.ForStmtContext,0)--- def funcStmt(self):- return self.getTypedRuleContext(HogQLParser.FuncStmtContext,0)--- def block(self):- return self.getTypedRuleContext(HogQLParser.BlockContext,0)--- def exprStmt(self):- return self.getTypedRuleContext(HogQLParser.ExprStmtContext,0)--- def emptyStmt(self):- return self.getTypedRuleContext(HogQLParser.EmptyStmtContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_statement-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitStatement" ):- return visitor.visitStatement(self)- else:- return visitor.visitChildren(self)----- def statement(self):-- localctx = HogQLParser.StatementContext(self, self._ctx, self.state)- self.enterRule(localctx, 10, self.RULE_statement)- try:- self.state = 278- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,5,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 267- self.returnStmt()- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 268- self.throwStmt()- pass-- elif la_ == 3:- self.enterOuterAlt(localctx, 3)- self.state = 269- self.tryCatchStmt()- pass-- elif la_ == 4:- self.enterOuterAlt(localctx, 4)- self.state = 270- self.ifStmt()- pass-- elif la_ == 5:- self.enterOuterAlt(localctx, 5)- self.state = 271- self.whileStmt()- pass-- elif la_ == 6:- self.enterOuterAlt(localctx, 6)- self.state = 272- self.forInStmt()- pass-- elif la_ == 7:- self.enterOuterAlt(localctx, 7)- self.state = 273- self.forStmt()- pass-- elif la_ == 8:- self.enterOuterAlt(localctx, 8)- self.state = 274- self.funcStmt()- pass-- elif la_ == 9:- self.enterOuterAlt(localctx, 9)- self.state = 275- self.block()- pass-- elif la_ == 10:- self.enterOuterAlt(localctx, 10)- self.state = 276- self.exprStmt()- pass-- elif la_ == 11:- self.enterOuterAlt(localctx, 11)- self.state = 277- self.emptyStmt()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ReturnStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def RETURN(self):- return self.getToken(HogQLParser.RETURN, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_returnStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitReturnStmt" ):- return visitor.visitReturnStmt(self)- else:- return visitor.visitChildren(self)----- def returnStmt(self):-- localctx = HogQLParser.ReturnStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 12, self.RULE_returnStmt)- try:- self.enterOuterAlt(localctx, 1)- self.state = 280- self.match(HogQLParser.RETURN)- self.state = 282- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,6,self._ctx)- if la_ == 1:- self.state = 281- self.expression()--- self.state = 285- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,7,self._ctx)- if la_ == 1:- self.state = 284- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ThrowStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def THROW(self):- return self.getToken(HogQLParser.THROW, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_throwStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitThrowStmt" ):- return visitor.visitThrowStmt(self)- else:- return visitor.visitChildren(self)----- def throwStmt(self):-- localctx = HogQLParser.ThrowStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 14, self.RULE_throwStmt)- try:- self.enterOuterAlt(localctx, 1)- self.state = 287- self.match(HogQLParser.THROW)- self.state = 288- self.expression()- self.state = 290- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,8,self._ctx)- if la_ == 1:- self.state = 289- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class CatchBlockContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser- self.catchVar = None # IdentifierContext- self.catchType = None # IdentifierContext- self.catchStmt = None # BlockContext-- def CATCH(self):- return self.getToken(HogQLParser.CATCH, 0)-- def block(self):- return self.getTypedRuleContext(HogQLParser.BlockContext,0)--- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_catchBlock-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitCatchBlock" ):- return visitor.visitCatchBlock(self)- else:- return visitor.visitChildren(self)----- def catchBlock(self):-- localctx = HogQLParser.CatchBlockContext(self, self._ctx, self.state)- self.enterRule(localctx, 16, self.RULE_catchBlock)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 292- self.match(HogQLParser.CATCH)- self.state = 301- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==165:- self.state = 293- self.match(HogQLParser.LPAREN)- self.state = 294- localctx.catchVar = self.identifier()- self.state = 297- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==150:- self.state = 295- self.match(HogQLParser.COLON)- self.state = 296- localctx.catchType = self.identifier()--- self.state = 299- self.match(HogQLParser.RPAREN)--- self.state = 303- localctx.catchStmt = self.block()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TryCatchStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser- self.tryStmt = None # BlockContext- self.finallyStmt = None # BlockContext-- def TRY(self):- return self.getToken(HogQLParser.TRY, 0)-- def block(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.BlockContext)- else:- return self.getTypedRuleContext(HogQLParser.BlockContext,i)--- def catchBlock(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.CatchBlockContext)- else:- return self.getTypedRuleContext(HogQLParser.CatchBlockContext,i)--- def FINALLY(self):- return self.getToken(HogQLParser.FINALLY, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_tryCatchStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTryCatchStmt" ):- return visitor.visitTryCatchStmt(self)- else:- return visitor.visitChildren(self)----- def tryCatchStmt(self):-- localctx = HogQLParser.TryCatchStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 18, self.RULE_tryCatchStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 305- self.match(HogQLParser.TRY)- self.state = 306- localctx.tryStmt = self.block()- self.state = 310- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==14:- self.state = 307- self.catchBlock()- self.state = 312- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 315- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==34:- self.state = 313- self.match(HogQLParser.FINALLY)- self.state = 314- localctx.finallyStmt = self.block()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class IfStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def IF(self):- return self.getToken(HogQLParser.IF, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def statement(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.StatementContext)- else:- return self.getTypedRuleContext(HogQLParser.StatementContext,i)--- def ELSE(self):- return self.getToken(HogQLParser.ELSE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_ifStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitIfStmt" ):- return visitor.visitIfStmt(self)- else:- return visitor.visitChildren(self)----- def ifStmt(self):-- localctx = HogQLParser.IfStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 20, self.RULE_ifStmt)- try:- self.enterOuterAlt(localctx, 1)- self.state = 317- self.match(HogQLParser.IF)- self.state = 318- self.match(HogQLParser.LPAREN)- self.state = 319- self.expression()- self.state = 320- self.match(HogQLParser.RPAREN)- self.state = 321- self.statement()- self.state = 324- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,13,self._ctx)- if la_ == 1:- self.state = 322- self.match(HogQLParser.ELSE)- self.state = 323- self.statement()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WhileStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WHILE(self):- return self.getToken(HogQLParser.WHILE, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def statement(self):- return self.getTypedRuleContext(HogQLParser.StatementContext,0)--- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_whileStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWhileStmt" ):- return visitor.visitWhileStmt(self)- else:- return visitor.visitChildren(self)----- def whileStmt(self):-- localctx = HogQLParser.WhileStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 22, self.RULE_whileStmt)- try:- self.enterOuterAlt(localctx, 1)- self.state = 326- self.match(HogQLParser.WHILE)- self.state = 327- self.match(HogQLParser.LPAREN)- self.state = 328- self.expression()- self.state = 329- self.match(HogQLParser.RPAREN)- self.state = 330- self.statement()- self.state = 332- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,14,self._ctx)- if la_ == 1:- self.state = 331- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ForStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser- self.initializerVarDeclr = None # VarDeclContext- self.initializerVarAssignment = None # VarAssignmentContext- self.initializerExpression = None # ExpressionContext- self.condition = None # ExpressionContext- self.incrementVarDeclr = None # VarDeclContext- self.incrementVarAssignment = None # VarAssignmentContext- self.incrementExpression = None # ExpressionContext-- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def SEMICOLON(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.SEMICOLON)- else:- return self.getToken(HogQLParser.SEMICOLON, i)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def statement(self):- return self.getTypedRuleContext(HogQLParser.StatementContext,0)--- def varDecl(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.VarDeclContext)- else:- return self.getTypedRuleContext(HogQLParser.VarDeclContext,i)--- def varAssignment(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.VarAssignmentContext)- else:- return self.getTypedRuleContext(HogQLParser.VarAssignmentContext,i)--- def expression(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ExpressionContext)- else:- return self.getTypedRuleContext(HogQLParser.ExpressionContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_forStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitForStmt" ):- return visitor.visitForStmt(self)- else:- return visitor.visitChildren(self)----- def forStmt(self):-- localctx = HogQLParser.ForStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 24, self.RULE_forStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 334- self.match(HogQLParser.FOR)- self.state = 335- self.match(HogQLParser.LPAREN)- self.state = 339- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,15,self._ctx)- if la_ == 1:- self.state = 336- localctx.initializerVarDeclr = self.varDecl()-- elif la_ == 2:- self.state = 337- localctx.initializerVarAssignment = self.varAssignment()-- elif la_ == 3:- self.state = 338- localctx.initializerExpression = self.expression()--- self.state = 341- self.match(HogQLParser.SEMICOLON)- self.state = 343- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 342- localctx.condition = self.expression()--- self.state = 345- self.match(HogQLParser.SEMICOLON)- self.state = 349- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,17,self._ctx)- if la_ == 1:- self.state = 346- localctx.incrementVarDeclr = self.varDecl()-- elif la_ == 2:- self.state = 347- localctx.incrementVarAssignment = self.varAssignment()-- elif la_ == 3:- self.state = 348- localctx.incrementExpression = self.expression()--- self.state = 351- self.match(HogQLParser.RPAREN)- self.state = 352- self.statement()- self.state = 354- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,18,self._ctx)- if la_ == 1:- self.state = 353- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ForInStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def LET(self):- return self.getToken(HogQLParser.LET, 0)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def IN(self):- return self.getToken(HogQLParser.IN, 0)-- def expression(self):- return self.getTypedRuleContext(HogQLParser.ExpressionContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def statement(self):- return self.getTypedRuleContext(HogQLParser.StatementContext,0)--- def COMMA(self):- return self.getToken(HogQLParser.COMMA, 0)-- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_forInStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitForInStmt" ):- return visitor.visitForInStmt(self)- else:- return visitor.visitChildren(self)----- def forInStmt(self):-- localctx = HogQLParser.ForInStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 26, self.RULE_forInStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 356- self.match(HogQLParser.FOR)- self.state = 357- self.match(HogQLParser.LPAREN)- self.state = 358- self.match(HogQLParser.LET)- self.state = 359- self.identifier()- self.state = 362- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 360- self.match(HogQLParser.COMMA)- self.state = 361- self.identifier()--- self.state = 364- self.match(HogQLParser.IN)- self.state = 365- self.expression()- self.state = 366- self.match(HogQLParser.RPAREN)- self.state = 367- self.statement()- self.state = 369- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,20,self._ctx)- if la_ == 1:- self.state = 368- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class FuncStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def block(self):- return self.getTypedRuleContext(HogQLParser.BlockContext,0)--- def FN(self):- return self.getToken(HogQLParser.FN, 0)-- def FUN(self):- return self.getToken(HogQLParser.FUN, 0)-- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_funcStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFuncStmt" ):- return visitor.visitFuncStmt(self)- else:- return visitor.visitChildren(self)----- def funcStmt(self):-- localctx = HogQLParser.FuncStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 28, self.RULE_funcStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 371- _la = self._input.LA(1)- if not(_la==36 or _la==41):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 372- self.identifier()- self.state = 373- self.match(HogQLParser.LPAREN)- self.state = 375- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -22520283327905794) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576778619) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 107) != 0):- self.state = 374- self.identifierList()--- self.state = 377- self.match(HogQLParser.RPAREN)- self.state = 378- self.block()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class VarAssignmentContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def expression(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ExpressionContext)- else:- return self.getTypedRuleContext(HogQLParser.ExpressionContext,i)--- def COLONEQUALS(self):- return self.getToken(HogQLParser.COLONEQUALS, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_varAssignment-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitVarAssignment" ):- return visitor.visitVarAssignment(self)- else:- return visitor.visitChildren(self)----- def varAssignment(self):-- localctx = HogQLParser.VarAssignmentContext(self, self._ctx, self.state)- self.enterRule(localctx, 30, self.RULE_varAssignment)- try:- self.enterOuterAlt(localctx, 1)- self.state = 380- self.expression()- self.state = 381- self.match(HogQLParser.COLONEQUALS)- self.state = 382- self.expression()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ExprStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def expression(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ExpressionContext)- else:- return self.getTypedRuleContext(HogQLParser.ExpressionContext,i)--- def COLONEQUALS(self):- return self.getToken(HogQLParser.COLONEQUALS, 0)-- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_exprStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitExprStmt" ):- return visitor.visitExprStmt(self)- else:- return visitor.visitChildren(self)----- def exprStmt(self):-- localctx = HogQLParser.ExprStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 32, self.RULE_exprStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 384- self.expression()- self.state = 387- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==149:- self.state = 385- self.match(HogQLParser.COLONEQUALS)- self.state = 386- self.expression()--- self.state = 390- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,23,self._ctx)- if la_ == 1:- self.state = 389- self.match(HogQLParser.SEMICOLON)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class EmptyStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_emptyStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitEmptyStmt" ):- return visitor.visitEmptyStmt(self)- else:- return visitor.visitChildren(self)----- def emptyStmt(self):-- localctx = HogQLParser.EmptyStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 34, self.RULE_emptyStmt)- try:- self.enterOuterAlt(localctx, 1)- self.state = 392- self.match(HogQLParser.SEMICOLON)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class BlockContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LBRACE(self):- return self.getToken(HogQLParser.LBRACE, 0)-- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def declaration(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.DeclarationContext)- else:- return self.getTypedRuleContext(HogQLParser.DeclarationContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_block-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitBlock" ):- return visitor.visitBlock(self)- else:- return visitor.visitChildren(self)----- def block(self):-- localctx = HogQLParser.BlockContext(self, self._ctx, self.state)- self.enterRule(localctx, 36, self.RULE_block)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 394- self.match(HogQLParser.LBRACE)- self.state = 398- self._errHandler.sync(self)- _la = self._input.LA(1)- while (((_la) & ~0x3f) == 0 and ((1 << _la) & -18014415957803010) != 0) or ((((_la - 64)) & ~0x3f) == 0 and ((1 << (_la - 64)) & -9) != 0) or ((((_la - 128)) & ~0x3f) == 0 and ((1 << (_la - 128)) & 578995371586535383) != 0):- self.state = 395- self.declaration()- self.state = 400- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 401- self.match(HogQLParser.RBRACE)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KvPairContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def expression(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ExpressionContext)- else:- return self.getTypedRuleContext(HogQLParser.ExpressionContext,i)--- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_kvPair-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKvPair" ):- return visitor.visitKvPair(self)- else:- return visitor.visitChildren(self)----- def kvPair(self):-- localctx = HogQLParser.KvPairContext(self, self._ctx, self.state)- self.enterRule(localctx, 38, self.RULE_kvPair)- try:- self.enterOuterAlt(localctx, 1)- self.state = 403- self.expression()- self.state = 404- self.match(HogQLParser.COLON)- self.state = 405- self.expression()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KvPairListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def kvPair(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.KvPairContext)- else:- return self.getTypedRuleContext(HogQLParser.KvPairContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_kvPairList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKvPairList" ):- return visitor.visitKvPairList(self)- else:- return visitor.visitChildren(self)----- def kvPairList(self):-- localctx = HogQLParser.KvPairListContext(self, self._ctx, self.state)- self.enterRule(localctx, 40, self.RULE_kvPairList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 407- self.kvPair()- self.state = 412- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,25,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 408- self.match(HogQLParser.COMMA)- self.state = 409- self.kvPair()- self.state = 414- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,25,self._ctx)-- self.state = 416- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 415- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def EOF(self):- return self.getToken(HogQLParser.EOF, 0)-- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)--- def selectStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0)--- def hogqlxTagElement(self):- return self.getTypedRuleContext(HogQLParser.HogqlxTagElementContext,0)--- def SEMICOLON(self):- return self.getToken(HogQLParser.SEMICOLON, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_select-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelect" ):- return visitor.visitSelect(self)- else:- return visitor.visitChildren(self)----- def select(self):-- localctx = HogQLParser.SelectContext(self, self._ctx, self.state)- self.enterRule(localctx, 42, self.RULE_select)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 421- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,27,self._ctx)- if la_ == 1:- self.state = 418- self.selectSetStmt()- pass-- elif la_ == 2:- self.state = 419- self.selectStmt()- pass-- elif la_ == 3:- self.state = 420- self.hogqlxTagElement()- pass--- self.state = 424- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==187:- self.state = 423- self.match(HogQLParser.SEMICOLON)--- self.state = 426- self.match(HogQLParser.EOF)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectStmtWithParensContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def selectStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectStmtContext,0)--- def withClause(self):- return self.getTypedRuleContext(HogQLParser.WithClauseContext,0)--- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def placeholder(self):- return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_selectStmtWithParens-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectStmtWithParens" ):- return visitor.visitSelectStmtWithParens(self)- else:- return visitor.visitChildren(self)----- def selectStmtWithParens(self):-- localctx = HogQLParser.SelectStmtWithParensContext(self, self._ctx, self.state)- self.enterRule(localctx, 44, self.RULE_selectStmtWithParens)- try:- self.state = 439- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,29,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 428- self.selectStmt()- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 429- self.withClause()- self.state = 430- self.match(HogQLParser.LPAREN)- self.state = 431- self.selectSetStmt()- self.state = 432- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- self.enterOuterAlt(localctx, 3)- self.state = 434- self.match(HogQLParser.LPAREN)- self.state = 435- self.selectSetStmt()- self.state = 436- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 4:- self.enterOuterAlt(localctx, 4)- self.state = 438- self.placeholder()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SubsequentSelectSetClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def selectStmtWithParens(self):- return self.getTypedRuleContext(HogQLParser.SelectStmtWithParensContext,0)--- def EXCEPT(self):- return self.getToken(HogQLParser.EXCEPT, 0)-- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)-- def UNION(self):- return self.getToken(HogQLParser.UNION, 0)-- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)-- def INTERSECT(self):- return self.getToken(HogQLParser.INTERSECT, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def NAME(self):- return self.getToken(HogQLParser.NAME, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_subsequentSelectSetClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSubsequentSelectSetClause" ):- return visitor.visitSubsequentSelectSetClause(self)- else:- return visitor.visitChildren(self)----- def subsequentSelectSetClause(self):-- localctx = HogQLParser.SubsequentSelectSetClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 46, self.RULE_subsequentSelectSetClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 486- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,38,self._ctx)- if la_ == 1:- self.state = 441- self.match(HogQLParser.EXCEPT)- self.state = 442- self.match(HogQLParser.ALL)- self.state = 445- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 443- self.match(HogQLParser.BY)- self.state = 444- self.match(HogQLParser.NAME)--- pass-- elif la_ == 2:- self.state = 447- self.match(HogQLParser.EXCEPT)- self.state = 450- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 448- self.match(HogQLParser.BY)- self.state = 449- self.match(HogQLParser.NAME)--- pass-- elif la_ == 3:- self.state = 452- self.match(HogQLParser.UNION)- self.state = 453- self.match(HogQLParser.ALL)- self.state = 456- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 454- self.match(HogQLParser.BY)- self.state = 455- self.match(HogQLParser.NAME)--- pass-- elif la_ == 4:- self.state = 458- self.match(HogQLParser.UNION)- self.state = 459- self.match(HogQLParser.DISTINCT)- self.state = 462- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 460- self.match(HogQLParser.BY)- self.state = 461- self.match(HogQLParser.NAME)--- pass-- elif la_ == 5:- self.state = 464- self.match(HogQLParser.UNION)- self.state = 467- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 465- self.match(HogQLParser.BY)- self.state = 466- self.match(HogQLParser.NAME)--- pass-- elif la_ == 6:- self.state = 469- self.match(HogQLParser.INTERSECT)- self.state = 470- self.match(HogQLParser.ALL)- self.state = 473- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 471- self.match(HogQLParser.BY)- self.state = 472- self.match(HogQLParser.NAME)--- pass-- elif la_ == 7:- self.state = 475- self.match(HogQLParser.INTERSECT)- self.state = 476- self.match(HogQLParser.DISTINCT)- self.state = 479- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 477- self.match(HogQLParser.BY)- self.state = 478- self.match(HogQLParser.NAME)--- pass-- elif la_ == 8:- self.state = 481- self.match(HogQLParser.INTERSECT)- self.state = 484- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==11:- self.state = 482- self.match(HogQLParser.BY)- self.state = 483- self.match(HogQLParser.NAME)--- pass--- self.state = 488- self.selectStmtWithParens()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectSetStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def selectStmtWithParens(self):- return self.getTypedRuleContext(HogQLParser.SelectStmtWithParensContext,0)--- def subsequentSelectSetClause(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.SubsequentSelectSetClauseContext)- else:- return self.getTypedRuleContext(HogQLParser.SubsequentSelectSetClauseContext,i)--- def orderByClause(self):- return self.getTypedRuleContext(HogQLParser.OrderByClauseContext,0)--- def limitAndOffsetClauseOptional(self):- return self.getTypedRuleContext(HogQLParser.LimitAndOffsetClauseOptionalContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_selectSetStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectSetStmt" ):- return visitor.visitSelectSetStmt(self)- else:- return visitor.visitChildren(self)----- def selectSetStmt(self):-- localctx = HogQLParser.SelectSetStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 48, self.RULE_selectSetStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 490- self.selectStmtWithParens()- self.state = 494- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==28 or _la==54 or _la==121:- self.state = 491- self.subsequentSelectSetClause()- self.state = 496- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 498- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==79:- self.state = 497- self.orderByClause()--- self.state = 501- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==66 or _la==76:- self.state = 500- self.limitAndOffsetClauseOptional()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class LimitAndOffsetClauseOptionalContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LIMIT(self):- return self.getToken(HogQLParser.LIMIT, 0)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def PERCENT(self):- return self.getToken(HogQLParser.PERCENT, 0)-- def COMMA(self):- return self.getToken(HogQLParser.COMMA, 0)-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def TIES(self):- return self.getToken(HogQLParser.TIES, 0)-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_limitAndOffsetClauseOptional-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitLimitAndOffsetClauseOptional" ):- return visitor.visitLimitAndOffsetClauseOptional(self)- else:- return visitor.visitChildren(self)----- def limitAndOffsetClauseOptional(self):-- localctx = HogQLParser.LimitAndOffsetClauseOptionalContext(self, self._ctx, self.state)- self.enterRule(localctx, 50, self.RULE_limitAndOffsetClauseOptional)- self._la = 0 # Token type- try:- self.state = 530- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,47,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 503- self.match(HogQLParser.LIMIT)- self.state = 504- self.columnExpr(0)- self.state = 506- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==175:- self.state = 505- self.match(HogQLParser.PERCENT)--- self.state = 510- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 508- self.match(HogQLParser.COMMA)- self.state = 509- self.columnExpr(0)--- self.state = 514- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 512- self.match(HogQLParser.WITH)- self.state = 513- self.match(HogQLParser.TIES)--- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 516- self.match(HogQLParser.LIMIT)- self.state = 517- self.columnExpr(0)- self.state = 519- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==175:- self.state = 518- self.match(HogQLParser.PERCENT)--- self.state = 523- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 521- self.match(HogQLParser.WITH)- self.state = 522- self.match(HogQLParser.TIES)--- self.state = 525- self.match(HogQLParser.OFFSET)- self.state = 526- self.columnExpr(0)- pass-- elif la_ == 3:- self.enterOuterAlt(localctx, 3)- self.state = 528- self.match(HogQLParser.OFFSET)- self.state = 529- self.columnExpr(0)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectStmtContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser- self.with_ = None # WithClauseContext- self.columns = None # SelectColumnExprListBeforeFromContext- self.from_ = None # FromClauseContext- self.where = None # WhereClauseContext-- def SELECT(self):- return self.getToken(HogQLParser.SELECT, 0)-- def selectColumnExprListBeforeFrom(self):- return self.getTypedRuleContext(HogQLParser.SelectColumnExprListBeforeFromContext,0)--- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)-- def topClause(self):- return self.getTypedRuleContext(HogQLParser.TopClauseContext,0)--- def arrayJoinClause(self):- return self.getTypedRuleContext(HogQLParser.ArrayJoinClauseContext,0)--- def prewhereClause(self):- return self.getTypedRuleContext(HogQLParser.PrewhereClauseContext,0)--- def sampleClause(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.SampleClauseContext)- else:- return self.getTypedRuleContext(HogQLParser.SampleClauseContext,i)--- def groupByClause(self):- return self.getTypedRuleContext(HogQLParser.GroupByClauseContext,0)--- def WITH(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.WITH)- else:- return self.getToken(HogQLParser.WITH, i)-- def TOTALS(self):- return self.getToken(HogQLParser.TOTALS, 0)-- def havingClause(self):- return self.getTypedRuleContext(HogQLParser.HavingClauseContext,0)--- def qualifyClause(self):- return self.getTypedRuleContext(HogQLParser.QualifyClauseContext,0)--- def USING(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.USING)- else:- return self.getToken(HogQLParser.USING, i)-- def windowClause(self):- return self.getTypedRuleContext(HogQLParser.WindowClauseContext,0)--- def orderByClause(self):- return self.getTypedRuleContext(HogQLParser.OrderByClauseContext,0)--- def limitByClause(self):- return self.getTypedRuleContext(HogQLParser.LimitByClauseContext,0)--- def limitAndOffsetClause(self):- return self.getTypedRuleContext(HogQLParser.LimitAndOffsetClauseContext,0)--- def offsetOnlyClause(self):- return self.getTypedRuleContext(HogQLParser.OffsetOnlyClauseContext,0)--- def settingsClause(self):- return self.getTypedRuleContext(HogQLParser.SettingsClauseContext,0)--- def withClause(self):- return self.getTypedRuleContext(HogQLParser.WithClauseContext,0)--- def fromClause(self):- return self.getTypedRuleContext(HogQLParser.FromClauseContext,0)--- def whereClause(self):- return self.getTypedRuleContext(HogQLParser.WhereClauseContext,0)--- def CUBE(self):- return self.getToken(HogQLParser.CUBE, 0)-- def ROLLUP(self):- return self.getToken(HogQLParser.ROLLUP, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_selectStmt-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectStmt" ):- return visitor.visitSelectStmt(self)- else:- return visitor.visitChildren(self)----- def selectStmt(self):-- localctx = HogQLParser.SelectStmtContext(self, self._ctx, self.state)- self.enterRule(localctx, 52, self.RULE_selectStmt)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 533- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 532- localctx.with_ = self.withClause()--- self.state = 535- self.match(HogQLParser.SELECT)- self.state = 537- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,49,self._ctx)- if la_ == 1:- self.state = 536- self.match(HogQLParser.DISTINCT)--- self.state = 540- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,50,self._ctx)- if la_ == 1:- self.state = 539- self.topClause()--- self.state = 542- localctx.columns = self.selectColumnExprListBeforeFrom()- self.state = 544- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==39:- self.state = 543- localctx.from_ = self.fromClause()--- self.state = 547- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -9214364837600034784) != 0):- self.state = 546- self.arrayJoinClause()--- self.state = 550- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==86:- self.state = 549- self.prewhereClause()--- self.state = 553- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==127:- self.state = 552- localctx.where = self.whereClause()--- self.state = 559- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,56,self._ctx)- if la_ == 1:- self.state = 556- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==123:- self.state = 555- self.match(HogQLParser.USING)--- self.state = 558- self.sampleClause()--- self.state = 562- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==42:- self.state = 561- self.groupByClause()--- self.state = 566- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,58,self._ctx)- if la_ == 1:- self.state = 564- self.match(HogQLParser.WITH)- self.state = 565- _la = self._input.LA(1)- if not(_la==19 or _la==94):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 570- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 568- self.match(HogQLParser.WITH)- self.state = 569- self.match(HogQLParser.TOTALS)--- self.state = 573- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==44:- self.state = 572- self.havingClause()--- self.state = 576- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==87:- self.state = 575- self.qualifyClause()--- self.state = 580- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==123:- self.state = 578- self.match(HogQLParser.USING)- self.state = 579- self.sampleClause()--- self.state = 583- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==129:- self.state = 582- self.windowClause()--- self.state = 586- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,64,self._ctx)- if la_ == 1:- self.state = 585- self.orderByClause()--- self.state = 589- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,65,self._ctx)- if la_ == 1:- self.state = 588- self.limitByClause()--- self.state = 593- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,66,self._ctx)- if la_ == 1:- self.state = 591- self.limitAndOffsetClause()-- elif la_ == 2:- self.state = 592- self.offsetOnlyClause()--- self.state = 596- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==102:- self.state = 595- self.settingsClause()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def withExprList(self):- return self.getTypedRuleContext(HogQLParser.WithExprListContext,0)--- def RECURSIVE(self):- return self.getToken(HogQLParser.RECURSIVE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_withClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithClause" ):- return visitor.visitWithClause(self)- else:- return visitor.visitChildren(self)----- def withClause(self):-- localctx = HogQLParser.WithClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 54, self.RULE_withClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 598- self.match(HogQLParser.WITH)- self.state = 600- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,68,self._ctx)- if la_ == 1:- self.state = 599- self.match(HogQLParser.RECURSIVE)--- self.state = 602- self.withExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TopClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def TOP(self):- return self.getToken(HogQLParser.TOP, 0)-- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def TIES(self):- return self.getToken(HogQLParser.TIES, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_topClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTopClause" ):- return visitor.visitTopClause(self)- else:- return visitor.visitChildren(self)----- def topClause(self):-- localctx = HogQLParser.TopClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 56, self.RULE_topClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 604- self.match(HogQLParser.TOP)- self.state = 605- self.match(HogQLParser.DECIMAL_LITERAL)- self.state = 608- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,69,self._ctx)- if la_ == 1:- self.state = 606- self.match(HogQLParser.WITH)- self.state = 607- self.match(HogQLParser.TIES)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class FromClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)-- def joinExpr(self):- return self.getTypedRuleContext(HogQLParser.JoinExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_fromClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFromClause" ):- return visitor.visitFromClause(self)- else:- return visitor.visitChildren(self)----- def fromClause(self):-- localctx = HogQLParser.FromClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 58, self.RULE_fromClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 610- self.match(HogQLParser.FROM)- self.state = 611- self.joinExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ArrayJoinClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ARRAY(self):- return self.getToken(HogQLParser.ARRAY, 0)-- def JOIN(self):- return self.getToken(HogQLParser.JOIN, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def LEFT(self):- return self.getToken(HogQLParser.LEFT, 0)-- def INNER(self):- return self.getToken(HogQLParser.INNER, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_arrayJoinClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitArrayJoinClause" ):- return visitor.visitArrayJoinClause(self)- else:- return visitor.visitChildren(self)----- def arrayJoinClause(self):-- localctx = HogQLParser.ArrayJoinClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 60, self.RULE_arrayJoinClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 614- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==53 or _la==63:- self.state = 613- _la = self._input.LA(1)- if not(_la==53 or _la==63):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 616- self.match(HogQLParser.ARRAY)- self.state = 617- self.match(HogQLParser.JOIN)- self.state = 618- self.columnExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WindowClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WINDOW(self):- return self.getToken(HogQLParser.WINDOW, 0)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def AS(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.AS)- else:- return self.getToken(HogQLParser.AS, i)-- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)-- def windowExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.WindowExprContext)- else:- return self.getTypedRuleContext(HogQLParser.WindowExprContext,i)--- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_windowClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWindowClause" ):- return visitor.visitWindowClause(self)- else:- return visitor.visitChildren(self)----- def windowClause(self):-- localctx = HogQLParser.WindowClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 62, self.RULE_windowClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 620- self.match(HogQLParser.WINDOW)- self.state = 621- self.identifier()- self.state = 622- self.match(HogQLParser.AS)- self.state = 623- self.match(HogQLParser.LPAREN)- self.state = 624- self.windowExpr()- self.state = 625- self.match(HogQLParser.RPAREN)- self.state = 635- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 626- self.match(HogQLParser.COMMA)- self.state = 627- self.identifier()- self.state = 628- self.match(HogQLParser.AS)- self.state = 629- self.match(HogQLParser.LPAREN)- self.state = 630- self.windowExpr()- self.state = 631- self.match(HogQLParser.RPAREN)- self.state = 637- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class PrewhereClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def PREWHERE(self):- return self.getToken(HogQLParser.PREWHERE, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_prewhereClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitPrewhereClause" ):- return visitor.visitPrewhereClause(self)- else:- return visitor.visitChildren(self)----- def prewhereClause(self):-- localctx = HogQLParser.PrewhereClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 64, self.RULE_prewhereClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 638- self.match(HogQLParser.PREWHERE)- self.state = 639- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WhereClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WHERE(self):- return self.getToken(HogQLParser.WHERE, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_whereClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWhereClause" ):- return visitor.visitWhereClause(self)- else:- return visitor.visitChildren(self)----- def whereClause(self):-- localctx = HogQLParser.WhereClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 66, self.RULE_whereClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 641- self.match(HogQLParser.WHERE)- self.state = 642- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class GroupByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def GROUP(self):- return self.getToken(HogQLParser.GROUP, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def GROUPING(self):- return self.getToken(HogQLParser.GROUPING, 0)-- def SETS(self):- return self.getToken(HogQLParser.SETS, 0)-- def groupingSetList(self):- return self.getTypedRuleContext(HogQLParser.GroupingSetListContext,0)--- def CUBE(self):- return self.getToken(HogQLParser.CUBE, 0)-- def ROLLUP(self):- return self.getToken(HogQLParser.ROLLUP, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_groupByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitGroupByClause" ):- return visitor.visitGroupByClause(self)- else:- return visitor.visitChildren(self)----- def groupByClause(self):-- localctx = HogQLParser.GroupByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 68, self.RULE_groupByClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 644- self.match(HogQLParser.GROUP)- self.state = 645- self.match(HogQLParser.BY)- self.state = 659- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,72,self._ctx)- if la_ == 1:- self.state = 646- self.match(HogQLParser.ALL)- pass-- elif la_ == 2:- self.state = 647- _la = self._input.LA(1)- if not(_la==19 or _la==94):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 648- self.match(HogQLParser.LPAREN)- self.state = 649- self.columnExprList()- self.state = 650- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- self.state = 652- self.match(HogQLParser.GROUPING)- self.state = 653- self.match(HogQLParser.SETS)- self.state = 654- self.match(HogQLParser.LPAREN)- self.state = 655- self.groupingSetList()- self.state = 656- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 4:- self.state = 658- self.columnExprList()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class GroupingSetListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def groupingSet(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.GroupingSetContext)- else:- return self.getTypedRuleContext(HogQLParser.GroupingSetContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_groupingSetList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitGroupingSetList" ):- return visitor.visitGroupingSetList(self)- else:- return visitor.visitChildren(self)----- def groupingSetList(self):-- localctx = HogQLParser.GroupingSetListContext(self, self._ctx, self.state)- self.enterRule(localctx, 70, self.RULE_groupingSetList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 661- self.groupingSet()- self.state = 666- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 662- self.match(HogQLParser.COMMA)- self.state = 663- self.groupingSet()- self.state = 668- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class GroupingSetContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_groupingSet-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitGroupingSet" ):- return visitor.visitGroupingSet(self)- else:- return visitor.visitChildren(self)----- def groupingSet(self):-- localctx = HogQLParser.GroupingSetContext(self, self._ctx, self.state)- self.enterRule(localctx, 72, self.RULE_groupingSet)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 669- self.match(HogQLParser.LPAREN)- self.state = 671- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 670- self.columnExprList()--- self.state = 673- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class HavingClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def HAVING(self):- return self.getToken(HogQLParser.HAVING, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_havingClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHavingClause" ):- return visitor.visitHavingClause(self)- else:- return visitor.visitChildren(self)----- def havingClause(self):-- localctx = HogQLParser.HavingClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 74, self.RULE_havingClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 675- self.match(HogQLParser.HAVING)- self.state = 676- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class QualifyClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def QUALIFY(self):- return self.getToken(HogQLParser.QUALIFY, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_qualifyClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitQualifyClause" ):- return visitor.visitQualifyClause(self)- else:- return visitor.visitChildren(self)----- def qualifyClause(self):-- localctx = HogQLParser.QualifyClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 76, self.RULE_qualifyClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 678- self.match(HogQLParser.QUALIFY)- self.state = 679- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class OrderByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ORDER(self):- return self.getToken(HogQLParser.ORDER, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def orderExprList(self):- return self.getTypedRuleContext(HogQLParser.OrderExprListContext,0)--- def interpolateClause(self):- return self.getTypedRuleContext(HogQLParser.InterpolateClauseContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_orderByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitOrderByClause" ):- return visitor.visitOrderByClause(self)- else:- return visitor.visitChildren(self)----- def orderByClause(self):-- localctx = HogQLParser.OrderByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 78, self.RULE_orderByClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 681- self.match(HogQLParser.ORDER)- self.state = 682- self.match(HogQLParser.BY)- self.state = 683- self.orderExprList()- self.state = 685- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==55:- self.state = 684- self.interpolateClause()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class InterpolateClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def INTERPOLATE(self):- return self.getToken(HogQLParser.INTERPOLATE, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def interpolateExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.InterpolateExprContext)- else:- return self.getTypedRuleContext(HogQLParser.InterpolateExprContext,i)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_interpolateClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitInterpolateClause" ):- return visitor.visitInterpolateClause(self)- else:- return visitor.visitChildren(self)----- def interpolateClause(self):-- localctx = HogQLParser.InterpolateClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 80, self.RULE_interpolateClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 687- self.match(HogQLParser.INTERPOLATE)- self.state = 699- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==165:- self.state = 688- self.match(HogQLParser.LPAREN)- self.state = 689- self.interpolateExpr()- self.state = 694- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 690- self.match(HogQLParser.COMMA)- self.state = 691- self.interpolateExpr()- self.state = 696- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 697- self.match(HogQLParser.RPAREN)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ProjectionOrderByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ORDER(self):- return self.getToken(HogQLParser.ORDER, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_projectionOrderByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitProjectionOrderByClause" ):- return visitor.visitProjectionOrderByClause(self)- else:- return visitor.visitChildren(self)----- def projectionOrderByClause(self):-- localctx = HogQLParser.ProjectionOrderByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 82, self.RULE_projectionOrderByClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 701- self.match(HogQLParser.ORDER)- self.state = 702- self.match(HogQLParser.BY)- self.state = 703- self.columnExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class LimitByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LIMIT(self):- return self.getToken(HogQLParser.LIMIT, 0)-- def limitExpr(self):- return self.getTypedRuleContext(HogQLParser.LimitExprContext,0)--- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_limitByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitLimitByClause" ):- return visitor.visitLimitByClause(self)- else:- return visitor.visitChildren(self)----- def limitByClause(self):-- localctx = HogQLParser.LimitByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 84, self.RULE_limitByClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 705- self.match(HogQLParser.LIMIT)- self.state = 706- self.limitExpr()- self.state = 707- self.match(HogQLParser.BY)- self.state = 708- self.columnExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class LimitAndOffsetClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LIMIT(self):- return self.getToken(HogQLParser.LIMIT, 0)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def PERCENT(self):- return self.getToken(HogQLParser.PERCENT, 0)-- def COMMA(self):- return self.getToken(HogQLParser.COMMA, 0)-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def TIES(self):- return self.getToken(HogQLParser.TIES, 0)-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_limitAndOffsetClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitLimitAndOffsetClause" ):- return visitor.visitLimitAndOffsetClause(self)- else:- return visitor.visitChildren(self)----- def limitAndOffsetClause(self):-- localctx = HogQLParser.LimitAndOffsetClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 86, self.RULE_limitAndOffsetClause)- self._la = 0 # Token type- try:- self.state = 735- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,83,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 710- self.match(HogQLParser.LIMIT)- self.state = 711- self.columnExpr(0)- self.state = 713- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==175:- self.state = 712- self.match(HogQLParser.PERCENT)--- self.state = 717- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 715- self.match(HogQLParser.COMMA)- self.state = 716- self.columnExpr(0)--- self.state = 721- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 719- self.match(HogQLParser.WITH)- self.state = 720- self.match(HogQLParser.TIES)--- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 723- self.match(HogQLParser.LIMIT)- self.state = 724- self.columnExpr(0)- self.state = 726- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==175:- self.state = 725- self.match(HogQLParser.PERCENT)--- self.state = 730- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 728- self.match(HogQLParser.WITH)- self.state = 729- self.match(HogQLParser.TIES)--- self.state = 732- self.match(HogQLParser.OFFSET)- self.state = 733- self.columnExpr(0)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class OffsetOnlyClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_offsetOnlyClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitOffsetOnlyClause" ):- return visitor.visitOffsetOnlyClause(self)- else:- return visitor.visitChildren(self)----- def offsetOnlyClause(self):-- localctx = HogQLParser.OffsetOnlyClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 88, self.RULE_offsetOnlyClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 737- self.match(HogQLParser.OFFSET)- self.state = 738- self.columnExpr(0)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SettingsClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def SETTINGS(self):- return self.getToken(HogQLParser.SETTINGS, 0)-- def settingExprList(self):- return self.getTypedRuleContext(HogQLParser.SettingExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_settingsClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSettingsClause" ):- return visitor.visitSettingsClause(self)- else:- return visitor.visitChildren(self)----- def settingsClause(self):-- localctx = HogQLParser.SettingsClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 90, self.RULE_settingsClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 740- self.match(HogQLParser.SETTINGS)- self.state = 741- self.settingExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ValuesClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def VALUES(self):- return self.getToken(HogQLParser.VALUES, 0)-- def valuesRow(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ValuesRowContext)- else:- return self.getTypedRuleContext(HogQLParser.ValuesRowContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_valuesClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitValuesClause" ):- return visitor.visitValuesClause(self)- else:- return visitor.visitChildren(self)----- def valuesClause(self):-- localctx = HogQLParser.ValuesClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 92, self.RULE_valuesClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 743- self.match(HogQLParser.VALUES)- self.state = 744- self.valuesRow()- self.state = 749- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 745- self.match(HogQLParser.COMMA)- self.state = 746- self.valuesRow()- self.state = 751- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ValuesRowContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_valuesRow-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitValuesRow" ):- return visitor.visitValuesRow(self)- else:- return visitor.visitChildren(self)----- def valuesRow(self):-- localctx = HogQLParser.ValuesRowContext(self, self._ctx, self.state)- self.enterRule(localctx, 94, self.RULE_valuesRow)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 752- self.match(HogQLParser.LPAREN)- self.state = 753- self.columnExpr(0)- self.state = 758- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 754- self.match(HogQLParser.COMMA)- self.state = 755- self.columnExpr(0)- self.state = 760- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 761- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class JoinExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_joinExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)--- class JoinExprPositionalContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def joinExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.JoinExprContext)- else:- return self.getTypedRuleContext(HogQLParser.JoinExprContext,i)-- def POSITIONAL(self):- return self.getToken(HogQLParser.POSITIONAL, 0)- def JOIN(self):- return self.getToken(HogQLParser.JOIN, 0)- def joinConstraintClause(self):- return self.getTypedRuleContext(HogQLParser.JoinConstraintClauseContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprPositional" ):- return visitor.visitJoinExprPositional(self)- else:- return visitor.visitChildren(self)--- class JoinExprOpContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def joinExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.JoinExprContext)- else:- return self.getTypedRuleContext(HogQLParser.JoinExprContext,i)-- def JOIN(self):- return self.getToken(HogQLParser.JOIN, 0)- def NATURAL(self):- return self.getToken(HogQLParser.NATURAL, 0)- def joinOp(self):- return self.getTypedRuleContext(HogQLParser.JoinOpContext,0)-- def joinConstraintClause(self):- return self.getTypedRuleContext(HogQLParser.JoinConstraintClauseContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprOp" ):- return visitor.visitJoinExprOp(self)- else:- return visitor.visitChildren(self)--- class JoinExprTableContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableExpr(self):- return self.getTypedRuleContext(HogQLParser.TableExprContext,0)-- def FINAL(self):- return self.getToken(HogQLParser.FINAL, 0)- def sampleClause(self):- return self.getTypedRuleContext(HogQLParser.SampleClauseContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprTable" ):- return visitor.visitJoinExprTable(self)- else:- return visitor.visitChildren(self)--- class JoinExprUnpivotContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def joinExpr(self):- return self.getTypedRuleContext(HogQLParser.JoinExprContext,0)-- def UNPIVOT(self):- return self.getToken(HogQLParser.UNPIVOT, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def unpivotColumnList(self):- return self.getTypedRuleContext(HogQLParser.UnpivotColumnListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def INCLUDE(self):- return self.getToken(HogQLParser.INCLUDE, 0)- def NULLS(self):- return self.getToken(HogQLParser.NULLS, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprUnpivot" ):- return visitor.visitJoinExprUnpivot(self)- else:- return visitor.visitChildren(self)--- class JoinExprParensContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def joinExpr(self):- return self.getTypedRuleContext(HogQLParser.JoinExprContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprParens" ):- return visitor.visitJoinExprParens(self)- else:- return visitor.visitChildren(self)--- class JoinExprCrossOpContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def joinExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.JoinExprContext)- else:- return self.getTypedRuleContext(HogQLParser.JoinExprContext,i)-- def joinOpCross(self):- return self.getTypedRuleContext(HogQLParser.JoinOpCrossContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprCrossOp" ):- return visitor.visitJoinExprCrossOp(self)- else:- return visitor.visitChildren(self)--- class JoinExprPivotContext(JoinExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def joinExpr(self):- return self.getTypedRuleContext(HogQLParser.JoinExprContext,0)-- def PIVOT(self):- return self.getToken(HogQLParser.PIVOT, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)-- def pivotColumnList(self):- return self.getTypedRuleContext(HogQLParser.PivotColumnListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def GROUP(self):- return self.getToken(HogQLParser.GROUP, 0)- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinExprPivot" ):- return visitor.visitJoinExprPivot(self)- else:- return visitor.visitChildren(self)---- def joinExpr(self, _p:int=0):- _parentctx = self._ctx- _parentState = self.state- localctx = HogQLParser.JoinExprContext(self, self._ctx, _parentState)- _prevctx = localctx- _startState = 96- self.enterRecursionRule(localctx, 96, self.RULE_joinExpr, _p)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 775- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,88,self._ctx)- if la_ == 1:- localctx = HogQLParser.JoinExprTableContext(self, localctx)- self._ctx = localctx- _prevctx = localctx-- self.state = 764- self.tableExpr(0)- self.state = 766- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,86,self._ctx)- if la_ == 1:- self.state = 765- self.match(HogQLParser.FINAL)--- self.state = 769- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,87,self._ctx)- if la_ == 1:- self.state = 768- self.sampleClause()--- pass-- elif la_ == 2:- localctx = HogQLParser.JoinExprParensContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 771- self.match(HogQLParser.LPAREN)- self.state = 772- self.joinExpr(0)- self.state = 773- self.match(HogQLParser.RPAREN)- pass--- self._ctx.stop = self._input.LT(-1)- self.state = 824- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,96,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- if self._parseListeners is not None:- self.triggerExitRuleEvent()- _prevctx = localctx- self.state = 822- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,95,self._ctx)- if la_ == 1:- localctx = HogQLParser.JoinExprCrossOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr)- self.state = 777- if not self.precpred(self._ctx, 5):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 5)")- self.state = 778- self.joinOpCross()- self.state = 779- self.joinExpr(6)- pass-- elif la_ == 2:- localctx = HogQLParser.JoinExprOpContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr)- self.state = 781- if not self.precpred(self._ctx, 7):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 7)")- self.state = 783- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==71:- self.state = 782- self.match(HogQLParser.NATURAL)--- self.state = 786- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -9214363738088406758) != 0) or _la==93 or _la==100:- self.state = 785- self.joinOp()--- self.state = 788- self.match(HogQLParser.JOIN)- self.state = 789- self.joinExpr(0)- self.state = 791- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,91,self._ctx)- if la_ == 1:- self.state = 790- self.joinConstraintClause()--- pass-- elif la_ == 3:- localctx = HogQLParser.JoinExprPositionalContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr)- self.state = 793- if not self.precpred(self._ctx, 6):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 6)")- self.state = 794- self.match(HogQLParser.POSITIONAL)- self.state = 795- self.match(HogQLParser.JOIN)- self.state = 796- self.joinExpr(0)- self.state = 798- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,92,self._ctx)- if la_ == 1:- self.state = 797- self.joinConstraintClause()--- pass-- elif la_ == 4:- localctx = HogQLParser.JoinExprPivotContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr)- self.state = 800- if not self.precpred(self._ctx, 4):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 4)")- self.state = 801- self.match(HogQLParser.PIVOT)- self.state = 802- self.match(HogQLParser.LPAREN)- self.state = 803- self.columnExprList()- self.state = 804- self.pivotColumnList()- self.state = 808- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==42:- self.state = 805- self.match(HogQLParser.GROUP)- self.state = 806- self.match(HogQLParser.BY)- self.state = 807- self.columnExprList()--- self.state = 810- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 5:- localctx = HogQLParser.JoinExprUnpivotContext(self, HogQLParser.JoinExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_joinExpr)- self.state = 812- if not self.precpred(self._ctx, 3):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 3)")- self.state = 813- self.match(HogQLParser.UNPIVOT)- self.state = 816- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==50:- self.state = 814- self.match(HogQLParser.INCLUDE)- self.state = 815- self.match(HogQLParser.NULLS)--- self.state = 818- self.match(HogQLParser.LPAREN)- self.state = 819- self.unpivotColumnList()- self.state = 820- self.match(HogQLParser.RPAREN)- pass--- self.state = 826- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,96,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.unrollRecursionContexts(_parentctx)- return localctx--- class JoinOpContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_joinOp--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class JoinOpFullContext(JoinOpContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinOpContext- super().__init__(parser)- self.copyFrom(ctx)-- def FULL(self):- return self.getToken(HogQLParser.FULL, 0)- def OUTER(self):- return self.getToken(HogQLParser.OUTER, 0)- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)- def ANY(self):- return self.getToken(HogQLParser.ANY, 0)- def ASOF(self):- return self.getToken(HogQLParser.ASOF, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinOpFull" ):- return visitor.visitJoinOpFull(self)- else:- return visitor.visitChildren(self)--- class JoinOpInnerContext(JoinOpContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinOpContext- super().__init__(parser)- self.copyFrom(ctx)-- def INNER(self):- return self.getToken(HogQLParser.INNER, 0)- def ANTI(self):- return self.getToken(HogQLParser.ANTI, 0)- def SEMI(self):- return self.getToken(HogQLParser.SEMI, 0)- def ASOF(self):- return self.getToken(HogQLParser.ASOF, 0)- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)- def ANY(self):- return self.getToken(HogQLParser.ANY, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinOpInner" ):- return visitor.visitJoinOpInner(self)- else:- return visitor.visitChildren(self)--- class JoinOpLeftRightContext(JoinOpContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.JoinOpContext- super().__init__(parser)- self.copyFrom(ctx)-- def ASOF(self):- return self.getToken(HogQLParser.ASOF, 0)- def LEFT(self):- return self.getToken(HogQLParser.LEFT, 0)- def RIGHT(self):- return self.getToken(HogQLParser.RIGHT, 0)- def ANTI(self):- return self.getToken(HogQLParser.ANTI, 0)- def SEMI(self):- return self.getToken(HogQLParser.SEMI, 0)- def OUTER(self):- return self.getToken(HogQLParser.OUTER, 0)- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)- def ANY(self):- return self.getToken(HogQLParser.ANY, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinOpLeftRight" ):- return visitor.visitJoinOpLeftRight(self)- else:- return visitor.visitChildren(self)---- def joinOp(self):-- localctx = HogQLParser.JoinOpContext(self, self._ctx, self.state)- self.enterRule(localctx, 98, self.RULE_joinOp)- self._la = 0 # Token type- try:- self.state = 880- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,111,self._ctx)- if la_ == 1:- localctx = HogQLParser.JoinOpInnerContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 840- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,99,self._ctx)- if la_ == 1:- self.state = 828- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0):- self.state = 827- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 830- self.match(HogQLParser.INNER)- pass-- elif la_ == 2:- self.state = 831- self.match(HogQLParser.INNER)- self.state = 833- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0):- self.state = 832- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- pass-- elif la_ == 3:- self.state = 835- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- pass-- elif la_ == 4:- self.state = 836- self.match(HogQLParser.ANTI)- pass-- elif la_ == 5:- self.state = 837- self.match(HogQLParser.SEMI)- pass-- elif la_ == 6:- self.state = 838- self.match(HogQLParser.ASOF)- self.state = 839- _la = self._input.LA(1)- if not(_la==3 or _la==100):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- pass--- pass-- elif la_ == 2:- localctx = HogQLParser.JoinOpLeftRightContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 862- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,105,self._ctx)- if la_ == 1:- self.state = 843- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 282) != 0) or _la==100:- self.state = 842- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 282) != 0) or _la==100):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 845- _la = self._input.LA(1)- if not(_la==63 or _la==93):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 847- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==80:- self.state = 846- self.match(HogQLParser.OUTER)--- pass-- elif la_ == 2:- self.state = 849- _la = self._input.LA(1)- if not(_la==63 or _la==93):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 851- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==80:- self.state = 850- self.match(HogQLParser.OUTER)--- self.state = 854- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 282) != 0) or _la==100:- self.state = 853- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 282) != 0) or _la==100):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- pass-- elif la_ == 3:- self.state = 856- self.match(HogQLParser.ASOF)- self.state = 857- _la = self._input.LA(1)- if not(_la==3 or _la==100):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 858- _la = self._input.LA(1)- if not(_la==63 or _la==93):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 860- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==80:- self.state = 859- self.match(HogQLParser.OUTER)--- pass--- pass-- elif la_ == 3:- localctx = HogQLParser.JoinOpFullContext(self, localctx)- self.enterOuterAlt(localctx, 3)- self.state = 878- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,110,self._ctx)- if la_ == 1:- self.state = 865- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0):- self.state = 864- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 867- self.match(HogQLParser.FULL)- self.state = 869- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==80:- self.state = 868- self.match(HogQLParser.OUTER)--- pass-- elif la_ == 2:- self.state = 871- self.match(HogQLParser.FULL)- self.state = 873- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==80:- self.state = 872- self.match(HogQLParser.OUTER)--- self.state = 876- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0):- self.state = 875- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 274) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- pass--- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class JoinOpCrossContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def CROSS(self):- return self.getToken(HogQLParser.CROSS, 0)-- def JOIN(self):- return self.getToken(HogQLParser.JOIN, 0)-- def COMMA(self):- return self.getToken(HogQLParser.COMMA, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_joinOpCross-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinOpCross" ):- return visitor.visitJoinOpCross(self)- else:- return visitor.visitChildren(self)----- def joinOpCross(self):-- localctx = HogQLParser.JoinOpCrossContext(self, self._ctx, self.state)- self.enterRule(localctx, 100, self.RULE_joinOpCross)- try:- self.state = 885- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [18]:- self.enterOuterAlt(localctx, 1)- self.state = 882- self.match(HogQLParser.CROSS)- self.state = 883- self.match(HogQLParser.JOIN)- pass- elif token in [151]:- self.enterOuterAlt(localctx, 2)- self.state = 884- self.match(HogQLParser.COMMA)- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class JoinConstraintClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ON(self):- return self.getToken(HogQLParser.ON, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def USING(self):- return self.getToken(HogQLParser.USING, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_joinConstraintClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitJoinConstraintClause" ):- return visitor.visitJoinConstraintClause(self)- else:- return visitor.visitChildren(self)----- def joinConstraintClause(self):-- localctx = HogQLParser.JoinConstraintClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 102, self.RULE_joinConstraintClause)- try:- self.state = 896- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,113,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 887- self.match(HogQLParser.ON)- self.state = 888- self.columnExprList()- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 889- self.match(HogQLParser.USING)- self.state = 890- self.match(HogQLParser.LPAREN)- self.state = 891- self.columnExprList()- self.state = 892- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- self.enterOuterAlt(localctx, 3)- self.state = 894- self.match(HogQLParser.USING)- self.state = 895- self.columnExprList()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SampleClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def SAMPLE(self):- return self.getToken(HogQLParser.SAMPLE, 0)-- def ratioExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.RatioExprContext)- else:- return self.getTypedRuleContext(HogQLParser.RatioExprContext,i)--- def PERCENT(self):- return self.getToken(HogQLParser.PERCENT, 0)-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_sampleClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSampleClause" ):- return visitor.visitSampleClause(self)- else:- return visitor.visitChildren(self)----- def sampleClause(self):-- localctx = HogQLParser.SampleClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 104, self.RULE_sampleClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 898- self.match(HogQLParser.SAMPLE)- self.state = 899- self.ratioExpr()- self.state = 901- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,114,self._ctx)- if la_ == 1:- self.state = 900- self.match(HogQLParser.PERCENT)--- self.state = 905- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,115,self._ctx)- if la_ == 1:- self.state = 903- self.match(HogQLParser.OFFSET)- self.state = 904- self.ratioExpr()--- self.state = 911- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,116,self._ctx)- if la_ == 1:- self.state = 907- self.match(HogQLParser.LPAREN)- self.state = 908- self.identifier()- self.state = 909- self.match(HogQLParser.RPAREN)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class LimitExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def COMMA(self):- return self.getToken(HogQLParser.COMMA, 0)-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_limitExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitLimitExpr" ):- return visitor.visitLimitExpr(self)- else:- return visitor.visitChildren(self)----- def limitExpr(self):-- localctx = HogQLParser.LimitExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 106, self.RULE_limitExpr)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 913- self.columnExpr(0)- self.state = 916- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==76 or _la==151:- self.state = 914- _la = self._input.LA(1)- if not(_la==76 or _la==151):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 915- self.columnExpr(0)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class OrderExprListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def orderExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.OrderExprContext)- else:- return self.getTypedRuleContext(HogQLParser.OrderExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_orderExprList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitOrderExprList" ):- return visitor.visitOrderExprList(self)- else:- return visitor.visitChildren(self)----- def orderExprList(self):-- localctx = HogQLParser.OrderExprListContext(self, self._ctx, self.state)- self.enterRule(localctx, 108, self.RULE_orderExprList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 918- self.orderExpr()- self.state = 923- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 919- self.match(HogQLParser.COMMA)- self.state = 920- self.orderExpr()- self.state = 925- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class OrderExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def NULLS(self):- return self.getToken(HogQLParser.NULLS, 0)-- def COLLATE(self):- return self.getToken(HogQLParser.COLLATE, 0)-- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def withFillClause(self):- return self.getTypedRuleContext(HogQLParser.WithFillClauseContext,0)--- def ASCENDING(self):- return self.getToken(HogQLParser.ASCENDING, 0)-- def DESCENDING(self):- return self.getToken(HogQLParser.DESCENDING, 0)-- def DESC(self):- return self.getToken(HogQLParser.DESC, 0)-- def FIRST(self):- return self.getToken(HogQLParser.FIRST, 0)-- def LAST(self):- return self.getToken(HogQLParser.LAST, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_orderExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitOrderExpr" ):- return visitor.visitOrderExpr(self)- else:- return visitor.visitChildren(self)----- def orderExpr(self):-- localctx = HogQLParser.OrderExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 110, self.RULE_orderExpr)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 926- self.columnExpr(0)- self.state = 928- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & 25165952) != 0):- self.state = 927- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 25165952) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 932- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==75:- self.state = 930- self.match(HogQLParser.NULLS)- self.state = 931- _la = self._input.LA(1)- if not(_la==35 or _la==61):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 936- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==16:- self.state = 934- self.match(HogQLParser.COLLATE)- self.state = 935- self.match(HogQLParser.STRING_LITERAL)--- self.state = 939- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==130:- self.state = 938- self.withFillClause()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithFillClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def FILL(self):- return self.getToken(HogQLParser.FILL, 0)-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def TO(self):- return self.getToken(HogQLParser.TO, 0)-- def STEP(self):- return self.getToken(HogQLParser.STEP, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_withFillClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithFillClause" ):- return visitor.visitWithFillClause(self)- else:- return visitor.visitChildren(self)----- def withFillClause(self):-- localctx = HogQLParser.WithFillClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 112, self.RULE_withFillClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 941- self.match(HogQLParser.WITH)- self.state = 942- self.match(HogQLParser.FILL)- self.state = 945- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==39:- self.state = 943- self.match(HogQLParser.FROM)- self.state = 944- self.columnExpr(0)--- self.state = 949- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==112:- self.state = 947- self.match(HogQLParser.TO)- self.state = 948- self.columnExpr(0)--- self.state = 953- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==103:- self.state = 951- self.match(HogQLParser.STEP)- self.state = 952- self.columnExpr(0)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class InterpolateExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def AS(self):- return self.getToken(HogQLParser.AS, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_interpolateExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitInterpolateExpr" ):- return visitor.visitInterpolateExpr(self)- else:- return visitor.visitChildren(self)----- def interpolateExpr(self):-- localctx = HogQLParser.InterpolateExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 114, self.RULE_interpolateExpr)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 955- self.columnExpr(0)- self.state = 958- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==6:- self.state = 956- self.match(HogQLParser.AS)- self.state = 957- self.columnExpr(0)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class RatioExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def placeholder(self):- return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0)--- def numberLiteral(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.NumberLiteralContext)- else:- return self.getTypedRuleContext(HogQLParser.NumberLiteralContext,i)--- def SLASH(self):- return self.getToken(HogQLParser.SLASH, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_ratioExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitRatioExpr" ):- return visitor.visitRatioExpr(self)- else:- return visitor.visitChildren(self)----- def ratioExpr(self):-- localctx = HogQLParser.RatioExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 116, self.RULE_ratioExpr)- try:- self.state = 966- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [163]:- self.enterOuterAlt(localctx, 1)- self.state = 960- self.placeholder()- pass- elif token in [52, 72, 136, 137, 138, 139, 140, 141, 153, 155, 176]:- self.enterOuterAlt(localctx, 2)- self.state = 961- self.numberLiteral()- self.state = 964- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,127,self._ctx)- if la_ == 1:- self.state = 962- self.match(HogQLParser.SLASH)- self.state = 963- self.numberLiteral()--- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SettingExprListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def settingExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.SettingExprContext)- else:- return self.getTypedRuleContext(HogQLParser.SettingExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_settingExprList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSettingExprList" ):- return visitor.visitSettingExprList(self)- else:- return visitor.visitChildren(self)----- def settingExprList(self):-- localctx = HogQLParser.SettingExprListContext(self, self._ctx, self.state)- self.enterRule(localctx, 118, self.RULE_settingExprList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 968- self.settingExpr()- self.state = 973- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 969- self.match(HogQLParser.COMMA)- self.state = 970- self.settingExpr()- self.state = 975- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SettingExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def EQ_SINGLE(self):- return self.getToken(HogQLParser.EQ_SINGLE, 0)-- def literal(self):- return self.getTypedRuleContext(HogQLParser.LiteralContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_settingExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSettingExpr" ):- return visitor.visitSettingExpr(self)- else:- return visitor.visitChildren(self)----- def settingExpr(self):-- localctx = HogQLParser.SettingExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 120, self.RULE_settingExpr)- try:- self.enterOuterAlt(localctx, 1)- self.state = 976- self.identifier()- self.state = 977- self.match(HogQLParser.EQ_SINGLE)- self.state = 978- self.literal()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WindowExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def winPartitionByClause(self):- return self.getTypedRuleContext(HogQLParser.WinPartitionByClauseContext,0)--- def winOrderByClause(self):- return self.getTypedRuleContext(HogQLParser.WinOrderByClauseContext,0)--- def winFrameClause(self):- return self.getTypedRuleContext(HogQLParser.WinFrameClauseContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_windowExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWindowExpr" ):- return visitor.visitWindowExpr(self)- else:- return visitor.visitChildren(self)----- def windowExpr(self):-- localctx = HogQLParser.WindowExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 122, self.RULE_windowExpr)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 981- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==82:- self.state = 980- self.winPartitionByClause()--- self.state = 984- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==79:- self.state = 983- self.winOrderByClause()--- self.state = 987- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==89 or _la==96:- self.state = 986- self.winFrameClause()--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WinPartitionByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def PARTITION(self):- return self.getToken(HogQLParser.PARTITION, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_winPartitionByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWinPartitionByClause" ):- return visitor.visitWinPartitionByClause(self)- else:- return visitor.visitChildren(self)----- def winPartitionByClause(self):-- localctx = HogQLParser.WinPartitionByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 124, self.RULE_winPartitionByClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 989- self.match(HogQLParser.PARTITION)- self.state = 990- self.match(HogQLParser.BY)- self.state = 991- self.columnExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WinOrderByClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ORDER(self):- return self.getToken(HogQLParser.ORDER, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def orderExprList(self):- return self.getTypedRuleContext(HogQLParser.OrderExprListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_winOrderByClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWinOrderByClause" ):- return visitor.visitWinOrderByClause(self)- else:- return visitor.visitChildren(self)----- def winOrderByClause(self):-- localctx = HogQLParser.WinOrderByClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 126, self.RULE_winOrderByClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 993- self.match(HogQLParser.ORDER)- self.state = 994- self.match(HogQLParser.BY)- self.state = 995- self.orderExprList()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithinGroupClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def WITHIN(self):- return self.getToken(HogQLParser.WITHIN, 0)-- def GROUP(self):- return self.getToken(HogQLParser.GROUP, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def orderByClause(self):- return self.getTypedRuleContext(HogQLParser.OrderByClauseContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_withinGroupClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithinGroupClause" ):- return visitor.visitWithinGroupClause(self)- else:- return visitor.visitChildren(self)----- def withinGroupClause(self):-- localctx = HogQLParser.WithinGroupClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 128, self.RULE_withinGroupClause)- try:- self.enterOuterAlt(localctx, 1)- self.state = 997- self.match(HogQLParser.WITHIN)- self.state = 998- self.match(HogQLParser.GROUP)- self.state = 999- self.match(HogQLParser.LPAREN)- self.state = 1000- self.orderByClause()- self.state = 1001- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WinFrameClauseContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def winFrameExtend(self):- return self.getTypedRuleContext(HogQLParser.WinFrameExtendContext,0)--- def ROWS(self):- return self.getToken(HogQLParser.ROWS, 0)-- def RANGE(self):- return self.getToken(HogQLParser.RANGE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_winFrameClause-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWinFrameClause" ):- return visitor.visitWinFrameClause(self)- else:- return visitor.visitChildren(self)----- def winFrameClause(self):-- localctx = HogQLParser.WinFrameClauseContext(self, self._ctx, self.state)- self.enterRule(localctx, 130, self.RULE_winFrameClause)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1003- _la = self._input.LA(1)- if not(_la==89 or _la==96):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 1004- self.winFrameExtend()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WinFrameExtendContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_winFrameExtend--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class FrameStartContext(WinFrameExtendContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.WinFrameExtendContext- super().__init__(parser)- self.copyFrom(ctx)-- def winFrameBound(self):- return self.getTypedRuleContext(HogQLParser.WinFrameBoundContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFrameStart" ):- return visitor.visitFrameStart(self)- else:- return visitor.visitChildren(self)--- class FrameBetweenContext(WinFrameExtendContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.WinFrameExtendContext- super().__init__(parser)- self.copyFrom(ctx)-- def BETWEEN(self):- return self.getToken(HogQLParser.BETWEEN, 0)- def winFrameBound(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.WinFrameBoundContext)- else:- return self.getTypedRuleContext(HogQLParser.WinFrameBoundContext,i)-- def AND(self):- return self.getToken(HogQLParser.AND, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFrameBetween" ):- return visitor.visitFrameBetween(self)- else:- return visitor.visitChildren(self)---- def winFrameExtend(self):-- localctx = HogQLParser.WinFrameExtendContext(self, self._ctx, self.state)- self.enterRule(localctx, 132, self.RULE_winFrameExtend)- try:- self.state = 1012- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,133,self._ctx)- if la_ == 1:- localctx = HogQLParser.FrameStartContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1006- self.winFrameBound()- pass-- elif la_ == 2:- localctx = HogQLParser.FrameBetweenContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1007- self.match(HogQLParser.BETWEEN)- self.state = 1008- self.winFrameBound()- self.state = 1009- self.match(HogQLParser.AND)- self.state = 1010- self.winFrameBound()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WinFrameBoundContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def CURRENT(self):- return self.getToken(HogQLParser.CURRENT, 0)-- def ROW(self):- return self.getToken(HogQLParser.ROW, 0)-- def UNBOUNDED(self):- return self.getToken(HogQLParser.UNBOUNDED, 0)-- def PRECEDING(self):- return self.getToken(HogQLParser.PRECEDING, 0)-- def FOLLOWING(self):- return self.getToken(HogQLParser.FOLLOWING, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_winFrameBound-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWinFrameBound" ):- return visitor.visitWinFrameBound(self)- else:- return visitor.visitChildren(self)----- def winFrameBound(self):-- localctx = HogQLParser.WinFrameBoundContext(self, self._ctx, self.state)- self.enterRule(localctx, 134, self.RULE_winFrameBound)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1026- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,134,self._ctx)- if la_ == 1:- self.state = 1014- self.match(HogQLParser.CURRENT)- self.state = 1015- self.match(HogQLParser.ROW)- pass-- elif la_ == 2:- self.state = 1016- self.match(HogQLParser.UNBOUNDED)- self.state = 1017- self.match(HogQLParser.PRECEDING)- pass-- elif la_ == 3:- self.state = 1018- self.match(HogQLParser.UNBOUNDED)- self.state = 1019- self.match(HogQLParser.FOLLOWING)- pass-- elif la_ == 4:- self.state = 1020- self.columnExpr(0)- self.state = 1021- self.match(HogQLParser.PRECEDING)- pass-- elif la_ == 5:- self.state = 1023- self.columnExpr(0)- self.state = 1024- self.match(HogQLParser.FOLLOWING)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def EOF(self):- return self.getToken(HogQLParser.EOF, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_expr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitExpr" ):- return visitor.visitExpr(self)- else:- return visitor.visitChildren(self)----- def expr(self):-- localctx = HogQLParser.ExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 136, self.RULE_expr)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1028- self.columnExpr(0)- self.state = 1029- self.match(HogQLParser.EOF)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnTypeExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_columnTypeExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)--- class ColumnTypeExprNestedContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnTypeExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnTypeExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnTypeExprContext,i)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprNested" ):- return visitor.visitColumnTypeExprNested(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprParamContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprParam" ):- return visitor.visitColumnTypeExprParam(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprArrayContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnTypeExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeExprContext,0)-- def LBRACKET(self):- return self.getToken(HogQLParser.LBRACKET, 0)- def RBRACKET(self):- return self.getToken(HogQLParser.RBRACKET, 0)- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprArray" ):- return visitor.visitColumnTypeExprArray(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprComplexContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnTypeExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnTypeExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnTypeExprContext,i)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprComplex" ):- return visitor.visitColumnTypeExprComplex(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprSimpleContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprSimple" ):- return visitor.visitColumnTypeExprSimple(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprEnumContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def enumValue(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.EnumValueContext)- else:- return self.getTypedRuleContext(HogQLParser.EnumValueContext,i)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprEnum" ):- return visitor.visitColumnTypeExprEnum(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeExprCompoundContext(ColumnTypeExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeExprCompound" ):- return visitor.visitColumnTypeExprCompound(self)- else:- return visitor.visitChildren(self)---- def columnTypeExpr(self, _p:int=0):- _parentctx = self._ctx- _parentState = self.state- localctx = HogQLParser.ColumnTypeExprContext(self, self._ctx, _parentState)- _prevctx = localctx- _startState = 138- self.enterRecursionRule(localctx, 138, self.RULE_columnTypeExpr, _p)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1094- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,143,self._ctx)- if la_ == 1:- localctx = HogQLParser.ColumnTypeExprNestedContext(self, localctx)- self._ctx = localctx- _prevctx = localctx-- self.state = 1032- self.identifier()- self.state = 1033- self.match(HogQLParser.LPAREN)- self.state = 1034- self.identifier()- self.state = 1035- self.columnTypeExpr(0)- self.state = 1042- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,135,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1036- self.match(HogQLParser.COMMA)- self.state = 1037- self.identifier()- self.state = 1038- self.columnTypeExpr(0)- self.state = 1044- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,135,self._ctx)-- self.state = 1046- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1045- self.match(HogQLParser.COMMA)--- self.state = 1048- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 2:- localctx = HogQLParser.ColumnTypeExprEnumContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1050- self.identifier()- self.state = 1051- self.match(HogQLParser.LPAREN)- self.state = 1052- self.enumValue()- self.state = 1057- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,137,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1053- self.match(HogQLParser.COMMA)- self.state = 1054- self.enumValue()- self.state = 1059- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,137,self._ctx)-- self.state = 1061- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1060- self.match(HogQLParser.COMMA)--- self.state = 1063- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- localctx = HogQLParser.ColumnTypeExprComplexContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1065- self.identifier()- self.state = 1066- self.match(HogQLParser.LPAREN)- self.state = 1067- self.columnTypeExpr(0)- self.state = 1072- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,139,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1068- self.match(HogQLParser.COMMA)- self.state = 1069- self.columnTypeExpr(0)- self.state = 1074- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,139,self._ctx)-- self.state = 1076- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1075- self.match(HogQLParser.COMMA)--- self.state = 1078- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 4:- localctx = HogQLParser.ColumnTypeExprParamContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1080- self.identifier()- self.state = 1081- self.match(HogQLParser.LPAREN)- self.state = 1083- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1082- self.columnExprList()--- self.state = 1085- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 5:- localctx = HogQLParser.ColumnTypeExprCompoundContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1087- self.identifier()- self.state = 1089- self._errHandler.sync(self)- _alt = 1- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt == 1:- self.state = 1088- self.identifier()-- else:- raise NoViableAltException(self)- self.state = 1091- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,142,self._ctx)-- pass-- elif la_ == 6:- localctx = HogQLParser.ColumnTypeExprSimpleContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1093- self.identifier()- pass--- self._ctx.stop = self._input.LT(-1)- self.state = 1104- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,145,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- if self._parseListeners is not None:- self.triggerExitRuleEvent()- _prevctx = localctx- localctx = HogQLParser.ColumnTypeExprArrayContext(self, HogQLParser.ColumnTypeExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnTypeExpr)- self.state = 1096- if not self.precpred(self._ctx, 7):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 7)")- self.state = 1097- self.match(HogQLParser.LBRACKET)- self.state = 1099- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==139:- self.state = 1098- self.match(HogQLParser.DECIMAL_LITERAL)--- self.state = 1101- self.match(HogQLParser.RBRACKET)- self.state = 1106- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,145,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.unrollRecursionContexts(_parentctx)- return localctx--- class ColumnTypeCastExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_columnTypeCastExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class ColumnTypeCastExprSimpleContext(ColumnTypeCastExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeCastExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnTypeCastIdentifier(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeCastIdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeCastExprSimple" ):- return visitor.visitColumnTypeCastExprSimple(self)- else:- return visitor.visitChildren(self)--- class ColumnTypeCastExprWithTimeZoneContext(ColumnTypeCastExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnTypeCastExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnTypeCastIdentifier(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeCastIdentifierContext,0)-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)- def TIME(self):- return self.getToken(HogQLParser.TIME, 0)- def ZONE(self):- return self.getToken(HogQLParser.ZONE, 0)- def LOCAL(self):- return self.getToken(HogQLParser.LOCAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeCastExprWithTimeZone" ):- return visitor.visitColumnTypeCastExprWithTimeZone(self)- else:- return visitor.visitChildren(self)---- def columnTypeCastExpr(self):-- localctx = HogQLParser.ColumnTypeCastExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 140, self.RULE_columnTypeCastExpr)- self._la = 0 # Token type- try:- self.state = 1116- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,147,self._ctx)- if la_ == 1:- localctx = HogQLParser.ColumnTypeCastExprWithTimeZoneContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1107- self.columnTypeCastIdentifier()- self.state = 1108- self.match(HogQLParser.WITH)- self.state = 1110- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==110:- self.state = 1109- self.match(HogQLParser.LOCAL)--- self.state = 1112- self.match(HogQLParser.TIME)- self.state = 1113- self.match(HogQLParser.ZONE)- pass-- elif la_ == 2:- localctx = HogQLParser.ColumnTypeCastExprSimpleContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1115- self.columnTypeCastIdentifier()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnTypeCastIdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def IDENTIFIER(self):- return self.getToken(HogQLParser.IDENTIFIER, 0)-- def QUOTED_IDENTIFIER(self):- return self.getToken(HogQLParser.QUOTED_IDENTIFIER, 0)-- def interval(self):- return self.getTypedRuleContext(HogQLParser.IntervalContext,0)--- def keywordForTypeCast(self):- return self.getTypedRuleContext(HogQLParser.KeywordForTypeCastContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_columnTypeCastIdentifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnTypeCastIdentifier" ):- return visitor.visitColumnTypeCastIdentifier(self)- else:- return visitor.visitChildren(self)----- def columnTypeCastIdentifier(self):-- localctx = HogQLParser.ColumnTypeCastIdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 142, self.RULE_columnTypeCastIdentifier)- try:- self.state = 1122- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [134]:- self.enterOuterAlt(localctx, 1)- self.state = 1118- self.match(HogQLParser.IDENTIFIER)- pass- elif token in [135]:- self.enterOuterAlt(localctx, 2)- self.state = 1119- self.match(HogQLParser.QUOTED_IDENTIFIER)- pass- elif token in [22, 45, 68, 69, 88, 98, 125, 132]:- self.enterOuterAlt(localctx, 3)- self.state = 1120- self.interval()- pass- elif token in [21, 56, 108, 109]:- self.enterOuterAlt(localctx, 4)- self.state = 1121- self.keywordForTypeCast()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KeywordForTypeCastContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def DATE(self):- return self.getToken(HogQLParser.DATE, 0)-- def TIME(self):- return self.getToken(HogQLParser.TIME, 0)-- def TIMESTAMP(self):- return self.getToken(HogQLParser.TIMESTAMP, 0)-- def INTERVAL(self):- return self.getToken(HogQLParser.INTERVAL, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_keywordForTypeCast-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKeywordForTypeCast" ):- return visitor.visitKeywordForTypeCast(self)- else:- return visitor.visitChildren(self)----- def keywordForTypeCast(self):-- localctx = HogQLParser.KeywordForTypeCastContext(self, self._ctx, self.state)- self.enterRule(localctx, 144, self.RULE_keywordForTypeCast)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1124- _la = self._input.LA(1)- if not(_la==21 or _la==56 or _la==108 or _la==109):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnExprListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_columnExprList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprList" ):- return visitor.visitColumnExprList(self)- else:- return visitor.visitChildren(self)----- def columnExprList(self):-- localctx = HogQLParser.ColumnExprListContext(self, self._ctx, self.state)- self.enterRule(localctx, 146, self.RULE_columnExprList)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1126- self.columnExpr(0)- self.state = 1131- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,149,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1127- self.match(HogQLParser.COMMA)- self.state = 1128- self.columnExpr(0)- self.state = 1133- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,149,self._ctx)-- self.state = 1135- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,150,self._ctx)- if la_ == 1:- self.state = 1134- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectColumnExprListBeforeFromContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_selectColumnExprListBeforeFrom--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class SelectColumnExprListBeforeFromTrailingCommaContext(SelectColumnExprListBeforeFromContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprListBeforeFromContext- super().__init__(parser)- self.copyFrom(ctx)-- def selectColumnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.SelectColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.SelectColumnExprContext,i)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectColumnExprListBeforeFromTrailingComma" ):- return visitor.visitSelectColumnExprListBeforeFromTrailingComma(self)- else:- return visitor.visitChildren(self)--- class SelectColumnExprListBeforeFromPlainContext(SelectColumnExprListBeforeFromContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprListBeforeFromContext- super().__init__(parser)- self.copyFrom(ctx)-- def selectColumnExprList(self):- return self.getTypedRuleContext(HogQLParser.SelectColumnExprListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectColumnExprListBeforeFromPlain" ):- return visitor.visitSelectColumnExprListBeforeFromPlain(self)- else:- return visitor.visitChildren(self)---- def selectColumnExprListBeforeFrom(self):-- localctx = HogQLParser.SelectColumnExprListBeforeFromContext(self, self._ctx, self.state)- self.enterRule(localctx, 148, self.RULE_selectColumnExprListBeforeFrom)- try:- self.state = 1148- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,152,self._ctx)- if la_ == 1:- localctx = HogQLParser.SelectColumnExprListBeforeFromTrailingCommaContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1137- self.selectColumnExpr()- self.state = 1142- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,151,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1138- self.match(HogQLParser.COMMA)- self.state = 1139- self.selectColumnExpr()- self.state = 1144- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,151,self._ctx)-- self.state = 1145- self.match(HogQLParser.COMMA)- pass-- elif la_ == 2:- localctx = HogQLParser.SelectColumnExprListBeforeFromPlainContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1147- self.selectColumnExprList()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectColumnExprListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def selectColumnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.SelectColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.SelectColumnExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_selectColumnExprList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitSelectColumnExprList" ):- return visitor.visitSelectColumnExprList(self)- else:- return visitor.visitChildren(self)----- def selectColumnExprList(self):-- localctx = HogQLParser.SelectColumnExprListContext(self, self._ctx, self.state)- self.enterRule(localctx, 150, self.RULE_selectColumnExprList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1150- self.selectColumnExpr()- self.state = 1155- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,153,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1151- self.match(HogQLParser.COMMA)- self.state = 1152- self.selectColumnExpr()- self.state = 1157- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,153,self._ctx)-- self.state = 1159- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1158- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class SelectColumnExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_selectColumnExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class ColumnExprAliasBeforeContext(SelectColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprAliasBefore" ):- return visitor.visitColumnExprAliasBefore(self)- else:- return visitor.visitChildren(self)--- class ColumnExprInvalidFromImplicitAliasContext(SelectColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)- def implicitAlias(self):- return self.getTypedRuleContext(HogQLParser.ImplicitAliasContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprInvalidFromImplicitAlias" ):- return visitor.visitColumnExprInvalidFromImplicitAlias(self)- else:- return visitor.visitChildren(self)--- class ColumnExprAliasImplicitContext(SelectColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def implicitAlias(self):- return self.getTypedRuleContext(HogQLParser.ImplicitAliasContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprAliasImplicit" ):- return visitor.visitColumnExprAliasImplicit(self)- else:- return visitor.visitChildren(self)--- class ColumnExprSelectValueContext(SelectColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.SelectColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprSelectValue" ):- return visitor.visitColumnExprSelectValue(self)- else:- return visitor.visitChildren(self)---- def selectColumnExpr(self):-- localctx = HogQLParser.SelectColumnExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 152, self.RULE_selectColumnExpr)- try:- self.state = 1171- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,155,self._ctx)- if la_ == 1:- localctx = HogQLParser.ColumnExprAliasBeforeContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1161- self.identifier()- self.state = 1162- self.match(HogQLParser.COLON)- self.state = 1163- self.columnExpr(0)- pass-- elif la_ == 2:- localctx = HogQLParser.ColumnExprInvalidFromImplicitAliasContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1165- self.match(HogQLParser.FROM)- self.state = 1166- self.implicitAlias()- pass-- elif la_ == 3:- localctx = HogQLParser.ColumnExprSelectValueContext(self, localctx)- self.enterOuterAlt(localctx, 3)- self.state = 1167- self.columnExpr(0)- pass-- elif la_ == 4:- localctx = HogQLParser.ColumnExprAliasImplicitContext(self, localctx)- self.enterOuterAlt(localctx, 4)- self.state = 1168- self.columnExpr(0)- self.state = 1169- self.implicitAlias()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_columnExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)--- class ColumnExprColumnsAllContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsAll" ):- return visitor.visitColumnExprColumnsAll(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTernaryOpContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def QUERY(self):- return self.getToken(HogQLParser.QUERY, 0)- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTernaryOp" ):- return visitor.visitColumnExprTernaryOp(self)- else:- return visitor.visitChildren(self)--- class ColumnExprAliasContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprAlias" ):- return visitor.visitColumnExprAlias(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNegateContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def DASH(self):- return self.getToken(HogQLParser.DASH, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNegate" ):- return visitor.visitColumnExprNegate(self)- else:- return visitor.visitChildren(self)--- class ColumnExprLiteralContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def literal(self):- return self.getTypedRuleContext(HogQLParser.LiteralContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprLiteral" ):- return visitor.visitColumnExprLiteral(self)- else:- return visitor.visitChildren(self)--- class ColumnExprArrayContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LBRACKET(self):- return self.getToken(HogQLParser.LBRACKET, 0)- def RBRACKET(self):- return self.getToken(HogQLParser.RBRACKET, 0)- def ARRAY(self):- return self.getToken(HogQLParser.ARRAY, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprArray" ):- return visitor.visitColumnExprArray(self)- else:- return visitor.visitChildren(self)--- class ColumnExprOrContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def OR(self):- return self.getToken(HogQLParser.OR, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprOr" ):- return visitor.visitColumnExprOr(self)- else:- return visitor.visitChildren(self)--- class ColumnExprPrecedence1Context(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.left = None # ColumnExprContext- self.operator = None # Token- self.right = None # ColumnExprContext- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def SLASH(self):- return self.getToken(HogQLParser.SLASH, 0)- def PERCENT(self):- return self.getToken(HogQLParser.PERCENT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprPrecedence1" ):- return visitor.visitColumnExprPrecedence1(self)- else:- return visitor.visitChildren(self)--- class ColumnExprPrecedence2Context(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.left = None # ColumnExprContext- self.operator = None # Token- self.right = None # ColumnExprContext- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def PLUS(self):- return self.getToken(HogQLParser.PLUS, 0)- def DASH(self):- return self.getToken(HogQLParser.DASH, 0)- def CONCAT(self):- return self.getToken(HogQLParser.CONCAT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprPrecedence2" ):- return visitor.visitColumnExprPrecedence2(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNullSafeEqContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def NULL_SAFE_EQ(self):- return self.getToken(HogQLParser.NULL_SAFE_EQ, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNullSafeEq" ):- return visitor.visitColumnExprNullSafeEq(self)- else:- return visitor.visitChildren(self)--- class ColumnExprPrecedence3Context(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.left = None # ColumnExprContext- self.operator = None # Token- self.right = None # ColumnExprContext- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def IN(self):- return self.getToken(HogQLParser.IN, 0)- def EQ_DOUBLE(self):- return self.getToken(HogQLParser.EQ_DOUBLE, 0)- def EQ_SINGLE(self):- return self.getToken(HogQLParser.EQ_SINGLE, 0)- def NOT_EQ(self):- return self.getToken(HogQLParser.NOT_EQ, 0)- def LT_EQ(self):- return self.getToken(HogQLParser.LT_EQ, 0)- def LT(self):- return self.getToken(HogQLParser.LT, 0)- def GT_EQ(self):- return self.getToken(HogQLParser.GT_EQ, 0)- def GT(self):- return self.getToken(HogQLParser.GT, 0)- def LIKE(self):- return self.getToken(HogQLParser.LIKE, 0)- def ILIKE(self):- return self.getToken(HogQLParser.ILIKE, 0)- def REGEX_SINGLE(self):- return self.getToken(HogQLParser.REGEX_SINGLE, 0)- def REGEX_DOUBLE(self):- return self.getToken(HogQLParser.REGEX_DOUBLE, 0)- def NOT_REGEX(self):- return self.getToken(HogQLParser.NOT_REGEX, 0)- def IREGEX_SINGLE(self):- return self.getToken(HogQLParser.IREGEX_SINGLE, 0)- def IREGEX_DOUBLE(self):- return self.getToken(HogQLParser.IREGEX_DOUBLE, 0)- def NOT_IREGEX(self):- return self.getToken(HogQLParser.NOT_IREGEX, 0)- def COHORT(self):- return self.getToken(HogQLParser.COHORT, 0)- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprPrecedence3" ):- return visitor.visitColumnExprPrecedence3(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIntervalContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def INTERVAL(self):- return self.getToken(HogQLParser.INTERVAL, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def interval(self):- return self.getTypedRuleContext(HogQLParser.IntervalContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprInterval" ):- return visitor.visitColumnExprInterval(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIsNullContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def IS(self):- return self.getToken(HogQLParser.IS, 0)- def NULL_SQL(self):- return self.getToken(HogQLParser.NULL_SQL, 0)- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprIsNull" ):- return visitor.visitColumnExprIsNull(self)- else:- return visitor.visitChildren(self)--- class ColumnExprWinFunctionTargetContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.columnExprs = None # ColumnExprListContext- self.columnArgList = None # ColumnExprListContext- self.filterExpr = None # ColumnExprContext- self.copyFrom(ctx)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def OVER(self):- return self.getToken(HogQLParser.OVER, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)- def FILTER(self):- return self.getToken(HogQLParser.FILTER, 0)- def WHERE(self):- return self.getToken(HogQLParser.WHERE, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)-- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprWinFunctionTarget" ):- return visitor.visitColumnExprWinFunctionTarget(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNamedArgContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def COLONEQUALS(self):- return self.getToken(HogQLParser.COLONEQUALS, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNamedArg" ):- return visitor.visitColumnExprNamedArg(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNullPropertyAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def NULL_PROPERTY(self):- return self.getToken(HogQLParser.NULL_PROPERTY, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNullPropertyAccess" ):- return visitor.visitColumnExprNullPropertyAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIntervalStringContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def INTERVAL(self):- return self.getToken(HogQLParser.INTERVAL, 0)- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprIntervalString" ):- return visitor.visitColumnExprIntervalString(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTagElementContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def hogqlxTagElement(self):- return self.getTypedRuleContext(HogQLParser.HogqlxTagElementContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTagElement" ):- return visitor.visitColumnExprTagElement(self)- else:- return visitor.visitChildren(self)--- class ColumnExprCallContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprCall" ):- return visitor.visitColumnExprCall(self)- else:- return visitor.visitChildren(self)--- class ColumnExprArrayAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def LBRACKET(self):- return self.getToken(HogQLParser.LBRACKET, 0)- def RBRACKET(self):- return self.getToken(HogQLParser.RBRACKET, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprArrayAccess" ):- return visitor.visitColumnExprArrayAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprBetweenContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def BETWEEN(self):- return self.getToken(HogQLParser.BETWEEN, 0)- def AND(self):- return self.getToken(HogQLParser.AND, 0)- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprBetween" ):- return visitor.visitColumnExprBetween(self)- else:- return visitor.visitChildren(self)--- class ColumnExprParensContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprParens" ):- return visitor.visitColumnExprParens(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTimestampContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def TIMESTAMP(self):- return self.getToken(HogQLParser.TIMESTAMP, 0)- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTimestamp" ):- return visitor.visitColumnExprTimestamp(self)- else:- return visitor.visitChildren(self)--- class ColumnExprAndContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def AND(self):- return self.getToken(HogQLParser.AND, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprAnd" ):- return visitor.visitColumnExprAnd(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsQualifiedExcludeContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsQualifiedExclude" ):- return visitor.visitColumnExprColumnsQualifiedExclude(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNotContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNot" ):- return visitor.visitColumnExprNot(self)- else:- return visitor.visitChildren(self)--- class ColumnExprFunctionContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.columnExprs = None # ColumnExprListContext- self.columnArgList = None # ColumnExprListContext- self.filterExpr = None # ColumnExprContext- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)- def ORDER(self):- return self.getToken(HogQLParser.ORDER, 0)- def BY(self):- return self.getToken(HogQLParser.BY, 0)- def orderExprList(self):- return self.getTypedRuleContext(HogQLParser.OrderExprListContext,0)-- def FILTER(self):- return self.getToken(HogQLParser.FILTER, 0)- def WHERE(self):- return self.getToken(HogQLParser.WHERE, 0)- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprFunction" ):- return visitor.visitColumnExprFunction(self)- else:- return visitor.visitChildren(self)--- class ColumnExprDictContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LBRACE(self):- return self.getToken(HogQLParser.LBRACE, 0)- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)- def kvPairList(self):- return self.getTypedRuleContext(HogQLParser.KvPairListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprDict" ):- return visitor.visitColumnExprDict(self)- else:- return visitor.visitChildren(self)--- class ColumnExprSubqueryContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprSubquery" ):- return visitor.visitColumnExprSubquery(self)- else:- return visitor.visitChildren(self)--- class ColumnExprSubstringContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def SUBSTRING(self):- return self.getToken(HogQLParser.SUBSTRING, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprSubstring" ):- return visitor.visitColumnExprSubstring(self)- else:- return visitor.visitChildren(self)--- class ColumnExprCastContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def CAST(self):- return self.getToken(HogQLParser.CAST, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def columnTypeExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeExprContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprCast" ):- return visitor.visitColumnExprCast(self)- else:- return visitor.visitChildren(self)--- class ColumnExprArraySliceContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def LBRACKET(self):- return self.getToken(HogQLParser.LBRACKET, 0)- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)- def RBRACKET(self):- return self.getToken(HogQLParser.RBRACKET, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprArraySlice" ):- return visitor.visitColumnExprArraySlice(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsQualifiedReplaceContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def REPLACE(self):- return self.getToken(HogQLParser.REPLACE, 0)- def columnsReplaceList(self):- return self.getTypedRuleContext(HogQLParser.ColumnsReplaceListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsQualifiedReplace" ):- return visitor.visitColumnExprColumnsQualifiedReplace(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNullTupleAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def NULL_PROPERTY(self):- return self.getToken(HogQLParser.NULL_PROPERTY, 0)- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNullTupleAccess" ):- return visitor.visitColumnExprNullTupleAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprFunctionWithinGroupContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.columnExprs = None # ColumnExprListContext- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def withinGroupClause(self):- return self.getTypedRuleContext(HogQLParser.WithinGroupClauseContext,0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprFunctionWithinGroup" ):- return visitor.visitColumnExprFunctionWithinGroup(self)- else:- return visitor.visitChildren(self)--- class ColumnExprPositionalContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def HASH(self):- return self.getToken(HogQLParser.HASH, 0)- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprPositional" ):- return visitor.visitColumnExprPositional(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsRegexContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsRegex" ):- return visitor.visitColumnExprColumnsRegex(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTypeCastContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def DOUBLECOLON(self):- return self.getToken(HogQLParser.DOUBLECOLON, 0)- def columnTypeCastExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeCastExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTypeCast" ):- return visitor.visitColumnExprTypeCast(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIsDistinctFromContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def IS(self):- return self.getToken(HogQLParser.IS, 0)- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprIsDistinctFrom" ):- return visitor.visitColumnExprIsDistinctFrom(self)- else:- return visitor.visitChildren(self)--- class ColumnExprSpreadColumnsListContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprSpreadColumnsList" ):- return visitor.visitColumnExprSpreadColumnsList(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsExcludeReplaceContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)- def REPLACE(self):- return self.getToken(HogQLParser.REPLACE, 0)- def columnsReplaceList(self):- return self.getTypedRuleContext(HogQLParser.ColumnsReplaceListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsExcludeReplace" ):- return visitor.visitColumnExprColumnsExcludeReplace(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsQualifiedExcludeReplaceContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)- def REPLACE(self):- return self.getToken(HogQLParser.REPLACE, 0)- def columnsReplaceList(self):- return self.getTypedRuleContext(HogQLParser.ColumnsReplaceListContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsQualifiedExcludeReplace" ):- return visitor.visitColumnExprColumnsQualifiedExcludeReplace(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsExcludeContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsExclude" ):- return visitor.visitColumnExprColumnsExclude(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColonLambdaContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LAMBDA(self):- return self.getToken(HogQLParser.LAMBDA, 0)- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColonLambda" ):- return visitor.visitColumnExprColonLambda(self)- else:- return visitor.visitChildren(self)--- class ColumnExprCallSelectContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprCallSelect" ):- return visitor.visitColumnExprCallSelect(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsQualifiedAllContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsQualifiedAll" ):- return visitor.visitColumnExprColumnsQualifiedAll(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTrimContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def TRIM(self):- return self.getToken(HogQLParser.TRIM, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def string(self):- return self.getTypedRuleContext(HogQLParser.StringContext,0)-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def BOTH(self):- return self.getToken(HogQLParser.BOTH, 0)- def LEADING(self):- return self.getToken(HogQLParser.LEADING, 0)- def TRAILING(self):- return self.getToken(HogQLParser.TRAILING, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTrim" ):- return visitor.visitColumnExprTrim(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTemplateStringContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def templateString(self):- return self.getTypedRuleContext(HogQLParser.TemplateStringContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTemplateString" ):- return visitor.visitColumnExprTemplateString(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTupleContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTuple" ):- return visitor.visitColumnExprTuple(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTryCastContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def TRY_CAST(self):- return self.getToken(HogQLParser.TRY_CAST, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def columnTypeExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnTypeExprContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTryCast" ):- return visitor.visitColumnExprTryCast(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsListContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsList" ):- return visitor.visitColumnExprColumnsList(self)- else:- return visitor.visitChildren(self)--- class ColumnExprColumnsReplaceContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def REPLACE(self):- return self.getToken(HogQLParser.REPLACE, 0)- def columnsReplaceList(self):- return self.getTypedRuleContext(HogQLParser.ColumnsReplaceListContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprColumnsReplace" ):- return visitor.visitColumnExprColumnsReplace(self)- else:- return visitor.visitChildren(self)--- class ColumnExprSpreadColumnsRegexContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprSpreadColumnsRegex" ):- return visitor.visitColumnExprSpreadColumnsRegex(self)- else:- return visitor.visitChildren(self)--- class ColumnExprPropertyAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprPropertyAccess" ):- return visitor.visitColumnExprPropertyAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNullArrayAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def NULL_PROPERTY(self):- return self.getToken(HogQLParser.NULL_PROPERTY, 0)- def LBRACKET(self):- return self.getToken(HogQLParser.LBRACKET, 0)- def RBRACKET(self):- return self.getToken(HogQLParser.RBRACKET, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNullArrayAccess" ):- return visitor.visitColumnExprNullArrayAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIgnoreNullsContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def IGNORE(self):- return self.getToken(HogQLParser.IGNORE, 0)- def NULLS(self):- return self.getToken(HogQLParser.NULLS, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprIgnoreNulls" ):- return visitor.visitColumnExprIgnoreNulls(self)- else:- return visitor.visitChildren(self)--- class ColumnExprNullishContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)-- def NULLISH(self):- return self.getToken(HogQLParser.NULLISH, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprNullish" ):- return visitor.visitColumnExprNullish(self)- else:- return visitor.visitChildren(self)--- class ColumnExprTupleAccessContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTupleAccess" ):- return visitor.visitColumnExprTupleAccess(self)- else:- return visitor.visitChildren(self)--- class ColumnExprCaseContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.caseExpr = None # ColumnExprContext- self.whenExpr = None # ColumnExprContext- self.thenExpr = None # ColumnExprContext- self.elseExpr = None # ColumnExprContext- self.copyFrom(ctx)-- def CASE(self):- return self.getToken(HogQLParser.CASE, 0)- def END(self):- return self.getToken(HogQLParser.END, 0)- def WHEN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.WHEN)- else:- return self.getToken(HogQLParser.WHEN, i)- def THEN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.THEN)- else:- return self.getToken(HogQLParser.THEN, i)- def ELSE(self):- return self.getToken(HogQLParser.ELSE, 0)- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprCase" ):- return visitor.visitColumnExprCase(self)- else:- return visitor.visitChildren(self)--- class ColumnExprDateContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def DATE(self):- return self.getToken(HogQLParser.DATE, 0)- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprDate" ):- return visitor.visitColumnExprDate(self)- else:- return visitor.visitChildren(self)--- class ColumnExprWinFunctionContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.columnExprs = None # ColumnExprListContext- self.columnArgList = None # ColumnExprListContext- self.filterExpr = None # ColumnExprContext- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def OVER(self):- return self.getToken(HogQLParser.OVER, 0)- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)- def windowExpr(self):- return self.getTypedRuleContext(HogQLParser.WindowExprContext,0)-- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)- def FILTER(self):- return self.getToken(HogQLParser.FILTER, 0)- def WHERE(self):- return self.getToken(HogQLParser.WHERE, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)-- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprWinFunction" ):- return visitor.visitColumnExprWinFunction(self)- else:- return visitor.visitChildren(self)--- class ColumnExprLambdaContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnLambdaExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnLambdaExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprLambda" ):- return visitor.visitColumnExprLambda(self)- else:- return visitor.visitChildren(self)--- class ColumnExprIdentifierContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnIdentifier(self):- return self.getTypedRuleContext(HogQLParser.ColumnIdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprIdentifier" ):- return visitor.visitColumnExprIdentifier(self)- else:- return visitor.visitChildren(self)--- class ColumnExprAsteriskContext(ColumnExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def ASTERISK(self):- return self.getToken(HogQLParser.ASTERISK, 0)- def tableIdentifier(self):- return self.getTypedRuleContext(HogQLParser.TableIdentifierContext,0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def identifierList(self):- return self.getTypedRuleContext(HogQLParser.IdentifierListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprAsterisk" ):- return visitor.visitColumnExprAsterisk(self)- else:- return visitor.visitChildren(self)---- def columnExpr(self, _p:int=0):- _parentctx = self._ctx- _parentState = self.state- localctx = HogQLParser.ColumnExprContext(self, self._ctx, _parentState)- _prevctx = localctx- _startState = 154- self.enterRecursionRule(localctx, 154, self.RULE_columnExpr, _p)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1522- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,186,self._ctx)- if la_ == 1:- localctx = HogQLParser.ColumnExprCaseContext(self, localctx)- self._ctx = localctx- _prevctx = localctx-- self.state = 1174- self.match(HogQLParser.CASE)- self.state = 1176- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,156,self._ctx)- if la_ == 1:- self.state = 1175- localctx.caseExpr = self.columnExpr(0)--- self.state = 1183- self._errHandler.sync(self)- _la = self._input.LA(1)- while True:- self.state = 1178- self.match(HogQLParser.WHEN)- self.state = 1179- localctx.whenExpr = self.columnExpr(0)- self.state = 1180- self.match(HogQLParser.THEN)- self.state = 1181- localctx.thenExpr = self.columnExpr(0)- self.state = 1185- self._errHandler.sync(self)- _la = self._input.LA(1)- if not (_la==126):- break-- self.state = 1189- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==26:- self.state = 1187- self.match(HogQLParser.ELSE)- self.state = 1188- localctx.elseExpr = self.columnExpr(0)--- self.state = 1191- self.match(HogQLParser.END)- pass-- elif la_ == 2:- localctx = HogQLParser.ColumnExprCastContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1193- self.match(HogQLParser.CAST)- self.state = 1194- self.match(HogQLParser.LPAREN)- self.state = 1195- self.columnExpr(0)- self.state = 1196- self.match(HogQLParser.AS)- self.state = 1197- self.columnTypeExpr(0)- self.state = 1198- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- localctx = HogQLParser.ColumnExprTryCastContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1200- self.match(HogQLParser.TRY_CAST)- self.state = 1201- self.match(HogQLParser.LPAREN)- self.state = 1202- self.columnExpr(0)- self.state = 1203- self.match(HogQLParser.AS)- self.state = 1204- self.columnTypeExpr(0)- self.state = 1205- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 4:- localctx = HogQLParser.ColumnExprDateContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1207- self.match(HogQLParser.DATE)- self.state = 1208- self.match(HogQLParser.STRING_LITERAL)- pass-- elif la_ == 5:- localctx = HogQLParser.ColumnExprIntervalContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1209- self.match(HogQLParser.INTERVAL)- self.state = 1210- self.columnExpr(0)- self.state = 1211- self.interval()- pass-- elif la_ == 6:- localctx = HogQLParser.ColumnExprIntervalStringContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1213- self.match(HogQLParser.INTERVAL)- self.state = 1214- self.match(HogQLParser.STRING_LITERAL)- pass-- elif la_ == 7:- localctx = HogQLParser.ColumnExprSubstringContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1215- self.match(HogQLParser.SUBSTRING)- self.state = 1216- self.match(HogQLParser.LPAREN)- self.state = 1217- self.columnExpr(0)- self.state = 1218- self.match(HogQLParser.FROM)- self.state = 1219- self.columnExpr(0)- self.state = 1222- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==38:- self.state = 1220- self.match(HogQLParser.FOR)- self.state = 1221- self.columnExpr(0)--- self.state = 1224- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 8:- localctx = HogQLParser.ColumnExprTimestampContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1226- self.match(HogQLParser.TIMESTAMP)- self.state = 1227- self.match(HogQLParser.STRING_LITERAL)- pass-- elif la_ == 9:- localctx = HogQLParser.ColumnExprTrimContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1228- self.match(HogQLParser.TRIM)- self.state = 1229- self.match(HogQLParser.LPAREN)- self.state = 1230- _la = self._input.LA(1)- if not(_la==10 or _la==62 or _la==115):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- self.state = 1231- self.string()- self.state = 1232- self.match(HogQLParser.FROM)- self.state = 1233- self.columnExpr(0)- self.state = 1234- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 10:- localctx = HogQLParser.ColumnExprColumnsRegexContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1236- self.match(HogQLParser.COLUMNS)- self.state = 1237- self.match(HogQLParser.LPAREN)- self.state = 1238- self.match(HogQLParser.STRING_LITERAL)- self.state = 1239- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 11:- localctx = HogQLParser.ColumnExprColumnsListContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1240- self.match(HogQLParser.COLUMNS)- self.state = 1241- self.match(HogQLParser.LPAREN)- self.state = 1242- self.columnExprList()- self.state = 1243- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 12:- localctx = HogQLParser.ColumnExprColumnsExcludeReplaceContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1270- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [17]:- self.state = 1245- self.match(HogQLParser.COLUMNS)- self.state = 1246- self.match(HogQLParser.LPAREN)- self.state = 1247- self.match(HogQLParser.ASTERISK)- self.state = 1248- self.match(HogQLParser.EXCLUDE)- self.state = 1249- self.match(HogQLParser.LPAREN)- self.state = 1250- self.identifierList()- self.state = 1251- self.match(HogQLParser.RPAREN)- self.state = 1252- self.match(HogQLParser.REPLACE)- self.state = 1253- self.match(HogQLParser.LPAREN)- self.state = 1254- self.columnsReplaceList()- self.state = 1255- self.match(HogQLParser.RPAREN)- self.state = 1256- self.match(HogQLParser.RPAREN)- pass- elif token in [165]:- self.state = 1258- self.match(HogQLParser.LPAREN)- self.state = 1259- self.match(HogQLParser.ASTERISK)- self.state = 1260- self.match(HogQLParser.EXCLUDE)- self.state = 1261- self.match(HogQLParser.LPAREN)- self.state = 1262- self.identifierList()- self.state = 1263- self.match(HogQLParser.RPAREN)- self.state = 1264- self.match(HogQLParser.REPLACE)- self.state = 1265- self.match(HogQLParser.LPAREN)- self.state = 1266- self.columnsReplaceList()- self.state = 1267- self.match(HogQLParser.RPAREN)- self.state = 1268- self.match(HogQLParser.RPAREN)- pass- else:- raise NoViableAltException(self)-- pass-- elif la_ == 13:- localctx = HogQLParser.ColumnExprColumnsExcludeContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1272- self.match(HogQLParser.COLUMNS)- self.state = 1273- self.match(HogQLParser.LPAREN)- self.state = 1274- self.match(HogQLParser.ASTERISK)- self.state = 1275- self.match(HogQLParser.EXCLUDE)- self.state = 1276- self.match(HogQLParser.LPAREN)- self.state = 1277- self.identifierList()- self.state = 1278- self.match(HogQLParser.RPAREN)- self.state = 1279- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 14:- localctx = HogQLParser.ColumnExprColumnsReplaceContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1298- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [17]:- self.state = 1281- self.match(HogQLParser.COLUMNS)- self.state = 1282- self.match(HogQLParser.LPAREN)- self.state = 1283- self.match(HogQLParser.ASTERISK)- self.state = 1284- self.match(HogQLParser.REPLACE)- self.state = 1285- self.match(HogQLParser.LPAREN)- self.state = 1286- self.columnsReplaceList()- self.state = 1287- self.match(HogQLParser.RPAREN)- self.state = 1288- self.match(HogQLParser.RPAREN)- pass- elif token in [165]:- self.state = 1290- self.match(HogQLParser.LPAREN)- self.state = 1291- self.match(HogQLParser.ASTERISK)- self.state = 1292- self.match(HogQLParser.REPLACE)- self.state = 1293- self.match(HogQLParser.LPAREN)- self.state = 1294- self.columnsReplaceList()- self.state = 1295- self.match(HogQLParser.RPAREN)- self.state = 1296- self.match(HogQLParser.RPAREN)- pass- else:- raise NoViableAltException(self)-- pass-- elif la_ == 15:- localctx = HogQLParser.ColumnExprColumnsAllContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1300- self.match(HogQLParser.COLUMNS)- self.state = 1301- self.match(HogQLParser.LPAREN)- self.state = 1302- self.match(HogQLParser.ASTERISK)- self.state = 1303- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 16:- localctx = HogQLParser.ColumnExprColumnsQualifiedExcludeReplaceContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1304- self.match(HogQLParser.COLUMNS)- self.state = 1305- self.match(HogQLParser.LPAREN)- self.state = 1306- self.identifier()- self.state = 1307- self.match(HogQLParser.DOT)- self.state = 1308- self.match(HogQLParser.ASTERISK)- self.state = 1309- self.match(HogQLParser.EXCLUDE)- self.state = 1310- self.match(HogQLParser.LPAREN)- self.state = 1311- self.identifierList()- self.state = 1312- self.match(HogQLParser.RPAREN)- self.state = 1313- self.match(HogQLParser.REPLACE)- self.state = 1314- self.match(HogQLParser.LPAREN)- self.state = 1315- self.columnsReplaceList()- self.state = 1316- self.match(HogQLParser.RPAREN)- self.state = 1317- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 17:- localctx = HogQLParser.ColumnExprColumnsQualifiedExcludeContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1319- self.match(HogQLParser.COLUMNS)- self.state = 1320- self.match(HogQLParser.LPAREN)- self.state = 1321- self.identifier()- self.state = 1322- self.match(HogQLParser.DOT)- self.state = 1323- self.match(HogQLParser.ASTERISK)- self.state = 1324- self.match(HogQLParser.EXCLUDE)- self.state = 1325- self.match(HogQLParser.LPAREN)- self.state = 1326- self.identifierList()- self.state = 1327- self.match(HogQLParser.RPAREN)- self.state = 1328- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 18:- localctx = HogQLParser.ColumnExprColumnsQualifiedReplaceContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1330- self.match(HogQLParser.COLUMNS)- self.state = 1331- self.match(HogQLParser.LPAREN)- self.state = 1332- self.identifier()- self.state = 1333- self.match(HogQLParser.DOT)- self.state = 1334- self.match(HogQLParser.ASTERISK)- self.state = 1335- self.match(HogQLParser.REPLACE)- self.state = 1336- self.match(HogQLParser.LPAREN)- self.state = 1337- self.columnsReplaceList()- self.state = 1338- self.match(HogQLParser.RPAREN)- self.state = 1339- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 19:- localctx = HogQLParser.ColumnExprColumnsQualifiedAllContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1341- self.match(HogQLParser.COLUMNS)- self.state = 1342- self.match(HogQLParser.LPAREN)- self.state = 1343- self.identifier()- self.state = 1344- self.match(HogQLParser.DOT)- self.state = 1345- self.match(HogQLParser.ASTERISK)- self.state = 1346- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 20:- localctx = HogQLParser.ColumnExprSpreadColumnsRegexContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1348- self.match(HogQLParser.ASTERISK)- self.state = 1349- self.match(HogQLParser.COLUMNS)- self.state = 1350- self.match(HogQLParser.LPAREN)- self.state = 1351- self.match(HogQLParser.STRING_LITERAL)- self.state = 1352- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 21:- localctx = HogQLParser.ColumnExprSpreadColumnsListContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1353- self.match(HogQLParser.ASTERISK)- self.state = 1354- self.match(HogQLParser.COLUMNS)- self.state = 1355- self.match(HogQLParser.LPAREN)- self.state = 1356- self.columnExprList()- self.state = 1357- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 22:- localctx = HogQLParser.ColumnExprFunctionWithinGroupContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1359- self.identifier()- self.state = 1360- self.match(HogQLParser.LPAREN)- self.state = 1362- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1361- localctx.columnExprs = self.columnExprList()--- self.state = 1364- self.match(HogQLParser.RPAREN)- self.state = 1365- self.withinGroupClause()- pass-- elif la_ == 23:- localctx = HogQLParser.ColumnExprWinFunctionContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1367- self.identifier()-- self.state = 1368- self.match(HogQLParser.LPAREN)- self.state = 1370- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1369- localctx.columnExprs = self.columnExprList()--- self.state = 1372- self.match(HogQLParser.RPAREN)- self.state = 1382- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==165:- self.state = 1374- self.match(HogQLParser.LPAREN)- self.state = 1376- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,164,self._ctx)- if la_ == 1:- self.state = 1375- self.match(HogQLParser.DISTINCT)--- self.state = 1379- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1378- localctx.columnArgList = self.columnExprList()--- self.state = 1381- self.match(HogQLParser.RPAREN)--- self.state = 1390- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==33:- self.state = 1384- self.match(HogQLParser.FILTER)- self.state = 1385- self.match(HogQLParser.LPAREN)- self.state = 1386- self.match(HogQLParser.WHERE)- self.state = 1387- localctx.filterExpr = self.columnExpr(0)- self.state = 1388- self.match(HogQLParser.RPAREN)--- self.state = 1392- self.match(HogQLParser.OVER)- self.state = 1393- self.match(HogQLParser.LPAREN)- self.state = 1394- self.windowExpr()- self.state = 1395- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 24:- localctx = HogQLParser.ColumnExprWinFunctionTargetContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1397- self.identifier()-- self.state = 1398- self.match(HogQLParser.LPAREN)- self.state = 1400- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1399- localctx.columnExprs = self.columnExprList()--- self.state = 1402- self.match(HogQLParser.RPAREN)- self.state = 1412- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==165:- self.state = 1404- self.match(HogQLParser.LPAREN)- self.state = 1406- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,169,self._ctx)- if la_ == 1:- self.state = 1405- self.match(HogQLParser.DISTINCT)--- self.state = 1409- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1408- localctx.columnArgList = self.columnExprList()--- self.state = 1411- self.match(HogQLParser.RPAREN)--- self.state = 1420- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==33:- self.state = 1414- self.match(HogQLParser.FILTER)- self.state = 1415- self.match(HogQLParser.LPAREN)- self.state = 1416- self.match(HogQLParser.WHERE)- self.state = 1417- localctx.filterExpr = self.columnExpr(0)- self.state = 1418- self.match(HogQLParser.RPAREN)--- self.state = 1422- self.match(HogQLParser.OVER)- self.state = 1423- self.identifier()- pass-- elif la_ == 25:- localctx = HogQLParser.ColumnExprFunctionContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1425- self.identifier()- self.state = 1431- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,174,self._ctx)- if la_ == 1:- self.state = 1426- self.match(HogQLParser.LPAREN)- self.state = 1428- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1427- localctx.columnExprs = self.columnExprList()--- self.state = 1430- self.match(HogQLParser.RPAREN)--- self.state = 1433- self.match(HogQLParser.LPAREN)- self.state = 1435- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,175,self._ctx)- if la_ == 1:- self.state = 1434- self.match(HogQLParser.DISTINCT)--- self.state = 1438- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,176,self._ctx)- if la_ == 1:- self.state = 1437- localctx.columnArgList = self.columnExprList()--- self.state = 1443- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==79:- self.state = 1440- self.match(HogQLParser.ORDER)- self.state = 1441- self.match(HogQLParser.BY)- self.state = 1442- self.orderExprList()--- self.state = 1445- self.match(HogQLParser.RPAREN)- self.state = 1452- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,178,self._ctx)- if la_ == 1:- self.state = 1446- self.match(HogQLParser.FILTER)- self.state = 1447- self.match(HogQLParser.LPAREN)- self.state = 1448- self.match(HogQLParser.WHERE)- self.state = 1449- localctx.filterExpr = self.columnExpr(0)- self.state = 1450- self.match(HogQLParser.RPAREN)--- pass-- elif la_ == 26:- localctx = HogQLParser.ColumnExprTagElementContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1454- self.hogqlxTagElement()- pass-- elif la_ == 27:- localctx = HogQLParser.ColumnExprTemplateStringContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1455- self.templateString()- pass-- elif la_ == 28:- localctx = HogQLParser.ColumnExprLiteralContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1456- self.literal()- pass-- elif la_ == 29:- localctx = HogQLParser.ColumnExprNegateContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1457- self.match(HogQLParser.DASH)- self.state = 1458- self.columnExpr(26)- pass-- elif la_ == 30:- localctx = HogQLParser.ColumnExprNotContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1459- self.match(HogQLParser.NOT)- self.state = 1460- self.columnExpr(17)- pass-- elif la_ == 31:- localctx = HogQLParser.ColumnExprAsteriskContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1464- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -22520283327905794) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576778619) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 107) != 0):- self.state = 1461- self.tableIdentifier()- self.state = 1462- self.match(HogQLParser.DOT)--- self.state = 1466- self.match(HogQLParser.ASTERISK)- self.state = 1472- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,180,self._ctx)- if la_ == 1:- self.state = 1467- self.match(HogQLParser.EXCLUDE)- self.state = 1468- self.match(HogQLParser.LPAREN)- self.state = 1469- self.identifierList()- self.state = 1470- self.match(HogQLParser.RPAREN)--- pass-- elif la_ == 32:- localctx = HogQLParser.ColumnExprColonLambdaContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1474- self.match(HogQLParser.LAMBDA)- self.state = 1475- self.identifier()- self.state = 1480- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,181,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1476- self.match(HogQLParser.COMMA)- self.state = 1477- self.identifier()- self.state = 1482- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,181,self._ctx)-- self.state = 1484- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1483- self.match(HogQLParser.COMMA)--- self.state = 1486- self.match(HogQLParser.COLON)- self.state = 1487- self.columnExpr(10)- pass-- elif la_ == 33:- localctx = HogQLParser.ColumnExprSubqueryContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1489- self.match(HogQLParser.LPAREN)- self.state = 1490- self.selectSetStmt()- self.state = 1491- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 34:- localctx = HogQLParser.ColumnExprParensContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1493- self.match(HogQLParser.LPAREN)- self.state = 1494- self.columnExpr(0)- self.state = 1495- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 35:- localctx = HogQLParser.ColumnExprTupleContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1497- self.match(HogQLParser.LPAREN)- self.state = 1498- self.columnExprList()- self.state = 1499- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 36:- localctx = HogQLParser.ColumnExprArrayContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1502- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==5:- self.state = 1501- self.match(HogQLParser.ARRAY)--- self.state = 1504- self.match(HogQLParser.LBRACKET)- self.state = 1506- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1505- self.columnExprList()--- self.state = 1508- self.match(HogQLParser.RBRACKET)- pass-- elif la_ == 37:- localctx = HogQLParser.ColumnExprDictContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1509- self.match(HogQLParser.LBRACE)- self.state = 1511- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1510- self.kvPairList()--- self.state = 1513- self.match(HogQLParser.RBRACE)- pass-- elif la_ == 38:- localctx = HogQLParser.ColumnExprLambdaContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1514- self.columnLambdaExpr()- pass-- elif la_ == 39:- localctx = HogQLParser.ColumnExprNamedArgContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1515- self.identifier()- self.state = 1516- self.match(HogQLParser.COLONEQUALS)- self.state = 1517- self.columnExpr(3)- pass-- elif la_ == 40:- localctx = HogQLParser.ColumnExprPositionalContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1519- self.match(HogQLParser.HASH)- self.state = 1520- self.match(HogQLParser.DECIMAL_LITERAL)- pass-- elif la_ == 41:- localctx = HogQLParser.ColumnExprIdentifierContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1521- self.columnIdentifier()- pass--- self._ctx.stop = self._input.LT(-1)- self.state = 1665- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,201,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- if self._parseListeners is not None:- self.triggerExitRuleEvent()- _prevctx = localctx- self.state = 1663- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,200,self._ctx)- if la_ == 1:- localctx = HogQLParser.ColumnExprPrecedence1Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- localctx.left = _prevctx- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1524- if not self.precpred(self._ctx, 25):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 25)")- self.state = 1528- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [145]:- self.state = 1525- localctx.operator = self.match(HogQLParser.ASTERISK)- pass- elif token in [188]:- self.state = 1526- localctx.operator = self.match(HogQLParser.SLASH)- pass- elif token in [175]:- self.state = 1527- localctx.operator = self.match(HogQLParser.PERCENT)- pass- else:- raise NoViableAltException(self)-- self.state = 1530- localctx.right = self.columnExpr(26)- pass-- elif la_ == 2:- localctx = HogQLParser.ColumnExprPrecedence2Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- localctx.left = _prevctx- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1531- if not self.precpred(self._ctx, 24):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 24)")- self.state = 1535- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [176]:- self.state = 1532- localctx.operator = self.match(HogQLParser.PLUS)- pass- elif token in [153]:- self.state = 1533- localctx.operator = self.match(HogQLParser.DASH)- pass- elif token in [152]:- self.state = 1534- localctx.operator = self.match(HogQLParser.CONCAT)- pass- else:- raise NoViableAltException(self)-- self.state = 1537- localctx.right = self.columnExpr(25)- pass-- elif la_ == 3:- localctx = HogQLParser.ColumnExprPrecedence3Context(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- localctx.left = _prevctx- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1538- if not self.precpred(self._ctx, 23):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 23)")- self.state = 1563- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,192,self._ctx)- if la_ == 1:- self.state = 1539- localctx.operator = self.match(HogQLParser.EQ_DOUBLE)- pass-- elif la_ == 2:- self.state = 1540- localctx.operator = self.match(HogQLParser.EQ_SINGLE)- pass-- elif la_ == 3:- self.state = 1541- localctx.operator = self.match(HogQLParser.NOT_EQ)- pass-- elif la_ == 4:- self.state = 1542- localctx.operator = self.match(HogQLParser.LT_EQ)- pass-- elif la_ == 5:- self.state = 1543- localctx.operator = self.match(HogQLParser.LT)- pass-- elif la_ == 6:- self.state = 1544- localctx.operator = self.match(HogQLParser.GT_EQ)- pass-- elif la_ == 7:- self.state = 1545- localctx.operator = self.match(HogQLParser.GT)- pass-- elif la_ == 8:- self.state = 1547- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1546- localctx.operator = self.match(HogQLParser.NOT)--- self.state = 1549- self.match(HogQLParser.IN)- self.state = 1551- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,190,self._ctx)- if la_ == 1:- self.state = 1550- self.match(HogQLParser.COHORT)--- pass-- elif la_ == 9:- self.state = 1554- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1553- localctx.operator = self.match(HogQLParser.NOT)--- self.state = 1556- _la = self._input.LA(1)- if not(_la==48 or _la==65):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- pass-- elif la_ == 10:- self.state = 1557- localctx.operator = self.match(HogQLParser.REGEX_SINGLE)- pass-- elif la_ == 11:- self.state = 1558- localctx.operator = self.match(HogQLParser.REGEX_DOUBLE)- pass-- elif la_ == 12:- self.state = 1559- localctx.operator = self.match(HogQLParser.NOT_REGEX)- pass-- elif la_ == 13:- self.state = 1560- localctx.operator = self.match(HogQLParser.IREGEX_SINGLE)- pass-- elif la_ == 14:- self.state = 1561- localctx.operator = self.match(HogQLParser.IREGEX_DOUBLE)- pass-- elif la_ == 15:- self.state = 1562- localctx.operator = self.match(HogQLParser.NOT_IREGEX)- pass--- self.state = 1565- localctx.right = self.columnExpr(24)- pass-- elif la_ == 4:- localctx = HogQLParser.ColumnExprIsDistinctFromContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1566- if not self.precpred(self._ctx, 20):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 20)")- self.state = 1567- self.match(HogQLParser.IS)- self.state = 1569- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1568- self.match(HogQLParser.NOT)--- self.state = 1571- self.match(HogQLParser.DISTINCT)- self.state = 1572- self.match(HogQLParser.FROM)- self.state = 1573- self.columnExpr(21)- pass-- elif la_ == 5:- localctx = HogQLParser.ColumnExprNullSafeEqContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1574- if not self.precpred(self._ctx, 19):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 19)")- self.state = 1575- self.match(HogQLParser.NULL_SAFE_EQ)- self.state = 1576- self.columnExpr(20)- pass-- elif la_ == 6:- localctx = HogQLParser.ColumnExprNullishContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1577- if not self.precpred(self._ctx, 18):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 18)")- self.state = 1578- self.match(HogQLParser.NULLISH)- self.state = 1579- self.columnExpr(19)- pass-- elif la_ == 7:- localctx = HogQLParser.ColumnExprAndContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1580- if not self.precpred(self._ctx, 16):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 16)")- self.state = 1581- self.match(HogQLParser.AND)- self.state = 1582- self.columnExpr(17)- pass-- elif la_ == 8:- localctx = HogQLParser.ColumnExprOrContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1583- if not self.precpred(self._ctx, 15):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 15)")- self.state = 1584- self.match(HogQLParser.OR)- self.state = 1585- self.columnExpr(16)- pass-- elif la_ == 9:- localctx = HogQLParser.ColumnExprBetweenContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1586- if not self.precpred(self._ctx, 14):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 14)")- self.state = 1588- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1587- self.match(HogQLParser.NOT)--- self.state = 1590- self.match(HogQLParser.BETWEEN)- self.state = 1591- self.columnExpr(0)- self.state = 1592- self.match(HogQLParser.AND)- self.state = 1593- self.columnExpr(15)- pass-- elif la_ == 10:- localctx = HogQLParser.ColumnExprTernaryOpContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1595- if not self.precpred(self._ctx, 13):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 13)")- self.state = 1596- self.match(HogQLParser.QUERY)- self.state = 1597- self.columnExpr(0)- self.state = 1598- self.match(HogQLParser.COLON)- self.state = 1599- self.columnExpr(13)- pass-- elif la_ == 11:- localctx = HogQLParser.ColumnExprCallSelectContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1601- if not self.precpred(self._ctx, 39):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 39)")- self.state = 1602- self.match(HogQLParser.LPAREN)- self.state = 1603- self.selectSetStmt()- self.state = 1604- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 12:- localctx = HogQLParser.ColumnExprCallContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1606- if not self.precpred(self._ctx, 38):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 38)")- self.state = 1607- self.match(HogQLParser.LPAREN)- self.state = 1609- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1608- self.columnExprList()--- self.state = 1611- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 13:- localctx = HogQLParser.ColumnExprArrayAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1612- if not self.precpred(self._ctx, 34):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 34)")- self.state = 1613- self.match(HogQLParser.LBRACKET)- self.state = 1614- self.columnExpr(0)- self.state = 1615- self.match(HogQLParser.RBRACKET)- pass-- elif la_ == 14:- localctx = HogQLParser.ColumnExprArraySliceContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1617- if not self.precpred(self._ctx, 33):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 33)")- self.state = 1618- self.match(HogQLParser.LBRACKET)- self.state = 1620- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1619- self.columnExpr(0)--- self.state = 1622- self.match(HogQLParser.COLON)- self.state = 1624- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1623- self.columnExpr(0)--- self.state = 1626- self.match(HogQLParser.RBRACKET)- pass-- elif la_ == 15:- localctx = HogQLParser.ColumnExprTupleAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1627- if not self.precpred(self._ctx, 32):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 32)")- self.state = 1628- self.match(HogQLParser.DOT)- self.state = 1629- self.match(HogQLParser.DECIMAL_LITERAL)- pass-- elif la_ == 16:- localctx = HogQLParser.ColumnExprPropertyAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1630- if not self.precpred(self._ctx, 31):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 31)")- self.state = 1631- self.match(HogQLParser.DOT)- self.state = 1632- self.identifier()- pass-- elif la_ == 17:- localctx = HogQLParser.ColumnExprNullArrayAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1633- if not self.precpred(self._ctx, 30):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 30)")- self.state = 1634- self.match(HogQLParser.NULL_PROPERTY)- self.state = 1635- self.match(HogQLParser.LBRACKET)- self.state = 1636- self.columnExpr(0)- self.state = 1637- self.match(HogQLParser.RBRACKET)- pass-- elif la_ == 18:- localctx = HogQLParser.ColumnExprNullTupleAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1639- if not self.precpred(self._ctx, 29):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 29)")- self.state = 1640- self.match(HogQLParser.NULL_PROPERTY)- self.state = 1641- self.match(HogQLParser.DECIMAL_LITERAL)- pass-- elif la_ == 19:- localctx = HogQLParser.ColumnExprNullPropertyAccessContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1642- if not self.precpred(self._ctx, 28):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 28)")- self.state = 1643- self.match(HogQLParser.NULL_PROPERTY)- self.state = 1644- self.identifier()- pass-- elif la_ == 20:- localctx = HogQLParser.ColumnExprTypeCastContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1645- if not self.precpred(self._ctx, 27):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 27)")- self.state = 1646- self.match(HogQLParser.DOUBLECOLON)- self.state = 1647- self.columnTypeCastExpr()- pass-- elif la_ == 21:- localctx = HogQLParser.ColumnExprIgnoreNullsContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1648- if not self.precpred(self._ctx, 22):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 22)")- self.state = 1649- self.match(HogQLParser.IGNORE)- self.state = 1650- self.match(HogQLParser.NULLS)- pass-- elif la_ == 22:- localctx = HogQLParser.ColumnExprIsNullContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1651- if not self.precpred(self._ctx, 21):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 21)")- self.state = 1652- self.match(HogQLParser.IS)- self.state = 1654- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1653- self.match(HogQLParser.NOT)--- self.state = 1656- self.match(HogQLParser.NULL_SQL)- pass-- elif la_ == 23:- localctx = HogQLParser.ColumnExprAliasContext(self, HogQLParser.ColumnExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_columnExpr)- self.state = 1657- if not self.precpred(self._ctx, 12):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 12)")- self.state = 1658- self.match(HogQLParser.AS)- self.state = 1661- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 68, 69, 70, 71, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 119, 120, 121, 122, 123, 124, 125, 126, 127, 129, 130, 132, 134, 135]:- self.state = 1659- self.identifier()- pass- elif token in [143]:- self.state = 1660- self.match(HogQLParser.STRING_LITERAL)- pass- else:- raise NoViableAltException(self)-- pass--- self.state = 1667- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,201,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.unrollRecursionContexts(_parentctx)- return localctx--- class ColumnLambdaExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_columnLambdaExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class ArrowLambdaContext(ColumnLambdaExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnLambdaExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def ARROW(self):- return self.getToken(HogQLParser.ARROW, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def block(self):- return self.getTypedRuleContext(HogQLParser.BlockContext,0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitArrowLambda" ):- return visitor.visitArrowLambda(self)- else:- return visitor.visitChildren(self)--- class ColonLambdaContext(ColumnLambdaExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.ColumnLambdaExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LAMBDA(self):- return self.getToken(HogQLParser.LAMBDA, 0)- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def COLON(self):- return self.getToken(HogQLParser.COLON, 0)- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColonLambda" ):- return visitor.visitColonLambda(self)- else:- return visitor.visitChildren(self)---- def columnLambdaExpr(self):-- localctx = HogQLParser.ColumnLambdaExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 156, self.RULE_columnLambdaExpr)- self._la = 0 # Token type- try:- self.state = 1717- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,210,self._ctx)- if la_ == 1:- localctx = HogQLParser.ArrowLambdaContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1695- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,206,self._ctx)- if la_ == 1:- self.state = 1668- self.match(HogQLParser.LPAREN)- self.state = 1669- self.identifier()- self.state = 1674- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,202,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1670- self.match(HogQLParser.COMMA)- self.state = 1671- self.identifier()- self.state = 1676- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,202,self._ctx)-- self.state = 1678- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1677- self.match(HogQLParser.COMMA)--- self.state = 1680- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 2:- self.state = 1682- self.identifier()- self.state = 1687- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,204,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1683- self.match(HogQLParser.COMMA)- self.state = 1684- self.identifier()- self.state = 1689- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,204,self._ctx)-- self.state = 1691- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1690- self.match(HogQLParser.COMMA)--- pass-- elif la_ == 3:- self.state = 1693- self.match(HogQLParser.LPAREN)- self.state = 1694- self.match(HogQLParser.RPAREN)- pass--- self.state = 1697- self.match(HogQLParser.ARROW)- self.state = 1700- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,207,self._ctx)- if la_ == 1:- self.state = 1698- self.columnExpr(0)- pass-- elif la_ == 2:- self.state = 1699- self.block()- pass--- pass-- elif la_ == 2:- localctx = HogQLParser.ColonLambdaContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1702- self.match(HogQLParser.LAMBDA)- self.state = 1703- self.identifier()- self.state = 1708- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,208,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1704- self.match(HogQLParser.COMMA)- self.state = 1705- self.identifier()- self.state = 1710- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,208,self._ctx)-- self.state = 1712- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1711- self.match(HogQLParser.COMMA)--- self.state = 1714- self.match(HogQLParser.COLON)- self.state = 1715- self.columnExpr(0)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnsReplaceListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnsReplaceItem(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnsReplaceItemContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnsReplaceItemContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_columnsReplaceList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnsReplaceList" ):- return visitor.visitColumnsReplaceList(self)- else:- return visitor.visitChildren(self)----- def columnsReplaceList(self):-- localctx = HogQLParser.ColumnsReplaceListContext(self, self._ctx, self.state)- self.enterRule(localctx, 158, self.RULE_columnsReplaceList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1719- self.columnsReplaceItem()- self.state = 1724- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 1720- self.match(HogQLParser.COMMA)- self.state = 1721- self.columnsReplaceItem()- self.state = 1726- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnsReplaceItemContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def AS(self):- return self.getToken(HogQLParser.AS, 0)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_columnsReplaceItem-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnsReplaceItem" ):- return visitor.visitColumnsReplaceItem(self)- else:- return visitor.visitChildren(self)----- def columnsReplaceItem(self):-- localctx = HogQLParser.ColumnsReplaceItemContext(self, self._ctx, self.state)- self.enterRule(localctx, 160, self.RULE_columnsReplaceItem)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1727- self.columnExpr(0)- self.state = 1728- self.match(HogQLParser.AS)- self.state = 1729- self.identifier()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class HogqlxChildElementContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def hogqlxTagElement(self):- return self.getTypedRuleContext(HogQLParser.HogqlxTagElementContext,0)--- def hogqlxText(self):- return self.getTypedRuleContext(HogQLParser.HogqlxTextContext,0)--- def LBRACE(self):- return self.getToken(HogQLParser.LBRACE, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_hogqlxChildElement-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHogqlxChildElement" ):- return visitor.visitHogqlxChildElement(self)- else:- return visitor.visitChildren(self)----- def hogqlxChildElement(self):-- localctx = HogQLParser.HogqlxChildElementContext(self, self._ctx, self.state)- self.enterRule(localctx, 162, self.RULE_hogqlxChildElement)- try:- self.state = 1737- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [168]:- self.enterOuterAlt(localctx, 1)- self.state = 1731- self.hogqlxTagElement()- pass- elif token in [206]:- self.enterOuterAlt(localctx, 2)- self.state = 1732- self.hogqlxText()- pass- elif token in [163]:- self.enterOuterAlt(localctx, 3)- self.state = 1733- self.match(HogQLParser.LBRACE)- self.state = 1734- self.columnExpr(0)- self.state = 1735- self.match(HogQLParser.RBRACE)- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class HogqlxTextContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def HOGQLX_TEXT_TEXT(self):- return self.getToken(HogQLParser.HOGQLX_TEXT_TEXT, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_hogqlxText-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHogqlxText" ):- return visitor.visitHogqlxText(self)- else:- return visitor.visitChildren(self)----- def hogqlxText(self):-- localctx = HogQLParser.HogqlxTextContext(self, self._ctx, self.state)- self.enterRule(localctx, 164, self.RULE_hogqlxText)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1739- self.match(HogQLParser.HOGQLX_TEXT_TEXT)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class HogqlxTagElementContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_hogqlxTagElement--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class HogqlxTagElementClosedContext(HogqlxTagElementContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.HogqlxTagElementContext- super().__init__(parser)- self.copyFrom(ctx)-- def LT(self):- return self.getToken(HogQLParser.LT, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def SLASH_GT(self):- return self.getToken(HogQLParser.SLASH_GT, 0)- def hogqlxTagAttribute(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.HogqlxTagAttributeContext)- else:- return self.getTypedRuleContext(HogQLParser.HogqlxTagAttributeContext,i)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHogqlxTagElementClosed" ):- return visitor.visitHogqlxTagElementClosed(self)- else:- return visitor.visitChildren(self)--- class HogqlxTagElementNestedContext(HogqlxTagElementContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.HogqlxTagElementContext- super().__init__(parser)- self.copyFrom(ctx)-- def LT(self):- return self.getToken(HogQLParser.LT, 0)- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)-- def GT(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.GT)- else:- return self.getToken(HogQLParser.GT, i)- def LT_SLASH(self):- return self.getToken(HogQLParser.LT_SLASH, 0)- def hogqlxTagAttribute(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.HogqlxTagAttributeContext)- else:- return self.getTypedRuleContext(HogQLParser.HogqlxTagAttributeContext,i)-- def hogqlxChildElement(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.HogqlxChildElementContext)- else:- return self.getTypedRuleContext(HogQLParser.HogqlxChildElementContext,i)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHogqlxTagElementNested" ):- return visitor.visitHogqlxTagElementNested(self)- else:- return visitor.visitChildren(self)---- def hogqlxTagElement(self):-- localctx = HogQLParser.HogqlxTagElementContext(self, self._ctx, self.state)- self.enterRule(localctx, 166, self.RULE_hogqlxTagElement)- self._la = 0 # Token type- try:- self.state = 1770- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,216,self._ctx)- if la_ == 1:- localctx = HogQLParser.HogqlxTagElementClosedContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1741- self.match(HogQLParser.LT)- self.state = 1742- self.identifier()- self.state = 1746- self._errHandler.sync(self)- _la = self._input.LA(1)- while (((_la) & ~0x3f) == 0 and ((1 << _la) & -22520283327905794) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576778619) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 107) != 0):- self.state = 1743- self.hogqlxTagAttribute()- self.state = 1748- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 1749- self.match(HogQLParser.SLASH_GT)- pass-- elif la_ == 2:- localctx = HogQLParser.HogqlxTagElementNestedContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1751- self.match(HogQLParser.LT)- self.state = 1752- self.identifier()- self.state = 1756- self._errHandler.sync(self)- _la = self._input.LA(1)- while (((_la) & ~0x3f) == 0 and ((1 << _la) & -22520283327905794) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576778619) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 107) != 0):- self.state = 1753- self.hogqlxTagAttribute()- self.state = 1758- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 1759- self.match(HogQLParser.GT)- self.state = 1763- self._errHandler.sync(self)- _la = self._input.LA(1)- while ((((_la - 163)) & ~0x3f) == 0 and ((1 << (_la - 163)) & 8796093022241) != 0):- self.state = 1760- self.hogqlxChildElement()- self.state = 1765- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 1766- self.match(HogQLParser.LT_SLASH)- self.state = 1767- self.identifier()- self.state = 1768- self.match(HogQLParser.GT)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class HogqlxTagAttributeContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def EQ_SINGLE(self):- return self.getToken(HogQLParser.EQ_SINGLE, 0)-- def string(self):- return self.getTypedRuleContext(HogQLParser.StringContext,0)--- def LBRACE(self):- return self.getToken(HogQLParser.LBRACE, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_hogqlxTagAttribute-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitHogqlxTagAttribute" ):- return visitor.visitHogqlxTagAttribute(self)- else:- return visitor.visitChildren(self)----- def hogqlxTagAttribute(self):-- localctx = HogQLParser.HogqlxTagAttributeContext(self, self._ctx, self.state)- self.enterRule(localctx, 168, self.RULE_hogqlxTagAttribute)- try:- self.state = 1783- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,217,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 1772- self.identifier()- self.state = 1773- self.match(HogQLParser.EQ_SINGLE)- self.state = 1774- self.string()- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 1776- self.identifier()- self.state = 1777- self.match(HogQLParser.EQ_SINGLE)- self.state = 1778- self.match(HogQLParser.LBRACE)- self.state = 1779- self.columnExpr(0)- self.state = 1780- self.match(HogQLParser.RBRACE)- pass-- elif la_ == 3:- self.enterOuterAlt(localctx, 3)- self.state = 1782- self.identifier()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithExprListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def withExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.WithExprContext)- else:- return self.getTypedRuleContext(HogQLParser.WithExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_withExprList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithExprList" ):- return visitor.visitWithExprList(self)- else:- return visitor.visitChildren(self)----- def withExprList(self):-- localctx = HogQLParser.WithExprListContext(self, self._ctx, self.state)- self.enterRule(localctx, 170, self.RULE_withExprList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1785- self.withExpr()- self.state = 1790- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,218,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1786- self.match(HogQLParser.COMMA)- self.state = 1787- self.withExpr()- self.state = 1792- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,218,self._ctx)-- self.state = 1794- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1793- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_withExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)---- class WithExprColumnContext(WithExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.WithExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithExprColumn" ):- return visitor.visitWithExprColumn(self)- else:- return visitor.visitChildren(self)--- class WithExprSubqueryContext(WithExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.WithExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def withExprColumnNameList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.WithExprColumnNameListContext)- else:- return self.getTypedRuleContext(HogQLParser.WithExprColumnNameListContext,i)-- def USING(self):- return self.getToken(HogQLParser.USING, 0)- def KEY(self):- return self.getToken(HogQLParser.KEY, 0)- def MATERIALIZED(self):- return self.getToken(HogQLParser.MATERIALIZED, 0)- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithExprSubquery" ):- return visitor.visitWithExprSubquery(self)- else:- return visitor.visitChildren(self)---- def withExpr(self):-- localctx = HogQLParser.WithExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 172, self.RULE_withExpr)- self._la = 0 # Token type- try:- self.state = 1820- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,224,self._ctx)- if la_ == 1:- localctx = HogQLParser.WithExprSubqueryContext(self, localctx)- self.enterOuterAlt(localctx, 1)- self.state = 1796- self.identifier()- self.state = 1798- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==165:- self.state = 1797- self.withExprColumnNameList()--- self.state = 1803- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==123:- self.state = 1800- self.match(HogQLParser.USING)- self.state = 1801- self.match(HogQLParser.KEY)- self.state = 1802- self.withExprColumnNameList()--- self.state = 1805- self.match(HogQLParser.AS)- self.state = 1810- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==67 or _la==73:- self.state = 1807- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==73:- self.state = 1806- self.match(HogQLParser.NOT)--- self.state = 1809- self.match(HogQLParser.MATERIALIZED)--- self.state = 1812- self.match(HogQLParser.LPAREN)- self.state = 1813- self.selectSetStmt()- self.state = 1814- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 2:- localctx = HogQLParser.WithExprColumnContext(self, localctx)- self.enterOuterAlt(localctx, 2)- self.state = 1816- self.columnExpr(0)- self.state = 1817- self.match(HogQLParser.AS)- self.state = 1818- self.identifier()- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class WithExprColumnNameListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_withExprColumnNameList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitWithExprColumnNameList" ):- return visitor.visitWithExprColumnNameList(self)- else:- return visitor.visitChildren(self)----- def withExprColumnNameList(self):-- localctx = HogQLParser.WithExprColumnNameListContext(self, self._ctx, self.state)- self.enterRule(localctx, 174, self.RULE_withExprColumnNameList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1822- self.match(HogQLParser.LPAREN)- self.state = 1823- self.identifier()- self.state = 1828- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 1824- self.match(HogQLParser.COMMA)- self.state = 1825- self.identifier()- self.state = 1830- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 1831- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnIdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def placeholder(self):- return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0)--- def nestedIdentifier(self):- return self.getTypedRuleContext(HogQLParser.NestedIdentifierContext,0)--- def tableIdentifier(self):- return self.getTypedRuleContext(HogQLParser.TableIdentifierContext,0)--- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_columnIdentifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnIdentifier" ):- return visitor.visitColumnIdentifier(self)- else:- return visitor.visitChildren(self)----- def columnIdentifier(self):-- localctx = HogQLParser.ColumnIdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 176, self.RULE_columnIdentifier)- try:- self.state = 1840- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [163]:- self.enterOuterAlt(localctx, 1)- self.state = 1833- self.placeholder()- pass- elif token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 37, 38, 39, 40, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 68, 69, 70, 71, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 119, 120, 121, 122, 123, 124, 125, 126, 127, 129, 130, 132, 134, 135]:- self.enterOuterAlt(localctx, 2)- self.state = 1837- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,226,self._ctx)- if la_ == 1:- self.state = 1834- self.tableIdentifier()- self.state = 1835- self.match(HogQLParser.DOT)--- self.state = 1839- self.nestedIdentifier()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class NestedIdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def DOT(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.DOT)- else:- return self.getToken(HogQLParser.DOT, i)-- def getRuleIndex(self):- return HogQLParser.RULE_nestedIdentifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitNestedIdentifier" ):- return visitor.visitNestedIdentifier(self)- else:- return visitor.visitChildren(self)----- def nestedIdentifier(self):-- localctx = HogQLParser.NestedIdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 178, self.RULE_nestedIdentifier)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1842- self.identifier()- self.state = 1847- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,228,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1843- self.match(HogQLParser.DOT)- self.state = 1844- self.identifier()- self.state = 1849- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,228,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TableExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser--- def getRuleIndex(self):- return HogQLParser.RULE_tableExpr--- def copyFrom(self, ctx:ParserRuleContext):- super().copyFrom(ctx)--- class TableExprTagContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def hogqlxTagElement(self):- return self.getTypedRuleContext(HogQLParser.HogqlxTagElementContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprTag" ):- return visitor.visitTableExprTag(self)- else:- return visitor.visitChildren(self)--- class TableExprIdentifierContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableIdentifier(self):- return self.getTypedRuleContext(HogQLParser.TableIdentifierContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprIdentifier" ):- return visitor.visitTableExprIdentifier(self)- else:- return visitor.visitChildren(self)--- class TableExprPlaceholderContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def placeholder(self):- return self.getTypedRuleContext(HogQLParser.PlaceholderContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprPlaceholder" ):- return visitor.visitTableExprPlaceholder(self)- else:- return visitor.visitChildren(self)--- class TableExprSubqueryContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def selectSetStmt(self):- return self.getTypedRuleContext(HogQLParser.SelectSetStmtContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprSubquery" ):- return visitor.visitTableExprSubquery(self)- else:- return visitor.visitChildren(self)--- class TableExprPivotContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableExpr(self):- return self.getTypedRuleContext(HogQLParser.TableExprContext,0)-- def PIVOT(self):- return self.getToken(HogQLParser.PIVOT, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)-- def pivotColumnList(self):- return self.getTypedRuleContext(HogQLParser.PivotColumnListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def GROUP(self):- return self.getToken(HogQLParser.GROUP, 0)- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprPivot" ):- return visitor.visitTableExprPivot(self)- else:- return visitor.visitChildren(self)--- class TableExprValuesContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def valuesClause(self):- return self.getTypedRuleContext(HogQLParser.ValuesClauseContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprValues" ):- return visitor.visitTableExprValues(self)- else:- return visitor.visitChildren(self)--- class TableExprAliasContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableExpr(self):- return self.getTypedRuleContext(HogQLParser.TableExprContext,0)-- def alias(self):- return self.getTypedRuleContext(HogQLParser.AliasContext,0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)-- def columnAliases(self):- return self.getTypedRuleContext(HogQLParser.ColumnAliasesContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprAlias" ):- return visitor.visitTableExprAlias(self)- else:- return visitor.visitChildren(self)--- class TableExprFunctionContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableFunctionExpr(self):- return self.getTypedRuleContext(HogQLParser.TableFunctionExprContext,0)--- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprFunction" ):- return visitor.visitTableExprFunction(self)- else:- return visitor.visitChildren(self)--- class TableExprUnpivotContext(TableExprContext):-- def __init__(self, parser, ctx:ParserRuleContext): # actually a HogQLParser.TableExprContext- super().__init__(parser)- self.copyFrom(ctx)-- def tableExpr(self):- return self.getTypedRuleContext(HogQLParser.TableExprContext,0)-- def UNPIVOT(self):- return self.getToken(HogQLParser.UNPIVOT, 0)- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)- def unpivotColumnList(self):- return self.getTypedRuleContext(HogQLParser.UnpivotColumnListContext,0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)- def INCLUDE(self):- return self.getToken(HogQLParser.INCLUDE, 0)- def NULLS(self):- return self.getToken(HogQLParser.NULLS, 0)-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableExprUnpivot" ):- return visitor.visitTableExprUnpivot(self)- else:- return visitor.visitChildren(self)---- def tableExpr(self, _p:int=0):- _parentctx = self._ctx- _parentState = self.state- localctx = HogQLParser.TableExprContext(self, self._ctx, _parentState)- _prevctx = localctx- _startState = 180- self.enterRecursionRule(localctx, 180, self.RULE_tableExpr, _p)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1863- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,229,self._ctx)- if la_ == 1:- localctx = HogQLParser.TableExprIdentifierContext(self, localctx)- self._ctx = localctx- _prevctx = localctx-- self.state = 1851- self.tableIdentifier()- pass-- elif la_ == 2:- localctx = HogQLParser.TableExprFunctionContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1852- self.tableFunctionExpr()- pass-- elif la_ == 3:- localctx = HogQLParser.TableExprSubqueryContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1853- self.match(HogQLParser.LPAREN)- self.state = 1854- self.selectSetStmt()- self.state = 1855- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 4:- localctx = HogQLParser.TableExprValuesContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1857- self.match(HogQLParser.LPAREN)- self.state = 1858- self.valuesClause()- self.state = 1859- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 5:- localctx = HogQLParser.TableExprTagContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1861- self.hogqlxTagElement()- pass-- elif la_ == 6:- localctx = HogQLParser.TableExprPlaceholderContext(self, localctx)- self._ctx = localctx- _prevctx = localctx- self.state = 1862- self.placeholder()- pass--- self._ctx.stop = self._input.LT(-1)- self.state = 1898- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,235,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- if self._parseListeners is not None:- self.triggerExitRuleEvent()- _prevctx = localctx- self.state = 1896- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,234,self._ctx)- if la_ == 1:- localctx = HogQLParser.TableExprPivotContext(self, HogQLParser.TableExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_tableExpr)- self.state = 1865- if not self.precpred(self._ctx, 5):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 5)")- self.state = 1866- self.match(HogQLParser.PIVOT)- self.state = 1867- self.match(HogQLParser.LPAREN)- self.state = 1868- self.columnExprList()- self.state = 1869- self.pivotColumnList()- self.state = 1873- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==42:- self.state = 1870- self.match(HogQLParser.GROUP)- self.state = 1871- self.match(HogQLParser.BY)- self.state = 1872- self.columnExprList()--- self.state = 1875- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 2:- localctx = HogQLParser.TableExprUnpivotContext(self, HogQLParser.TableExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_tableExpr)- self.state = 1877- if not self.precpred(self._ctx, 4):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 4)")- self.state = 1878- self.match(HogQLParser.UNPIVOT)- self.state = 1881- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==50:- self.state = 1879- self.match(HogQLParser.INCLUDE)- self.state = 1880- self.match(HogQLParser.NULLS)--- self.state = 1883- self.match(HogQLParser.LPAREN)- self.state = 1884- self.unpivotColumnList()- self.state = 1885- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 3:- localctx = HogQLParser.TableExprAliasContext(self, HogQLParser.TableExprContext(self, _parentctx, _parentState))- self.pushNewRecursionContext(localctx, _startState, self.RULE_tableExpr)- self.state = 1887- if not self.precpred(self._ctx, 3):- from antlr4.error.Errors import FailedPredicateException- raise FailedPredicateException(self, "self.precpred(self._ctx, 3)")- self.state = 1891- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [21, 35, 46, 59, 134, 135]:- self.state = 1888- self.alias()- pass- elif token in [6]:- self.state = 1889- self.match(HogQLParser.AS)- self.state = 1890- self.identifier()- pass- else:- raise NoViableAltException(self)-- self.state = 1894- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,233,self._ctx)- if la_ == 1:- self.state = 1893- self.columnAliases()--- pass--- self.state = 1900- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,235,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.unrollRecursionContexts(_parentctx)- return localctx--- class PivotColumnListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def pivotColumn(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.PivotColumnContext)- else:- return self.getTypedRuleContext(HogQLParser.PivotColumnContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_pivotColumnList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitPivotColumnList" ):- return visitor.visitPivotColumnList(self)- else:- return visitor.visitChildren(self)----- def pivotColumnList(self):-- localctx = HogQLParser.PivotColumnListContext(self, self._ctx, self.state)- self.enterRule(localctx, 182, self.RULE_pivotColumnList)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1901- self.match(HogQLParser.FOR)- self.state = 1903- self._errHandler.sync(self)- _alt = 1- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt == 1:- self.state = 1902- self.pivotColumn()-- else:- raise NoViableAltException(self)- self.state = 1905- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,236,self._ctx)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class PivotColumnContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExprTupleOrSingle(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprTupleOrSingleContext,0)--- def IN(self):- return self.getToken(HogQLParser.IN, 0)-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_pivotColumn-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitPivotColumn" ):- return visitor.visitPivotColumn(self)- else:- return visitor.visitChildren(self)----- def pivotColumn(self):-- localctx = HogQLParser.PivotColumnContext(self, self._ctx, self.state)- self.enterRule(localctx, 184, self.RULE_pivotColumn)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1907- self.columnExprTupleOrSingle()- self.state = 1908- self.match(HogQLParser.IN)- self.state = 1909- self.match(HogQLParser.LPAREN)- self.state = 1910- self.columnExprList()- self.state = 1911- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class UnpivotColumnListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def unpivotColumn(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.UnpivotColumnContext)- else:- return self.getTypedRuleContext(HogQLParser.UnpivotColumnContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_unpivotColumnList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitUnpivotColumnList" ):- return visitor.visitUnpivotColumnList(self)- else:- return visitor.visitChildren(self)----- def unpivotColumnList(self):-- localctx = HogQLParser.UnpivotColumnListContext(self, self._ctx, self.state)- self.enterRule(localctx, 186, self.RULE_unpivotColumnList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1913- self.unpivotColumn()- self.state = 1918- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,237,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1914- self.match(HogQLParser.COMMA)- self.state = 1915- self.unpivotColumn()- self.state = 1920- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,237,self._ctx)-- self.state = 1922- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1921- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class UnpivotColumnContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExprTupleOrSingle(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprTupleOrSingleContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprTupleOrSingleContext,i)--- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def IN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.IN)- else:- return self.getToken(HogQLParser.IN, i)-- def LPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.LPAREN)- else:- return self.getToken(HogQLParser.LPAREN, i)-- def columnExprList(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprListContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,i)--- def RPAREN(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.RPAREN)- else:- return self.getToken(HogQLParser.RPAREN, i)-- def getRuleIndex(self):- return HogQLParser.RULE_unpivotColumn-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitUnpivotColumn" ):- return visitor.visitUnpivotColumn(self)- else:- return visitor.visitChildren(self)----- def unpivotColumn(self):-- localctx = HogQLParser.UnpivotColumnContext(self, self._ctx, self.state)- self.enterRule(localctx, 188, self.RULE_unpivotColumn)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1924- self.columnExprTupleOrSingle()- self.state = 1925- self.match(HogQLParser.FOR)- self.state = 1926- self.columnExprTupleOrSingle()- self.state = 1927- self.match(HogQLParser.IN)- self.state = 1928- self.match(HogQLParser.LPAREN)- self.state = 1929- self.columnExprList()- self.state = 1930- self.match(HogQLParser.RPAREN)- self.state = 1939- self._errHandler.sync(self)- _la = self._input.LA(1)- while (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1931- self.columnExprTupleOrSingle()- self.state = 1932- self.match(HogQLParser.IN)- self.state = 1933- self.match(HogQLParser.LPAREN)- self.state = 1934- self.columnExprList()- self.state = 1935- self.match(HogQLParser.RPAREN)- self.state = 1941- self._errHandler.sync(self)- _la = self._input.LA(1)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnExprTupleOrSingleContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def columnExprList(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprListContext,0)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_columnExprTupleOrSingle-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnExprTupleOrSingle" ):- return visitor.visitColumnExprTupleOrSingle(self)- else:- return visitor.visitChildren(self)----- def columnExprTupleOrSingle(self):-- localctx = HogQLParser.ColumnExprTupleOrSingleContext(self, self._ctx, self.state)- self.enterRule(localctx, 190, self.RULE_columnExprTupleOrSingle)- try:- self.state = 1947- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,240,self._ctx)- if la_ == 1:- self.enterOuterAlt(localctx, 1)- self.state = 1942- self.match(HogQLParser.LPAREN)- self.state = 1943- self.columnExprList()- self.state = 1944- self.match(HogQLParser.RPAREN)- pass-- elif la_ == 2:- self.enterOuterAlt(localctx, 2)- self.state = 1946- self.columnExpr(0)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ColumnAliasesContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def identifier(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.IdentifierContext)- else:- return self.getTypedRuleContext(HogQLParser.IdentifierContext,i)--- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_columnAliases-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitColumnAliases" ):- return visitor.visitColumnAliases(self)- else:- return visitor.visitChildren(self)----- def columnAliases(self):-- localctx = HogQLParser.ColumnAliasesContext(self, self._ctx, self.state)- self.enterRule(localctx, 192, self.RULE_columnAliases)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1949- self.match(HogQLParser.LPAREN)- self.state = 1950- self.identifier()- self.state = 1955- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==151:- self.state = 1951- self.match(HogQLParser.COMMA)- self.state = 1952- self.identifier()- self.state = 1957- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 1958- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TableFunctionExprContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def LPAREN(self):- return self.getToken(HogQLParser.LPAREN, 0)-- def RPAREN(self):- return self.getToken(HogQLParser.RPAREN, 0)-- def tableArgList(self):- return self.getTypedRuleContext(HogQLParser.TableArgListContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_tableFunctionExpr-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableFunctionExpr" ):- return visitor.visitTableFunctionExpr(self)- else:- return visitor.visitChildren(self)----- def tableFunctionExpr(self):-- localctx = HogQLParser.TableFunctionExprContext(self, self._ctx, self.state)- self.enterRule(localctx, 194, self.RULE_tableFunctionExpr)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1960- self.identifier()- self.state = 1961- self.match(HogQLParser.LPAREN)- self.state = 1963- self._errHandler.sync(self)- _la = self._input.LA(1)- if (((_la) & ~0x3f) == 0 and ((1 << _la) & -18016683700535298) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 9214362638576779259) != 0) or ((((_la - 129)) & ~0x3f) == 0 and ((1 << (_la - 129)) & 1267309641555947) != 0):- self.state = 1962- self.tableArgList()--- self.state = 1965- self.match(HogQLParser.RPAREN)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TableIdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def nestedIdentifier(self):- return self.getTypedRuleContext(HogQLParser.NestedIdentifierContext,0)--- def databaseIdentifier(self):- return self.getTypedRuleContext(HogQLParser.DatabaseIdentifierContext,0)--- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_tableIdentifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableIdentifier" ):- return visitor.visitTableIdentifier(self)- else:- return visitor.visitChildren(self)----- def tableIdentifier(self):-- localctx = HogQLParser.TableIdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 196, self.RULE_tableIdentifier)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1970- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,243,self._ctx)- if la_ == 1:- self.state = 1967- self.databaseIdentifier()- self.state = 1968- self.match(HogQLParser.DOT)--- self.state = 1972- self.nestedIdentifier()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TableArgListContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def columnExpr(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.ColumnExprContext)- else:- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,i)--- def COMMA(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.COMMA)- else:- return self.getToken(HogQLParser.COMMA, i)-- def getRuleIndex(self):- return HogQLParser.RULE_tableArgList-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTableArgList" ):- return visitor.visitTableArgList(self)- else:- return visitor.visitChildren(self)----- def tableArgList(self):-- localctx = HogQLParser.TableArgListContext(self, self._ctx, self.state)- self.enterRule(localctx, 198, self.RULE_tableArgList)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1974- self.columnExpr(0)- self.state = 1979- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,244,self._ctx)- while _alt!=2 and _alt!=ATN.INVALID_ALT_NUMBER:- if _alt==1:- self.state = 1975- self.match(HogQLParser.COMMA)- self.state = 1976- self.columnExpr(0)- self.state = 1981- self._errHandler.sync(self)- _alt = self._interp.adaptivePredict(self._input,244,self._ctx)-- self.state = 1983- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==151:- self.state = 1982- self.match(HogQLParser.COMMA)--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class DatabaseIdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def identifier(self):- return self.getTypedRuleContext(HogQLParser.IdentifierContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_databaseIdentifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitDatabaseIdentifier" ):- return visitor.visitDatabaseIdentifier(self)- else:- return visitor.visitChildren(self)----- def databaseIdentifier(self):-- localctx = HogQLParser.DatabaseIdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 200, self.RULE_databaseIdentifier)- try:- self.enterOuterAlt(localctx, 1)- self.state = 1985- self.identifier()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class FloatingLiteralContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def FLOATING_LITERAL(self):- return self.getToken(HogQLParser.FLOATING_LITERAL, 0)-- def DOT(self):- return self.getToken(HogQLParser.DOT, 0)-- def DECIMAL_LITERAL(self, i:int=None):- if i is None:- return self.getTokens(HogQLParser.DECIMAL_LITERAL)- else:- return self.getToken(HogQLParser.DECIMAL_LITERAL, i)-- def OCTAL_LITERAL(self):- return self.getToken(HogQLParser.OCTAL_LITERAL, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_floatingLiteral-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFloatingLiteral" ):- return visitor.visitFloatingLiteral(self)- else:- return visitor.visitChildren(self)----- def floatingLiteral(self):-- localctx = HogQLParser.FloatingLiteralContext(self, self._ctx, self.state)- self.enterRule(localctx, 202, self.RULE_floatingLiteral)- self._la = 0 # Token type- try:- self.state = 1995- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [136]:- self.enterOuterAlt(localctx, 1)- self.state = 1987- self.match(HogQLParser.FLOATING_LITERAL)- pass- elif token in [155]:- self.enterOuterAlt(localctx, 2)- self.state = 1988- self.match(HogQLParser.DOT)- self.state = 1989- _la = self._input.LA(1)- if not(_la==138 or _la==139):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- pass- elif token in [139]:- self.enterOuterAlt(localctx, 3)- self.state = 1990- self.match(HogQLParser.DECIMAL_LITERAL)- self.state = 1991- self.match(HogQLParser.DOT)- self.state = 1993- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,246,self._ctx)- if la_ == 1:- self.state = 1992- _la = self._input.LA(1)- if not(_la==138 or _la==139):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class NumberLiteralContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def floatingLiteral(self):- return self.getTypedRuleContext(HogQLParser.FloatingLiteralContext,0)--- def BINARY_LITERAL(self):- return self.getToken(HogQLParser.BINARY_LITERAL, 0)-- def OCTAL_LITERAL(self):- return self.getToken(HogQLParser.OCTAL_LITERAL, 0)-- def OCTAL_PREFIX_LITERAL(self):- return self.getToken(HogQLParser.OCTAL_PREFIX_LITERAL, 0)-- def DECIMAL_LITERAL(self):- return self.getToken(HogQLParser.DECIMAL_LITERAL, 0)-- def HEXADECIMAL_LITERAL(self):- return self.getToken(HogQLParser.HEXADECIMAL_LITERAL, 0)-- def INF(self):- return self.getToken(HogQLParser.INF, 0)-- def NAN_SQL(self):- return self.getToken(HogQLParser.NAN_SQL, 0)-- def PLUS(self):- return self.getToken(HogQLParser.PLUS, 0)-- def DASH(self):- return self.getToken(HogQLParser.DASH, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_numberLiteral-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitNumberLiteral" ):- return visitor.visitNumberLiteral(self)- else:- return visitor.visitChildren(self)----- def numberLiteral(self):-- localctx = HogQLParser.NumberLiteralContext(self, self._ctx, self.state)- self.enterRule(localctx, 204, self.RULE_numberLiteral)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 1998- self._errHandler.sync(self)- _la = self._input.LA(1)- if _la==153 or _la==176:- self.state = 1997- _la = self._input.LA(1)- if not(_la==153 or _la==176):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()--- self.state = 2008- self._errHandler.sync(self)- la_ = self._interp.adaptivePredict(self._input,249,self._ctx)- if la_ == 1:- self.state = 2000- self.floatingLiteral()- pass-- elif la_ == 2:- self.state = 2001- self.match(HogQLParser.BINARY_LITERAL)- pass-- elif la_ == 3:- self.state = 2002- self.match(HogQLParser.OCTAL_LITERAL)- pass-- elif la_ == 4:- self.state = 2003- self.match(HogQLParser.OCTAL_PREFIX_LITERAL)- pass-- elif la_ == 5:- self.state = 2004- self.match(HogQLParser.DECIMAL_LITERAL)- pass-- elif la_ == 6:- self.state = 2005- self.match(HogQLParser.HEXADECIMAL_LITERAL)- pass-- elif la_ == 7:- self.state = 2006- self.match(HogQLParser.INF)- pass-- elif la_ == 8:- self.state = 2007- self.match(HogQLParser.NAN_SQL)- pass--- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class LiteralContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def numberLiteral(self):- return self.getTypedRuleContext(HogQLParser.NumberLiteralContext,0)--- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def NULL_SQL(self):- return self.getToken(HogQLParser.NULL_SQL, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_literal-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitLiteral" ):- return visitor.visitLiteral(self)- else:- return visitor.visitChildren(self)----- def literal(self):-- localctx = HogQLParser.LiteralContext(self, self._ctx, self.state)- self.enterRule(localctx, 206, self.RULE_literal)- try:- self.state = 2013- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [52, 72, 136, 137, 138, 139, 140, 141, 153, 155, 176]:- self.enterOuterAlt(localctx, 1)- self.state = 2010- self.numberLiteral()- pass- elif token in [143]:- self.enterOuterAlt(localctx, 2)- self.state = 2011- self.match(HogQLParser.STRING_LITERAL)- pass- elif token in [74]:- self.enterOuterAlt(localctx, 3)- self.state = 2012- self.match(HogQLParser.NULL_SQL)- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class IntervalContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def SECOND(self):- return self.getToken(HogQLParser.SECOND, 0)-- def MINUTE(self):- return self.getToken(HogQLParser.MINUTE, 0)-- def HOUR(self):- return self.getToken(HogQLParser.HOUR, 0)-- def DAY(self):- return self.getToken(HogQLParser.DAY, 0)-- def WEEK(self):- return self.getToken(HogQLParser.WEEK, 0)-- def MONTH(self):- return self.getToken(HogQLParser.MONTH, 0)-- def QUARTER(self):- return self.getToken(HogQLParser.QUARTER, 0)-- def YEAR(self):- return self.getToken(HogQLParser.YEAR, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_interval-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitInterval" ):- return visitor.visitInterval(self)- else:- return visitor.visitChildren(self)----- def interval(self):-- localctx = HogQLParser.IntervalContext(self, self._ctx, self.state)- self.enterRule(localctx, 208, self.RULE_interval)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2015- _la = self._input.LA(1)- if not(((((_la - 22)) & ~0x3f) == 0 and ((1 << (_la - 22)) & 211106240921601) != 0) or ((((_la - 88)) & ~0x3f) == 0 and ((1 << (_la - 88)) & 17729624998913) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KeywordContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ALL(self):- return self.getToken(HogQLParser.ALL, 0)-- def AND(self):- return self.getToken(HogQLParser.AND, 0)-- def ANTI(self):- return self.getToken(HogQLParser.ANTI, 0)-- def ANY(self):- return self.getToken(HogQLParser.ANY, 0)-- def ARRAY(self):- return self.getToken(HogQLParser.ARRAY, 0)-- def AS(self):- return self.getToken(HogQLParser.AS, 0)-- def ASCENDING(self):- return self.getToken(HogQLParser.ASCENDING, 0)-- def ASOF(self):- return self.getToken(HogQLParser.ASOF, 0)-- def BETWEEN(self):- return self.getToken(HogQLParser.BETWEEN, 0)-- def BOTH(self):- return self.getToken(HogQLParser.BOTH, 0)-- def BY(self):- return self.getToken(HogQLParser.BY, 0)-- def CASE(self):- return self.getToken(HogQLParser.CASE, 0)-- def CAST(self):- return self.getToken(HogQLParser.CAST, 0)-- def COHORT(self):- return self.getToken(HogQLParser.COHORT, 0)-- def COLLATE(self):- return self.getToken(HogQLParser.COLLATE, 0)-- def COLUMNS(self):- return self.getToken(HogQLParser.COLUMNS, 0)-- def CROSS(self):- return self.getToken(HogQLParser.CROSS, 0)-- def CUBE(self):- return self.getToken(HogQLParser.CUBE, 0)-- def CURRENT(self):- return self.getToken(HogQLParser.CURRENT, 0)-- def DATE(self):- return self.getToken(HogQLParser.DATE, 0)-- def DESC(self):- return self.getToken(HogQLParser.DESC, 0)-- def DESCENDING(self):- return self.getToken(HogQLParser.DESCENDING, 0)-- def DISTINCT(self):- return self.getToken(HogQLParser.DISTINCT, 0)-- def ELSE(self):- return self.getToken(HogQLParser.ELSE, 0)-- def END(self):- return self.getToken(HogQLParser.END, 0)-- def EXCLUDE(self):- return self.getToken(HogQLParser.EXCLUDE, 0)-- def EXTRACT(self):- return self.getToken(HogQLParser.EXTRACT, 0)-- def FILL(self):- return self.getToken(HogQLParser.FILL, 0)-- def FILTER(self):- return self.getToken(HogQLParser.FILTER, 0)-- def FINAL(self):- return self.getToken(HogQLParser.FINAL, 0)-- def FIRST(self):- return self.getToken(HogQLParser.FIRST, 0)-- def FOR(self):- return self.getToken(HogQLParser.FOR, 0)-- def FOLLOWING(self):- return self.getToken(HogQLParser.FOLLOWING, 0)-- def FROM(self):- return self.getToken(HogQLParser.FROM, 0)-- def FULL(self):- return self.getToken(HogQLParser.FULL, 0)-- def GROUP(self):- return self.getToken(HogQLParser.GROUP, 0)-- def HAVING(self):- return self.getToken(HogQLParser.HAVING, 0)-- def ID(self):- return self.getToken(HogQLParser.ID, 0)-- def INTERPOLATE(self):- return self.getToken(HogQLParser.INTERPOLATE, 0)-- def IS(self):- return self.getToken(HogQLParser.IS, 0)-- def GROUPING(self):- return self.getToken(HogQLParser.GROUPING, 0)-- def IF(self):- return self.getToken(HogQLParser.IF, 0)-- def IGNORE(self):- return self.getToken(HogQLParser.IGNORE, 0)-- def ILIKE(self):- return self.getToken(HogQLParser.ILIKE, 0)-- def INCLUDE(self):- return self.getToken(HogQLParser.INCLUDE, 0)-- def IN(self):- return self.getToken(HogQLParser.IN, 0)-- def INNER(self):- return self.getToken(HogQLParser.INNER, 0)-- def INTERVAL(self):- return self.getToken(HogQLParser.INTERVAL, 0)-- def JOIN(self):- return self.getToken(HogQLParser.JOIN, 0)-- def KEY(self):- return self.getToken(HogQLParser.KEY, 0)-- def LAMBDA(self):- return self.getToken(HogQLParser.LAMBDA, 0)-- def LAST(self):- return self.getToken(HogQLParser.LAST, 0)-- def LEADING(self):- return self.getToken(HogQLParser.LEADING, 0)-- def LEFT(self):- return self.getToken(HogQLParser.LEFT, 0)-- def LIKE(self):- return self.getToken(HogQLParser.LIKE, 0)-- def LIMIT(self):- return self.getToken(HogQLParser.LIMIT, 0)-- def LOCAL(self):- return self.getToken(HogQLParser.LOCAL, 0)-- def NAME(self):- return self.getToken(HogQLParser.NAME, 0)-- def NATURAL(self):- return self.getToken(HogQLParser.NATURAL, 0)-- def NOT(self):- return self.getToken(HogQLParser.NOT, 0)-- def NULLS(self):- return self.getToken(HogQLParser.NULLS, 0)-- def OFFSET(self):- return self.getToken(HogQLParser.OFFSET, 0)-- def ON(self):- return self.getToken(HogQLParser.ON, 0)-- def OR(self):- return self.getToken(HogQLParser.OR, 0)-- def ORDER(self):- return self.getToken(HogQLParser.ORDER, 0)-- def OUTER(self):- return self.getToken(HogQLParser.OUTER, 0)-- def OVER(self):- return self.getToken(HogQLParser.OVER, 0)-- def PARTITION(self):- return self.getToken(HogQLParser.PARTITION, 0)-- def PIVOT(self):- return self.getToken(HogQLParser.PIVOT, 0)-- def POSITIONAL(self):- return self.getToken(HogQLParser.POSITIONAL, 0)-- def PRECEDING(self):- return self.getToken(HogQLParser.PRECEDING, 0)-- def PREWHERE(self):- return self.getToken(HogQLParser.PREWHERE, 0)-- def QUALIFY(self):- return self.getToken(HogQLParser.QUALIFY, 0)-- def RANGE(self):- return self.getToken(HogQLParser.RANGE, 0)-- def RECURSIVE(self):- return self.getToken(HogQLParser.RECURSIVE, 0)-- def REPLACE(self):- return self.getToken(HogQLParser.REPLACE, 0)-- def RETURN(self):- return self.getToken(HogQLParser.RETURN, 0)-- def RIGHT(self):- return self.getToken(HogQLParser.RIGHT, 0)-- def ROLLUP(self):- return self.getToken(HogQLParser.ROLLUP, 0)-- def ROW(self):- return self.getToken(HogQLParser.ROW, 0)-- def ROWS(self):- return self.getToken(HogQLParser.ROWS, 0)-- def SAMPLE(self):- return self.getToken(HogQLParser.SAMPLE, 0)-- def SELECT(self):- return self.getToken(HogQLParser.SELECT, 0)-- def SEMI(self):- return self.getToken(HogQLParser.SEMI, 0)-- def SETS(self):- return self.getToken(HogQLParser.SETS, 0)-- def SETTINGS(self):- return self.getToken(HogQLParser.SETTINGS, 0)-- def STEP(self):- return self.getToken(HogQLParser.STEP, 0)-- def SUBSTRING(self):- return self.getToken(HogQLParser.SUBSTRING, 0)-- def THEN(self):- return self.getToken(HogQLParser.THEN, 0)-- def TIES(self):- return self.getToken(HogQLParser.TIES, 0)-- def TIME(self):- return self.getToken(HogQLParser.TIME, 0)-- def TIMESTAMP(self):- return self.getToken(HogQLParser.TIMESTAMP, 0)-- def TOTALS(self):- return self.getToken(HogQLParser.TOTALS, 0)-- def TRAILING(self):- return self.getToken(HogQLParser.TRAILING, 0)-- def TRIM(self):- return self.getToken(HogQLParser.TRIM, 0)-- def TRUNCATE(self):- return self.getToken(HogQLParser.TRUNCATE, 0)-- def TRY_CAST(self):- return self.getToken(HogQLParser.TRY_CAST, 0)-- def TO(self):- return self.getToken(HogQLParser.TO, 0)-- def TOP(self):- return self.getToken(HogQLParser.TOP, 0)-- def UNBOUNDED(self):- return self.getToken(HogQLParser.UNBOUNDED, 0)-- def UNION(self):- return self.getToken(HogQLParser.UNION, 0)-- def UNPIVOT(self):- return self.getToken(HogQLParser.UNPIVOT, 0)-- def USING(self):- return self.getToken(HogQLParser.USING, 0)-- def VALUES(self):- return self.getToken(HogQLParser.VALUES, 0)-- def WHEN(self):- return self.getToken(HogQLParser.WHEN, 0)-- def WHERE(self):- return self.getToken(HogQLParser.WHERE, 0)-- def WINDOW(self):- return self.getToken(HogQLParser.WINDOW, 0)-- def WITH(self):- return self.getToken(HogQLParser.WITH, 0)-- def ZONE(self):- return self.getToken(HogQLParser.ZONE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_keyword-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKeyword" ):- return visitor.visitKeyword(self)- else:- return visitor.visitChildren(self)----- def keyword(self):-- localctx = HogQLParser.KeywordContext(self, self._ctx, self.state)- self.enterRule(localctx, 210, self.RULE_keyword)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2017- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & -22555467704188930) != 0) or ((((_la - 65)) & ~0x3f) == 0 and ((1 << (_la - 65)) & 8061441125371608419) != 0) or _la==129 or _la==130):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KeywordForAliasContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def DATE(self):- return self.getToken(HogQLParser.DATE, 0)-- def FIRST(self):- return self.getToken(HogQLParser.FIRST, 0)-- def ID(self):- return self.getToken(HogQLParser.ID, 0)-- def KEY(self):- return self.getToken(HogQLParser.KEY, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_keywordForAlias-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKeywordForAlias" ):- return visitor.visitKeywordForAlias(self)- else:- return visitor.visitChildren(self)----- def keywordForAlias(self):-- localctx = HogQLParser.KeywordForAliasContext(self, self._ctx, self.state)- self.enterRule(localctx, 212, self.RULE_keywordForAlias)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2019- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 576531155409436672) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class KeywordForImplicitAliasContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def ASCENDING(self):- return self.getToken(HogQLParser.ASCENDING, 0)-- def COHORT(self):- return self.getToken(HogQLParser.COHORT, 0)-- def DATE(self):- return self.getToken(HogQLParser.DATE, 0)-- def DESCENDING(self):- return self.getToken(HogQLParser.DESCENDING, 0)-- def FINAL(self):- return self.getToken(HogQLParser.FINAL, 0)-- def ID(self):- return self.getToken(HogQLParser.ID, 0)-- def RETURN(self):- return self.getToken(HogQLParser.RETURN, 0)-- def TOP(self):- return self.getToken(HogQLParser.TOP, 0)-- def TOTALS(self):- return self.getToken(HogQLParser.TOTALS, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_keywordForImplicitAlias-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitKeywordForImplicitAlias" ):- return visitor.visitKeywordForImplicitAlias(self)- else:- return visitor.visitChildren(self)----- def keywordForImplicitAlias(self):-- localctx = HogQLParser.KeywordForImplicitAliasContext(self, self._ctx, self.state)- self.enterRule(localctx, 214, self.RULE_keywordForImplicitAlias)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2021- _la = self._input.LA(1)- if not((((_la) & ~0x3f) == 0 and ((1 << _la) & 70370910568576) != 0) or ((((_la - 92)) & ~0x3f) == 0 and ((1 << (_la - 92)) & 6291457) != 0)):- self._errHandler.recoverInline(self)- else:- self._errHandler.reportMatch(self)- self.consume()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class AliasContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def IDENTIFIER(self):- return self.getToken(HogQLParser.IDENTIFIER, 0)-- def QUOTED_IDENTIFIER(self):- return self.getToken(HogQLParser.QUOTED_IDENTIFIER, 0)-- def keywordForAlias(self):- return self.getTypedRuleContext(HogQLParser.KeywordForAliasContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_alias-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitAlias" ):- return visitor.visitAlias(self)- else:- return visitor.visitChildren(self)----- def alias(self):-- localctx = HogQLParser.AliasContext(self, self._ctx, self.state)- self.enterRule(localctx, 216, self.RULE_alias)- try:- self.state = 2026- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [134]:- self.enterOuterAlt(localctx, 1)- self.state = 2023- self.match(HogQLParser.IDENTIFIER)- pass- elif token in [135]:- self.enterOuterAlt(localctx, 2)- self.state = 2024- self.match(HogQLParser.QUOTED_IDENTIFIER)- pass- elif token in [21, 35, 46, 59]:- self.enterOuterAlt(localctx, 3)- self.state = 2025- self.keywordForAlias()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class ImplicitAliasContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def IDENTIFIER(self):- return self.getToken(HogQLParser.IDENTIFIER, 0)-- def QUOTED_IDENTIFIER(self):- return self.getToken(HogQLParser.QUOTED_IDENTIFIER, 0)-- def keywordForImplicitAlias(self):- return self.getTypedRuleContext(HogQLParser.KeywordForImplicitAliasContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_implicitAlias-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitImplicitAlias" ):- return visitor.visitImplicitAlias(self)- else:- return visitor.visitChildren(self)----- def implicitAlias(self):-- localctx = HogQLParser.ImplicitAliasContext(self, self._ctx, self.state)- self.enterRule(localctx, 218, self.RULE_implicitAlias)- try:- self.state = 2031- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [134]:- self.enterOuterAlt(localctx, 1)- self.state = 2028- self.match(HogQLParser.IDENTIFIER)- pass- elif token in [135]:- self.enterOuterAlt(localctx, 2)- self.state = 2029- self.match(HogQLParser.QUOTED_IDENTIFIER)- pass- elif token in [7, 15, 21, 24, 31, 46, 92, 113, 114]:- self.enterOuterAlt(localctx, 3)- self.state = 2030- self.keywordForImplicitAlias()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class IdentifierContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def IDENTIFIER(self):- return self.getToken(HogQLParser.IDENTIFIER, 0)-- def QUOTED_IDENTIFIER(self):- return self.getToken(HogQLParser.QUOTED_IDENTIFIER, 0)-- def interval(self):- return self.getTypedRuleContext(HogQLParser.IntervalContext,0)--- def keyword(self):- return self.getTypedRuleContext(HogQLParser.KeywordContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_identifier-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitIdentifier" ):- return visitor.visitIdentifier(self)- else:- return visitor.visitChildren(self)----- def identifier(self):-- localctx = HogQLParser.IdentifierContext(self, self._ctx, self.state)- self.enterRule(localctx, 220, self.RULE_identifier)- try:- self.state = 2037- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [134]:- self.enterOuterAlt(localctx, 1)- self.state = 2033- self.match(HogQLParser.IDENTIFIER)- pass- elif token in [135]:- self.enterOuterAlt(localctx, 2)- self.state = 2034- self.match(HogQLParser.QUOTED_IDENTIFIER)- pass- elif token in [22, 45, 68, 69, 88, 98, 125, 132]:- self.enterOuterAlt(localctx, 3)- self.state = 2035- self.interval()- pass- elif token in [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 15, 16, 17, 18, 19, 20, 21, 23, 24, 25, 26, 27, 29, 30, 31, 32, 33, 35, 37, 38, 39, 40, 42, 43, 44, 46, 47, 48, 49, 50, 51, 53, 55, 56, 57, 58, 59, 60, 61, 62, 63, 65, 66, 70, 71, 73, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 89, 90, 91, 92, 93, 94, 95, 96, 97, 99, 100, 101, 102, 103, 104, 105, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 119, 120, 121, 122, 123, 124, 126, 127, 129, 130]:- self.enterOuterAlt(localctx, 4)- self.state = 2036- self.keyword()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class EnumValueContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def string(self):- return self.getTypedRuleContext(HogQLParser.StringContext,0)--- def EQ_SINGLE(self):- return self.getToken(HogQLParser.EQ_SINGLE, 0)-- def numberLiteral(self):- return self.getTypedRuleContext(HogQLParser.NumberLiteralContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_enumValue-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitEnumValue" ):- return visitor.visitEnumValue(self)- else:- return visitor.visitChildren(self)----- def enumValue(self):-- localctx = HogQLParser.EnumValueContext(self, self._ctx, self.state)- self.enterRule(localctx, 222, self.RULE_enumValue)- try:- self.enterOuterAlt(localctx, 1)- self.state = 2039- self.string()- self.state = 2040- self.match(HogQLParser.EQ_SINGLE)- self.state = 2041- self.numberLiteral()- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class PlaceholderContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def LBRACE(self):- return self.getToken(HogQLParser.LBRACE, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_placeholder-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitPlaceholder" ):- return visitor.visitPlaceholder(self)- else:- return visitor.visitChildren(self)----- def placeholder(self):-- localctx = HogQLParser.PlaceholderContext(self, self._ctx, self.state)- self.enterRule(localctx, 224, self.RULE_placeholder)- try:- self.enterOuterAlt(localctx, 1)- self.state = 2043- self.match(HogQLParser.LBRACE)- self.state = 2044- self.columnExpr(0)- self.state = 2045- self.match(HogQLParser.RBRACE)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class StringContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def STRING_LITERAL(self):- return self.getToken(HogQLParser.STRING_LITERAL, 0)-- def templateString(self):- return self.getTypedRuleContext(HogQLParser.TemplateStringContext,0)--- def getRuleIndex(self):- return HogQLParser.RULE_string-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitString" ):- return visitor.visitString(self)- else:- return visitor.visitChildren(self)----- def string(self):-- localctx = HogQLParser.StringContext(self, self._ctx, self.state)- self.enterRule(localctx, 226, self.RULE_string)- try:- self.state = 2049- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [143]:- self.enterOuterAlt(localctx, 1)- self.state = 2047- self.match(HogQLParser.STRING_LITERAL)- pass- elif token in [179]:- self.enterOuterAlt(localctx, 2)- self.state = 2048- self.templateString()- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class TemplateStringContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def QUOTE_SINGLE_TEMPLATE(self):- return self.getToken(HogQLParser.QUOTE_SINGLE_TEMPLATE, 0)-- def QUOTE_SINGLE(self):- return self.getToken(HogQLParser.QUOTE_SINGLE, 0)-- def stringContents(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.StringContentsContext)- else:- return self.getTypedRuleContext(HogQLParser.StringContentsContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_templateString-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitTemplateString" ):- return visitor.visitTemplateString(self)- else:- return visitor.visitChildren(self)----- def templateString(self):-- localctx = HogQLParser.TemplateStringContext(self, self._ctx, self.state)- self.enterRule(localctx, 228, self.RULE_templateString)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2051- self.match(HogQLParser.QUOTE_SINGLE_TEMPLATE)- self.state = 2055- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==196 or _la==197:- self.state = 2052- self.stringContents()- self.state = 2057- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 2058- self.match(HogQLParser.QUOTE_SINGLE)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class StringContentsContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def STRING_ESCAPE_TRIGGER(self):- return self.getToken(HogQLParser.STRING_ESCAPE_TRIGGER, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def STRING_TEXT(self):- return self.getToken(HogQLParser.STRING_TEXT, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_stringContents-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitStringContents" ):- return visitor.visitStringContents(self)- else:- return visitor.visitChildren(self)----- def stringContents(self):-- localctx = HogQLParser.StringContentsContext(self, self._ctx, self.state)- self.enterRule(localctx, 230, self.RULE_stringContents)- try:- self.state = 2065- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [197]:- self.enterOuterAlt(localctx, 1)- self.state = 2060- self.match(HogQLParser.STRING_ESCAPE_TRIGGER)- self.state = 2061- self.columnExpr(0)- self.state = 2062- self.match(HogQLParser.RBRACE)- pass- elif token in [196]:- self.enterOuterAlt(localctx, 2)- self.state = 2064- self.match(HogQLParser.STRING_TEXT)- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class FullTemplateStringContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def QUOTE_SINGLE_TEMPLATE_FULL(self):- return self.getToken(HogQLParser.QUOTE_SINGLE_TEMPLATE_FULL, 0)-- def EOF(self):- return self.getToken(HogQLParser.EOF, 0)-- def stringContentsFull(self, i:int=None):- if i is None:- return self.getTypedRuleContexts(HogQLParser.StringContentsFullContext)- else:- return self.getTypedRuleContext(HogQLParser.StringContentsFullContext,i)--- def getRuleIndex(self):- return HogQLParser.RULE_fullTemplateString-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitFullTemplateString" ):- return visitor.visitFullTemplateString(self)- else:- return visitor.visitChildren(self)----- def fullTemplateString(self):-- localctx = HogQLParser.FullTemplateStringContext(self, self._ctx, self.state)- self.enterRule(localctx, 232, self.RULE_fullTemplateString)- self._la = 0 # Token type- try:- self.enterOuterAlt(localctx, 1)- self.state = 2067- self.match(HogQLParser.QUOTE_SINGLE_TEMPLATE_FULL)- self.state = 2071- self._errHandler.sync(self)- _la = self._input.LA(1)- while _la==198 or _la==199:- self.state = 2068- self.stringContentsFull()- self.state = 2073- self._errHandler.sync(self)- _la = self._input.LA(1)-- self.state = 2074- self.match(HogQLParser.EOF)- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx--- class StringContentsFullContext(ParserRuleContext):- __slots__ = 'parser'-- def __init__(self, parser, parent:ParserRuleContext=None, invokingState:int=-1):- super().__init__(parent, invokingState)- self.parser = parser-- def FULL_STRING_ESCAPE_TRIGGER(self):- return self.getToken(HogQLParser.FULL_STRING_ESCAPE_TRIGGER, 0)-- def columnExpr(self):- return self.getTypedRuleContext(HogQLParser.ColumnExprContext,0)--- def RBRACE(self):- return self.getToken(HogQLParser.RBRACE, 0)-- def FULL_STRING_TEXT(self):- return self.getToken(HogQLParser.FULL_STRING_TEXT, 0)-- def getRuleIndex(self):- return HogQLParser.RULE_stringContentsFull-- def accept(self, visitor:ParseTreeVisitor):- if hasattr( visitor, "visitStringContentsFull" ):- return visitor.visitStringContentsFull(self)- else:- return visitor.visitChildren(self)----- def stringContentsFull(self):-- localctx = HogQLParser.StringContentsFullContext(self, self._ctx, self.state)- self.enterRule(localctx, 234, self.RULE_stringContentsFull)- try:- self.state = 2081- self._errHandler.sync(self)- token = self._input.LA(1)- if token in [199]:- self.enterOuterAlt(localctx, 1)- self.state = 2076- self.match(HogQLParser.FULL_STRING_ESCAPE_TRIGGER)- self.state = 2077- self.columnExpr(0)- self.state = 2078- self.match(HogQLParser.RBRACE)- pass- elif token in [198]:- self.enterOuterAlt(localctx, 2)- self.state = 2080- self.match(HogQLParser.FULL_STRING_TEXT)- pass- else:- raise NoViableAltException(self)-- except RecognitionException as re:- localctx.exception = re- self._errHandler.reportError(self, re)- self._errHandler.recover(self, re)- finally:- self.exitRule()- return localctx---- def sempred(self, localctx:RuleContext, ruleIndex:int, predIndex:int):- if self._predicates == None:- self._predicates = dict()- self._predicates[48] = self.joinExpr_sempred- self._predicates[69] = self.columnTypeExpr_sempred- self._predicates[77] = self.columnExpr_sempred- self._predicates[90] = self.tableExpr_sempred- pred = self._predicates.get(ruleIndex, None)- if pred is None:- raise Exception("No predicate with index:" + str(ruleIndex))- else:- return pred(localctx, predIndex)-- def joinExpr_sempred(self, localctx:JoinExprContext, predIndex:int):- if predIndex == 0:- return self.precpred(self._ctx, 5)--- if predIndex == 1:- return self.precpred(self._ctx, 7)--- if predIndex == 2:- return self.precpred(self._ctx, 6)--- if predIndex == 3:- return self.precpred(self._ctx, 4)--- if predIndex == 4:- return self.precpred(self._ctx, 3)--- def columnTypeExpr_sempred(self, localctx:ColumnTypeExprContext, predIndex:int):- if predIndex == 5:- return self.precpred(self._ctx, 7)--- def columnExpr_sempred(self, localctx:ColumnExprContext, predIndex:int):- if predIndex == 6:- return self.precpred(self._ctx, 25)--- if predIndex == 7:- return self.precpred(self._ctx, 24)--- if predIndex == 8:- return self.precpred(self._ctx, 23)--- if predIndex == 9:- return self.precpred(self._ctx, 20)--- if predIndex == 10:- return self.precpred(self._ctx, 19)--- if predIndex == 11:- return self.precpred(self._ctx, 18)--- if predIndex == 12:- return self.precpred(self._ctx, 16)--- if predIndex == 13:- return self.precpred(self._ctx, 15)--- if predIndex == 14:- return self.precpred(self._ctx, 14)--- if predIndex == 15:- return self.precpred(self._ctx, 13)--- if predIndex == 16:- return self.precpred(self._ctx, 39)--- if predIndex == 17:- return self.precpred(self._ctx, 38)--- if predIndex == 18:- return self.precpred(self._ctx, 34)--- if predIndex == 19:- return self.precpred(self._ctx, 33)--- if predIndex == 20:- return self.precpred(self._ctx, 32)--- if predIndex == 21:- return self.precpred(self._ctx, 31)--- if predIndex == 22:- return self.precpred(self._ctx, 30)--- if predIndex == 23:- return self.precpred(self._ctx, 29)--- if predIndex == 24:- return self.precpred(self._ctx, 28)--- if predIndex == 25:- return self.precpred(self._ctx, 27)--- if predIndex == 26:- return self.precpred(self._ctx, 22)--- if predIndex == 27:- return self.precpred(self._ctx, 21)--- if predIndex == 28:- return self.precpred(self._ctx, 12)--- def tableExpr_sempred(self, localctx:TableExprContext, predIndex:int):- if predIndex == 29:- return self.precpred(self._ctx, 5)--- if predIndex == 30:- return self.precpred(self._ctx, 4)--- if predIndex == 31:- return self.precpred(self._ctx, 3)-----diff --git a/posthog/hogql/grammar/HogQLParser.tokens b/posthog/hogql/grammar/HogQLParser.tokensdeleted file mode 100644index ec8049642de3..000000000000--- a/posthog/hogql/grammar/HogQLParser.tokens+++ /dev/null@@ -1,250 +0,0 @@-ALL=1-AND=2-ANTI=3-ANY=4-ARRAY=5-AS=6-ASCENDING=7-ASOF=8-BETWEEN=9-BOTH=10-BY=11-CASE=12-CAST=13-CATCH=14-COHORT=15-COLLATE=16-COLUMNS=17-CROSS=18-CUBE=19-CURRENT=20-DATE=21-DAY=22-DESC=23-DESCENDING=24-DISTINCT=25-ELSE=26-END=27-EXCEPT=28-EXCLUDE=29-EXTRACT=30-FINAL=31-FILL=32-FILTER=33-FINALLY=34-FIRST=35-FN=36-FOLLOWING=37-FOR=38-FROM=39-FULL=40-FUN=41-GROUP=42-GROUPING=43-HAVING=44-HOUR=45-ID=46-IF=47-ILIKE=48-IGNORE=49-INCLUDE=50-IN=51-INF=52-INNER=53-INTERSECT=54-INTERPOLATE=55-INTERVAL=56-IS=57-JOIN=58-KEY=59-LAMBDA=60-LAST=61-LEADING=62-LEFT=63-LET=64-LIKE=65-LIMIT=66-MATERIALIZED=67-MINUTE=68-MONTH=69-NAME=70-NATURAL=71-NAN_SQL=72-NOT=73-NULL_SQL=74-NULLS=75-OFFSET=76-ON=77-OR=78-ORDER=79-OUTER=80-OVER=81-PARTITION=82-PIVOT=83-POSITIONAL=84-PRECEDING=85-PREWHERE=86-QUALIFY=87-QUARTER=88-RANGE=89-RECURSIVE=90-REPLACE=91-RETURN=92-RIGHT=93-ROLLUP=94-ROW=95-ROWS=96-SAMPLE=97-SECOND=98-SELECT=99-SEMI=100-SETS=101-SETTINGS=102-STEP=103-SUBSTRING=104-THEN=105-THROW=106-TIES=107-TIMESTAMP=108-TIME=109-LOCAL=110-ZONE=111-TO=112-TOP=113-TOTALS=114-TRAILING=115-TRIM=116-TRUNCATE=117-TRY=118-TRY_CAST=119-UNBOUNDED=120-UNION=121-UNPIVOT=122-USING=123-VALUES=124-WEEK=125-WHEN=126-WHERE=127-WHILE=128-WINDOW=129-WITH=130-WITHIN=131-YEAR=132-ESCAPE_CHAR_COMMON=133-IDENTIFIER=134-QUOTED_IDENTIFIER=135-FLOATING_LITERAL=136-BINARY_LITERAL=137-OCTAL_LITERAL=138-DECIMAL_LITERAL=139-HEXADECIMAL_LITERAL=140-OCTAL_PREFIX_LITERAL=141-MALFORMED_BINARY_LITERAL=142-STRING_LITERAL=143-ARROW=144-ASTERISK=145-BACKQUOTE=146-BACKSLASH=147-DOUBLECOLON=148-COLONEQUALS=149-COLON=150-COMMA=151-CONCAT=152-DASH=153-DOLLAR=154-DOT=155-EQ_DOUBLE=156-EQ_SINGLE=157-GT_EQ=158-GT=159-HASH=160-IREGEX_SINGLE=161-IREGEX_DOUBLE=162-LBRACE=163-LBRACKET=164-LPAREN=165-NULL_SAFE_EQ=166-LT_EQ=167-LT=168-LT_SLASH=169-NOT_EQ=170-NOT_IREGEX=171-NOT_REGEX=172-NULL_PROPERTY=173-NULLISH=174-PERCENT=175-PLUS=176-QUERY=177-QUOTE_DOUBLE=178-QUOTE_SINGLE_TEMPLATE=179-QUOTE_SINGLE_TEMPLATE_FULL=180-QUOTE_SINGLE=181-REGEX_SINGLE=182-REGEX_DOUBLE=183-RBRACE=184-RBRACKET=185-RPAREN=186-SEMICOLON=187-SLASH=188-SLASH_GT=189-UNDERSCORE=190-MULTI_LINE_COMMENT=191-SINGLE_LINE_COMMENT=192-HASH_COMMENT=193-WHITESPACE=194-UNEXPECTED_CHARACTER=195-STRING_TEXT=196-STRING_ESCAPE_TRIGGER=197-FULL_STRING_TEXT=198-FULL_STRING_ESCAPE_TRIGGER=199-TAG_MULTI_LINE_COMMENT=200-TAG_SINGLE_LINE_COMMENT=201-TAG_WS=202-TAGC_MULTI_LINE_COMMENT=203-TAGC_SINGLE_LINE_COMMENT=204-TAGC_WS=205-HOGQLX_TEXT_TEXT=206-HOGQLX_TEXT_WS=207-'->'=144-'*'=145-'`'=146-'\\'=147-'::'=148-':='=149-':'=150-','=151-'||'=152-'-'=153-'$'=154-'.'=155-'=='=156-'>='=158-'#'=160-'~*'=161-'=~*'=162-'{'=163-'['=164-'('=165-'<=>'=166-'<='=167-'<'=168-'</'=169-'!~*'=171-'!~'=172-'?.'=173-'??'=174-'%'=175-'+'=176-'?'=177-'"'=178-'f\''=179-'F\''=180-'\''=181-'~'=182-'=~'=183-'}'=184-']'=185-')'=186-';'=187-'/'=188-'_'=190diff --git a/posthog/hogql/grammar/HogQLParserVisitor.py b/posthog/hogql/grammar/HogQLParserVisitor.pydeleted file mode 100644index c34e24db1ba9..000000000000--- a/posthog/hogql/grammar/HogQLParserVisitor.py+++ /dev/null@@ -1,1073 +0,0 @@-# Generated from HogQLParser.g4 by ANTLR 4.13.2-from antlr4 import *-if "." in __name__:- from .HogQLParser import HogQLParser-else:- from HogQLParser import HogQLParser--# This class defines a complete generic visitor for a parse tree produced by HogQLParser.--class HogQLParserVisitor(ParseTreeVisitor):-- # Visit a parse tree produced by HogQLParser#program.- def visitProgram(self, ctx:HogQLParser.ProgramContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#declaration.- def visitDeclaration(self, ctx:HogQLParser.DeclarationContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#expression.- def visitExpression(self, ctx:HogQLParser.ExpressionContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#varDecl.- def visitVarDecl(self, ctx:HogQLParser.VarDeclContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#identifierList.- def visitIdentifierList(self, ctx:HogQLParser.IdentifierListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#statement.- def visitStatement(self, ctx:HogQLParser.StatementContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#returnStmt.- def visitReturnStmt(self, ctx:HogQLParser.ReturnStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#throwStmt.- def visitThrowStmt(self, ctx:HogQLParser.ThrowStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#catchBlock.- def visitCatchBlock(self, ctx:HogQLParser.CatchBlockContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#tryCatchStmt.- def visitTryCatchStmt(self, ctx:HogQLParser.TryCatchStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ifStmt.- def visitIfStmt(self, ctx:HogQLParser.IfStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#whileStmt.- def visitWhileStmt(self, ctx:HogQLParser.WhileStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#forStmt.- def visitForStmt(self, ctx:HogQLParser.ForStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#forInStmt.- def visitForInStmt(self, ctx:HogQLParser.ForInStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#funcStmt.- def visitFuncStmt(self, ctx:HogQLParser.FuncStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#varAssignment.- def visitVarAssignment(self, ctx:HogQLParser.VarAssignmentContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#exprStmt.- def visitExprStmt(self, ctx:HogQLParser.ExprStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#emptyStmt.- def visitEmptyStmt(self, ctx:HogQLParser.EmptyStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#block.- def visitBlock(self, ctx:HogQLParser.BlockContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#kvPair.- def visitKvPair(self, ctx:HogQLParser.KvPairContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#kvPairList.- def visitKvPairList(self, ctx:HogQLParser.KvPairListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#select.- def visitSelect(self, ctx:HogQLParser.SelectContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#selectStmtWithParens.- def visitSelectStmtWithParens(self, ctx:HogQLParser.SelectStmtWithParensContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#subsequentSelectSetClause.- def visitSubsequentSelectSetClause(self, ctx:HogQLParser.SubsequentSelectSetClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#selectSetStmt.- def visitSelectSetStmt(self, ctx:HogQLParser.SelectSetStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#limitAndOffsetClauseOptional.- def visitLimitAndOffsetClauseOptional(self, ctx:HogQLParser.LimitAndOffsetClauseOptionalContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#selectStmt.- def visitSelectStmt(self, ctx:HogQLParser.SelectStmtContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#withClause.- def visitWithClause(self, ctx:HogQLParser.WithClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#topClause.- def visitTopClause(self, ctx:HogQLParser.TopClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#fromClause.- def visitFromClause(self, ctx:HogQLParser.FromClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#arrayJoinClause.- def visitArrayJoinClause(self, ctx:HogQLParser.ArrayJoinClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#windowClause.- def visitWindowClause(self, ctx:HogQLParser.WindowClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#prewhereClause.- def visitPrewhereClause(self, ctx:HogQLParser.PrewhereClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#whereClause.- def visitWhereClause(self, ctx:HogQLParser.WhereClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#groupByClause.- def visitGroupByClause(self, ctx:HogQLParser.GroupByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#groupingSetList.- def visitGroupingSetList(self, ctx:HogQLParser.GroupingSetListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#groupingSet.- def visitGroupingSet(self, ctx:HogQLParser.GroupingSetContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#havingClause.- def visitHavingClause(self, ctx:HogQLParser.HavingClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#qualifyClause.- def visitQualifyClause(self, ctx:HogQLParser.QualifyClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#orderByClause.- def visitOrderByClause(self, ctx:HogQLParser.OrderByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#interpolateClause.- def visitInterpolateClause(self, ctx:HogQLParser.InterpolateClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#projectionOrderByClause.- def visitProjectionOrderByClause(self, ctx:HogQLParser.ProjectionOrderByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#limitByClause.- def visitLimitByClause(self, ctx:HogQLParser.LimitByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#limitAndOffsetClause.- def visitLimitAndOffsetClause(self, ctx:HogQLParser.LimitAndOffsetClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#offsetOnlyClause.- def visitOffsetOnlyClause(self, ctx:HogQLParser.OffsetOnlyClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#settingsClause.- def visitSettingsClause(self, ctx:HogQLParser.SettingsClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#valuesClause.- def visitValuesClause(self, ctx:HogQLParser.ValuesClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#valuesRow.- def visitValuesRow(self, ctx:HogQLParser.ValuesRowContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprPositional.- def visitJoinExprPositional(self, ctx:HogQLParser.JoinExprPositionalContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprOp.- def visitJoinExprOp(self, ctx:HogQLParser.JoinExprOpContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprTable.- def visitJoinExprTable(self, ctx:HogQLParser.JoinExprTableContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprUnpivot.- def visitJoinExprUnpivot(self, ctx:HogQLParser.JoinExprUnpivotContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprParens.- def visitJoinExprParens(self, ctx:HogQLParser.JoinExprParensContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprCrossOp.- def visitJoinExprCrossOp(self, ctx:HogQLParser.JoinExprCrossOpContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinExprPivot.- def visitJoinExprPivot(self, ctx:HogQLParser.JoinExprPivotContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinOpInner.- def visitJoinOpInner(self, ctx:HogQLParser.JoinOpInnerContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinOpLeftRight.- def visitJoinOpLeftRight(self, ctx:HogQLParser.JoinOpLeftRightContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#JoinOpFull.- def visitJoinOpFull(self, ctx:HogQLParser.JoinOpFullContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#joinOpCross.- def visitJoinOpCross(self, ctx:HogQLParser.JoinOpCrossContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#joinConstraintClause.- def visitJoinConstraintClause(self, ctx:HogQLParser.JoinConstraintClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#sampleClause.- def visitSampleClause(self, ctx:HogQLParser.SampleClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#limitExpr.- def visitLimitExpr(self, ctx:HogQLParser.LimitExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#orderExprList.- def visitOrderExprList(self, ctx:HogQLParser.OrderExprListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#orderExpr.- def visitOrderExpr(self, ctx:HogQLParser.OrderExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#withFillClause.- def visitWithFillClause(self, ctx:HogQLParser.WithFillClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#interpolateExpr.- def visitInterpolateExpr(self, ctx:HogQLParser.InterpolateExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ratioExpr.- def visitRatioExpr(self, ctx:HogQLParser.RatioExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#settingExprList.- def visitSettingExprList(self, ctx:HogQLParser.SettingExprListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#settingExpr.- def visitSettingExpr(self, ctx:HogQLParser.SettingExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#windowExpr.- def visitWindowExpr(self, ctx:HogQLParser.WindowExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#winPartitionByClause.- def visitWinPartitionByClause(self, ctx:HogQLParser.WinPartitionByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#winOrderByClause.- def visitWinOrderByClause(self, ctx:HogQLParser.WinOrderByClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#withinGroupClause.- def visitWithinGroupClause(self, ctx:HogQLParser.WithinGroupClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#winFrameClause.- def visitWinFrameClause(self, ctx:HogQLParser.WinFrameClauseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#frameStart.- def visitFrameStart(self, ctx:HogQLParser.FrameStartContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#frameBetween.- def visitFrameBetween(self, ctx:HogQLParser.FrameBetweenContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#winFrameBound.- def visitWinFrameBound(self, ctx:HogQLParser.WinFrameBoundContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#expr.- def visitExpr(self, ctx:HogQLParser.ExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprNested.- def visitColumnTypeExprNested(self, ctx:HogQLParser.ColumnTypeExprNestedContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprParam.- def visitColumnTypeExprParam(self, ctx:HogQLParser.ColumnTypeExprParamContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprArray.- def visitColumnTypeExprArray(self, ctx:HogQLParser.ColumnTypeExprArrayContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprComplex.- def visitColumnTypeExprComplex(self, ctx:HogQLParser.ColumnTypeExprComplexContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprSimple.- def visitColumnTypeExprSimple(self, ctx:HogQLParser.ColumnTypeExprSimpleContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprEnum.- def visitColumnTypeExprEnum(self, ctx:HogQLParser.ColumnTypeExprEnumContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeExprCompound.- def visitColumnTypeExprCompound(self, ctx:HogQLParser.ColumnTypeExprCompoundContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeCastExprWithTimeZone.- def visitColumnTypeCastExprWithTimeZone(self, ctx:HogQLParser.ColumnTypeCastExprWithTimeZoneContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnTypeCastExprSimple.- def visitColumnTypeCastExprSimple(self, ctx:HogQLParser.ColumnTypeCastExprSimpleContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnTypeCastIdentifier.- def visitColumnTypeCastIdentifier(self, ctx:HogQLParser.ColumnTypeCastIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#keywordForTypeCast.- def visitKeywordForTypeCast(self, ctx:HogQLParser.KeywordForTypeCastContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnExprList.- def visitColumnExprList(self, ctx:HogQLParser.ColumnExprListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#SelectColumnExprListBeforeFromTrailingComma.- def visitSelectColumnExprListBeforeFromTrailingComma(self, ctx:HogQLParser.SelectColumnExprListBeforeFromTrailingCommaContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#SelectColumnExprListBeforeFromPlain.- def visitSelectColumnExprListBeforeFromPlain(self, ctx:HogQLParser.SelectColumnExprListBeforeFromPlainContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#selectColumnExprList.- def visitSelectColumnExprList(self, ctx:HogQLParser.SelectColumnExprListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprAliasBefore.- def visitColumnExprAliasBefore(self, ctx:HogQLParser.ColumnExprAliasBeforeContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprInvalidFromImplicitAlias.- def visitColumnExprInvalidFromImplicitAlias(self, ctx:HogQLParser.ColumnExprInvalidFromImplicitAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprSelectValue.- def visitColumnExprSelectValue(self, ctx:HogQLParser.ColumnExprSelectValueContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprAliasImplicit.- def visitColumnExprAliasImplicit(self, ctx:HogQLParser.ColumnExprAliasImplicitContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsAll.- def visitColumnExprColumnsAll(self, ctx:HogQLParser.ColumnExprColumnsAllContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTernaryOp.- def visitColumnExprTernaryOp(self, ctx:HogQLParser.ColumnExprTernaryOpContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprAlias.- def visitColumnExprAlias(self, ctx:HogQLParser.ColumnExprAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNegate.- def visitColumnExprNegate(self, ctx:HogQLParser.ColumnExprNegateContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprLiteral.- def visitColumnExprLiteral(self, ctx:HogQLParser.ColumnExprLiteralContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprArray.- def visitColumnExprArray(self, ctx:HogQLParser.ColumnExprArrayContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprOr.- def visitColumnExprOr(self, ctx:HogQLParser.ColumnExprOrContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprPrecedence1.- def visitColumnExprPrecedence1(self, ctx:HogQLParser.ColumnExprPrecedence1Context):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprPrecedence2.- def visitColumnExprPrecedence2(self, ctx:HogQLParser.ColumnExprPrecedence2Context):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNullSafeEq.- def visitColumnExprNullSafeEq(self, ctx:HogQLParser.ColumnExprNullSafeEqContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprPrecedence3.- def visitColumnExprPrecedence3(self, ctx:HogQLParser.ColumnExprPrecedence3Context):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprInterval.- def visitColumnExprInterval(self, ctx:HogQLParser.ColumnExprIntervalContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprIsNull.- def visitColumnExprIsNull(self, ctx:HogQLParser.ColumnExprIsNullContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprWinFunctionTarget.- def visitColumnExprWinFunctionTarget(self, ctx:HogQLParser.ColumnExprWinFunctionTargetContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNamedArg.- def visitColumnExprNamedArg(self, ctx:HogQLParser.ColumnExprNamedArgContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNullPropertyAccess.- def visitColumnExprNullPropertyAccess(self, ctx:HogQLParser.ColumnExprNullPropertyAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprIntervalString.- def visitColumnExprIntervalString(self, ctx:HogQLParser.ColumnExprIntervalStringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTagElement.- def visitColumnExprTagElement(self, ctx:HogQLParser.ColumnExprTagElementContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprCall.- def visitColumnExprCall(self, ctx:HogQLParser.ColumnExprCallContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprArrayAccess.- def visitColumnExprArrayAccess(self, ctx:HogQLParser.ColumnExprArrayAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprBetween.- def visitColumnExprBetween(self, ctx:HogQLParser.ColumnExprBetweenContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprParens.- def visitColumnExprParens(self, ctx:HogQLParser.ColumnExprParensContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTimestamp.- def visitColumnExprTimestamp(self, ctx:HogQLParser.ColumnExprTimestampContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprAnd.- def visitColumnExprAnd(self, ctx:HogQLParser.ColumnExprAndContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsQualifiedExclude.- def visitColumnExprColumnsQualifiedExclude(self, ctx:HogQLParser.ColumnExprColumnsQualifiedExcludeContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNot.- def visitColumnExprNot(self, ctx:HogQLParser.ColumnExprNotContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprFunction.- def visitColumnExprFunction(self, ctx:HogQLParser.ColumnExprFunctionContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprDict.- def visitColumnExprDict(self, ctx:HogQLParser.ColumnExprDictContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprSubquery.- def visitColumnExprSubquery(self, ctx:HogQLParser.ColumnExprSubqueryContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprSubstring.- def visitColumnExprSubstring(self, ctx:HogQLParser.ColumnExprSubstringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprCast.- def visitColumnExprCast(self, ctx:HogQLParser.ColumnExprCastContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprArraySlice.- def visitColumnExprArraySlice(self, ctx:HogQLParser.ColumnExprArraySliceContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsQualifiedReplace.- def visitColumnExprColumnsQualifiedReplace(self, ctx:HogQLParser.ColumnExprColumnsQualifiedReplaceContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNullTupleAccess.- def visitColumnExprNullTupleAccess(self, ctx:HogQLParser.ColumnExprNullTupleAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprFunctionWithinGroup.- def visitColumnExprFunctionWithinGroup(self, ctx:HogQLParser.ColumnExprFunctionWithinGroupContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprPositional.- def visitColumnExprPositional(self, ctx:HogQLParser.ColumnExprPositionalContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsRegex.- def visitColumnExprColumnsRegex(self, ctx:HogQLParser.ColumnExprColumnsRegexContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTypeCast.- def visitColumnExprTypeCast(self, ctx:HogQLParser.ColumnExprTypeCastContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprIsDistinctFrom.- def visitColumnExprIsDistinctFrom(self, ctx:HogQLParser.ColumnExprIsDistinctFromContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprSpreadColumnsList.- def visitColumnExprSpreadColumnsList(self, ctx:HogQLParser.ColumnExprSpreadColumnsListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsExcludeReplace.- def visitColumnExprColumnsExcludeReplace(self, ctx:HogQLParser.ColumnExprColumnsExcludeReplaceContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsQualifiedExcludeReplace.- def visitColumnExprColumnsQualifiedExcludeReplace(self, ctx:HogQLParser.ColumnExprColumnsQualifiedExcludeReplaceContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsExclude.- def visitColumnExprColumnsExclude(self, ctx:HogQLParser.ColumnExprColumnsExcludeContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColonLambda.- def visitColumnExprColonLambda(self, ctx:HogQLParser.ColumnExprColonLambdaContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprCallSelect.- def visitColumnExprCallSelect(self, ctx:HogQLParser.ColumnExprCallSelectContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsQualifiedAll.- def visitColumnExprColumnsQualifiedAll(self, ctx:HogQLParser.ColumnExprColumnsQualifiedAllContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTrim.- def visitColumnExprTrim(self, ctx:HogQLParser.ColumnExprTrimContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTemplateString.- def visitColumnExprTemplateString(self, ctx:HogQLParser.ColumnExprTemplateStringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTuple.- def visitColumnExprTuple(self, ctx:HogQLParser.ColumnExprTupleContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTryCast.- def visitColumnExprTryCast(self, ctx:HogQLParser.ColumnExprTryCastContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsList.- def visitColumnExprColumnsList(self, ctx:HogQLParser.ColumnExprColumnsListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprColumnsReplace.- def visitColumnExprColumnsReplace(self, ctx:HogQLParser.ColumnExprColumnsReplaceContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprSpreadColumnsRegex.- def visitColumnExprSpreadColumnsRegex(self, ctx:HogQLParser.ColumnExprSpreadColumnsRegexContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprPropertyAccess.- def visitColumnExprPropertyAccess(self, ctx:HogQLParser.ColumnExprPropertyAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNullArrayAccess.- def visitColumnExprNullArrayAccess(self, ctx:HogQLParser.ColumnExprNullArrayAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprIgnoreNulls.- def visitColumnExprIgnoreNulls(self, ctx:HogQLParser.ColumnExprIgnoreNullsContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprNullish.- def visitColumnExprNullish(self, ctx:HogQLParser.ColumnExprNullishContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprTupleAccess.- def visitColumnExprTupleAccess(self, ctx:HogQLParser.ColumnExprTupleAccessContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprCase.- def visitColumnExprCase(self, ctx:HogQLParser.ColumnExprCaseContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprDate.- def visitColumnExprDate(self, ctx:HogQLParser.ColumnExprDateContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprWinFunction.- def visitColumnExprWinFunction(self, ctx:HogQLParser.ColumnExprWinFunctionContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprLambda.- def visitColumnExprLambda(self, ctx:HogQLParser.ColumnExprLambdaContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprIdentifier.- def visitColumnExprIdentifier(self, ctx:HogQLParser.ColumnExprIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColumnExprAsterisk.- def visitColumnExprAsterisk(self, ctx:HogQLParser.ColumnExprAsteriskContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ArrowLambda.- def visitArrowLambda(self, ctx:HogQLParser.ArrowLambdaContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#ColonLambda.- def visitColonLambda(self, ctx:HogQLParser.ColonLambdaContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnsReplaceList.- def visitColumnsReplaceList(self, ctx:HogQLParser.ColumnsReplaceListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnsReplaceItem.- def visitColumnsReplaceItem(self, ctx:HogQLParser.ColumnsReplaceItemContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#hogqlxChildElement.- def visitHogqlxChildElement(self, ctx:HogQLParser.HogqlxChildElementContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#hogqlxText.- def visitHogqlxText(self, ctx:HogQLParser.HogqlxTextContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#HogqlxTagElementClosed.- def visitHogqlxTagElementClosed(self, ctx:HogQLParser.HogqlxTagElementClosedContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#HogqlxTagElementNested.- def visitHogqlxTagElementNested(self, ctx:HogQLParser.HogqlxTagElementNestedContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#hogqlxTagAttribute.- def visitHogqlxTagAttribute(self, ctx:HogQLParser.HogqlxTagAttributeContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#withExprList.- def visitWithExprList(self, ctx:HogQLParser.WithExprListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#WithExprSubquery.- def visitWithExprSubquery(self, ctx:HogQLParser.WithExprSubqueryContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#WithExprColumn.- def visitWithExprColumn(self, ctx:HogQLParser.WithExprColumnContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#withExprColumnNameList.- def visitWithExprColumnNameList(self, ctx:HogQLParser.WithExprColumnNameListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnIdentifier.- def visitColumnIdentifier(self, ctx:HogQLParser.ColumnIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#nestedIdentifier.- def visitNestedIdentifier(self, ctx:HogQLParser.NestedIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprTag.- def visitTableExprTag(self, ctx:HogQLParser.TableExprTagContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprIdentifier.- def visitTableExprIdentifier(self, ctx:HogQLParser.TableExprIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprPlaceholder.- def visitTableExprPlaceholder(self, ctx:HogQLParser.TableExprPlaceholderContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprSubquery.- def visitTableExprSubquery(self, ctx:HogQLParser.TableExprSubqueryContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprPivot.- def visitTableExprPivot(self, ctx:HogQLParser.TableExprPivotContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprValues.- def visitTableExprValues(self, ctx:HogQLParser.TableExprValuesContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprAlias.- def visitTableExprAlias(self, ctx:HogQLParser.TableExprAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprFunction.- def visitTableExprFunction(self, ctx:HogQLParser.TableExprFunctionContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#TableExprUnpivot.- def visitTableExprUnpivot(self, ctx:HogQLParser.TableExprUnpivotContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#pivotColumnList.- def visitPivotColumnList(self, ctx:HogQLParser.PivotColumnListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#pivotColumn.- def visitPivotColumn(self, ctx:HogQLParser.PivotColumnContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#unpivotColumnList.- def visitUnpivotColumnList(self, ctx:HogQLParser.UnpivotColumnListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#unpivotColumn.- def visitUnpivotColumn(self, ctx:HogQLParser.UnpivotColumnContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnExprTupleOrSingle.- def visitColumnExprTupleOrSingle(self, ctx:HogQLParser.ColumnExprTupleOrSingleContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#columnAliases.- def visitColumnAliases(self, ctx:HogQLParser.ColumnAliasesContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#tableFunctionExpr.- def visitTableFunctionExpr(self, ctx:HogQLParser.TableFunctionExprContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#tableIdentifier.- def visitTableIdentifier(self, ctx:HogQLParser.TableIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#tableArgList.- def visitTableArgList(self, ctx:HogQLParser.TableArgListContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#databaseIdentifier.- def visitDatabaseIdentifier(self, ctx:HogQLParser.DatabaseIdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#floatingLiteral.- def visitFloatingLiteral(self, ctx:HogQLParser.FloatingLiteralContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#numberLiteral.- def visitNumberLiteral(self, ctx:HogQLParser.NumberLiteralContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#literal.- def visitLiteral(self, ctx:HogQLParser.LiteralContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#interval.- def visitInterval(self, ctx:HogQLParser.IntervalContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#keyword.- def visitKeyword(self, ctx:HogQLParser.KeywordContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#keywordForAlias.- def visitKeywordForAlias(self, ctx:HogQLParser.KeywordForAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#keywordForImplicitAlias.- def visitKeywordForImplicitAlias(self, ctx:HogQLParser.KeywordForImplicitAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#alias.- def visitAlias(self, ctx:HogQLParser.AliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#implicitAlias.- def visitImplicitAlias(self, ctx:HogQLParser.ImplicitAliasContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#identifier.- def visitIdentifier(self, ctx:HogQLParser.IdentifierContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#enumValue.- def visitEnumValue(self, ctx:HogQLParser.EnumValueContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#placeholder.- def visitPlaceholder(self, ctx:HogQLParser.PlaceholderContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#string.- def visitString(self, ctx:HogQLParser.StringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#templateString.- def visitTemplateString(self, ctx:HogQLParser.TemplateStringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#stringContents.- def visitStringContents(self, ctx:HogQLParser.StringContentsContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#fullTemplateString.- def visitFullTemplateString(self, ctx:HogQLParser.FullTemplateStringContext):- return self.visitChildren(ctx)--- # Visit a parse tree produced by HogQLParser#stringContentsFull.- def visitStringContentsFull(self, ctx:HogQLParser.StringContentsFullContext):- return self.visitChildren(ctx)----del HogQLParser\ No newline at end of filediff --git a/posthog/hogql/grammar/README.md b/posthog/hogql/grammar/README.mdindex 45f75d92444e..ca76dd6b31be 100644--- a/posthog/hogql/grammar/README.md+++ b/posthog/hogql/grammar/README.md@@ -1,6 +1,6 @@## How to generate source code files from grammar-Grammar is located inside `HogQLLexer.g4` and `HogQLParser.g4` files.+The grammar lives in `HogQLParser.g4` plus a split lexer: `HogQLLexer.common.g4` (shared rules) is concatenated with the target-specific `HogQLLexer.cpp.g4` at build time to form the lexer fed to ANTLR. The C++ parser is the only ANTLR target — the Rust parser is hand-written and does not consume these files (it mirrors them by hand).To generate source code you need to install locally the `antlr` binary. Run this on macOS:@@ -27,19 +27,13 @@ export CLASSPATH=".:$PWD/antlr.jar:$CLASSPATH"export PATH="$PWD:$PATH"```-Then either run+Then run```bashpnpm run grammar:build```-Or mess around with:--```bash-cd posthog/hogql/grammar-antlr -Dlanguage=Python3 HogQLLexer.g4-antlr -visitor -Dlanguage=Python3 HogQLParser.g4-```+This regenerates the C++ parser into `common/hogql_parser/`. See the `grammar:build:cpp` script in the repo `package.json` for the exact ANTLR invocation it wraps.Original ClickHouse ANTLR grammar from: https://github.com/ClickHouse/ClickHouse/blob/master/utils/antlr/ClickHouseParser.g4diff --git a/posthog/hogql/parse_string.py b/posthog/hogql/parse_string.pydeleted file mode 100644index 50dde60ad87b..000000000000--- a/posthog/hogql/parse_string.py+++ /dev/null@@ -1,76 +0,0 @@-from antlr4 import ParserRuleContext--from posthog.hogql.errors import SyntaxError--# Escape map derived from clickhouse_driver's escape_chars_map:-# https://github.com/mymarilyn/clickhouse-driver/blob/master/clickhouse_driver/util/escape.py#L9-_BACKSLASH_ESCAPE_MAP: dict[str, str] = {- "b": "\b",- "f": "\f",- "r": "\r",- "n": "\n",- "t": "\t",- "0": "", # NUL characters are ignored- "a": "\a",- "v": "\v",- "\\": "\\",-}---def replace_common_escape_characters(text: str) -> str:- # Single-pass left-to-right scan so that an escaped backslash (\\)- # is consumed before the next character is inspected.- parts: list[str] = []- i = 0- length = len(text)- while i < length:- if text[i] == "\\" and i + 1 < length:- next_char = text[i + 1]- replacement = _BACKSLASH_ESCAPE_MAP.get(next_char)- if replacement is not None:- parts.append(replacement)- i += 2- continue- parts.append(text[i])- i += 1- return "".join(parts)---def parse_string_literal_text(text: str) -> str:- """Converts a string received from antlr via ctx.getText() into a Python string"""- if text.startswith("'") and text.endswith("'"):- text = text[1:-1]- text = text.replace("''", "'")- text = text.replace("\\'", "'")- elif text.startswith('"') and text.endswith('"'):- text = text[1:-1]- text = text.replace('""', '"')- text = text.replace('\\"', '"')- elif text.startswith("`") and text.endswith("`"):- text = text[1:-1]- text = text.replace("``", "`")- text = text.replace("\\`", "`")- elif text.startswith("{") and text.endswith("}"):- text = text[1:-1]- text = text.replace("{{", "{")- text = text.replace("\\{", "{")- else:- raise SyntaxError(f"Invalid string literal, must start and end with the same quote type: {text}")-- return replace_common_escape_characters(text)---def parse_string_literal_ctx(ctx: ParserRuleContext) -> str:- """Converts a STRING_LITERAL received from antlr via ctx.getText() into a Python string"""- text = ctx.getText()- return parse_string_literal_text(text)---def parse_string_text_ctx(ctx: ParserRuleContext, escape_quotes=True) -> str:- """Converts a STRING_TEXT received from antlr via ctx.getText() into a Python string"""- text = ctx.getText()- if escape_quotes:- text = text.replace("''", "'")- text = text.replace("\\'", "'")- text = text.replace("\\{", "{")- return replace_common_escape_characters(text)diff --git a/posthog/hogql/parser.py b/posthog/hogql/parser.pyindex 4889ee311f22..8204dee8a475 100644--- a/posthog/hogql/parser.py+++ b/posthog/hogql/parser.py@@ -6,12 +6,10 @@ import importlib.metadatafrom collections.abc import Callablefrom enum import StrEnumfrom types import FrameType-from typing import Any, Literal, cast+from typing import Any, castfrom django.conf import settings-from antlr4 import CommonTokenStream, InputStream, ParserRuleContext, ParseTreeVisitor-from antlr4.error.ErrorListener import ErrorListenerfrom cachetools import LRUCachefrom hogql_parser import (parse_expr_json as _parse_expr_json_cpp,@@ -25,14 +23,9 @@ from prometheus_client import Counter, Gauge, Histogramfrom structlog import getLoggerfrom posthog.hogql import ast-from posthog.hogql.ast import SelectSetNode-from posthog.hogql.base import AST-from posthog.hogql.constants import RESERVED_KEYWORDS, HogQLParserBackend-from posthog.hogql.errors import BaseHogQLError, ExposedHogQLError, NotImplementedError, SyntaxError-from posthog.hogql.grammar.HogQLLexer import HogQLLexer-from posthog.hogql.grammar.HogQLParser import HogQLParser+from posthog.hogql.constants import HogQLParserBackend+from posthog.hogql.errors import BaseHogQLError, SyntaxErrorfrom posthog.hogql.json_ast import deserialize_ast-from posthog.hogql.parse_string import parse_string_literal_ctx, parse_string_literal_text, parse_string_text_ctxfrom posthog.hogql.placeholders import replace_placeholdersfrom posthog.hogql.timings import HogQLTimingsfrom posthog.hogql.visitor import clear_locations@@ -109,57 +102,7 @@ class ParseRule(StrEnum):tracer = trace.get_tracer(__name__)-def _unquote_identifier(text: str) -> str:- if len(text) >= 2 and (- (text.startswith("`") and text.endswith("`")) or (text.startswith('"') and text.endswith('"'))- ):- text = parse_string_literal_text(text)- return text---def _is_quoted_identifier(text: str) -> bool:- return len(text) >= 2 and (- (text.startswith("`") and text.endswith("`")) or (text.startswith('"') and text.endswith('"'))- )---def _assert_valid_alias(alias: str, raw_text: str) -> None:- if not _is_quoted_identifier(raw_text) and alias.lower() in RESERVED_KEYWORDS:- raise SyntaxError(f'"{alias}" cannot be an alias or identifier, as it\'s a reserved keyword')---def safe_lambda(f):- def wrapped(*args, **kwargs):- try:- return f(*args, **kwargs)- except NotImplementedError as e:- # Mirror cpp's JSON wrapper: `NotImplementedError` is `InternalHogQLError`- # and shouldn't leak past the parser boundary. `posthog/hogql/json_ast.py`- # rewrites cpp's JSON-encoded NotImplementedError into `ExposedHogQLError`;- # do the same for the python visitor so callers see the same class.- raise ExposedHogQLError(str(e), start=e.start, end=e.end) from e- except Exception as e:- if str(e) == "Empty Stack": # Antlr throws `Exception("Empty Stack")` ¯\_(ツ)_/¯- raise SyntaxError("Unmatched curly bracket") from e- raise-- return wrapped--RULE_TO_PARSE_FUNCTION: dict[HogQLParserBackend, dict[ParseRule, Callable]] = {- "python": {- ParseRule.EXPR: safe_lambda(- lambda string, start: HogQLParseTreeConverter(start=start).visit(get_parser(string).expr())- ),- ParseRule.ORDER_EXPR: safe_lambda(- lambda string: HogQLParseTreeConverter().visit(get_parser(string).orderExpr())- ),- ParseRule.SELECT: safe_lambda(lambda string: HogQLParseTreeConverter().visit(get_parser(string).select())),- ParseRule.FULL_TEMPLATE_STRING: safe_lambda(- lambda string: HogQLParseTreeConverter().visit(get_parser(string).fullTemplateString())- ),- ParseRule.PROGRAM: safe_lambda(lambda string: HogQLParseTreeConverter().visit(get_parser(string).program())),- },"cpp-json": {ParseRule.EXPR: lambda string, start: deserialize_ast(_parse_expr_json_cpp(string, is_internal=start is None)),ParseRule.ORDER_EXPR: lambda string: deserialize_ast(_parse_order_expr_json_cpp(string)),@@ -197,13 +140,11 @@ def _parser_version(distribution: str) -> str:return "unknown"-# Parser version per backend, resolved once at import. cpp/rust ship as wheels (`hogql-parser`, `hogql-parser-rs`);-# the python ANTLR backend is vendored and has no standalone version.+# Parser version per backend, resolved once at import. cpp/rust ship as wheels (`hogql-parser`, `hogql-parser-rs`)._BACKEND_VERSION: dict[HogQLParserBackend, str] = {"cpp-json": _parser_version("hogql-parser"),"rust-json": _parser_version("hogql-parser-rs"),"rust-py": _parser_version("hogql-parser-rs"),- "python": "n/a",}# Parse durations span ~10μs (rust-py) to a few ms (cpp typical) to seconds (pathological queries). Default Prometheus@@ -690,1698 +631,3 @@ def parse_program(if shadow is not None:_run_shadow_comparison(ParseRule.PROGRAM, source, primary, shadow, node, None)return cast("ast.Program", node)---def get_parser(query: str) -> HogQLParser:- input_stream = InputStream(data=query)- lexer = HogQLLexer(input_stream)- stream = CommonTokenStream(lexer)- parser = HogQLParser(stream)- parser.removeErrorListeners()- parser.addErrorListener(HogQLErrorListener(query))- return parser---def _first_unexpected_character(query: str) -> tuple[str, int] | None:- """The first character outside the HogQL token set, with its offset.- Such a character lexes as an `UNEXPECTED_CHARACTER` token and makes the- program unparseable, so naming it pinpoints the real failure."""- try:- lexer = HogQLLexer(InputStream(data=query))- lexer.removeErrorListeners()- for token in lexer.getAllTokens():- if token.type == HogQLLexer.UNEXPECTED_CHARACTER:- return token.text, token.start- except Exception:- pass- return None---def _describe_unexpected_character(char: str) -> str:- """Name an unexpected character by Unicode code point — essential when- it is invisible (a zero-width space, a control character, …). The- glyph is shown too for printable ASCII."""- code_point = f"U+{ord(char):04X}"- if 0x21 <= ord(char) <= 0x7E:- return f"Unexpected character {char!r} ({code_point})"- return f"Unexpected character {code_point}"---class HogQLErrorListener(ErrorListener):- query: str-- def __init__(self, query: str = ""):- super().__init__()- self.query = query-- def get_position(self, line, column):- lines = self.query.split("\n")- try:- position = sum(len(lines[i]) + 1 for i in range(line - 1)) + column- except IndexError:- return -1- if position > len(self.query):- return -1- return position-- def syntaxError(self, recognizer, offendingType, line, column, msg, e):- start = max(self.get_position(line, column), 0)- # A character outside the HogQL token set dooms the parse. The- # default message quotes the raw character, which is unactionable- # when it is invisible — report the code point and point at the- # character itself.- unexpected = _first_unexpected_character(self.query)- if unexpected is not None:- char, offset = unexpected- raise SyntaxError(_describe_unexpected_character(char), start=offset, end=len(self.query))- raise SyntaxError(msg, start=start, end=len(self.query))---class HogQLParseTreeConverter(ParseTreeVisitor):- def __init__(self, start: int | None = 0):- super().__init__()- self.start = start-- def visit(self, ctx: ParserRuleContext):- start = ctx.start.start if ctx.start else None- end = ctx.stop.stop + 1 if ctx.stop else None- try:- node = super().visit(ctx)- if isinstance(node, AST) and self.start is not None:- node.start = start- node.end = end- return node- except BaseHogQLError as e:- if start is not None and end is not None and e.start is None or e.end is None:- e.start = start- e.end = end- raise-- def visitProgram(self, ctx: HogQLParser.ProgramContext):- declarations: list[ast.Declaration] = []- for declaration in ctx.declaration():- if not declaration.statement() or not declaration.statement().emptyStmt():- statement = self.visit(declaration)- declarations.append(cast(ast.Declaration, statement))- return ast.Program(declarations=declarations)-- def visitDeclaration(self, ctx: HogQLParser.DeclarationContext):- return self.visitChildren(ctx)-- def visitExpression(self, ctx: HogQLParser.ExpressionContext):- return self.visitChildren(ctx)-- def visitVarDecl(self, ctx: HogQLParser.VarDeclContext):- return ast.VariableDeclaration(- name=self.visit(ctx.identifier()),- expr=self.visit(ctx.expression()) if ctx.expression() else None,- )-- def visitVarAssignment(self, ctx: HogQLParser.VarAssignmentContext):- return ast.VariableAssignment(- left=self.visit(ctx.expression(0)),- right=self.visit(ctx.expression(1)),- )-- def visitStatement(self, ctx: HogQLParser.StatementContext):- return self.visitChildren(ctx)-- def visitExprStmt(self, ctx: HogQLParser.ExprStmtContext):- if ctx.COLONEQUALS():- return ast.VariableAssignment(- left=self.visit(ctx.expression(0)),- right=self.visit(ctx.expression(1)),- )- column_expr = ctx.expression(0).columnExpr()- # `columnExpr` matches `name := value` as a NamedArgument; a directly named-arg-shaped- # statement is a variable assignment. Checked on the parse tree, not the visited node,- # so parens are not unwrapped: `(x := 1)` stays an expression statement, matching C++.- if isinstance(column_expr, HogQLParser.ColumnExprNamedArgContext):- named_arg = self.visit(column_expr)- left = ast.Field(chain=[named_arg.name])- identifier = column_expr.identifier()- if self.start is not None and identifier.start and identifier.stop:- left.start = identifier.start.start- left.end = identifier.stop.stop + 1- return ast.VariableAssignment(left=left, right=named_arg.value)- return ast.ExprStatement(expr=self.visit(ctx.expression(0)))-- def visitReturnStmt(self, ctx: HogQLParser.ReturnStmtContext):- return ast.ReturnStatement(expr=self.visit(ctx.expression()) if ctx.expression() else None)-- def visitThrowStmt(self, ctx: HogQLParser.ThrowStmtContext):- return ast.ThrowStatement(expr=self.visit(ctx.expression()))-- def visitCatchBlock(self, ctx: HogQLParser.CatchBlockContext):- return (- self.visit(ctx.catchVar) if ctx.catchVar else None,- self.visit(ctx.catchType) if ctx.catchType else None,- self.visit(ctx.catchStmt),- )-- def visitTryCatchStmt(self, ctx: HogQLParser.TryCatchStmtContext):- return ast.TryCatchStatement(- try_stmt=self.visit(ctx.tryStmt),- catches=[self.visit(catch) for catch in ctx.catchBlock()],- finally_stmt=self.visit(ctx.finallyStmt) if ctx.finallyStmt else None,- )-- def visitIfStmt(self, ctx: HogQLParser.IfStmtContext):- return ast.IfStatement(- expr=self.visit(ctx.expression()),- then=self.visit(ctx.statement(0)),- else_=self.visit(ctx.statement(1)) if ctx.statement(1) else None,- )-- def visitWhileStmt(self, ctx: HogQLParser.WhileStmtContext):- statement = ctx.statement()- if statement is None:- raise SyntaxError("WHILE requires a statement body")- return ast.WhileStatement(expr=self.visit(ctx.expression()), body=self.visit(statement))-- def visitForInStmt(self, ctx: HogQLParser.ForInStmtContext):- first_identifier = self.visit(ctx.identifier(0))- second_identifier = self.visit(ctx.identifier(1)) if ctx.identifier(1) else None- return ast.ForInStatement(- valueVar=second_identifier if second_identifier is not None else first_identifier,- keyVar=first_identifier if second_identifier is not None else None,- expr=self.visit(ctx.expression()),- body=self.visit(ctx.statement()),- )-- def visitForStmt(self, ctx: HogQLParser.ForStmtContext):- initializer = ctx.initializerVarDeclr or ctx.initializerVarAssignment or ctx.initializerExpression- increment = ctx.incrementVarDeclr or ctx.incrementVarAssignment or ctx.incrementExpression-- return ast.ForStatement(- initializer=self.visit(initializer) if initializer else None,- condition=self.visit(ctx.condition) if ctx.condition else None,- increment=self.visit(increment) if increment else None,- body=self.visit(ctx.statement()),- )-- def visitFuncStmt(self, ctx: HogQLParser.FuncStmtContext):- return ast.Function(- name=self.visit(ctx.identifier()),- params=self.visit(ctx.identifierList()) if ctx.identifierList() else [],- body=self.visit(ctx.block()),- )-- def visitKvPairList(self, ctx: HogQLParser.KvPairListContext):- return [self.visit(kv) for kv in ctx.kvPair()]-- def visitKvPair(self, ctx: HogQLParser.KvPairContext):- k, v = ctx.expression()- return (self.visit(k), self.visit(v))-- def visitIdentifierList(self, ctx: HogQLParser.IdentifierListContext):- return [".".join(self.visit(nested)) for nested in ctx.nestedIdentifier()]-- def visitEmptyStmt(self, ctx: HogQLParser.EmptyStmtContext):- return ast.ExprStatement(expr=None)-- def visitBlock(self, ctx: HogQLParser.BlockContext):- declarations: list[ast.Declaration] = []- for declaration in ctx.declaration():- if not declaration.statement() or not declaration.statement().emptyStmt():- statement = self.visit(declaration)- declarations.append(cast(ast.Declaration, statement))- return ast.Block(declarations=declarations)-- ##### HogQL rules-- def visitSelect(self, ctx: HogQLParser.SelectContext):- return self.visit(ctx.selectSetStmt() or ctx.selectStmt() or ctx.hogqlxTagElement())-- def visitSelectSetStmt(self, ctx: HogQLParser.SelectSetStmtContext):- select_queries: list[SelectSetNode] = []-- initial_query = self.visit(ctx.selectStmtWithParens())-- for subsequent in ctx.subsequentSelectSetClause():- if subsequent.UNION():- if subsequent.ALL():- union_type = "UNION ALL"- elif subsequent.DISTINCT():- union_type = "UNION DISTINCT"- else:- union_type = "UNION DISTINCT"- if subsequent.BY() and subsequent.NAME():- union_type += " BY NAME"- elif subsequent.INTERSECT() and subsequent.ALL():- union_type = "INTERSECT ALL"- elif subsequent.INTERSECT() and subsequent.DISTINCT():- union_type = "INTERSECT DISTINCT"- elif subsequent.INTERSECT():- union_type = "INTERSECT"- elif subsequent.EXCEPT() and subsequent.ALL():- union_type = "EXCEPT ALL"- elif subsequent.EXCEPT():- union_type = "EXCEPT"- else:- raise SyntaxError(- "Set operator must be one of UNION ALL, UNION DISTINCT, UNION [ALL|DISTINCT] BY NAME, INTERSECT, INTERSECT ALL, INTERSECT DISTINCT, EXCEPT, and EXCEPT ALL"- )- if subsequent.BY() and subsequent.NAME() and not union_type.startswith("UNION"):- union_type += " BY NAME"- select_query = self.visit(subsequent.selectStmtWithParens())- select_queries.append(- SelectSetNode(select_query=select_query, set_operator=cast(ast.SetOperator, union_type))- )-- if len(select_queries) == 0:- if ctx.limitAndOffsetClauseOptional():- limit_clause = ctx.limitAndOffsetClauseOptional()- exprs = limit_clause.columnExpr()- if limit_clause.OFFSET():- if limit_clause.LIMIT():- limit = self.visit(exprs[0])- offset = self.visit(exprs[1])- else:- # Prefer pairing an outer OFFSET with an inner LIMIT if one exists.- if isinstance(initial_query, ast.SelectQuery) and initial_query.limit is not None:- initial_query.offset = self.visit(exprs[0])- return initial_query- limit = None- offset = self.visit(exprs[0])- elif limit_clause.LIMIT() and len(exprs) >= 2:- limit = self.visit(exprs[0])- offset = self.visit(exprs[1])- else:- limit = self.visit(exprs[0]) if exprs else None- offset = None- # Apply set-level limit/offset to the initial query —- # SelectSetQuery too (not just SelectQuery), and don't- # let a bare `LIMIT n` clobber an existing offset. Both- # match C++.- if isinstance(initial_query, (ast.SelectQuery, ast.SelectSetQuery)):- initial_query.limit = limit- if offset is not None:- initial_query.offset = offset- if limit_clause.PERCENT():- initial_query.limit_percent = True- if limit_clause.TIES():- initial_query.limit_with_ties = True- return initial_query- return initial_query-- result = ast.SelectSetQuery(initial_select_query=initial_query, subsequent_select_queries=select_queries)- if ctx.limitAndOffsetClauseOptional():- limit_clause = ctx.limitAndOffsetClauseOptional()- exprs = limit_clause.columnExpr()- if limit_clause.OFFSET():- if limit_clause.LIMIT():- result.limit = self.visit(exprs[0])- result.offset = self.visit(exprs[1])- else:- result.offset = self.visit(exprs[0])- elif limit_clause.LIMIT() and len(exprs) >= 2:- result.limit = self.visit(exprs[0])- result.offset = self.visit(exprs[1])- else:- result.limit = self.visit(exprs[0]) if exprs else None- if limit_clause.PERCENT():- result.limit_percent = True- if limit_clause.TIES():- result.limit_with_ties = True- return result-- def visitSelectStmtWithParens(self, ctx: HogQLParser.SelectStmtWithParensContext):- if ctx.withClause():- inner = self.visit(ctx.selectSetStmt())- ctes = self.visit(ctx.withClause())- # Walk into nested SelectSetQuery to find the outermost initial SelectQuery- target: ast.SelectQuery | ast.SelectSetQuery = inner- while isinstance(target, ast.SelectSetQuery):- target = target.initial_select_query- if isinstance(target, ast.SelectQuery):- if target.ctes:- target.ctes.update(ctes)- else:- target.ctes = ctes- return inner- return self.visit(ctx.selectStmt() or ctx.selectSetStmt() or ctx.placeholder())-- def visitSelectStmt(self, ctx: HogQLParser.SelectStmtContext):- order_by_result = self.visit(ctx.orderByClause()) if ctx.orderByClause() else None- order_by = order_by_result[0] if order_by_result else None- interpolate = order_by_result[1] if order_by_result else None- select_query = ast.SelectQuery(- ctes=self.visit(ctx.withClause()) if ctx.withClause() else None,- select=self.visit(ctx.selectColumnExprListBeforeFrom()) if ctx.selectColumnExprListBeforeFrom() else [],- distinct=True if ctx.DISTINCT() else None,- select_from=self.visit(ctx.fromClause()) if ctx.fromClause() else None,- where=self.visit(ctx.whereClause()) if ctx.whereClause() else None,- prewhere=self.visit(ctx.prewhereClause()) if ctx.prewhereClause() else None,- having=self.visit(ctx.havingClause()) if ctx.havingClause() else None,- qualify=self.visit(ctx.qualifyClause()) if ctx.qualifyClause() else None,- group_by=self.visit(ctx.groupByClause()) if ctx.groupByClause() else None,- order_by=order_by,- interpolate=interpolate,- limit_by=self.visit(ctx.limitByClause()) if ctx.limitByClause() else None,- )-- if window_clause := ctx.windowClause():- select_query.window_exprs = {}- for index, window_expr in enumerate(window_clause.windowExpr()):- name = self.visit(window_clause.identifier()[index])- select_query.window_exprs[name] = self.visit(window_expr)-- if limit_and_offset_clause := ctx.limitAndOffsetClause():- select_query.limit = self.visit(limit_and_offset_clause.columnExpr(0))- if offset := limit_and_offset_clause.columnExpr(1):- select_query.offset = self.visit(offset)- if limit_and_offset_clause.WITH() and limit_and_offset_clause.TIES():- select_query.limit_with_ties = True- if limit_and_offset_clause.PERCENT():- select_query.limit_percent = True- elif offset_only_clause := ctx.offsetOnlyClause():- select_query.offset = self.visit(offset_only_clause.columnExpr())-- if ctx.arrayJoinClause():- array_join_clause = ctx.arrayJoinClause()- if select_query.select_from is None:- raise SyntaxError("Using ARRAY JOIN without a FROM clause is not permitted")- if array_join_clause.LEFT():- select_query.array_join_op = "LEFT ARRAY JOIN"- elif array_join_clause.INNER():- select_query.array_join_op = "INNER ARRAY JOIN"- else:- select_query.array_join_op = "ARRAY JOIN"- select_query.array_join_list = self.visit(array_join_clause.columnExprList())- if select_query.array_join_list:- for expr in select_query.array_join_list:- if not isinstance(expr, ast.Alias):- raise SyntaxError(- "ARRAY JOIN arrays must have an alias",- start=expr.start,- end=expr.end,- )-- if group_by_clause := ctx.groupByClause():- if group_by_clause.ALL():- select_query.group_by_mode = "all"- elif group_by_clause.GROUPING():- select_query.group_by_mode = "grouping_sets"- elif group_by_clause.CUBE():- select_query.group_by_mode = "cube"- elif group_by_clause.ROLLUP():- select_query.group_by_mode = "rollup"-- if ctx.topClause():- raise NotImplementedError(f"Unsupported: SelectStmt.topClause()")- if ctx.settingsClause():- raise NotImplementedError(f"Unsupported: SelectStmt.settingsClause()")- # `selectStmt`-level `(USING? sampleClause)?` is DuckDB's `USING SAMPLE`, which HogQL has no AST home for (only table-level `JoinExprTable` SAMPLE lands on `JoinExpr.sample`); reject rather than silently drop.- if ctx.sampleClause():- raise NotImplementedError(f"Unsupported: SelectStmt.sampleClause()")-- return select_query-- def visitWithClause(self, ctx: HogQLParser.WithClauseContext):- ctes: dict[str, ast.CTE] = self.visit(ctx.withExprList())- if ctx.RECURSIVE():- for name in ctes:- ctes[name].recursive = True- return ctes-- def visitTopClause(self, ctx: HogQLParser.TopClauseContext):- raise NotImplementedError(f"Unsupported node: TopClause")-- def visitFromClause(self, ctx: HogQLParser.FromClauseContext):- return self.visit(ctx.joinExpr())-- def visitArrayJoinClause(self, ctx: HogQLParser.ArrayJoinClauseContext):- raise NotImplementedError(f"Unsupported node: ArrayJoinClause")-- def visitWindowClause(self, ctx: HogQLParser.WindowClauseContext):- raise NotImplementedError(f"Unsupported node: WindowClause")-- def visitPrewhereClause(self, ctx: HogQLParser.PrewhereClauseContext):- return self.visit(ctx.columnExpr())-- def visitWhereClause(self, ctx: HogQLParser.WhereClauseContext):- return self.visit(ctx.columnExpr())-- def visitGroupByClause(self, ctx: HogQLParser.GroupByClauseContext):- if ctx.ALL():- return None- if ctx.GROUPING():- return self.visit(ctx.groupingSetList())- return self.visit(ctx.columnExprList())-- def visitGroupingSetList(self, ctx: HogQLParser.GroupingSetListContext):- return [self.visit(s) for s in ctx.groupingSet()]-- def visitGroupingSet(self, ctx: HogQLParser.GroupingSetContext):- exprs = self.visit(ctx.columnExprList()) if ctx.columnExprList() else []- return ast.GroupingSet(exprs=exprs)-- def visitHavingClause(self, ctx: HogQLParser.HavingClauseContext):- return self.visit(ctx.columnExpr())-- def visitQualifyClause(self, ctx: HogQLParser.QualifyClauseContext):- return self.visit(ctx.columnExpr())-- def visitOrderByClause(self, ctx: HogQLParser.OrderByClauseContext):- order_by = self.visit(ctx.orderExprList())- interpolate = self.visit(ctx.interpolateClause()) if ctx.interpolateClause() else None- return order_by, interpolate-- def visitInterpolateClause(self, ctx: HogQLParser.InterpolateClauseContext):- exprs = ctx.interpolateExpr()- if not exprs:- return []- return [self.visit(expr) for expr in exprs]-- def visitLimitByClause(self, ctx: HogQLParser.LimitByClauseContext):- limit_expr = self.visit(ctx.limitExpr())-- # If limit_expr is a tuple (n, offset), split it- if isinstance(limit_expr, tuple) and len(limit_expr) == 2:- n, offset_value = limit_expr- return ast.LimitByExpr(n=n, offset_value=offset_value, exprs=self.visit(ctx.columnExprList()))-- # If no offset, just use limit_expr as n- return ast.LimitByExpr(n=limit_expr, offset_value=None, exprs=self.visit(ctx.columnExprList()))-- def visitLimitExpr(self, ctx: HogQLParser.LimitExprContext):- # First expression is always the limit value (n)- n = self.visit(ctx.columnExpr(0))-- # Check if we have an offset (second expression)- if ctx.columnExpr(1):- offset_value = self.visit(ctx.columnExpr(1))- # For "LIMIT a, b" syntax: a is offset, b is limit- if ctx.COMMA():- return (offset_value, n) # Return tuple as (offset, limit)- # For "LIMIT a OFFSET b" syntax: a is limit, b is offset- return (n, offset_value)-- return n-- def visitProjectionOrderByClause(self, ctx: HogQLParser.ProjectionOrderByClauseContext):- raise NotImplementedError(f"Unsupported node: ProjectionOrderByClause")-- def visitLimitAndOffsetClauseClause(self, ctx: HogQLParser.LimitAndOffsetClauseContext):- raise Exception(f"Parsed as part of SelectStmt, can't parse directly")-- def visitSettingsClause(self, ctx: HogQLParser.SettingsClauseContext):- raise NotImplementedError(f"Unsupported node: SettingsClause")-- def visitJoinExprOp(self, ctx: HogQLParser.JoinExprOpContext):- join1: ast.JoinExpr = self.visit(ctx.joinExpr(0))- join2: ast.JoinExpr = self.visit(ctx.joinExpr(1))-- if ctx.joinOp():- join2.join_type = f"{self.visit(ctx.joinOp())} JOIN"- else:- join2.join_type = "JOIN"- if ctx.joinConstraintClause():- join2.constraint = self.visit(ctx.joinConstraintClause())-- last_join = join1- while last_join.next_join is not None:- last_join = last_join.next_join- last_join.next_join = join2-- return join1-- def visitJoinExprTable(self, ctx: HogQLParser.JoinExprTableContext):- sample = None- if ctx.sampleClause():- sample = self.visit(ctx.sampleClause())- table = self.visit(ctx.tableExpr())- table_final = True if ctx.FINAL() else None- if isinstance(table, ast.JoinExpr):- # visitTableExprAlias returns a JoinExpr to pass the alias- # visitTableExprFunction returns a JoinExpr to pass the args- table.table_final = table_final- table.sample = sample- return table- return ast.JoinExpr(table=table, table_final=table_final, sample=sample)-- def visitJoinExprParens(self, ctx: HogQLParser.JoinExprParensContext):- return self.visit(ctx.joinExpr())-- def visitJoinExprPositional(self, ctx: HogQLParser.JoinExprPositionalContext):- join1: ast.JoinExpr = self.visit(ctx.joinExpr(0))- join2: ast.JoinExpr = self.visit(ctx.joinExpr(1))- join2.join_type = "POSITIONAL JOIN"- if ctx.joinConstraintClause():- join2.constraint = self.visit(ctx.joinConstraintClause())- last_join = join1- while last_join.next_join is not None:- last_join = last_join.next_join- last_join.next_join = join2- return join1-- def visitJoinExprCrossOp(self, ctx: HogQLParser.JoinExprCrossOpContext):- join1: ast.JoinExpr = self.visit(ctx.joinExpr(0))- join2: ast.JoinExpr = self.visit(ctx.joinExpr(1))- join2.join_type = "CROSS JOIN"- last_join = join1- while last_join.next_join is not None:- last_join = last_join.next_join- last_join.next_join = join2- return join1-- def visitJoinExprPivot(self, ctx: HogQLParser.JoinExprPivotContext):- join = self.visit(ctx.joinExpr())- expr_lists = ctx.columnExprList()- aggregates = self.visit(expr_lists[0])- pivot_columns = [self.visit(col) for col in ctx.pivotColumnList().pivotColumn()]- group_by = self.visit(expr_lists[1]) if len(expr_lists) > 1 else None- pivot = ast.PivotExpr(table=join, aggregates=aggregates, columns=pivot_columns, group_by=group_by)- return ast.JoinExpr(table=pivot)-- def visitJoinOpInner(self, ctx: HogQLParser.JoinOpInnerContext):- tokens = []- if ctx.ALL():- tokens.append("ALL")- if ctx.ANY():- tokens.append("ANY")- if ctx.ASOF():- tokens.append("ASOF")- if ctx.ANTI():- tokens.append("ANTI")- if ctx.SEMI():- tokens.append("SEMI")- if ctx.INNER() or (not ctx.ANTI() and not ctx.SEMI()):- tokens.append("INNER")- return " ".join(tokens)-- def visitJoinOpLeftRight(self, ctx: HogQLParser.JoinOpLeftRightContext):- tokens = []- if ctx.LEFT():- tokens.append("LEFT")- if ctx.RIGHT():- tokens.append("RIGHT")- if ctx.OUTER():- tokens.append("OUTER")- if ctx.SEMI():- tokens.append("SEMI")- if ctx.ALL():- tokens.append("ALL")- if ctx.ANTI():- tokens.append("ANTI")- if ctx.ANY():- tokens.append("ANY")- if ctx.ASOF():- tokens.append("ASOF")- return " ".join(tokens)-- def visitJoinOpFull(self, ctx: HogQLParser.JoinOpFullContext):- tokens = []- if ctx.FULL():- tokens.append("FULL")- if ctx.OUTER():- tokens.append("OUTER")- if ctx.ALL():- tokens.append("ALL")- if ctx.ANY():- tokens.append("ANY")- if ctx.ASOF():- tokens.append("ASOF")- return " ".join(tokens)-- def visitJoinOpCross(self, ctx: HogQLParser.JoinOpCrossContext):- raise NotImplementedError(f"Unsupported node: JoinOpCross")-- def visitJoinConstraintClause(self, ctx: HogQLParser.JoinConstraintClauseContext):- column_expr_list = self.visit(ctx.columnExprList())- if ctx.USING():- if len(column_expr_list) == 1:- expr = column_expr_list[0]- else:- expr = ast.Tuple(exprs=column_expr_list)- return ast.JoinConstraint(expr=expr, constraint_type="USING")- if len(column_expr_list) != 1:- raise NotImplementedError(f"Unsupported: JOIN ... ON with multiple expressions")- return ast.JoinConstraint(expr=column_expr_list[0], constraint_type="ON")-- def visitSampleClause(self, ctx: HogQLParser.SampleClauseContext):- ratio_expressions = ctx.ratioExpr()-- sample_ratio_expr = self.visit(ratio_expressions[0])- offset_ratio_expr = self.visit(ratio_expressions[1]) if len(ratio_expressions) > 1 and ctx.OFFSET() else None-- return ast.SampleExpr(sample_value=sample_ratio_expr, offset_value=offset_ratio_expr)-- def visitOrderExprList(self, ctx: HogQLParser.OrderExprListContext):- return [self.visit(expr) for expr in ctx.orderExpr()]-- def visitOrderExpr(self, ctx: HogQLParser.OrderExprContext):- order = "DESC" if ctx.DESC() or ctx.DESCENDING() else "ASC"- with_fill = self.visit(ctx.withFillClause()) if ctx.withFillClause() else None- return ast.OrderExpr(- expr=self.visit(ctx.columnExpr()),- order=cast(Literal["ASC", "DESC"], order),- with_fill=with_fill,- )-- def visitWithFillClause(self, ctx: HogQLParser.WithFillClauseContext):- column_exprs = ctx.columnExpr()- idx = 0- from_value = None- to_value = None- step_value = None- if ctx.FROM():- from_value = self.visit(column_exprs[idx])- idx += 1- if ctx.TO():- to_value = self.visit(column_exprs[idx])- idx += 1- if ctx.STEP():- step_value = self.visit(column_exprs[idx])- return ast.WithFillExpr(from_value=from_value, to_value=to_value, step_value=step_value)-- def visitInterpolateExpr(self, ctx: HogQLParser.InterpolateExprContext):- column_exprs = ctx.columnExpr()- value = self.visit(column_exprs[1]) if len(column_exprs) > 1 else None- return ast.InterpolateExpr(expr=self.visit(column_exprs[0]), value=value)-- def visitRatioExpr(self, ctx: HogQLParser.RatioExprContext):- if ctx.placeholder():- return self.visit(ctx.placeholder())-- number_literals = ctx.numberLiteral()-- left = number_literals[0]- right = number_literals[1] if ctx.SLASH() and len(number_literals) > 1 else None-- return ast.RatioExpr(- left=self.visitNumberLiteral(left),- right=self.visitNumberLiteral(right) if right else None,- )-- def visitSettingExprList(self, ctx: HogQLParser.SettingExprListContext):- raise NotImplementedError(f"Unsupported node: SettingExprList")-- def visitSettingExpr(self, ctx: HogQLParser.SettingExprContext):- raise NotImplementedError(f"Unsupported node: SettingExpr")-- def visitWindowExpr(self, ctx: HogQLParser.WindowExprContext):- frame = ctx.winFrameClause()- visited_frame = self.visit(frame) if frame else None- expr = ast.WindowExpr(- partition_by=self.visit(ctx.winPartitionByClause()) if ctx.winPartitionByClause() else None,- order_by=self.visit(ctx.winOrderByClause()) if ctx.winOrderByClause() else None,- frame_method="RANGE" if frame and frame.RANGE() else "ROWS" if frame and frame.ROWS() else None,- frame_start=visited_frame[0] if isinstance(visited_frame, tuple) else visited_frame,- frame_end=visited_frame[1] if isinstance(visited_frame, tuple) else None,- )- return expr-- def visitWinPartitionByClause(self, ctx: HogQLParser.WinPartitionByClauseContext):- return self.visit(ctx.columnExprList())-- def visitWinOrderByClause(self, ctx: HogQLParser.WinOrderByClauseContext):- return self.visit(ctx.orderExprList())-- def visitWithinGroupClause(self, ctx: HogQLParser.WithinGroupClauseContext):- return self.visit(ctx.orderByClause())-- def visitWinFrameClause(self, ctx: HogQLParser.WinFrameClauseContext):- return self.visit(ctx.winFrameExtend())-- def visitFrameStart(self, ctx: HogQLParser.FrameStartContext):- return self.visit(ctx.winFrameBound())-- def visitFrameBetween(self, ctx: HogQLParser.FrameBetweenContext):- return (self.visit(ctx.winFrameBound(0)), self.visit(ctx.winFrameBound(1)))-- def visitWinFrameBound(self, ctx: HogQLParser.WinFrameBoundContext):- # Mirror cpp's `VISIT(WinFrameBound)`: unwrap a Constant int frame_value to a bare number; floats / strings / other Constants stay wrapped.- if ctx.PRECEDING() or ctx.FOLLOWING():- frame_type: Literal["PRECEDING", "FOLLOWING"] = "PRECEDING" if ctx.PRECEDING() else "FOLLOWING"- frame_value = self.visit(ctx.columnExpr()) if ctx.columnExpr() else None- if (- isinstance(frame_value, ast.Constant)- and isinstance(frame_value.value, int)- and not isinstance(frame_value.value, bool)- ):- frame_value = frame_value.value- return ast.WindowFrameExpr(frame_type=frame_type, frame_value=frame_value)- return ast.WindowFrameExpr(frame_type="CURRENT ROW")-- def visitExpr(self, ctx: HogQLParser.ExprContext):- return self.visit(ctx.columnExpr())-- def visitColumnTypeExprArray(self, ctx: HogQLParser.ColumnTypeExprArrayContext):- base_type = self.visit(ctx.columnTypeExpr())- size = ctx.DECIMAL_LITERAL()- if size is not None:- return f"{base_type}[{size.getText()}]"- return f"{base_type}[]"-- def visitColumnTypeExprSimple(self, ctx: HogQLParser.ColumnTypeExprSimpleContext):- return self.visit(ctx.identifier()).lower()-- def visitColumnTypeExprNested(self, ctx: HogQLParser.ColumnTypeExprNestedContext):- type_name = self.visit(ctx.identifier(0))- identifiers = ctx.identifier()- type_exprs = ctx.columnTypeExpr()- fields = ", ".join(- f"{self.visit(identifiers[i + 1])} {self.visit(type_exprs[i])}" for i in range(len(type_exprs))- )- return f"{type_name}({fields})".lower()-- def visitColumnTypeExprEnum(self, ctx: HogQLParser.ColumnTypeExprEnumContext):- raise NotImplementedError(f"Unsupported node: ColumnTypeExprEnum")-- def visitColumnTypeExprComplex(self, ctx: HogQLParser.ColumnTypeExprComplexContext):- name = self.visit(ctx.identifier())- type_exprs = ctx.columnTypeExpr()- inner = ", ".join(self.visit(t) for t in type_exprs)- return f"{name}({inner})".lower()-- def visitColumnTypeExprCompound(self, ctx: HogQLParser.ColumnTypeExprCompoundContext):- return " ".join(self.visit(ident) for ident in ctx.identifier()).lower()-- def visitColumnTypeExprParam(self, ctx: HogQLParser.ColumnTypeExprParamContext):- # cpp's `ColumnTypeExprParam` visitor lowercases the head identifier- # but emits each top-level `columnExpr` via raw `ctx->getText()` —- # case-preserved, quotes preserved, spaceless. The outer cast- # visitor must NOT lowercase the result again, or `DateTime64(3,- # 'UTC')` collapses to `datetime64(3, 'utc')`.- name = self.visit(ctx.identifier()).lower()- params = ", ".join(c.getText() for c in ctx.columnExprList().columnExpr()) if ctx.columnExprList() else ""- return f"{name}({params})"-- def visitColumnExprList(self, ctx: HogQLParser.ColumnExprListContext):- return [self.visit(c) for c in ctx.columnExpr()]-- def visitSelectColumnExprList(self, ctx: HogQLParser.SelectColumnExprListContext):- return [self.visit(c) for c in ctx.selectColumnExpr()]-- def visitSelectColumnExprListBeforeFromTrailingComma(- self, ctx: HogQLParser.SelectColumnExprListBeforeFromTrailingCommaContext- ):- return [self.visit(c) for c in ctx.selectColumnExpr()]-- def visitSelectColumnExprListBeforeFromPlain(self, ctx: HogQLParser.SelectColumnExprListBeforeFromPlainContext):- return self.visit(ctx.selectColumnExprList())-- def visitColumnExprAliasBefore(self, ctx: HogQLParser.ColumnExprAliasBeforeContext):- alias = self.visit(ctx.identifier())- expr = self.visit(ctx.columnExpr())- _assert_valid_alias(alias, ctx.identifier().getText())- return ast.Alias(expr=expr, alias=alias)-- def visitColumnExprSelectValue(self, ctx: HogQLParser.ColumnExprSelectValueContext):- return self.visit(ctx.columnExpr())-- def visitColumnExprTernaryOp(self, ctx: HogQLParser.ColumnExprTernaryOpContext):- return ast.Call(- name="if",- args=[- self.visit(ctx.columnExpr(0)),- self.visit(ctx.columnExpr(1)),- self.visit(ctx.columnExpr(2)),- ],- )-- def visitColumnExprAlias(self, ctx: HogQLParser.ColumnExprAliasContext):- alias: str- raw_alias_text: str- if ctx.identifier():- alias = self.visit(ctx.identifier())- raw_alias_text = ctx.identifier().getText()- elif ctx.STRING_LITERAL():- alias = parse_string_literal_ctx(ctx.STRING_LITERAL())- raw_alias_text = ctx.STRING_LITERAL().getText()- else:- raise SyntaxError(f"Must specify an alias")- expr = self.visit(ctx.columnExpr())- _assert_valid_alias(alias, raw_alias_text)- return ast.Alias(expr=expr, alias=alias)-- def visitColumnExprInvalidFromImplicitAlias(self, ctx: HogQLParser.ColumnExprInvalidFromImplicitAliasContext):- raise SyntaxError('Cannot use "from" before an implicit alias')-- def visitColumnExprAliasImplicit(self, ctx: HogQLParser.ColumnExprAliasImplicitContext):- alias = self.visit(ctx.implicitAlias())- expr = self.visit(ctx.columnExpr())- _assert_valid_alias(alias, ctx.implicitAlias().getText())- return ast.Alias(expr=expr, alias=alias)-- def visitColumnExprNegate(self, ctx: HogQLParser.ColumnExprNegateContext):- return ast.ArithmeticOperation(- op=ast.ArithmeticOperationOp.Sub,- left=ast.Constant(value=0),- right=self.visit(ctx.columnExpr()),- )-- def visitColumnExprDict(self, ctx: HogQLParser.ColumnExprDictContext):- return ast.Dict(items=self.visit(ctx.kvPairList()) if ctx.kvPairList() else [])-- def visitColumnExprSubquery(self, ctx: HogQLParser.ColumnExprSubqueryContext):- return self.visit(ctx.selectSetStmt())-- def visitColumnExprLiteral(self, ctx: HogQLParser.ColumnExprLiteralContext):- return self.visitChildren(ctx)-- def visitColumnExprArray(self, ctx: HogQLParser.ColumnExprArrayContext):- return ast.Array(exprs=self.visit(ctx.columnExprList()) if ctx.columnExprList() else [])-- def visitColumnExprSubstring(self, ctx: HogQLParser.ColumnExprSubstringContext):- raise NotImplementedError(f"Unsupported node: ColumnExprSubstring")-- def visitColumnExprCast(self, ctx: HogQLParser.ColumnExprCastContext):- # Each `columnTypeExpr` visitor handles its own case rules (Simple/- # Complex/Nested/Compound lowercase; Param keeps the inner getText- # case-preserved). A blanket `.lower()` here would erase the- # Param-mode case preservation, e.g. `DateTime64(3, 'UTC')` →- # `datetime64(3, 'utc')`.- type_name = self.visit(ctx.columnTypeExpr())- return ast.TypeCast(expr=self.visit(ctx.columnExpr()), type_name=type_name)-- def visitColumnExprTryCast(self, ctx: HogQLParser.ColumnExprTryCastContext):- type_name = self.visit(ctx.columnTypeExpr())- return ast.TryCast(expr=self.visit(ctx.columnExpr()), type_name=type_name)-- def visitColumnExprPrecedence1(self, ctx: HogQLParser.ColumnExprPrecedence1Context):- if ctx.SLASH():- op = ast.ArithmeticOperationOp.Div- elif ctx.ASTERISK():- op = ast.ArithmeticOperationOp.Mult- elif ctx.PERCENT():- op = ast.ArithmeticOperationOp.Mod- else:- raise NotImplementedError(f"Unsupported ColumnExprPrecedence1: {ctx.getText()}")- left = self.visit(ctx.left)- right = self.visit(ctx.right)- return ast.ArithmeticOperation(left=left, right=right, op=op)-- def visitColumnExprPrecedence2(self, ctx: HogQLParser.ColumnExprPrecedence2Context):- left = self.visit(ctx.left)- right = self.visit(ctx.right)-- if ctx.PLUS():- return ast.ArithmeticOperation(left=left, right=right, op=ast.ArithmeticOperationOp.Add)- elif ctx.DASH():- return ast.ArithmeticOperation(left=left, right=right, op=ast.ArithmeticOperationOp.Sub)- elif ctx.CONCAT():- args = []- if isinstance(left, ast.Call) and left.name == "concat":- args.extend(left.args)- else:- args.append(left)-- if isinstance(right, ast.Call) and right.name == "concat":- args.extend(right.args)- else:- args.append(right)-- return ast.Call(name="concat", args=args)- else:- raise NotImplementedError(f"Unsupported ColumnExprPrecedence2: {ctx.getText()}")-- def visitColumnExprPrecedence3(self, ctx: HogQLParser.ColumnExprPrecedence3Context):- left = self.visit(ctx.left)- right = self.visit(ctx.right)-- if ctx.EQ_SINGLE() or ctx.EQ_DOUBLE():- op = ast.CompareOperationOp.Eq- elif ctx.NOT_EQ():- op = ast.CompareOperationOp.NotEq- elif ctx.LT():- op = ast.CompareOperationOp.Lt- elif ctx.LT_EQ():- op = ast.CompareOperationOp.LtEq- elif ctx.GT():- op = ast.CompareOperationOp.Gt- elif ctx.GT_EQ():- op = ast.CompareOperationOp.GtEq- elif ctx.LIKE():- if ctx.NOT():- op = ast.CompareOperationOp.NotLike- else:- op = ast.CompareOperationOp.Like- elif ctx.ILIKE():- if ctx.NOT():- op = ast.CompareOperationOp.NotILike- else:- op = ast.CompareOperationOp.ILike- elif ctx.REGEX_SINGLE() or ctx.REGEX_DOUBLE():- op = ast.CompareOperationOp.Regex- elif ctx.NOT_REGEX():- op = ast.CompareOperationOp.NotRegex- elif ctx.IREGEX_SINGLE() or ctx.IREGEX_DOUBLE():- op = ast.CompareOperationOp.IRegex- elif ctx.NOT_IREGEX():- op = ast.CompareOperationOp.NotIRegex- elif ctx.IN():- if ctx.COHORT():- if ctx.NOT():- op = ast.CompareOperationOp.NotInCohort- else:- op = ast.CompareOperationOp.InCohort- else:- if ctx.NOT():- op = ast.CompareOperationOp.NotIn- else:- op = ast.CompareOperationOp.In- else:- raise NotImplementedError(f"Unsupported ColumnExprPrecedence3: {ctx.getText()}")-- return ast.CompareOperation(left=left, right=right, op=op)-- def visitColumnExprInterval(self, ctx: HogQLParser.ColumnExprIntervalContext):- if ctx.interval().SECOND():- name = "toIntervalSecond"- elif ctx.interval().MINUTE():- name = "toIntervalMinute"- elif ctx.interval().HOUR():- name = "toIntervalHour"- elif ctx.interval().DAY():- name = "toIntervalDay"- elif ctx.interval().WEEK():- name = "toIntervalWeek"- elif ctx.interval().MONTH():- name = "toIntervalMonth"- elif ctx.interval().QUARTER():- name = "toIntervalQuarter"- elif ctx.interval().YEAR():- name = "toIntervalYear"- else:- raise NotImplementedError(f"Unsupported interval type: {ctx.interval().getText()}")-- return ast.Call(name=name, args=[self.visit(ctx.columnExpr())])-- def visitColumnExprIntervalString(self, ctx: HogQLParser.ColumnExprIntervalStringContext):- if ctx.STRING_LITERAL():- text = parse_string_literal_ctx(ctx.STRING_LITERAL())- else:- raise NotImplementedError(f"Unsupported interval type: {ctx.STRING_LITERAL()}")-- count, unit = text.split(" ")- if count.isdigit():- int_count = int(count)- else:- raise NotImplementedError(f"Unsupported interval count: {count}")-- if unit == "second" or unit == "seconds":- name = "toIntervalSecond"- elif unit == "minute" or unit == "minutes":- name = "toIntervalMinute"- elif unit == "hour" or unit == "hours":- name = "toIntervalHour"- elif unit == "day" or unit == "days":- name = "toIntervalDay"- elif unit == "week" or unit == "weeks":- name = "toIntervalWeek"- elif unit == "month" or unit == "months":- name = "toIntervalMonth"- elif unit == "quarter" or unit == "quarters":- name = "toIntervalQuarter"- elif unit == "year" or unit == "years":- name = "toIntervalYear"- else:- raise NotImplementedError(f"Unsupported interval unit: {unit}")-- return ast.Call(name=name, args=[ast.Constant(value=int_count)])-- def visitColumnExprIgnoreNulls(self, ctx: HogQLParser.ColumnExprIgnoreNullsContext):- return self.visit(ctx.columnExpr())-- def visitColumnExprIsNull(self, ctx: HogQLParser.ColumnExprIsNullContext):- return ast.CompareOperation(- left=self.visit(ctx.columnExpr()),- right=ast.Constant(value=None),- op=ast.CompareOperationOp.NotEq if ctx.NOT() else ast.CompareOperationOp.Eq,- is_null_comparison_style=True,- )-- def visitColumnExprIsDistinctFrom(self, ctx: HogQLParser.ColumnExprIsDistinctFromContext):- return ast.IsDistinctFrom(- left=self.visit(ctx.columnExpr(0)),- right=self.visit(ctx.columnExpr(1)),- negated=bool(ctx.NOT()),- )-- def visitColumnExprNullSafeEq(self, ctx: HogQLParser.ColumnExprNullSafeEqContext):- # MySQL `a <=> b` is sugar for `a IS NOT DISTINCT FROM b`- return ast.IsDistinctFrom(- left=self.visit(ctx.columnExpr(0)),- right=self.visit(ctx.columnExpr(1)),- negated=True,- )-- def visitColumnExprTrim(self, ctx: HogQLParser.ColumnExprTrimContext):- args = [self.visit(ctx.columnExpr()), self.visit(ctx.string())]- if ctx.LEADING():- return ast.Call(name="trimLeft", args=args)- if ctx.TRAILING():- return ast.Call(name="trimRight", args=args)- if ctx.BOTH():- return ast.Call(name="trim", args=args)- raise NotImplementedError(f"Unsupported modifier for ColumnExprTrim, must be LEADING, TRAILING or BOTH")-- def visitColumnExprTuple(self, ctx: HogQLParser.ColumnExprTupleContext):- return ast.Tuple(exprs=self.visit(ctx.columnExprList()) if ctx.columnExprList() else [])-- def visitColumnExprArrayAccess(self, ctx: HogQLParser.ColumnExprArrayAccessContext):- object: ast.Expr = self.visit(ctx.columnExpr(0))- property: ast.Expr = self.visit(ctx.columnExpr(1))- return ast.ArrayAccess(array=object, property=property)-- def visitColumnExprArraySlice(self, ctx: HogQLParser.ColumnExprArraySliceContext):- exprs = ctx.columnExpr()- object_expr = self.visit(exprs[0])- start_expr = None- end_expr = None- if len(exprs) > 1:- colon_index = ctx.COLON().symbol.tokenIndex- if exprs[1].start.tokenIndex < colon_index:- start_expr = self.visit(exprs[1])- if len(exprs) > 2:- end_expr = self.visit(exprs[2])- else:- end_expr = self.visit(exprs[1])- return ast.ArraySlice(array=object_expr, start_expr=start_expr, end_expr=end_expr)-- def visitColumnExprNullArrayAccess(self, ctx: HogQLParser.ColumnExprNullArrayAccessContext):- object: ast.Expr = self.visit(ctx.columnExpr(0))- property: ast.Expr = self.visit(ctx.columnExpr(1))- return ast.ArrayAccess(array=object, property=property, nullish=True)-- def visitColumnExprPropertyAccess(self, ctx: HogQLParser.ColumnExprPropertyAccessContext):- object = self.visit(ctx.columnExpr())- property = ast.Constant(value=self.visit(ctx.identifier()))- return ast.ArrayAccess(array=object, property=property)-- def visitColumnExprNullPropertyAccess(self, ctx: HogQLParser.ColumnExprNullPropertyAccessContext):- object = self.visit(ctx.columnExpr())- property = ast.Constant(value=self.visit(ctx.identifier()))- return ast.ArrayAccess(array=object, property=property, nullish=True)-- def visitColumnExprTypeCast(self, ctx: HogQLParser.ColumnExprTypeCastContext):- type_name = self.visit(ctx.columnTypeCastExpr())- return ast.TypeCast(expr=self.visit(ctx.columnExpr()), type_name=type_name.lower())-- def visitColumnTypeCastExprSimple(self, ctx: HogQLParser.ColumnTypeCastExprSimpleContext):- return self.visit(ctx.columnTypeCastIdentifier())-- def visitColumnTypeCastExprWithTimeZone(self, ctx: HogQLParser.ColumnTypeCastExprWithTimeZoneContext):- parts = [- self.visit(ctx.columnTypeCastIdentifier()),- "with",- ]- if ctx.LOCAL():- parts.append("local")- parts.extend(["time", "zone"])- return " ".join(parts)-- def visitColumnTypeCastIdentifier(self, ctx: HogQLParser.ColumnTypeCastIdentifierContext):- return _unquote_identifier(ctx.getText())-- def visitColumnExprBetween(self, ctx: HogQLParser.ColumnExprBetweenContext):- expr = self.visit(ctx.columnExpr(0))- low = self.visit(ctx.columnExpr(1))- high = self.visit(ctx.columnExpr(2))- return ast.BetweenExpr(expr=expr, low=low, high=high, negated=bool(ctx.NOT()))-- def visitColumnExprParens(self, ctx: HogQLParser.ColumnExprParensContext):- return self.visit(ctx.columnExpr())-- def visitColumnExprTimestamp(self, ctx: HogQLParser.ColumnExprTimestampContext):- raise NotImplementedError(f"Unsupported node: ColumnExprTimestamp")-- def visitColumnExprAnd(self, ctx: HogQLParser.ColumnExprAndContext):- left = self.visit(ctx.columnExpr(0))- if isinstance(left, ast.And):- left_array = left.exprs- else:- left_array = [left]-- right = self.visit(ctx.columnExpr(1))- if isinstance(right, ast.And):- right_array = right.exprs- else:- right_array = [right]-- return ast.And(exprs=left_array + right_array)-- def visitColumnExprOr(self, ctx: HogQLParser.ColumnExprOrContext):- left = self.visit(ctx.columnExpr(0))- if isinstance(left, ast.Or):- left_array = left.exprs- else:- left_array = [left]-- right = self.visit(ctx.columnExpr(1))- if isinstance(right, ast.Or):- right_array = right.exprs- else:- right_array = [right]-- return ast.Or(exprs=left_array + right_array)-- def visitColumnExprTupleAccess(self, ctx: HogQLParser.ColumnExprTupleAccessContext):- tuple = self.visit(ctx.columnExpr())- index = int(ctx.DECIMAL_LITERAL().getText())- return ast.TupleAccess(tuple=tuple, index=index)-- def visitColumnExprNullTupleAccess(self, ctx: HogQLParser.ColumnExprNullTupleAccessContext):- tuple = self.visit(ctx.columnExpr())- index = int(ctx.DECIMAL_LITERAL().getText())- return ast.TupleAccess(tuple=tuple, index=index, nullish=True)-- def visitColumnExprCase(self, ctx: HogQLParser.ColumnExprCaseContext):- columns = [self.visit(column) for column in ctx.columnExpr()]- case_expr = getattr(ctx, "caseExpr", None)- if case_expr is not None:- args = [columns[0], ast.Array(exprs=[]), ast.Array(exprs=[]), columns[-1]]- for index, column in enumerate(columns):- if 0 < index < len(columns) - 1:- args[((index - 1) % 2) + 1].exprs.append(column)- return ast.Call(name="transform", args=args)- elif len(columns) == 3:- return ast.Call(name="if", args=columns)- else:- return ast.Call(name="multiIf", args=columns)-- def visitColumnExprDate(self, ctx: HogQLParser.ColumnExprDateContext):- raise NotImplementedError(f"Unsupported node: ColumnExprDate")-- def visitColumnExprNot(self, ctx: HogQLParser.ColumnExprNotContext):- return ast.Not(expr=self.visit(ctx.columnExpr()))-- def visitColumnExprWinFunctionTarget(self, ctx: HogQLParser.ColumnExprWinFunctionTargetContext):- return ast.WindowFunction(- name=self.visit(ctx.identifier(0)),- exprs=self.visit(ctx.columnExprs) if ctx.columnExprs else [],- args=self.visit(ctx.columnArgList) if ctx.columnArgList else [],- over_identifier=self.visit(ctx.identifier(1)),- )-- def visitColumnExprWinFunction(self, ctx: HogQLParser.ColumnExprWinFunctionContext):- return ast.WindowFunction(- name=self.visit(ctx.identifier()),- exprs=self.visit(ctx.columnExprs) if ctx.columnExprs else [],- args=self.visit(ctx.columnArgList) if ctx.columnArgList else [],- over_expr=self.visit(ctx.windowExpr()) if ctx.windowExpr() else None,- )-- def visitColumnExprIdentifier(self, ctx: HogQLParser.ColumnExprIdentifierContext):- return self.visit(ctx.columnIdentifier())-- def visitColumnExprFunction(self, ctx: HogQLParser.ColumnExprFunctionContext):- name = self.visit(ctx.identifier())-- parameters: list[ast.Expr] | None = self.visit(ctx.columnExprs) if ctx.columnExprs is not None else None- # two sets of parameters fn()(), return an empty list for the first even if no parameters- # FILTER adds an extra LPAREN, so account for it when detecting parametric calls- lparen_threshold = 2 if ctx.FILTER() else 1- if ctx.LPAREN(lparen_threshold) and parameters is None:- parameters = []-- args: list[ast.Expr] = self.visit(ctx.columnArgList) if ctx.columnArgList is not None else []- distinct = True if ctx.DISTINCT() else False- order_by = self.visit(ctx.orderExprList()) if ctx.orderExprList() else None- filter_expr = self.visit(ctx.filterExpr) if ctx.filterExpr is not None else None- return ast.Call(- name=name, params=parameters, args=args, distinct=distinct, order_by=order_by, filter_expr=filter_expr- )-- def visitColumnExprFunctionWithinGroup(self, ctx: HogQLParser.ColumnExprFunctionWithinGroupContext):- name = self.visit(ctx.identifier())- parameters: list[ast.Expr] = self.visit(ctx.columnExprs) if ctx.columnExprs is not None else []- within_group, _interpolate = self.visit(ctx.withinGroupClause())- return ast.Call(name=name, params=parameters, args=[], within_group=within_group)-- def visitColumnExprAsterisk(self, ctx: HogQLParser.ColumnExprAsteriskContext):- if ctx.EXCLUDE():- exclude = self.visit(ctx.identifierList())- return ast.ColumnsExpr(all_columns=True, exclude=exclude)- if ctx.tableIdentifier():- table = self.visit(ctx.tableIdentifier())- return ast.Field(chain=[*table, "*"])- return ast.Field(chain=["*"])-- def visitColumnExprColumnsRegex(self, ctx: HogQLParser.ColumnExprColumnsRegexContext):- pattern = parse_string_literal_ctx(ctx.STRING_LITERAL())- return ast.ColumnsExpr(regex=pattern)-- def visitColumnExprColumnsList(self, ctx: HogQLParser.ColumnExprColumnsListContext):- columns = self.visit(ctx.columnExprList())- return ast.ColumnsExpr(columns=columns)-- def visitColumnExprColumnsExclude(self, ctx: HogQLParser.ColumnExprColumnsExcludeContext):- exclude = self.visit(ctx.identifierList())- return ast.ColumnsExpr(all_columns=True, exclude=exclude)-- def visitColumnExprColumnsReplace(self, ctx: HogQLParser.ColumnExprColumnsReplaceContext):- replace = self._parse_columns_replace_list(ctx.columnsReplaceList())- return ast.ColumnsExpr(all_columns=True, replace=replace)-- def visitColumnExprColumnsExcludeReplace(self, ctx: HogQLParser.ColumnExprColumnsExcludeReplaceContext):- exclude = self.visit(ctx.identifierList())- replace = self._parse_columns_replace_list(ctx.columnsReplaceList())- return ast.ColumnsExpr(all_columns=True, exclude=exclude, replace=replace)-- def _parse_columns_replace_list(self, ctx) -> dict[str, ast.Expr]:- replace = {}- for item in ctx.columnsReplaceItem():- name = self.visit(item.identifier())- expr = self.visit(item.columnExpr())- replace[name] = expr- return replace-- def visitColumnExprColumnsAll(self, ctx: HogQLParser.ColumnExprColumnsAllContext):- return ast.ColumnsExpr(all_columns=True)-- def visitColumnExprColumnsQualifiedAll(self, ctx: HogQLParser.ColumnExprColumnsQualifiedAllContext):- table = self.visit(ctx.identifier())- return ast.ColumnsExpr(columns=[ast.Field(chain=[table, "*"])])-- def visitColumnExprColumnsQualifiedExclude(self, ctx: HogQLParser.ColumnExprColumnsQualifiedExcludeContext):- exclude = self.visit(ctx.identifierList())- return ast.ColumnsExpr(columns=[ast.ColumnsExpr(all_columns=True, exclude=exclude)])-- def visitColumnExprColumnsQualifiedReplace(self, ctx: HogQLParser.ColumnExprColumnsQualifiedReplaceContext):- replace = self._parse_columns_replace_list(ctx.columnsReplaceList())- return ast.ColumnsExpr(all_columns=True, replace=replace)-- def visitColumnExprColumnsQualifiedExcludeReplace(- self, ctx: HogQLParser.ColumnExprColumnsQualifiedExcludeReplaceContext- ):- exclude = self.visit(ctx.identifierList())- replace = self._parse_columns_replace_list(ctx.columnsReplaceList())- return ast.ColumnsExpr(all_columns=True, exclude=exclude, replace=replace)-- def visitColumnExprSpreadColumnsRegex(self, ctx: HogQLParser.ColumnExprSpreadColumnsRegexContext):- pattern = parse_string_literal_ctx(ctx.STRING_LITERAL())- start = ctx.start.start if ctx.start else None- end = ctx.stop.stop + 1 if ctx.stop else None- return ast.SpreadExpr(- expr=ast.ColumnsExpr(regex=pattern, start=start, end=end),- start=start,- end=end,- )-- def visitColumnExprSpreadColumnsList(self, ctx: HogQLParser.ColumnExprSpreadColumnsListContext):- columns = self.visit(ctx.columnExprList())- start = ctx.start.start if ctx.start else None- end = ctx.stop.stop + 1 if ctx.stop else None- return ast.SpreadExpr(- expr=ast.ColumnsExpr(columns=columns, start=start, end=end),- start=start,- end=end,- )-- def visitColumnExprNamedArg(self, ctx: HogQLParser.ColumnExprNamedArgContext):- return ast.NamedArgument(- name=self.visit(ctx.identifier()),- value=self.visit(ctx.columnExpr()),- )-- def visitColumnExprPositional(self, ctx: HogQLParser.ColumnExprPositionalContext):- return ast.PositionalRef(index=int(ctx.DECIMAL_LITERAL().getText()))-- def visitColumnExprTagElement(self, ctx: HogQLParser.ColumnExprTagElementContext):- return self.visit(ctx.hogqlxTagElement())-- def visitArrowLambda(self, ctx: HogQLParser.ArrowLambdaContext):- return ast.Lambda(- args=[self.visit(identifier) for identifier in ctx.identifier()],- expr=self.visit(ctx.columnExpr() or ctx.block()),- )-- def visitColonLambda(self, ctx: HogQLParser.ColonLambdaContext):- return ast.Lambda(- args=[self.visit(identifier) for identifier in ctx.identifier()],- expr=self.visit(ctx.columnExpr()),- )-- def visitColumnExprColonLambda(self, ctx: HogQLParser.ColumnExprColonLambdaContext):- return ast.Lambda(- args=[self.visit(identifier) for identifier in ctx.identifier()],- expr=self.visit(ctx.columnExpr()),- )-- def visitColumnLambdaExpr(self, ctx: HogQLParser.ColumnLambdaExprContext):- return self.visitArrowLambda(ctx)-- def visitWithExprList(self, ctx: HogQLParser.WithExprListContext):- ctes: dict[str, ast.CTE] = {}- for expr in ctx.withExpr():- cte = self.visit(expr)- ctes[cte.name] = cte- return ctes-- def visitWithExprSubquery(self, ctx: HogQLParser.WithExprSubqueryContext):- subquery = self.visit(ctx.selectSetStmt())- name = self.visit(ctx.identifier())- materialized = None if not ctx.MATERIALIZED() else ctx.NOT() is None- columns = None- using_key = None- column_name_lists = ctx.withExprColumnNameList()- if ctx.USING():- # USING KEY present: first list is CTE columns (if any), last list is the key columns- using_key_list = column_name_lists[-1]- using_key = [self.visit(ident) for ident in using_key_list.identifier()]- if len(column_name_lists) > 1:- columns = [self.visit(ident) for ident in column_name_lists[0].identifier()]- elif column_name_lists:- columns = [self.visit(ident) for ident in column_name_lists[0].identifier()]- return ast.CTE(- name=name,- expr=subquery,- columns=columns,- cte_type="subquery",- materialized=materialized,- using_key=using_key,- )-- def visitWithExprColumn(self, ctx: HogQLParser.WithExprColumnContext):- expr = self.visit(ctx.columnExpr())- name = self.visit(ctx.identifier())- return ast.CTE(name=name, expr=expr, cte_type="column")-- def visitColumnIdentifier(self, ctx: HogQLParser.ColumnIdentifierContext):- if ctx.placeholder():- return self.visit(ctx.placeholder())-- table = self.visit(ctx.tableIdentifier()) if ctx.tableIdentifier() else []- nested = self.visit(ctx.nestedIdentifier()) if ctx.nestedIdentifier() else []-- if len(table) == 0 and len(nested) > 0:- text = ctx.getText().lower()- if text == "true":- return ast.Constant(value=True)- if text == "false":- return ast.Constant(value=False)- return ast.Field(chain=nested)-- return ast.Field(chain=table + nested)-- def visitNestedIdentifier(self, ctx: HogQLParser.NestedIdentifierContext):- return [self.visit(identifier) for identifier in ctx.identifier()]-- def visitTableExprIdentifier(self, ctx: HogQLParser.TableExprIdentifierContext):- chain = self.visit(ctx.tableIdentifier())- return ast.Field(chain=chain)-- def visitTableExprSubquery(self, ctx: HogQLParser.TableExprSubqueryContext):- return self.visit(ctx.selectSetStmt())-- def visitTableExprValues(self, ctx: HogQLParser.TableExprValuesContext):- return self.visit(ctx.valuesClause())-- def visitValuesClause(self, ctx: HogQLParser.ValuesClauseContext):- rows = [self.visit(row) for row in ctx.valuesRow()]- return ast.ValuesQuery(rows=rows)-- def visitValuesRow(self, ctx: HogQLParser.ValuesRowContext):- return [self.visit(expr) for expr in ctx.columnExpr()]-- def visitTableExprPivot(self, ctx: HogQLParser.TableExprPivotContext):- table = self.visit(ctx.tableExpr())- expr_lists = ctx.columnExprList()- aggregates = self.visit(expr_lists[0])- pivot_columns = [self.visit(col) for col in ctx.pivotColumnList().pivotColumn()]- group_by = self.visit(expr_lists[1]) if len(expr_lists) > 1 else None- return ast.PivotExpr(table=table, aggregates=aggregates, columns=pivot_columns, group_by=group_by)-- def visitPivotColumn(self, ctx: HogQLParser.PivotColumnContext):- column = self.visit(ctx.columnExprTupleOrSingle())- values = self.visit(ctx.columnExprList())- return ast.PivotColumn(column=column, values=values)-- def visitTableExprUnpivot(self, ctx: HogQLParser.TableExprUnpivotContext):- table = self.visit(ctx.tableExpr())- columns = self.visit(ctx.unpivotColumnList())- include_nulls = ctx.INCLUDE() is not None- return ast.UnpivotExpr(table=table, columns=columns, include_nulls=include_nulls)-- def visitJoinExprUnpivot(self, ctx: HogQLParser.JoinExprUnpivotContext):- join = self.visit(ctx.joinExpr())- columns = self.visit(ctx.unpivotColumnList())- include_nulls = ctx.INCLUDE() is not None- return ast.JoinExpr(table=ast.UnpivotExpr(table=join, columns=columns, include_nulls=include_nulls))-- def visitUnpivotColumnList(self, ctx: HogQLParser.UnpivotColumnListContext):- return [self.visit(col) for col in ctx.unpivotColumn()]-- def visitUnpivotColumn(self, ctx: HogQLParser.UnpivotColumnContext):- tuple_or_singles = ctx.columnExprTupleOrSingle()- value_columns = self.visit(tuple_or_singles[0])- name_columns = self.visit(tuple_or_singles[1])- all_lists = ctx.columnExprList()- unpivot_values = self.visit(all_lists[0] if isinstance(all_lists, list) else all_lists)- return ast.UnpivotColumn(- value_columns=value_columns,- name_columns=name_columns,- unpivot_values=unpivot_values,- )-- def visitColumnExprTupleOrSingle(self, ctx: HogQLParser.ColumnExprTupleOrSingleContext):- if ctx.columnExprList():- exprs = self.visit(ctx.columnExprList())- return ast.Tuple(exprs=exprs)- return self.visit(ctx.columnExpr())-- def visitTableExprPlaceholder(self, ctx: HogQLParser.TableExprPlaceholderContext):- return self.visit(ctx.placeholder())-- def visitTableExprAlias(self, ctx: HogQLParser.TableExprAliasContext):- alias_ctx = ctx.alias() or ctx.identifier()- alias: str = self.visit(alias_ctx)- raw_alias_text = alias_ctx.getText()- _assert_valid_alias(alias, raw_alias_text)- column_aliases = None- if hasattr(ctx, "columnAliases") and ctx.columnAliases():- column_aliases = self.visit(ctx.columnAliases())- elif hasattr(ctx, "tableAliasColumnNameList") and ctx.tableAliasColumnNameList():- column_aliases = [self.visit(ident) for ident in ctx.tableAliasColumnNameList().identifier()]- table = self.visit(ctx.tableExpr())-- if isinstance(table, ast.JoinExpr):- table.alias = alias- table.column_aliases = column_aliases- return table- return ast.JoinExpr(table=table, alias=alias, column_aliases=column_aliases)-- def visitColumnAliases(self, ctx: HogQLParser.ColumnAliasesContext):- return [self.visit(ident) for ident in ctx.identifier()]-- def visitTableExprFunction(self, ctx: HogQLParser.TableExprFunctionContext):- return self.visit(ctx.tableFunctionExpr())-- def visitTableExprTag(self, ctx: HogQLParser.TableExprTagContext):- return self.visit(ctx.hogqlxTagElement())-- def visitTableFunctionExpr(self, ctx: HogQLParser.TableFunctionExprContext):- name = self.visit(ctx.identifier())- args = self.visit(ctx.tableArgList()) if ctx.tableArgList() else []- return ast.JoinExpr(table=ast.Field(chain=[name]), table_args=args)-- def visitTableIdentifier(self, ctx: HogQLParser.TableIdentifierContext):- nested = self.visit(ctx.nestedIdentifier()) if ctx.nestedIdentifier() else []-- if ctx.databaseIdentifier():- return [self.visit(ctx.databaseIdentifier()), *nested]-- return nested-- def visitTableArgList(self, ctx: HogQLParser.TableArgListContext):- return [self.visit(arg) for arg in ctx.columnExpr()]-- def visitDatabaseIdentifier(self, ctx: HogQLParser.DatabaseIdentifierContext):- return self.visit(ctx.identifier())-- def visitFloatingLiteral(self, ctx: HogQLParser.FloatingLiteralContext):- raise NotImplementedError(f"Unsupported node: visitFloatingLiteral")-- def visitNumberLiteral(self, ctx: HogQLParser.NumberLiteralContext):- text = ctx.getText().lower()- # Grammar allows an optional leading sign on every numberLiteral, including INF/NAN.- # Strip a leading '+' so the sign-stripping below is uniform and "+inf" → "inf".- if text.startswith("+"):- text = text[1:]- sign = 1- abs_text = text- if abs_text.startswith("-"):- sign = -1- abs_text = abs_text[1:]- # Hex before the float guard: hex digits include 'e', so "0xfe" would route through float().- if abs_text.startswith("0x"):- # Hex-float? FLOATING_LITERAL uses strict C99 `p`/`P` only- # as the exponent marker — `e`/`E` is always a hex digit- # in this context, so the presence of `p` is the entire- # detection. `float.fromhex` accepts the same syntax.- if "p" in abs_text:- return ast.Constant(value=sign * float.fromhex(abs_text))- return ast.Constant(value=sign * int(abs_text, 16))- # `0b…` (BINARY_LITERAL): ClickHouse caps binary literals at 64 bits — magnitude- # must fit UInt64 (positive) or Int64 (negative); wider literals are rejected.- if abs_text.startswith("0b"):- magnitude = int(abs_text[2:], 2)- if magnitude > (2**63 if sign < 0 else 2**64 - 1):- raise SyntaxError(f"HogQL binary integer literals are limited to 64 bits; got {text!r}.")- return ast.Constant(value=sign * magnitude)- # `0o…` (OCTAL_PREFIX_LITERAL): rejected — ClickHouse and pre-pg16 Postgres reject it too.- if abs_text.startswith("0o"):- raise SyntaxError(- f"HogQL does not support `0o`-prefixed octal integer literals; got {text!r}. "- f"Use a plain decimal literal instead."- )- # INF/NAN_SQL tokens: `float()` handles both "inf"/"infinity" spellings.- if "." in abs_text or "e" in abs_text or abs_text == "inf" or abs_text == "infinity" or abs_text == "nan":- return ast.Constant(value=float(text))- # Leading zeros are no-ops, never octal — "017" → 17, "09" → 9 — matching ClickHouse/Postgres.- return ast.Constant(value=sign * int(abs_text, 10))-- def visitLiteral(self, ctx: HogQLParser.LiteralContext):- if ctx.NULL_SQL():- return ast.Constant(value=None)- if ctx.STRING_LITERAL():- text = parse_string_literal_ctx(ctx)- return ast.Constant(value=text)- return self.visitChildren(ctx)-- def visitInterval(self, ctx: HogQLParser.IntervalContext):- raise NotImplementedError(f"Unsupported node: Interval")-- def visitKeyword(self, ctx: HogQLParser.KeywordContext):- raise NotImplementedError(f"Unsupported node: Keyword")-- def visitKeywordForAlias(self, ctx: HogQLParser.KeywordForAliasContext):- return _unquote_identifier(ctx.getText())-- def visitKeywordForImplicitAlias(self, ctx: HogQLParser.KeywordForImplicitAliasContext):- return _unquote_identifier(ctx.getText())-- def visitAlias(self, ctx: HogQLParser.AliasContext):- return _unquote_identifier(ctx.getText())-- def visitImplicitAlias(self, ctx: HogQLParser.ImplicitAliasContext):- return _unquote_identifier(ctx.getText())-- def visitIdentifier(self, ctx: HogQLParser.IdentifierContext):- return _unquote_identifier(ctx.getText())-- def visitEnumValue(self, ctx: HogQLParser.EnumValueContext):- raise NotImplementedError(f"Unsupported node: EnumValue")-- def visitColumnExprNullish(self, ctx: HogQLParser.ColumnExprNullishContext):- return ast.Call(- name="ifNull",- args=[self.visit(ctx.columnExpr(0)), self.visit(ctx.columnExpr(1))],- )-- def visitColumnExprCall(self, ctx: HogQLParser.ColumnExprCallContext):- return ast.ExprCall(- expr=self.visit(ctx.columnExpr()), args=self.visit(ctx.columnExprList()) if ctx.columnExprList() else []- )-- def visitColumnExprCallSelect(self, ctx: HogQLParser.ColumnExprCallSelectContext):- expr = self.visit(ctx.columnExpr())- if isinstance(expr, ast.Field) and len(expr.chain) == 1:- return ast.Call(name=str(expr.chain[0]), args=[self.visit(ctx.selectSetStmt())])- return ast.ExprCall(expr=expr, args=[self.visit(ctx.selectSetStmt())])-- def visitHogqlxChildElement(self, ctx: HogQLParser.HogqlxChildElementContext):- if ctx.hogqlxTagElement():- return self.visit(ctx.hogqlxTagElement())- if ctx.hogqlxText():- return self.visit(ctx.hogqlxText())- return self.visit(ctx.columnExpr())-- def visitHogqlxText(self, ctx: HogQLParser.HogqlxTextContext):- return ast.Constant(value=ctx.HOGQLX_TEXT_TEXT().getText())-- def visitHogqlxTagElementClosed(self, ctx: HogQLParser.HogqlxTagElementClosedContext):- kind = self.visit(ctx.identifier())- attributes = [self.visit(a) for a in ctx.hogqlxTagAttribute()] if ctx.hogqlxTagAttribute() else []- return ast.HogQLXTag(kind=kind, attributes=attributes)-- def visitHogqlxTagElementNested(self, ctx: HogQLParser.HogqlxTagElementNestedContext):- opening = self.visit(ctx.identifier(0))- closing = self.visit(ctx.identifier(1))- if opening != closing:- raise SyntaxError(f"Opening and closing HogQLX tags must match. Got {opening} and {closing}")-- attributes = [self.visit(a) for a in ctx.hogqlxTagAttribute()] if ctx.hogqlxTagAttribute() else []-- # ── collect child nodes, discarding pure-indentation whitespace ──- kept_children = []- for element in ctx.hogqlxChildElement():- child = self.visit(element)-- if isinstance(child, ast.Constant) and isinstance(child.value, str):- v = child.value- only_ws = v.isspace()- has_nl = "\n" in v or "\r" in v- if only_ws and has_nl:- continue # drop indentation text node-- kept_children.append(child)-- if kept_children:- if any(a.name == "children" for a in attributes):- raise SyntaxError("Can't have a HogQLX tag with both children and a 'children' attribute")- attributes.append(ast.HogQLXAttribute(name="children", value=kept_children))-- return ast.HogQLXTag(kind=opening, attributes=attributes)-- def visitHogqlxTagAttribute(self, ctx: HogQLParser.HogqlxTagAttributeContext):- name = self.visit(ctx.identifier())- if ctx.columnExpr():- return ast.HogQLXAttribute(name=name, value=self.visit(ctx.columnExpr()))- elif ctx.string():- return ast.HogQLXAttribute(name=name, value=self.visit(ctx.string()))- else:- return ast.HogQLXAttribute(name=name, value=ast.Constant(value=True))-- def visitPlaceholder(self, ctx: HogQLParser.PlaceholderContext):- return ast.Placeholder(expr=self.visit(ctx.columnExpr()))-- def visitColumnExprTemplateString(self, ctx: HogQLParser.ColumnExprTemplateStringContext):- return self.visit(ctx.templateString())-- def visitString(self, ctx: HogQLParser.StringContext):- if ctx.STRING_LITERAL():- return ast.Constant(value=parse_string_literal_ctx(ctx.STRING_LITERAL()))- return self.visit(ctx.templateString())-- def visitTemplateString(self, ctx: HogQLParser.TemplateStringContext):- pieces = []- for chunk in ctx.stringContents():- pieces.append(self.visit(chunk))-- if len(pieces) == 0:- return ast.Constant(value="")- elif len(pieces) == 1:- return pieces[0]-- return ast.Call(name="concat", args=pieces)-- def visitFullTemplateString(self, ctx: HogQLParser.FullTemplateStringContext):- pieces = []- for chunk in ctx.stringContentsFull():- pieces.append(self.visit(chunk))-- if len(pieces) == 0:- return ast.Constant(value="")- elif len(pieces) == 1:- return pieces[0]-- return ast.Call(name="concat", args=pieces)-- def visitStringContents(self, ctx: HogQLParser.StringContentsContext):- if ctx.STRING_TEXT():- return ast.Constant(value=parse_string_text_ctx(ctx.STRING_TEXT(), escape_quotes=True))- elif ctx.columnExpr():- return self.visit(ctx.columnExpr())- return ast.Constant(value="")-- def visitStringContentsFull(self, ctx: HogQLParser.StringContentsFullContext):- if ctx.FULL_STRING_TEXT():- return ast.Constant(value=parse_string_text_ctx(ctx.FULL_STRING_TEXT(), escape_quotes=False))- elif ctx.columnExpr():- return self.visit(ctx.columnExpr())- return ast.Constant(value="")diff --git a/posthog/hogql/printer/test/test_printer_pbt.py b/posthog/hogql/printer/test/test_printer_pbt.pyindex ad8b9955b66c..ef973abc8fe4 100644--- a/posthog/hogql/printer/test/test_printer_pbt.py+++ b/posthog/hogql/printer/test/test_printer_pbt.py@@ -5,6 +5,7 @@ from typing import Anyimport pytest+from hogql_parser_rs import parse_string_literal_textfrom hypothesis import (assume,given,@@ -21,7 +22,6 @@ from posthog.hogql.escape_sql import (escape_hogql_string,escape_postgres_identifier,)-from posthog.hogql.parse_string import parse_string_literal_textfrom posthog.hogql.test._pbt_corpus_db import shared_corpus_database# These tests are too slow for CI. Run manually with:@@ -31,6 +31,7 @@ pytestmark = pytest.mark.skipif(reason="PBT tests are slow; set RUN_PBT=1 to run",)+# Replay the per-developer local seed read-only + write new examples to the# default `.hypothesis/examples` (see _pbt_corpus_db). Applied to the# substantive roundtrip properties below via `parent=_BASE`; the trivial@@ -42,17 +43,20 @@ _BASE = settings(database=shared_corpus_database())# Reusable strategies# ----------------------------------------------------------------------------# Strings that are expected to round-trip through escape → parse.+# Strings that are expected to round-trip through escape → unescape.# NUL is excluded because parse_string_literal_text maps \0 → "" (lossy).+# Lone surrogates (category Cs) are excluded because the rust unescaper+# crosses an FFI boundary requiring valid UTF-8, so they can't be passed at+# all (the old pure-Python unescaper tolerated them)._roundtrip_safe_text = st.text(- alphabet=st.characters(blacklist_characters="\0"),+ alphabet=st.characters(blacklist_characters="\0", blacklist_categories=["Cs"]),)# Like _roundtrip_safe_text but also excludes '%' (rejected by# escape_hogql_identifier / escape_clickhouse_identifier)._roundtrip_safe_identifier_text = st.text(min_size=1,- alphabet=st.characters(blacklist_characters="\0%"),+ alphabet=st.characters(blacklist_characters="\0%", blacklist_categories=["Cs"]),)# Strings guaranteed to contain at least one '%' — built bydiff --git a/posthog/hogql/scripts/parser_bench.py b/posthog/hogql/scripts/parser_bench.pyindex f147c71ad50b..fb6cb0df47a2 100644--- a/posthog/hogql/scripts/parser_bench.py+++ b/posthog/hogql/scripts/parser_bench.py@@ -4,10 +4,8 @@"""Side-by-side parser performance benchmark — backend-agnostic.`--oracle` defaults to `cpp-json`. `--candidate` is REQUIRED (no-default) — the Python backend is several orders of magnitude slower-than cpp on most queries and would take tens of minutes per row, so-we refuse to default to a useless target. Pass any other backend-explicitly when one is available in a feature branch.+default) so the backend under test is always stated explicitly — pass+e.g. `rust-py` or `rust-json`.The query corpus mirrors what the diagnostic PBT runner uses, sobench timings line up with parity numbers from the same workload.@@ -503,12 +501,9 @@ def main() -> int:"--candidate",default=os.environ.get("CANDIDATE_BACKEND"),help=(- "Backend under test (no default). The Python backend is an "- "ANTLR-generated visitor and is several orders of magnitude "- "slower than cpp on most queries — the bench would take tens "- "of minutes per row — so this script intentionally has no "- "default. Set CANDIDATE_BACKEND or pass --candidate to any "- "other backend available in your environment."+ "Backend under test (no default, so it's always stated "+ "explicitly). Set CANDIDATE_BACKEND or pass --candidate to a "+ "backend available in your environment, e.g. rust-py or rust-json."),)parser.add_argument(@@ -563,9 +558,8 @@ def main() -> int:return 2if not args.candidate:print(- "ERROR: --candidate is required (no default). The Python "- "backend is too slow to be a useful bench target; pass any "- "other backend available in your environment."+ "ERROR: --candidate is required (no default); pass a backend "+ "available in your environment, e.g. rust-py or rust-json.")return 2diff --git a/posthog/hogql/scripts/pbt_diagnostic.py b/posthog/hogql/scripts/pbt_diagnostic.pyindex 98b65b702e9c..a5f7eaf65cb0 100644--- a/posthog/hogql/scripts/pbt_diagnostic.py+++ b/posthog/hogql/scripts/pbt_diagnostic.py@@ -5,10 +5,7 @@ auto-generated grammar PBT introduced in PR #58627) but runs as anad-hoc CLI rather than a pytest collection. Defaults to `cpp-json` vs`rust-py` (the primary parity target — `rust-json` was a steppingstone and may end up in a future wasm build, but isn't the primary-production candidate). The `python` antlr4 visitor is intentionally-excluded from `--oracle` / `--candidate` — it's order-of-magnitude-slower and useless for the tight diagnose-then-fix loop the grind is-built for.+production candidate).Distinct from the pytest PBT in five ways:@@ -216,7 +213,6 @@ def main() -> int:"so the match denominator is exactly --n."),)- # `python` excluded — too slow for the diagnose-then-fix loop (see module docstring)._BACKENDS = ("cpp-json", "rust-json", "rust-py")parser.add_argument("--oracle",diff --git a/posthog/hogql/test/_test_parse_string.py b/posthog/hogql/test/_test_parse_string.pyindex 7c7ece2f8706..dd3b0cbc66ba 100644--- a/posthog/hogql/test/_test_parse_string.py+++ b/posthog/hogql/test/_test_parse_string.py@@ -7,17 +7,10 @@ from hogql_parser_rs import parse_string_literal_text as parse_string_rustfrom posthog.hogql.constants import HogQLParserBackendfrom posthog.hogql.errors import SyntaxError-from posthog.hogql.parse_string import parse_string_literal_text as parse_string_pydef parse_string_test_factory(backend: HogQLParserBackend):- parse_string: Callable[[str], str]- if backend == "python":- parse_string = parse_string_py- elif backend.startswith("rust"):- parse_string = parse_string_rust- else:- parse_string = parse_string_cpp+ parse_string: Callable[[str], str] = parse_string_rust if backend.startswith("rust") else parse_string_cppclass TestParseString(BaseTest):def test_quote_types(self):diff --git a/posthog/hogql/test/_test_parser.py b/posthog/hogql/test/_test_parser.pyindex 41283bddfe3b..6f9c6e583f60 100644--- a/posthog/hogql/test/_test_parser.py+++ b/posthog/hogql/test/_test_parser.py@@ -51,9 +51,9 @@ from posthog.hogql.visitor import clear_locationsclass _SharedParserSnapshotExtension(AmberSnapshotExtension):"""One shared `.ambr` across all backend subclasses, keyed by test-method name only.- Every backend (cpp-json / python / rust-json / rust-py) must construct the identical+ Every backend (cpp-json / rust-json / rust-py) must construct the identicalAST — including source positions — so there is exactly one expected snapshot per- assertion, recorded once and asserted by all four. Default syrupy would key by class+ assertion, recorded once and asserted by all three. Default syrupy would key by class(`TestParserCppJson` vs `TestParserRustJson`) and write a `.ambr` per test file."""@@ -94,7 +94,7 @@ def _snapshot_key(src: str) -> str:def parser_test_factory(backend: HogQLParserBackend):- base_classes = (BaseTest,) if backend == "python" else (MemoryLeakTestMixin, BaseTest)+ base_classes = (MemoryLeakTestMixin, BaseTest)class TestParser(*base_classes): # type: ignoreMEMORY_INCREASE_PER_PARSE_LIMIT_B = 10_000@@ -114,8 +114,6 @@ def parser_test_factory(backend: HogQLParserBackend):# Parse `src` on this backend and check it against the shared cross-backend snapshot.# cpp-json / rust-json / rust-py assert the FULL positioned AST (one recorded `.ambr`# entry per source — positions verified, cpp regressions caught, no live self-compare).- # python is the legacy backend and not a position-parity target, so it only verifies- # STRUCTURE against the live cpp parse (clear_locations) — no position-divergence noise.parse_fn = {"expr": parse_expr,"select": parse_select,@@ -128,16 +126,11 @@ def parser_test_factory(backend: HogQLParserBackend):kwargs["placeholders"] = placeholders# Parse on every rerun so the leak mixin still exercises the parser 102x and a real# per-parse leak is caught. Only COMPARE on the first run: syrupy / pretty_dataclasses- # / the cpp oracle parse allocate per call, so comparing on every rerun would trip the- # leak check with test-machinery growth that isn't a parser leak.+ # allocate per call, so comparing on every rerun would trip the leak check with+ # test-machinery growth that isn't a parser leak.parsed = parse_fn(src, **kwargs)- # python has no leak mixin (runs once), so the attr is absent → treat as run 0.if getattr(self, "_memory_leak_run_index", 0) != 0:return- if backend == "python":- oracle_kwargs = {**kwargs, "backend": "cpp-json"}- assert clear_locations(parsed) == clear_locations(parse_fn(src, **oracle_kwargs))- returnif not hasattr(self, "_shared_ast_snapshot"):self._shared_ast_snapshot = self.snapshot.use_extension(_SharedParserSnapshotExtension)assert pretty_dataclasses(parsed) == self._shared_ast_snapshot(name=_snapshot_key(src))@@ -185,8 +178,7 @@ def parser_test_factory(backend: HogQLParserBackend):("hex_negative", "-0x1F", -31),("hex_positive_sign", "+0x1F", 31),# Hex digits include 'e' — must be dispatched before the float guard,- # or "0xfe" routes through float()/stod and either raises (Python)- # or silently returns a double (C++) instead of an int64.+ # or "0xfe" is misparsed as a float (a double) instead of an int64.("hex_with_e_digit", "0xfe", 254),("hex_negative_with_e_digit", "-0xae", -174),# Near 2^60 the double mantissa is 8 bits short, so a stod-based hex parse rounds wrong.@@ -2535,7 +2527,7 @@ def parser_test_factory(backend: HogQLParserBackend):)def test_select_set_level_limit_offset_divergences(self):- # Set-level LIMIT/OFFSET on a SelectSetQuery initial query — Python dropped both. C++ was already correct.+ # Set-level LIMIT/OFFSET on a SelectSetQuery initial query must land on the set query, not be dropped.parsed = self._select("((select 1) intersect (select 2)) limit 3, 4")assert isinstance(parsed, ast.SelectSetQuery)self.assertEqual(parsed.limit, ast.Constant(value=3))@@ -2919,7 +2911,7 @@ def parser_test_factory(backend: HogQLParserBackend):self.assertIn("synthetic post_init failure", str(caught.exception))def test_deeply_nested_input_does_not_stack_overflow(self):- # Deeply-nested input must surface a clean `SyntaxError`, not a host stack overflow (an uncatchable SIGSEGV) in the recursive-descent loop. One shared counter caps all three recursion dimensions — expression nesting, subquery / set nesting, and Hog statement / block nesting — at `MAX_RECURSION_DEPTH = 1000`, mirroring ClickHouse's `max_parser_depth`. cpp / python have their own stack characteristics so the assertion is rust-specific. Which guard fires (and so the exact message) depends on how the input routes through the descent, hence the loose substring check.+ # Deeply-nested input must surface a clean `SyntaxError`, not a host stack overflow (an uncatchable SIGSEGV) in the recursive-descent loop. One shared counter caps all three recursion dimensions — expression nesting, subquery / set nesting, and Hog statement / block nesting — at `MAX_RECURSION_DEPTH = 1000`, mirroring ClickHouse's `max_parser_depth`. cpp has its own stack characteristics so the assertion is rust-specific. Which guard fires (and so the exact message) depends on how the input routes through the descent, hence the loose substring check.if backend not in ("rust-json", "rust-py"):self.skipTest("rust-specific recursion cap")parse_fns = {"expr": parse_expr, "select": parse_select, "program": parse_program}@@ -3420,7 +3412,7 @@ def parser_test_factory(backend: HogQLParserBackend):self.assertEqual(tag, ast.HogQLXTag(kind="em", attributes=[]))def test_return_hogqlx_tag_value(self):- # `return <Tag/>` is a returnStmt whose value is a HogQLX tag, not the `<` less-than operator binding `return` as a Field. The rust parser's return-guard read the following `<` as less-than and rejected the tag while cpp and python accept it; bare `<Tag/>` and `let x := <Tag/>` already worked, so only the return-value position needed the fix (`execute_hog` wraps a bare expression as `return <expr>;`, which is how this surfaced).+ # `return <Tag/>` is a returnStmt whose value is a HogQLX tag, not the `<` less-than operator binding `return` as a Field. The rust parser's return-guard read the following `<` as less-than and rejected the tag while cpp accepts it; bare `<Tag/>` and `let x := <Tag/>` already worked, so only the return-value position needed the fix (`execute_hog` wraps a bare expression as `return <expr>;`, which is how this surfaced).prog = cast(ast.Program, self._program("return <Sparkline />"))stmt = cast(ast.ReturnStatement, prog.declarations[0])self.assertIsInstance(stmt, ast.ReturnStatement)@@ -7746,14 +7738,11 @@ def parser_test_factory(backend: HogQLParserBackend):self.assertEqual(self._expr(r"f'\é'"), ast.Constant(value=""))self.assertEqual(self._expr(r"f'\😀z'"), ast.Constant(value="z"))self.assertEqual(self._expr(r"f'\éxyz'"), ast.Constant(value="xyz"))- # Full position parity against cpp for the position-carrying backends; python spans f-strings over the whole token, so it only checks structure.+ # Full position parity against cpp for the position-carrying backends.for src in (r"f'\é'", r"f'\éxyz'", r"f'\😀z'", r"f'ab\écd'", r"f'\é{1}\😀'"):expected = parse_expr(src, backend="cpp-json")actual = parse_expr(src, backend=backend)- if backend == "python":- self.assertEqual(clear_locations(actual), clear_locations(expected), msg=src)- else:- self.assertEqual(actual, expected, msg=src)+ self.assertEqual(actual, expected, msg=src)def test_interpolate_expr_carries_positions(self):# The INTERPOLATE item node (InterpolateExpr) was built without a position@@ -7997,9 +7986,7 @@ def parser_test_factory(backend: HogQLParserBackend):msg=query,)# Guard: a bad inner string with a SINGLE trailing unit has no- # value-expr escape hatch, so it rejects when VISITED. (The empty- # `''` single-unit form is left out — the legacy python backend- # surfaces it as a bare ValueError, an unrelated pre-existing quirk.)+ # value-expr escape hatch, so it rejects when VISITED.with self.assertRaises((BaseHogQLError, SyntaxError), msg="interval interval 'bm ' day"):parse_expr("interval interval 'bm ' day", backend=backend)@@ -8163,14 +8150,6 @@ def parser_test_factory(backend: HogQLParserBackend):# never visits it, so DATE/TIMESTAMP/INTERVAL string literals and# ColumnTypeExprEnum cast types accept; aggregate FILTER (no OVER)# visits and rejects them. Pin both arms of the cpp/rust boundary.- # python is excluded: its visitor visits the window-FILTER body- # (diverging from cpp) and has a pre-existing `interval ''` crash- # (`text.split(" ")` ValueError), neither of which this rust-parity- # test is about.- if backend == "python":- self.skipTest(- "python visits the window-FILTER body and pre-existing interval-'' crash; cpp/rust are the parity targets"- )for query in ("f() FILTER (WHERE date '') OVER w","f() FILTER (WHERE timestamp '') OVER w",diff --git a/posthog/hogql/test/test_parse_string_cpp.py b/posthog/hogql/test/test_parse_string_cpp.pyindex f5b31f799d83..6d572551b7c4 100644--- a/posthog/hogql/test/test_parse_string_cpp.py+++ b/posthog/hogql/test/test_parse_string_cpp.py@@ -1,5 +1,5 @@from ._test_parse_string import parse_string_test_factory-class TestParseStringPython(parse_string_test_factory("cpp")): # type: ignore+class TestParseStringCpp(parse_string_test_factory("cpp-json")): # type: ignorepassdiff --git a/posthog/hogql/test/test_parse_string_python.py b/posthog/hogql/test/test_parse_string_python.pydeleted file mode 100644index 0b61bbe383f5..000000000000--- a/posthog/hogql/test/test_parse_string_python.py+++ /dev/null@@ -1,5 +0,0 @@-from ._test_parse_string import parse_string_test_factory---class TestParseStringPython(parse_string_test_factory("python")): # type: ignore- passdiff --git a/posthog/hogql/test/test_parse_string_rust.py b/posthog/hogql/test/test_parse_string_rust.pyindex d72ce0d146c5..6d15cbc331a0 100644--- a/posthog/hogql/test/test_parse_string_rust.py+++ b/posthog/hogql/test/test_parse_string_rust.py@@ -12,7 +12,7 @@ class TestParseStringRust(parse_string_test_factory("rust-json")): # type: ignoclass TestParseStringRustEmptyInput(TestCase):- # Empty input can't go in the shared factory: cpp's wheel aborts the process on "", python raises SyntaxError.+ # Empty input can't go in the shared factory: cpp's wheel aborts the process on "", while rust raises ParsingError.def test_empty_input_raises_parsing_error(self):with self.assertRaises(ParsingError):parse_string_literal_text("")diff --git a/posthog/hogql/test/test_parser_grammar_pbt.py b/posthog/hogql/test/test_parser_grammar_pbt.pyindex dc96e8e522f4..c3406e718487 100644--- a/posthog/hogql/test/test_parser_grammar_pbt.py+++ b/posthog/hogql/test/test_parser_grammar_pbt.py@@ -18,12 +18,11 @@ Contract — **bidirectional parity** between the two backends:3. If one accepts and the other rejects → test fails: the twobackends must agree on the accepted grammar surface.-The comparison is between the Python parser (the original reference-implementation, an ANTLR4-generated parser + a parse-tree visitor in-``HogQLParseTreeConverter``) and the C++ parser (a hand-ported visitor-over the same ANTLR4-generated parser, exposed to Python via the-``hogql_parser`` wheel). Both consume the same ``.g4`` grammar; AST-divergences here are visitor-implementation bugs in one of them.+The comparison is between the rust parser (``rust-py``, the production+default, a hand-written recursive-descent parser exposed via the+``hogql_parser_rs`` wheel) and the C++ parser (the reference oracle, a+hand-ported ANTLR4 visitor exposed via the ``hogql_parser`` wheel). AST+divergences here are parser-implementation bugs in one of them.Opt-in via ``RUN_PBT=1`` — the grind is slow and intended for offlineaudit runs rather than every CI build.@@ -511,11 +510,10 @@ def _apply_grammar_mutation(query: str) -> st.SearchStrategy[str]:# Differential parsing harness# ----------------------------------------------------------------------------# The two backends under comparison. Both implement the same `.g4`-# grammar — the Python one via an ANTLR4-generated parser + a-# HogQLParseTreeConverter visitor, the C++ one via a hand-ported-# visitor exposed through the `hogql_parser` wheel.-_BACKEND_A = "python"+# The two backends under comparison: the rust parser (`rust-py`, the+# production default) against the C++ parser (the reference oracle,+# exposed through the `hogql_parser` wheel).+_BACKEND_A = "rust-py"_BACKEND_B = "cpp-json"diff --git a/posthog/hogql/test/test_parser_python.py b/posthog/hogql/test/test_parser_python.pydeleted file mode 100644index b8d2eec14ccc..000000000000--- a/posthog/hogql/test/test_parser_python.py+++ /dev/null@@ -1,41 +0,0 @@-from ._test_parser import parser_test_factory--# The legacy pure-Python parser does not match the C++ oracle on these-# cpp-parity edge cases (source positions, a few accept/reject calls, and the-# Dict.items list-vs-tuple representation that the direct-construction path-# below also hits). They live on the shared base so cpp-json / rust-json /-# rust-py verify agreement; Python is deferred per case rather than fixed,-# since it is the legacy backend and parity here was driven through the C++-# and Rust parsers.-_DEFERRED: set[str] = {- "test_bare_star_decorator_splits_at_statement_boundary",- "test_between_parenthesized_group_high",- "test_between_span_includes_parenthesized_high_closing_paren",- "test_between_split_synthetic_node_positions",- "test_block_then_empty_param_lambda_is_two_statements",- "test_date_literal_tolerated_in_discarded_set_decorators",- "test_empty_fstring_constant_spans_whole_token",- "test_from_trailing_comma_only_after_join_constraint",- "test_in_cohort_marker_only_before_a_complete_value",- "test_interval_combined_string_validates_count_and_unit",- "test_interval_string_without_unit_tolerated_in_unvisited_clause",- "test_interval_without_unit_does_not_over_commit",- "test_invalid_interval_in_block_body_rejected",- "test_lambda_keyword_is_a_plain_alias_after_as",- "test_leading_comma_from_implicit_alias_dangling_clause",- "test_nested_interval_reserves_unit_for_outer",- "test_not_and_modulo_accept_hogqlx_tag_operand",- "test_return_empty_parens_is_a_call",- "test_select_distinct_reread_as_column_when_no_value_follows",- "test_select_from_keyword_table_vs_invalid_from_column",- "test_stacked_table_alias_span_ends_at_first_alias",- "test_statement_leading_brace_block_vs_call",- "test_wrapped_columns_replace_span_excludes_outer_parens",-}---class TestParserPython(parser_test_factory("python")): # type: ignore- def setUp(self) -> None:- super().setUp()- if self._testMethodName in _DEFERRED:- self.skipTest("legacy python parser does not match the C++ oracle on this case")diff --git a/pyproject.toml b/pyproject.tomlindex 3b9f4d986bd5..9b82644a3e6f 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -14,7 +14,6 @@ dependencies = ["aiohttp==3.13.5","aiokafka~=0.12.0","anthropic==0.80.0",- "antlr4-python3-runtime==4.13.1","asyncstdlib==3.13.1","beautifulsoup4==4.12.3","boto3==1.40.49",diff --git a/rust/hogql/parser/README.md b/rust/hogql/parser/README.mdindex 302d2c452e2f..cd180b223cb5 100644--- a/rust/hogql/parser/README.md+++ b/rust/hogql/parser/README.md@@ -155,7 +155,7 @@ long-running, agent-friendly part.1. **Update [`HogQLLexer.*.g4`](../../../posthog/hogql/grammar/) and[`HogQLParser.g4`](../../../posthog/hogql/grammar/HogQLParser.g4).**- Run `pnpm grammar:build` to regenerate the Python and C++ ANTLR+ Run `pnpm grammar:build` to regenerate the C++ ANTLRartefacts:```bash@@ -165,9 +165,9 @@ long-running, agent-friendly part.That step requires the `antlr` 4.13.2 binary on `PATH`;instructions in[`posthog/hogql/grammar/README.md`](../../../posthog/hogql/grammar/README.md).- The script rewrites `common/hogql_parser/HogQL{Lexer,Parser}.{cpp,h,interp,tokens}`- and the matching Python files. Both backends now recognise the- new shape.+ The script rewrites `common/hogql_parser/HogQL{Lexer,Parser}.{cpp,h,interp,tokens}`.+ The C++ parser now recognises the new shape (the Rust parser is+ hand-written, so update it to match in the steps below).2. **Pick the AST emission.** Decide what JSON the cpp visitor shouldreturn for the new shape. Either reuse an existing AST node or add@@ -187,7 +187,7 @@ long-running, agent-friendly part.`parser_test_factory` suite in[`posthog/hogql/test/_test_parser.py`](../../../posthog/hogql/test/_test_parser.py).The factory runs every test against `cpp-json`, `rust-json`, and- `python`; on a fresh grammar change the test passes on cpp and+ `rust-py`; on a fresh grammar change the test passes on cpp andfails on rust. That fail is the starting state for the parityloop.@@ -271,8 +271,8 @@ read.```bashhogli test posthog/hogql/test/test_parser_cpp_json.py-hogli test posthog/hogql/test/test_parser_python.pyhogli test posthog/hogql/test/test_parser_rust_json.py+hogli test posthog/hogql/test/test_parser_rust_py.py```The behaviour suite + regression pins live in@@ -468,5 +468,5 @@ Backends live in `posthog/hogql/constants.HogQLParserBackend`:| ------------------------- | ------------------------------------------------------------------------------ || `cpp-json` | Production default. ANTLR-based, oracle for everything below. || `rust-json` | This crate. ~15× / ~50× faster, behaviour identical (modulo the long tail). |-| `python` | Pure-Python ANTLR fallback. Slower; useful for debugging visitor changes. |-| `cpp-with-rust-shadow` | Production-default in TEST. Parses with cpp, shadow-parses with rust, raises on mismatch (TEST) / logs at 1% sample (prod). |+| `rust-py` | This crate, returning `posthog.hogql.ast` dataclasses directly via PyO3 (no JSON round-trip). Production primary. |+| `cpp-with-rust-shadow` | Parses with cpp, shadow-parses with rust, raises on mismatch (TEST) / logs at 1% sample (prod). |diff --git a/tools/hogli-commands/hogli_commands/devbox/mutagen_defaults.yml b/tools/hogli-commands/hogli_commands/devbox/mutagen_defaults.ymlindex 278d541bd2f7..a36a2b3b12e4 100644--- a/tools/hogli-commands/hogli_commands/devbox/mutagen_defaults.yml+++ b/tools/hogli-commands/hogli_commands/devbox/mutagen_defaults.yml@@ -34,14 +34,6 @@ sync:- 'rust/target'- 'funnel-udf/target'- # Generated source (don't round-trip).- - 'posthog/hogql/grammar/HogQLLexer.py'- - 'posthog/hogql/grammar/HogQLLexer.interp'- - 'posthog/hogql/grammar/HogQLLexer.tokens'- - 'posthog/hogql/grammar/HogQLParser.py'- - 'posthog/hogql/grammar/HogQLParser.interp'- - 'posthog/hogql/grammar/HogQLParser.tokens'- - 'posthog/hogql/grammar/HogQLParserVisitor.py'# NB: don't ignore all of `common/hogql_parser` -- it holds# hand-maintained C++ sources (error.cpp, parser_python.cpp,# CMakeLists.txt...) that must sync. Its build outputs are caughtdiff --git a/uv.lock b/uv.lockindex 47d0f7aaae09..98250eaf2778 100644--- a/uv.lock+++ b/uv.lock@@ -5508,7 +5508,6 @@ dependencies = [{ name = "aiohttp" },{ name = "aiokafka" },{ name = "anthropic" },- { name = "antlr4-python3-runtime" },{ name = "asgiref" },{ name = "asyncstdlib" },{ name = "azure-ai-inference" },@@ -5783,7 +5782,6 @@ requires-dist = [{ name = "aiohttp", specifier = "==3.13.5" },{ name = "aiokafka", specifier = "~=0.12.0" },{ name = "anthropic", specifier = "==0.80.0" },- { name = "antlr4-python3-runtime", specifier = "==4.13.1" },{ name = "asgiref", specifier = "==3.11.0" },{ name = "asyncstdlib", specifier = "==3.13.1" },{ name = "azure-ai-inference", specifier = "~=1.0.0b9" },