diff --git a/x-pack/plugin/esql/build.gradle b/x-pack/plugin/esql/build.gradle index 35cb38fb7a3bf..99e19a98dd031 100644 --- a/x-pack/plugin/esql/build.gradle +++ b/x-pack/plugin/esql/build.gradle @@ -223,8 +223,9 @@ tasks.register("regenParser", JavaExec) { '-package', 'org.elasticsearch.xpack.esql.parser', '-listener', '-visitor', - '-o', outputPath, '-lib', outputPath, + '-lib', "${file(grammarPath)}/parser", + '-o', outputPath, "${file(grammarPath)}/EsqlBaseParser.g4" } diff --git a/x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4 b/x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4 index 3e30dd0cb4a04..0668ea3b99e24 100644 --- a/x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4 +++ b/x-pack/plugin/esql/src/main/antlr/EsqlBaseParser.g4 @@ -20,6 +20,9 @@ options { tokenVocab=EsqlBaseLexer; } +import Expression, + Join; + singleStatement : query EOF ; @@ -62,62 +65,6 @@ whereCommand : WHERE booleanExpression ; -booleanExpression - : NOT booleanExpression #logicalNot - | valueExpression #booleanDefault - | regexBooleanExpression #regexExpression - | left=booleanExpression operator=AND right=booleanExpression #logicalBinary - | left=booleanExpression operator=OR right=booleanExpression #logicalBinary - | valueExpression (NOT)? IN LP valueExpression (COMMA valueExpression)* RP #logicalIn - | valueExpression IS NOT? NULL #isNull - | matchBooleanExpression #matchExpression - ; - -regexBooleanExpression - : valueExpression (NOT)? kind=LIKE pattern=string - | valueExpression (NOT)? kind=RLIKE pattern=string - ; - -matchBooleanExpression - : fieldExp=qualifiedName (CAST_OP fieldType=dataType)? COLON matchQuery=constant - ; - -valueExpression - : operatorExpression #valueExpressionDefault - | left=operatorExpression comparisonOperator right=operatorExpression #comparison - ; - -operatorExpression - : primaryExpression #operatorExpressionDefault - | operator=(MINUS | PLUS) operatorExpression #arithmeticUnary - | left=operatorExpression operator=(ASTERISK | SLASH | PERCENT) right=operatorExpression #arithmeticBinary - | left=operatorExpression operator=(PLUS | MINUS) right=operatorExpression #arithmeticBinary - ; - -primaryExpression - : constant #constantDefault - | qualifiedName #dereference - | functionExpression #function - | LP booleanExpression RP #parenthesizedExpression - | primaryExpression CAST_OP dataType #inlineCast - ; - -functionExpression - : functionName LP (ASTERISK | (booleanExpression (COMMA booleanExpression)* (COMMA mapExpression)?))? RP - ; - -functionName - : identifierOrParameter - ; - -mapExpression - : LEFT_BRACES entryExpression (COMMA entryExpression)* RIGHT_BRACES - ; - -entryExpression - : key=string COLON value=constant - ; - dataType : identifier #toDataType ; @@ -198,19 +145,6 @@ identifierPattern | parameter ; -constant - : NULL #nullLiteral - | integerValue UNQUOTED_IDENTIFIER #qualifiedIntegerLiteral - | decimalValue #decimalLiteral - | integerValue #integerLiteral - | booleanValue #booleanLiteral - | parameter #inputParameter - | string #stringLiteral - | OPENING_BRACKET numericValue (COMMA numericValue)* CLOSING_BRACKET #numericArrayLiteral - | OPENING_BRACKET booleanValue (COMMA booleanValue)* CLOSING_BRACKET #booleanArrayLiteral - | OPENING_BRACKET string (COMMA string)* CLOSING_BRACKET #stringArrayLiteral - ; - parameter : PARAM #inputParam | NAMED_OR_POSITIONAL_PARAM #inputNamedOrPositionalParam @@ -269,31 +203,6 @@ commandOption : identifier ASSIGN constant ; -booleanValue - : TRUE | FALSE - ; - -numericValue - : decimalValue - | integerValue - ; - -decimalValue - : (PLUS | MINUS)? DECIMAL_LITERAL - ; - -integerValue - : (PLUS | MINUS)? INTEGER_LITERAL - ; - -string - : QUOTED_STRING - ; - -comparisonOperator - : EQ | NEQ | LT | LTE | GT | GTE - ; - explainCommand : EXPLAIN subqueryExpression ; @@ -325,22 +234,6 @@ inlinestatsCommand : DEV_INLINESTATS stats=aggFields (BY grouping=fields)? ; -joinCommand - : type=(JOIN_LOOKUP | DEV_JOIN_LEFT | DEV_JOIN_RIGHT) JOIN joinTarget joinCondition - ; - -joinTarget - : index=indexPattern - ; - -joinCondition - : ON joinPredicate (COMMA joinPredicate)* - ; - -joinPredicate - : valueExpression - ; - changePointCommand : DEV_CHANGE_POINT value=qualifiedName (ON key=qualifiedName)? (AS targetType=qualifiedName COMMA targetPvalue=qualifiedName)? ; diff --git a/x-pack/plugin/esql/src/main/antlr/parser/Expression.g4 b/x-pack/plugin/esql/src/main/antlr/parser/Expression.g4 new file mode 100644 index 0000000000000..0ab967ec4abf3 --- /dev/null +++ b/x-pack/plugin/esql/src/main/antlr/parser/Expression.g4 @@ -0,0 +1,101 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +parser grammar Expression; + +booleanExpression + : NOT booleanExpression #logicalNot + | valueExpression #booleanDefault + | regexBooleanExpression #regexExpression + | left=booleanExpression operator=AND right=booleanExpression #logicalBinary + | left=booleanExpression operator=OR right=booleanExpression #logicalBinary + | valueExpression (NOT)? IN LP valueExpression (COMMA valueExpression)* RP #logicalIn + | valueExpression IS NOT? NULL #isNull + | matchBooleanExpression #matchExpression + ; + +regexBooleanExpression + : valueExpression (NOT)? kind=LIKE pattern=string + | valueExpression (NOT)? kind=RLIKE pattern=string + ; + +matchBooleanExpression + : fieldExp=qualifiedName (CAST_OP fieldType=dataType)? COLON matchQuery=constant + ; + +valueExpression + : operatorExpression #valueExpressionDefault + | left=operatorExpression comparisonOperator right=operatorExpression #comparison + ; + +operatorExpression + : primaryExpression #operatorExpressionDefault + | operator=(MINUS | PLUS) operatorExpression #arithmeticUnary + | left=operatorExpression operator=(ASTERISK | SLASH | PERCENT) right=operatorExpression #arithmeticBinary + | left=operatorExpression operator=(PLUS | MINUS) right=operatorExpression #arithmeticBinary + ; + +primaryExpression + : constant #constantDefault + | qualifiedName #dereference + | functionExpression #function + | LP booleanExpression RP #parenthesizedExpression + | primaryExpression CAST_OP dataType #inlineCast + ; + +functionExpression + : functionName LP (ASTERISK | (booleanExpression (COMMA booleanExpression)* (COMMA mapExpression)?))? RP + ; + +functionName + : identifierOrParameter + ; + +mapExpression + : LEFT_BRACES entryExpression (COMMA entryExpression)* RIGHT_BRACES + ; + +entryExpression + : key=string COLON value=constant + ; + +constant + : NULL #nullLiteral + | integerValue UNQUOTED_IDENTIFIER #qualifiedIntegerLiteral + | decimalValue #decimalLiteral + | integerValue #integerLiteral + | booleanValue #booleanLiteral + | parameter #inputParameter + | string #stringLiteral + | OPENING_BRACKET numericValue (COMMA numericValue)* CLOSING_BRACKET #numericArrayLiteral + | OPENING_BRACKET booleanValue (COMMA booleanValue)* CLOSING_BRACKET #booleanArrayLiteral + | OPENING_BRACKET string (COMMA string)* CLOSING_BRACKET #stringArrayLiteral + ; + +booleanValue + : TRUE | FALSE + ; + +numericValue + : decimalValue + | integerValue + ; + +decimalValue + : (PLUS | MINUS)? DECIMAL_LITERAL + ; + +integerValue + : (PLUS | MINUS)? INTEGER_LITERAL + ; + +string + : QUOTED_STRING + ; + +comparisonOperator + : EQ | NEQ | LT | LTE | GT | GTE + ; diff --git a/x-pack/plugin/esql/src/main/antlr/parser/Join.g4 b/x-pack/plugin/esql/src/main/antlr/parser/Join.g4 new file mode 100644 index 0000000000000..834534f1a7d6a --- /dev/null +++ b/x-pack/plugin/esql/src/main/antlr/parser/Join.g4 @@ -0,0 +1,25 @@ +/* + * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one + * or more contributor license agreements. Licensed under the Elastic License + * 2.0; you may not use this file except in compliance with the Elastic License + * 2.0. + */ +parser grammar Join; + +joinCommand + : type=(JOIN_LOOKUP | DEV_JOIN_LEFT | DEV_JOIN_RIGHT) JOIN joinTarget joinCondition + ; + +joinTarget + : index=indexPattern + ; + +joinCondition + : ON joinPredicate (COMMA joinPredicate)* + ; + +joinPredicate + : valueExpression + ; + + diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp index 0e497499ff1e8..793375cebb644 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.interp @@ -278,16 +278,6 @@ query sourceCommand processingCommand whereCommand -booleanExpression -regexBooleanExpression -matchBooleanExpression -valueExpression -operatorExpression -primaryExpression -functionExpression -functionName -mapExpression -entryExpression dataType rowCommand fields @@ -307,7 +297,6 @@ qualifiedNamePattern qualifiedNamePatterns identifier identifierPattern -constant parameter identifierOrParameter limitCommand @@ -322,12 +311,6 @@ grokCommand mvExpandCommand commandOptions commandOption -booleanValue -numericValue -decimalValue -integerValue -string -comparisonOperator explainCommand subqueryExpression showCommand @@ -335,12 +318,29 @@ enrichCommand enrichWithClause lookupCommand inlinestatsCommand +changePointCommand +booleanExpression +regexBooleanExpression +matchBooleanExpression +valueExpression +operatorExpression +primaryExpression +functionExpression +functionName +mapExpression +entryExpression +constant +booleanValue +numericValue +decimalValue +integerValue +string +comparisonOperator joinCommand joinTarget joinCondition joinPredicate -changePointCommand atn: -[4, 1, 134, 659, 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, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 144, 8, 1, 10, 1, 12, 1, 147, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 155, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 176, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 188, 8, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 195, 8, 5, 10, 5, 12, 5, 198, 9, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 3, 5, 205, 8, 5, 1, 5, 1, 5, 1, 5, 3, 5, 210, 8, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 1, 5, 5, 5, 218, 8, 5, 10, 5, 12, 5, 221, 9, 5, 1, 6, 1, 6, 3, 6, 225, 8, 6, 1, 6, 1, 6, 1, 6, 1, 6, 1, 6, 3, 6, 232, 8, 6, 1, 6, 1, 6, 1, 6, 3, 6, 237, 8, 6, 1, 7, 1, 7, 1, 7, 3, 7, 242, 8, 7, 1, 7, 1, 7, 1, 7, 1, 8, 1, 8, 1, 8, 1, 8, 1, 8, 3, 8, 252, 8, 8, 1, 9, 1, 9, 1, 9, 1, 9, 3, 9, 258, 8, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 266, 8, 9, 10, 9, 12, 9, 269, 9, 9, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 1, 10, 3, 10, 279, 8, 10, 1, 10, 1, 10, 1, 10, 5, 10, 284, 8, 10, 10, 10, 12, 10, 287, 9, 10, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 1, 11, 5, 11, 295, 8, 11, 10, 11, 12, 11, 298, 9, 11, 1, 11, 1, 11, 3, 11, 302, 8, 11, 3, 11, 304, 8, 11, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 314, 8, 13, 10, 13, 12, 13, 317, 9, 13, 1, 13, 1, 13, 1, 14, 1, 14, 1, 14, 1, 14, 1, 15, 1, 15, 1, 16, 1, 16, 1, 16, 1, 17, 1, 17, 1, 17, 5, 17, 333, 8, 17, 10, 17, 12, 17, 336, 9, 17, 1, 18, 1, 18, 1, 18, 3, 18, 341, 8, 18, 1, 18, 1, 18, 1, 19, 1, 19, 1, 19, 1, 19, 5, 19, 349, 8, 19, 10, 19, 12, 19, 352, 9, 19, 1, 19, 3, 19, 355, 8, 19, 1, 20, 1, 20, 1, 20, 3, 20, 360, 8, 20, 1, 20, 1, 20, 1, 21, 1, 21, 1, 22, 1, 22, 1, 23, 1, 23, 1, 23, 1, 23, 5, 23, 372, 8, 23, 10, 23, 12, 23, 375, 9, 23, 1, 24, 1, 24, 1, 24, 1, 24, 5, 24, 381, 8, 24, 10, 24, 12, 24, 384, 9, 24, 1, 24, 3, 24, 387, 8, 24, 1, 24, 1, 24, 3, 24, 391, 8, 24, 1, 25, 1, 25, 1, 25, 1, 26, 1, 26, 3, 26, 398, 8, 26, 1, 26, 1, 26, 3, 26, 402, 8, 26, 1, 27, 1, 27, 1, 27, 5, 27, 407, 8, 27, 10, 27, 12, 27, 410, 9, 27, 1, 28, 1, 28, 1, 28, 3, 28, 415, 8, 28, 1, 29, 1, 29, 1, 29, 5, 29, 420, 8, 29, 10, 29, 12, 29, 423, 9, 29, 1, 30, 1, 30, 1, 30, 5, 30, 428, 8, 30, 10, 30, 12, 30, 431, 9, 30, 1, 31, 1, 31, 1, 31, 5, 31, 436, 8, 31, 10, 31, 12, 31, 439, 9, 31, 1, 32, 1, 32, 1, 33, 1, 33, 3, 33, 445, 8, 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, 5, 34, 460, 8, 34, 10, 34, 12, 34, 463, 9, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 5, 34, 471, 8, 34, 10, 34, 12, 34, 474, 9, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 1, 34, 5, 34, 482, 8, 34, 10, 34, 12, 34, 485, 9, 34, 1, 34, 1, 34, 3, 34, 489, 8, 34, 1, 35, 1, 35, 3, 35, 493, 8, 35, 1, 36, 1, 36, 3, 36, 497, 8, 36, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 38, 5, 38, 506, 8, 38, 10, 38, 12, 38, 509, 9, 38, 1, 39, 1, 39, 3, 39, 513, 8, 39, 1, 39, 1, 39, 3, 39, 517, 8, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 42, 1, 42, 1, 42, 1, 42, 5, 42, 529, 8, 42, 10, 42, 12, 42, 532, 9, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 542, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 1, 46, 1, 46, 1, 46, 1, 47, 1, 47, 1, 47, 5, 47, 554, 8, 47, 10, 47, 12, 47, 557, 9, 47, 1, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 50, 1, 50, 3, 50, 567, 8, 50, 1, 51, 3, 51, 570, 8, 51, 1, 51, 1, 51, 1, 52, 3, 52, 575, 8, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 57, 1, 57, 1, 57, 1, 58, 1, 58, 1, 58, 1, 58, 3, 58, 597, 8, 58, 1, 58, 1, 58, 1, 58, 1, 58, 5, 58, 603, 8, 58, 10, 58, 12, 58, 606, 9, 58, 3, 58, 608, 8, 58, 1, 59, 1, 59, 1, 59, 3, 59, 613, 8, 59, 1, 59, 1, 59, 1, 60, 1, 60, 1, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 61, 1, 61, 3, 61, 626, 8, 61, 1, 62, 1, 62, 1, 62, 1, 62, 1, 62, 1, 63, 1, 63, 1, 64, 1, 64, 1, 64, 1, 64, 5, 64, 639, 8, 64, 10, 64, 12, 64, 642, 9, 64, 1, 65, 1, 65, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 650, 8, 66, 1, 66, 1, 66, 1, 66, 1, 66, 1, 66, 3, 66, 657, 8, 66, 1, 66, 0, 4, 2, 10, 18, 20, 67, 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, 0, 9, 1, 0, 83, 84, 1, 0, 85, 87, 2, 0, 49, 49, 99, 99, 1, 0, 93, 94, 2, 0, 54, 54, 59, 59, 2, 0, 62, 62, 65, 65, 2, 0, 61, 61, 75, 75, 2, 0, 76, 76, 78, 82, 2, 0, 17, 17, 19, 20, 686, 0, 134, 1, 0, 0, 0, 2, 137, 1, 0, 0, 0, 4, 154, 1, 0, 0, 0, 6, 175, 1, 0, 0, 0, 8, 177, 1, 0, 0, 0, 10, 209, 1, 0, 0, 0, 12, 236, 1, 0, 0, 0, 14, 238, 1, 0, 0, 0, 16, 251, 1, 0, 0, 0, 18, 257, 1, 0, 0, 0, 20, 278, 1, 0, 0, 0, 22, 288, 1, 0, 0, 0, 24, 307, 1, 0, 0, 0, 26, 309, 1, 0, 0, 0, 28, 320, 1, 0, 0, 0, 30, 324, 1, 0, 0, 0, 32, 326, 1, 0, 0, 0, 34, 329, 1, 0, 0, 0, 36, 340, 1, 0, 0, 0, 38, 344, 1, 0, 0, 0, 40, 359, 1, 0, 0, 0, 42, 363, 1, 0, 0, 0, 44, 365, 1, 0, 0, 0, 46, 367, 1, 0, 0, 0, 48, 376, 1, 0, 0, 0, 50, 392, 1, 0, 0, 0, 52, 395, 1, 0, 0, 0, 54, 403, 1, 0, 0, 0, 56, 411, 1, 0, 0, 0, 58, 416, 1, 0, 0, 0, 60, 424, 1, 0, 0, 0, 62, 432, 1, 0, 0, 0, 64, 440, 1, 0, 0, 0, 66, 444, 1, 0, 0, 0, 68, 488, 1, 0, 0, 0, 70, 492, 1, 0, 0, 0, 72, 496, 1, 0, 0, 0, 74, 498, 1, 0, 0, 0, 76, 501, 1, 0, 0, 0, 78, 510, 1, 0, 0, 0, 80, 518, 1, 0, 0, 0, 82, 521, 1, 0, 0, 0, 84, 524, 1, 0, 0, 0, 86, 533, 1, 0, 0, 0, 88, 537, 1, 0, 0, 0, 90, 543, 1, 0, 0, 0, 92, 547, 1, 0, 0, 0, 94, 550, 1, 0, 0, 0, 96, 558, 1, 0, 0, 0, 98, 562, 1, 0, 0, 0, 100, 566, 1, 0, 0, 0, 102, 569, 1, 0, 0, 0, 104, 574, 1, 0, 0, 0, 106, 578, 1, 0, 0, 0, 108, 580, 1, 0, 0, 0, 110, 582, 1, 0, 0, 0, 112, 585, 1, 0, 0, 0, 114, 589, 1, 0, 0, 0, 116, 592, 1, 0, 0, 0, 118, 612, 1, 0, 0, 0, 120, 616, 1, 0, 0, 0, 122, 621, 1, 0, 0, 0, 124, 627, 1, 0, 0, 0, 126, 632, 1, 0, 0, 0, 128, 634, 1, 0, 0, 0, 130, 643, 1, 0, 0, 0, 132, 645, 1, 0, 0, 0, 134, 135, 3, 2, 1, 0, 135, 136, 5, 0, 0, 1, 136, 1, 1, 0, 0, 0, 137, 138, 6, 1, -1, 0, 138, 139, 3, 4, 2, 0, 139, 145, 1, 0, 0, 0, 140, 141, 10, 1, 0, 0, 141, 142, 5, 48, 0, 0, 142, 144, 3, 6, 3, 0, 143, 140, 1, 0, 0, 0, 144, 147, 1, 0, 0, 0, 145, 143, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 3, 1, 0, 0, 0, 147, 145, 1, 0, 0, 0, 148, 155, 3, 110, 55, 0, 149, 155, 3, 38, 19, 0, 150, 155, 3, 32, 16, 0, 151, 155, 3, 114, 57, 0, 152, 153, 4, 2, 1, 0, 153, 155, 3, 48, 24, 0, 154, 148, 1, 0, 0, 0, 154, 149, 1, 0, 0, 0, 154, 150, 1, 0, 0, 0, 154, 151, 1, 0, 0, 0, 154, 152, 1, 0, 0, 0, 155, 5, 1, 0, 0, 0, 156, 176, 3, 50, 25, 0, 157, 176, 3, 8, 4, 0, 158, 176, 3, 80, 40, 0, 159, 176, 3, 74, 37, 0, 160, 176, 3, 52, 26, 0, 161, 176, 3, 76, 38, 0, 162, 176, 3, 82, 41, 0, 163, 176, 3, 84, 42, 0, 164, 176, 3, 88, 44, 0, 165, 176, 3, 90, 45, 0, 166, 176, 3, 116, 58, 0, 167, 176, 3, 92, 46, 0, 168, 176, 3, 124, 62, 0, 169, 170, 4, 3, 2, 0, 170, 176, 3, 122, 61, 0, 171, 172, 4, 3, 3, 0, 172, 176, 3, 120, 60, 0, 173, 174, 4, 3, 4, 0, 174, 176, 3, 132, 66, 0, 175, 156, 1, 0, 0, 0, 175, 157, 1, 0, 0, 0, 175, 158, 1, 0, 0, 0, 175, 159, 1, 0, 0, 0, 175, 160, 1, 0, 0, 0, 175, 161, 1, 0, 0, 0, 175, 162, 1, 0, 0, 0, 175, 163, 1, 0, 0, 0, 175, 164, 1, 0, 0, 0, 175, 165, 1, 0, 0, 0, 175, 166, 1, 0, 0, 0, 175, 167, 1, 0, 0, 0, 175, 168, 1, 0, 0, 0, 175, 169, 1, 0, 0, 0, 175, 171, 1, 0, 0, 0, 175, 173, 1, 0, 0, 0, 176, 7, 1, 0, 0, 0, 177, 178, 5, 14, 0, 0, 178, 179, 3, 10, 5, 0, 179, 9, 1, 0, 0, 0, 180, 181, 6, 5, -1, 0, 181, 182, 5, 68, 0, 0, 182, 210, 3, 10, 5, 8, 183, 210, 3, 16, 8, 0, 184, 210, 3, 12, 6, 0, 185, 187, 3, 16, 8, 0, 186, 188, 5, 68, 0, 0, 187, 186, 1, 0, 0, 0, 187, 188, 1, 0, 0, 0, 188, 189, 1, 0, 0, 0, 189, 190, 5, 63, 0, 0, 190, 191, 5, 67, 0, 0, 191, 196, 3, 16, 8, 0, 192, 193, 5, 58, 0, 0, 193, 195, 3, 16, 8, 0, 194, 192, 1, 0, 0, 0, 195, 198, 1, 0, 0, 0, 196, 194, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 199, 1, 0, 0, 0, 198, 196, 1, 0, 0, 0, 199, 200, 5, 74, 0, 0, 200, 210, 1, 0, 0, 0, 201, 202, 3, 16, 8, 0, 202, 204, 5, 64, 0, 0, 203, 205, 5, 68, 0, 0, 204, 203, 1, 0, 0, 0, 204, 205, 1, 0, 0, 0, 205, 206, 1, 0, 0, 0, 206, 207, 5, 69, 0, 0, 207, 210, 1, 0, 0, 0, 208, 210, 3, 14, 7, 0, 209, 180, 1, 0, 0, 0, 209, 183, 1, 0, 0, 0, 209, 184, 1, 0, 0, 0, 209, 185, 1, 0, 0, 0, 209, 201, 1, 0, 0, 0, 209, 208, 1, 0, 0, 0, 210, 219, 1, 0, 0, 0, 211, 212, 10, 5, 0, 0, 212, 213, 5, 53, 0, 0, 213, 218, 3, 10, 5, 6, 214, 215, 10, 4, 0, 0, 215, 216, 5, 71, 0, 0, 216, 218, 3, 10, 5, 5, 217, 211, 1, 0, 0, 0, 217, 214, 1, 0, 0, 0, 218, 221, 1, 0, 0, 0, 219, 217, 1, 0, 0, 0, 219, 220, 1, 0, 0, 0, 220, 11, 1, 0, 0, 0, 221, 219, 1, 0, 0, 0, 222, 224, 3, 16, 8, 0, 223, 225, 5, 68, 0, 0, 224, 223, 1, 0, 0, 0, 224, 225, 1, 0, 0, 0, 225, 226, 1, 0, 0, 0, 226, 227, 5, 66, 0, 0, 227, 228, 3, 106, 53, 0, 228, 237, 1, 0, 0, 0, 229, 231, 3, 16, 8, 0, 230, 232, 5, 68, 0, 0, 231, 230, 1, 0, 0, 0, 231, 232, 1, 0, 0, 0, 232, 233, 1, 0, 0, 0, 233, 234, 5, 73, 0, 0, 234, 235, 3, 106, 53, 0, 235, 237, 1, 0, 0, 0, 236, 222, 1, 0, 0, 0, 236, 229, 1, 0, 0, 0, 237, 13, 1, 0, 0, 0, 238, 241, 3, 58, 29, 0, 239, 240, 5, 56, 0, 0, 240, 242, 3, 30, 15, 0, 241, 239, 1, 0, 0, 0, 241, 242, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 244, 5, 57, 0, 0, 244, 245, 3, 68, 34, 0, 245, 15, 1, 0, 0, 0, 246, 252, 3, 18, 9, 0, 247, 248, 3, 18, 9, 0, 248, 249, 3, 108, 54, 0, 249, 250, 3, 18, 9, 0, 250, 252, 1, 0, 0, 0, 251, 246, 1, 0, 0, 0, 251, 247, 1, 0, 0, 0, 252, 17, 1, 0, 0, 0, 253, 254, 6, 9, -1, 0, 254, 258, 3, 20, 10, 0, 255, 256, 7, 0, 0, 0, 256, 258, 3, 18, 9, 3, 257, 253, 1, 0, 0, 0, 257, 255, 1, 0, 0, 0, 258, 267, 1, 0, 0, 0, 259, 260, 10, 2, 0, 0, 260, 261, 7, 1, 0, 0, 261, 266, 3, 18, 9, 3, 262, 263, 10, 1, 0, 0, 263, 264, 7, 0, 0, 0, 264, 266, 3, 18, 9, 2, 265, 259, 1, 0, 0, 0, 265, 262, 1, 0, 0, 0, 266, 269, 1, 0, 0, 0, 267, 265, 1, 0, 0, 0, 267, 268, 1, 0, 0, 0, 268, 19, 1, 0, 0, 0, 269, 267, 1, 0, 0, 0, 270, 271, 6, 10, -1, 0, 271, 279, 3, 68, 34, 0, 272, 279, 3, 58, 29, 0, 273, 279, 3, 22, 11, 0, 274, 275, 5, 67, 0, 0, 275, 276, 3, 10, 5, 0, 276, 277, 5, 74, 0, 0, 277, 279, 1, 0, 0, 0, 278, 270, 1, 0, 0, 0, 278, 272, 1, 0, 0, 0, 278, 273, 1, 0, 0, 0, 278, 274, 1, 0, 0, 0, 279, 285, 1, 0, 0, 0, 280, 281, 10, 1, 0, 0, 281, 282, 5, 56, 0, 0, 282, 284, 3, 30, 15, 0, 283, 280, 1, 0, 0, 0, 284, 287, 1, 0, 0, 0, 285, 283, 1, 0, 0, 0, 285, 286, 1, 0, 0, 0, 286, 21, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 288, 289, 3, 24, 12, 0, 289, 303, 5, 67, 0, 0, 290, 304, 5, 85, 0, 0, 291, 296, 3, 10, 5, 0, 292, 293, 5, 58, 0, 0, 293, 295, 3, 10, 5, 0, 294, 292, 1, 0, 0, 0, 295, 298, 1, 0, 0, 0, 296, 294, 1, 0, 0, 0, 296, 297, 1, 0, 0, 0, 297, 301, 1, 0, 0, 0, 298, 296, 1, 0, 0, 0, 299, 300, 5, 58, 0, 0, 300, 302, 3, 26, 13, 0, 301, 299, 1, 0, 0, 0, 301, 302, 1, 0, 0, 0, 302, 304, 1, 0, 0, 0, 303, 290, 1, 0, 0, 0, 303, 291, 1, 0, 0, 0, 303, 304, 1, 0, 0, 0, 304, 305, 1, 0, 0, 0, 305, 306, 5, 74, 0, 0, 306, 23, 1, 0, 0, 0, 307, 308, 3, 72, 36, 0, 308, 25, 1, 0, 0, 0, 309, 310, 5, 88, 0, 0, 310, 315, 3, 28, 14, 0, 311, 312, 5, 58, 0, 0, 312, 314, 3, 28, 14, 0, 313, 311, 1, 0, 0, 0, 314, 317, 1, 0, 0, 0, 315, 313, 1, 0, 0, 0, 315, 316, 1, 0, 0, 0, 316, 318, 1, 0, 0, 0, 317, 315, 1, 0, 0, 0, 318, 319, 5, 89, 0, 0, 319, 27, 1, 0, 0, 0, 320, 321, 3, 106, 53, 0, 321, 322, 5, 57, 0, 0, 322, 323, 3, 68, 34, 0, 323, 29, 1, 0, 0, 0, 324, 325, 3, 64, 32, 0, 325, 31, 1, 0, 0, 0, 326, 327, 5, 11, 0, 0, 327, 328, 3, 34, 17, 0, 328, 33, 1, 0, 0, 0, 329, 334, 3, 36, 18, 0, 330, 331, 5, 58, 0, 0, 331, 333, 3, 36, 18, 0, 332, 330, 1, 0, 0, 0, 333, 336, 1, 0, 0, 0, 334, 332, 1, 0, 0, 0, 334, 335, 1, 0, 0, 0, 335, 35, 1, 0, 0, 0, 336, 334, 1, 0, 0, 0, 337, 338, 3, 58, 29, 0, 338, 339, 5, 55, 0, 0, 339, 341, 1, 0, 0, 0, 340, 337, 1, 0, 0, 0, 340, 341, 1, 0, 0, 0, 341, 342, 1, 0, 0, 0, 342, 343, 3, 10, 5, 0, 343, 37, 1, 0, 0, 0, 344, 345, 5, 16, 0, 0, 345, 350, 3, 40, 20, 0, 346, 347, 5, 58, 0, 0, 347, 349, 3, 40, 20, 0, 348, 346, 1, 0, 0, 0, 349, 352, 1, 0, 0, 0, 350, 348, 1, 0, 0, 0, 350, 351, 1, 0, 0, 0, 351, 354, 1, 0, 0, 0, 352, 350, 1, 0, 0, 0, 353, 355, 3, 46, 23, 0, 354, 353, 1, 0, 0, 0, 354, 355, 1, 0, 0, 0, 355, 39, 1, 0, 0, 0, 356, 357, 3, 42, 21, 0, 357, 358, 5, 57, 0, 0, 358, 360, 1, 0, 0, 0, 359, 356, 1, 0, 0, 0, 359, 360, 1, 0, 0, 0, 360, 361, 1, 0, 0, 0, 361, 362, 3, 44, 22, 0, 362, 41, 1, 0, 0, 0, 363, 364, 7, 2, 0, 0, 364, 43, 1, 0, 0, 0, 365, 366, 7, 2, 0, 0, 366, 45, 1, 0, 0, 0, 367, 368, 5, 98, 0, 0, 368, 373, 5, 99, 0, 0, 369, 370, 5, 58, 0, 0, 370, 372, 5, 99, 0, 0, 371, 369, 1, 0, 0, 0, 372, 375, 1, 0, 0, 0, 373, 371, 1, 0, 0, 0, 373, 374, 1, 0, 0, 0, 374, 47, 1, 0, 0, 0, 375, 373, 1, 0, 0, 0, 376, 377, 5, 22, 0, 0, 377, 382, 3, 40, 20, 0, 378, 379, 5, 58, 0, 0, 379, 381, 3, 40, 20, 0, 380, 378, 1, 0, 0, 0, 381, 384, 1, 0, 0, 0, 382, 380, 1, 0, 0, 0, 382, 383, 1, 0, 0, 0, 383, 386, 1, 0, 0, 0, 384, 382, 1, 0, 0, 0, 385, 387, 3, 54, 27, 0, 386, 385, 1, 0, 0, 0, 386, 387, 1, 0, 0, 0, 387, 390, 1, 0, 0, 0, 388, 389, 5, 52, 0, 0, 389, 391, 3, 34, 17, 0, 390, 388, 1, 0, 0, 0, 390, 391, 1, 0, 0, 0, 391, 49, 1, 0, 0, 0, 392, 393, 5, 8, 0, 0, 393, 394, 3, 34, 17, 0, 394, 51, 1, 0, 0, 0, 395, 397, 5, 13, 0, 0, 396, 398, 3, 54, 27, 0, 397, 396, 1, 0, 0, 0, 397, 398, 1, 0, 0, 0, 398, 401, 1, 0, 0, 0, 399, 400, 5, 52, 0, 0, 400, 402, 3, 34, 17, 0, 401, 399, 1, 0, 0, 0, 401, 402, 1, 0, 0, 0, 402, 53, 1, 0, 0, 0, 403, 408, 3, 56, 28, 0, 404, 405, 5, 58, 0, 0, 405, 407, 3, 56, 28, 0, 406, 404, 1, 0, 0, 0, 407, 410, 1, 0, 0, 0, 408, 406, 1, 0, 0, 0, 408, 409, 1, 0, 0, 0, 409, 55, 1, 0, 0, 0, 410, 408, 1, 0, 0, 0, 411, 414, 3, 36, 18, 0, 412, 413, 5, 14, 0, 0, 413, 415, 3, 10, 5, 0, 414, 412, 1, 0, 0, 0, 414, 415, 1, 0, 0, 0, 415, 57, 1, 0, 0, 0, 416, 421, 3, 72, 36, 0, 417, 418, 5, 60, 0, 0, 418, 420, 3, 72, 36, 0, 419, 417, 1, 0, 0, 0, 420, 423, 1, 0, 0, 0, 421, 419, 1, 0, 0, 0, 421, 422, 1, 0, 0, 0, 422, 59, 1, 0, 0, 0, 423, 421, 1, 0, 0, 0, 424, 429, 3, 66, 33, 0, 425, 426, 5, 60, 0, 0, 426, 428, 3, 66, 33, 0, 427, 425, 1, 0, 0, 0, 428, 431, 1, 0, 0, 0, 429, 427, 1, 0, 0, 0, 429, 430, 1, 0, 0, 0, 430, 61, 1, 0, 0, 0, 431, 429, 1, 0, 0, 0, 432, 437, 3, 60, 30, 0, 433, 434, 5, 58, 0, 0, 434, 436, 3, 60, 30, 0, 435, 433, 1, 0, 0, 0, 436, 439, 1, 0, 0, 0, 437, 435, 1, 0, 0, 0, 437, 438, 1, 0, 0, 0, 438, 63, 1, 0, 0, 0, 439, 437, 1, 0, 0, 0, 440, 441, 7, 3, 0, 0, 441, 65, 1, 0, 0, 0, 442, 445, 5, 123, 0, 0, 443, 445, 3, 70, 35, 0, 444, 442, 1, 0, 0, 0, 444, 443, 1, 0, 0, 0, 445, 67, 1, 0, 0, 0, 446, 489, 5, 69, 0, 0, 447, 448, 3, 104, 52, 0, 448, 449, 5, 93, 0, 0, 449, 489, 1, 0, 0, 0, 450, 489, 3, 102, 51, 0, 451, 489, 3, 104, 52, 0, 452, 489, 3, 98, 49, 0, 453, 489, 3, 70, 35, 0, 454, 489, 3, 106, 53, 0, 455, 456, 5, 91, 0, 0, 456, 461, 3, 100, 50, 0, 457, 458, 5, 58, 0, 0, 458, 460, 3, 100, 50, 0, 459, 457, 1, 0, 0, 0, 460, 463, 1, 0, 0, 0, 461, 459, 1, 0, 0, 0, 461, 462, 1, 0, 0, 0, 462, 464, 1, 0, 0, 0, 463, 461, 1, 0, 0, 0, 464, 465, 5, 92, 0, 0, 465, 489, 1, 0, 0, 0, 466, 467, 5, 91, 0, 0, 467, 472, 3, 98, 49, 0, 468, 469, 5, 58, 0, 0, 469, 471, 3, 98, 49, 0, 470, 468, 1, 0, 0, 0, 471, 474, 1, 0, 0, 0, 472, 470, 1, 0, 0, 0, 472, 473, 1, 0, 0, 0, 473, 475, 1, 0, 0, 0, 474, 472, 1, 0, 0, 0, 475, 476, 5, 92, 0, 0, 476, 489, 1, 0, 0, 0, 477, 478, 5, 91, 0, 0, 478, 483, 3, 106, 53, 0, 479, 480, 5, 58, 0, 0, 480, 482, 3, 106, 53, 0, 481, 479, 1, 0, 0, 0, 482, 485, 1, 0, 0, 0, 483, 481, 1, 0, 0, 0, 483, 484, 1, 0, 0, 0, 484, 486, 1, 0, 0, 0, 485, 483, 1, 0, 0, 0, 486, 487, 5, 92, 0, 0, 487, 489, 1, 0, 0, 0, 488, 446, 1, 0, 0, 0, 488, 447, 1, 0, 0, 0, 488, 450, 1, 0, 0, 0, 488, 451, 1, 0, 0, 0, 488, 452, 1, 0, 0, 0, 488, 453, 1, 0, 0, 0, 488, 454, 1, 0, 0, 0, 488, 455, 1, 0, 0, 0, 488, 466, 1, 0, 0, 0, 488, 477, 1, 0, 0, 0, 489, 69, 1, 0, 0, 0, 490, 493, 5, 72, 0, 0, 491, 493, 5, 90, 0, 0, 492, 490, 1, 0, 0, 0, 492, 491, 1, 0, 0, 0, 493, 71, 1, 0, 0, 0, 494, 497, 3, 64, 32, 0, 495, 497, 3, 70, 35, 0, 496, 494, 1, 0, 0, 0, 496, 495, 1, 0, 0, 0, 497, 73, 1, 0, 0, 0, 498, 499, 5, 10, 0, 0, 499, 500, 5, 50, 0, 0, 500, 75, 1, 0, 0, 0, 501, 502, 5, 12, 0, 0, 502, 507, 3, 78, 39, 0, 503, 504, 5, 58, 0, 0, 504, 506, 3, 78, 39, 0, 505, 503, 1, 0, 0, 0, 506, 509, 1, 0, 0, 0, 507, 505, 1, 0, 0, 0, 507, 508, 1, 0, 0, 0, 508, 77, 1, 0, 0, 0, 509, 507, 1, 0, 0, 0, 510, 512, 3, 10, 5, 0, 511, 513, 7, 4, 0, 0, 512, 511, 1, 0, 0, 0, 512, 513, 1, 0, 0, 0, 513, 516, 1, 0, 0, 0, 514, 515, 5, 70, 0, 0, 515, 517, 7, 5, 0, 0, 516, 514, 1, 0, 0, 0, 516, 517, 1, 0, 0, 0, 517, 79, 1, 0, 0, 0, 518, 519, 5, 25, 0, 0, 519, 520, 3, 62, 31, 0, 520, 81, 1, 0, 0, 0, 521, 522, 5, 24, 0, 0, 522, 523, 3, 62, 31, 0, 523, 83, 1, 0, 0, 0, 524, 525, 5, 26, 0, 0, 525, 530, 3, 86, 43, 0, 526, 527, 5, 58, 0, 0, 527, 529, 3, 86, 43, 0, 528, 526, 1, 0, 0, 0, 529, 532, 1, 0, 0, 0, 530, 528, 1, 0, 0, 0, 530, 531, 1, 0, 0, 0, 531, 85, 1, 0, 0, 0, 532, 530, 1, 0, 0, 0, 533, 534, 3, 60, 30, 0, 534, 535, 5, 127, 0, 0, 535, 536, 3, 60, 30, 0, 536, 87, 1, 0, 0, 0, 537, 538, 5, 7, 0, 0, 538, 539, 3, 20, 10, 0, 539, 541, 3, 106, 53, 0, 540, 542, 3, 94, 47, 0, 541, 540, 1, 0, 0, 0, 541, 542, 1, 0, 0, 0, 542, 89, 1, 0, 0, 0, 543, 544, 5, 9, 0, 0, 544, 545, 3, 20, 10, 0, 545, 546, 3, 106, 53, 0, 546, 91, 1, 0, 0, 0, 547, 548, 5, 23, 0, 0, 548, 549, 3, 58, 29, 0, 549, 93, 1, 0, 0, 0, 550, 555, 3, 96, 48, 0, 551, 552, 5, 58, 0, 0, 552, 554, 3, 96, 48, 0, 553, 551, 1, 0, 0, 0, 554, 557, 1, 0, 0, 0, 555, 553, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 95, 1, 0, 0, 0, 557, 555, 1, 0, 0, 0, 558, 559, 3, 64, 32, 0, 559, 560, 5, 55, 0, 0, 560, 561, 3, 68, 34, 0, 561, 97, 1, 0, 0, 0, 562, 563, 7, 6, 0, 0, 563, 99, 1, 0, 0, 0, 564, 567, 3, 102, 51, 0, 565, 567, 3, 104, 52, 0, 566, 564, 1, 0, 0, 0, 566, 565, 1, 0, 0, 0, 567, 101, 1, 0, 0, 0, 568, 570, 7, 0, 0, 0, 569, 568, 1, 0, 0, 0, 569, 570, 1, 0, 0, 0, 570, 571, 1, 0, 0, 0, 571, 572, 5, 51, 0, 0, 572, 103, 1, 0, 0, 0, 573, 575, 7, 0, 0, 0, 574, 573, 1, 0, 0, 0, 574, 575, 1, 0, 0, 0, 575, 576, 1, 0, 0, 0, 576, 577, 5, 50, 0, 0, 577, 105, 1, 0, 0, 0, 578, 579, 5, 49, 0, 0, 579, 107, 1, 0, 0, 0, 580, 581, 7, 7, 0, 0, 581, 109, 1, 0, 0, 0, 582, 583, 5, 6, 0, 0, 583, 584, 3, 112, 56, 0, 584, 111, 1, 0, 0, 0, 585, 586, 5, 91, 0, 0, 586, 587, 3, 2, 1, 0, 587, 588, 5, 92, 0, 0, 588, 113, 1, 0, 0, 0, 589, 590, 5, 27, 0, 0, 590, 591, 5, 131, 0, 0, 591, 115, 1, 0, 0, 0, 592, 593, 5, 5, 0, 0, 593, 596, 5, 34, 0, 0, 594, 595, 5, 32, 0, 0, 595, 597, 3, 60, 30, 0, 596, 594, 1, 0, 0, 0, 596, 597, 1, 0, 0, 0, 597, 607, 1, 0, 0, 0, 598, 599, 5, 33, 0, 0, 599, 604, 3, 118, 59, 0, 600, 601, 5, 58, 0, 0, 601, 603, 3, 118, 59, 0, 602, 600, 1, 0, 0, 0, 603, 606, 1, 0, 0, 0, 604, 602, 1, 0, 0, 0, 604, 605, 1, 0, 0, 0, 605, 608, 1, 0, 0, 0, 606, 604, 1, 0, 0, 0, 607, 598, 1, 0, 0, 0, 607, 608, 1, 0, 0, 0, 608, 117, 1, 0, 0, 0, 609, 610, 3, 60, 30, 0, 610, 611, 5, 55, 0, 0, 611, 613, 1, 0, 0, 0, 612, 609, 1, 0, 0, 0, 612, 613, 1, 0, 0, 0, 613, 614, 1, 0, 0, 0, 614, 615, 3, 60, 30, 0, 615, 119, 1, 0, 0, 0, 616, 617, 5, 21, 0, 0, 617, 618, 3, 40, 20, 0, 618, 619, 5, 32, 0, 0, 619, 620, 3, 62, 31, 0, 620, 121, 1, 0, 0, 0, 621, 622, 5, 15, 0, 0, 622, 625, 3, 54, 27, 0, 623, 624, 5, 52, 0, 0, 624, 626, 3, 34, 17, 0, 625, 623, 1, 0, 0, 0, 625, 626, 1, 0, 0, 0, 626, 123, 1, 0, 0, 0, 627, 628, 7, 8, 0, 0, 628, 629, 5, 103, 0, 0, 629, 630, 3, 126, 63, 0, 630, 631, 3, 128, 64, 0, 631, 125, 1, 0, 0, 0, 632, 633, 3, 40, 20, 0, 633, 127, 1, 0, 0, 0, 634, 635, 5, 32, 0, 0, 635, 640, 3, 130, 65, 0, 636, 637, 5, 58, 0, 0, 637, 639, 3, 130, 65, 0, 638, 636, 1, 0, 0, 0, 639, 642, 1, 0, 0, 0, 640, 638, 1, 0, 0, 0, 640, 641, 1, 0, 0, 0, 641, 129, 1, 0, 0, 0, 642, 640, 1, 0, 0, 0, 643, 644, 3, 16, 8, 0, 644, 131, 1, 0, 0, 0, 645, 646, 5, 4, 0, 0, 646, 649, 3, 58, 29, 0, 647, 648, 5, 32, 0, 0, 648, 650, 3, 58, 29, 0, 649, 647, 1, 0, 0, 0, 649, 650, 1, 0, 0, 0, 650, 656, 1, 0, 0, 0, 651, 652, 5, 127, 0, 0, 652, 653, 3, 58, 29, 0, 653, 654, 5, 58, 0, 0, 654, 655, 3, 58, 29, 0, 655, 657, 1, 0, 0, 0, 656, 651, 1, 0, 0, 0, 656, 657, 1, 0, 0, 0, 657, 133, 1, 0, 0, 0, 63, 145, 154, 175, 187, 196, 204, 209, 217, 219, 224, 231, 236, 241, 251, 257, 265, 267, 278, 285, 296, 301, 303, 315, 334, 340, 350, 354, 359, 373, 382, 386, 390, 397, 401, 408, 414, 421, 429, 437, 444, 461, 472, 483, 488, 492, 496, 507, 512, 516, 530, 541, 555, 566, 569, 574, 596, 604, 607, 612, 625, 640, 649, 656] \ No newline at end of file +[4, 1, 134, 659, 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, 1, 0, 1, 0, 1, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 5, 1, 144, 8, 1, 10, 1, 12, 1, 147, 9, 1, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 1, 2, 3, 2, 155, 8, 2, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 1, 3, 3, 3, 176, 8, 3, 1, 4, 1, 4, 1, 4, 1, 5, 1, 5, 1, 6, 1, 6, 1, 6, 1, 7, 1, 7, 1, 7, 5, 7, 189, 8, 7, 10, 7, 12, 7, 192, 9, 7, 1, 8, 1, 8, 1, 8, 3, 8, 197, 8, 8, 1, 8, 1, 8, 1, 9, 1, 9, 1, 9, 1, 9, 5, 9, 205, 8, 9, 10, 9, 12, 9, 208, 9, 9, 1, 9, 3, 9, 211, 8, 9, 1, 10, 1, 10, 1, 10, 3, 10, 216, 8, 10, 1, 10, 1, 10, 1, 11, 1, 11, 1, 12, 1, 12, 1, 13, 1, 13, 1, 13, 1, 13, 5, 13, 228, 8, 13, 10, 13, 12, 13, 231, 9, 13, 1, 14, 1, 14, 1, 14, 1, 14, 5, 14, 237, 8, 14, 10, 14, 12, 14, 240, 9, 14, 1, 14, 3, 14, 243, 8, 14, 1, 14, 1, 14, 3, 14, 247, 8, 14, 1, 15, 1, 15, 1, 15, 1, 16, 1, 16, 3, 16, 254, 8, 16, 1, 16, 1, 16, 3, 16, 258, 8, 16, 1, 17, 1, 17, 1, 17, 5, 17, 263, 8, 17, 10, 17, 12, 17, 266, 9, 17, 1, 18, 1, 18, 1, 18, 3, 18, 271, 8, 18, 1, 19, 1, 19, 1, 19, 5, 19, 276, 8, 19, 10, 19, 12, 19, 279, 9, 19, 1, 20, 1, 20, 1, 20, 5, 20, 284, 8, 20, 10, 20, 12, 20, 287, 9, 20, 1, 21, 1, 21, 1, 21, 5, 21, 292, 8, 21, 10, 21, 12, 21, 295, 9, 21, 1, 22, 1, 22, 1, 23, 1, 23, 3, 23, 301, 8, 23, 1, 24, 1, 24, 3, 24, 305, 8, 24, 1, 25, 1, 25, 3, 25, 309, 8, 25, 1, 26, 1, 26, 1, 26, 1, 27, 1, 27, 1, 27, 1, 27, 5, 27, 318, 8, 27, 10, 27, 12, 27, 321, 9, 27, 1, 28, 1, 28, 3, 28, 325, 8, 28, 1, 28, 1, 28, 3, 28, 329, 8, 28, 1, 29, 1, 29, 1, 29, 1, 30, 1, 30, 1, 30, 1, 31, 1, 31, 1, 31, 1, 31, 5, 31, 341, 8, 31, 10, 31, 12, 31, 344, 9, 31, 1, 32, 1, 32, 1, 32, 1, 32, 1, 33, 1, 33, 1, 33, 1, 33, 3, 33, 354, 8, 33, 1, 34, 1, 34, 1, 34, 1, 34, 1, 35, 1, 35, 1, 35, 1, 36, 1, 36, 1, 36, 5, 36, 366, 8, 36, 10, 36, 12, 36, 369, 9, 36, 1, 37, 1, 37, 1, 37, 1, 37, 1, 38, 1, 38, 1, 38, 1, 39, 1, 39, 1, 39, 1, 39, 1, 40, 1, 40, 1, 40, 1, 41, 1, 41, 1, 41, 1, 41, 3, 41, 389, 8, 41, 1, 41, 1, 41, 1, 41, 1, 41, 5, 41, 395, 8, 41, 10, 41, 12, 41, 398, 9, 41, 3, 41, 400, 8, 41, 1, 42, 1, 42, 1, 42, 3, 42, 405, 8, 42, 1, 42, 1, 42, 1, 43, 1, 43, 1, 43, 1, 43, 1, 43, 1, 44, 1, 44, 1, 44, 1, 44, 3, 44, 418, 8, 44, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 424, 8, 45, 1, 45, 1, 45, 1, 45, 1, 45, 1, 45, 3, 45, 431, 8, 45, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 440, 8, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 5, 46, 447, 8, 46, 10, 46, 12, 46, 450, 9, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 3, 46, 457, 8, 46, 1, 46, 1, 46, 1, 46, 3, 46, 462, 8, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 1, 46, 5, 46, 470, 8, 46, 10, 46, 12, 46, 473, 9, 46, 1, 47, 1, 47, 3, 47, 477, 8, 47, 1, 47, 1, 47, 1, 47, 1, 47, 1, 47, 3, 47, 484, 8, 47, 1, 47, 1, 47, 1, 47, 3, 47, 489, 8, 47, 1, 48, 1, 48, 1, 48, 3, 48, 494, 8, 48, 1, 48, 1, 48, 1, 48, 1, 49, 1, 49, 1, 49, 1, 49, 1, 49, 3, 49, 504, 8, 49, 1, 50, 1, 50, 1, 50, 1, 50, 3, 50, 510, 8, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 1, 50, 5, 50, 518, 8, 50, 10, 50, 12, 50, 521, 9, 50, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 1, 51, 3, 51, 531, 8, 51, 1, 51, 1, 51, 1, 51, 5, 51, 536, 8, 51, 10, 51, 12, 51, 539, 9, 51, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 1, 52, 5, 52, 547, 8, 52, 10, 52, 12, 52, 550, 9, 52, 1, 52, 1, 52, 3, 52, 554, 8, 52, 3, 52, 556, 8, 52, 1, 52, 1, 52, 1, 53, 1, 53, 1, 54, 1, 54, 1, 54, 1, 54, 5, 54, 566, 8, 54, 10, 54, 12, 54, 569, 9, 54, 1, 54, 1, 54, 1, 55, 1, 55, 1, 55, 1, 55, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 5, 56, 590, 8, 56, 10, 56, 12, 56, 593, 9, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 5, 56, 601, 8, 56, 10, 56, 12, 56, 604, 9, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 1, 56, 5, 56, 612, 8, 56, 10, 56, 12, 56, 615, 9, 56, 1, 56, 1, 56, 3, 56, 619, 8, 56, 1, 57, 1, 57, 1, 58, 1, 58, 3, 58, 625, 8, 58, 1, 59, 3, 59, 628, 8, 59, 1, 59, 1, 59, 1, 60, 3, 60, 633, 8, 60, 1, 60, 1, 60, 1, 61, 1, 61, 1, 62, 1, 62, 1, 63, 1, 63, 1, 63, 1, 63, 1, 63, 1, 64, 1, 64, 1, 65, 1, 65, 1, 65, 1, 65, 5, 65, 652, 8, 65, 10, 65, 12, 65, 655, 9, 65, 1, 66, 1, 66, 1, 66, 0, 4, 2, 92, 100, 102, 67, 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, 0, 9, 2, 0, 49, 49, 99, 99, 1, 0, 93, 94, 2, 0, 54, 54, 59, 59, 2, 0, 62, 62, 65, 65, 1, 0, 83, 84, 1, 0, 85, 87, 2, 0, 61, 61, 75, 75, 2, 0, 76, 76, 78, 82, 2, 0, 17, 17, 19, 20, 686, 0, 134, 1, 0, 0, 0, 2, 137, 1, 0, 0, 0, 4, 154, 1, 0, 0, 0, 6, 175, 1, 0, 0, 0, 8, 177, 1, 0, 0, 0, 10, 180, 1, 0, 0, 0, 12, 182, 1, 0, 0, 0, 14, 185, 1, 0, 0, 0, 16, 196, 1, 0, 0, 0, 18, 200, 1, 0, 0, 0, 20, 215, 1, 0, 0, 0, 22, 219, 1, 0, 0, 0, 24, 221, 1, 0, 0, 0, 26, 223, 1, 0, 0, 0, 28, 232, 1, 0, 0, 0, 30, 248, 1, 0, 0, 0, 32, 251, 1, 0, 0, 0, 34, 259, 1, 0, 0, 0, 36, 267, 1, 0, 0, 0, 38, 272, 1, 0, 0, 0, 40, 280, 1, 0, 0, 0, 42, 288, 1, 0, 0, 0, 44, 296, 1, 0, 0, 0, 46, 300, 1, 0, 0, 0, 48, 304, 1, 0, 0, 0, 50, 308, 1, 0, 0, 0, 52, 310, 1, 0, 0, 0, 54, 313, 1, 0, 0, 0, 56, 322, 1, 0, 0, 0, 58, 330, 1, 0, 0, 0, 60, 333, 1, 0, 0, 0, 62, 336, 1, 0, 0, 0, 64, 345, 1, 0, 0, 0, 66, 349, 1, 0, 0, 0, 68, 355, 1, 0, 0, 0, 70, 359, 1, 0, 0, 0, 72, 362, 1, 0, 0, 0, 74, 370, 1, 0, 0, 0, 76, 374, 1, 0, 0, 0, 78, 377, 1, 0, 0, 0, 80, 381, 1, 0, 0, 0, 82, 384, 1, 0, 0, 0, 84, 404, 1, 0, 0, 0, 86, 408, 1, 0, 0, 0, 88, 413, 1, 0, 0, 0, 90, 419, 1, 0, 0, 0, 92, 461, 1, 0, 0, 0, 94, 488, 1, 0, 0, 0, 96, 490, 1, 0, 0, 0, 98, 503, 1, 0, 0, 0, 100, 509, 1, 0, 0, 0, 102, 530, 1, 0, 0, 0, 104, 540, 1, 0, 0, 0, 106, 559, 1, 0, 0, 0, 108, 561, 1, 0, 0, 0, 110, 572, 1, 0, 0, 0, 112, 618, 1, 0, 0, 0, 114, 620, 1, 0, 0, 0, 116, 624, 1, 0, 0, 0, 118, 627, 1, 0, 0, 0, 120, 632, 1, 0, 0, 0, 122, 636, 1, 0, 0, 0, 124, 638, 1, 0, 0, 0, 126, 640, 1, 0, 0, 0, 128, 645, 1, 0, 0, 0, 130, 647, 1, 0, 0, 0, 132, 656, 1, 0, 0, 0, 134, 135, 3, 2, 1, 0, 135, 136, 5, 0, 0, 1, 136, 1, 1, 0, 0, 0, 137, 138, 6, 1, -1, 0, 138, 139, 3, 4, 2, 0, 139, 145, 1, 0, 0, 0, 140, 141, 10, 1, 0, 0, 141, 142, 5, 48, 0, 0, 142, 144, 3, 6, 3, 0, 143, 140, 1, 0, 0, 0, 144, 147, 1, 0, 0, 0, 145, 143, 1, 0, 0, 0, 145, 146, 1, 0, 0, 0, 146, 3, 1, 0, 0, 0, 147, 145, 1, 0, 0, 0, 148, 155, 3, 76, 38, 0, 149, 155, 3, 18, 9, 0, 150, 155, 3, 12, 6, 0, 151, 155, 3, 80, 40, 0, 152, 153, 4, 2, 1, 0, 153, 155, 3, 28, 14, 0, 154, 148, 1, 0, 0, 0, 154, 149, 1, 0, 0, 0, 154, 150, 1, 0, 0, 0, 154, 151, 1, 0, 0, 0, 154, 152, 1, 0, 0, 0, 155, 5, 1, 0, 0, 0, 156, 176, 3, 30, 15, 0, 157, 176, 3, 8, 4, 0, 158, 176, 3, 58, 29, 0, 159, 176, 3, 52, 26, 0, 160, 176, 3, 32, 16, 0, 161, 176, 3, 54, 27, 0, 162, 176, 3, 60, 30, 0, 163, 176, 3, 62, 31, 0, 164, 176, 3, 66, 33, 0, 165, 176, 3, 68, 34, 0, 166, 176, 3, 82, 41, 0, 167, 176, 3, 70, 35, 0, 168, 176, 3, 126, 63, 0, 169, 170, 4, 3, 2, 0, 170, 176, 3, 88, 44, 0, 171, 172, 4, 3, 3, 0, 172, 176, 3, 86, 43, 0, 173, 174, 4, 3, 4, 0, 174, 176, 3, 90, 45, 0, 175, 156, 1, 0, 0, 0, 175, 157, 1, 0, 0, 0, 175, 158, 1, 0, 0, 0, 175, 159, 1, 0, 0, 0, 175, 160, 1, 0, 0, 0, 175, 161, 1, 0, 0, 0, 175, 162, 1, 0, 0, 0, 175, 163, 1, 0, 0, 0, 175, 164, 1, 0, 0, 0, 175, 165, 1, 0, 0, 0, 175, 166, 1, 0, 0, 0, 175, 167, 1, 0, 0, 0, 175, 168, 1, 0, 0, 0, 175, 169, 1, 0, 0, 0, 175, 171, 1, 0, 0, 0, 175, 173, 1, 0, 0, 0, 176, 7, 1, 0, 0, 0, 177, 178, 5, 14, 0, 0, 178, 179, 3, 92, 46, 0, 179, 9, 1, 0, 0, 0, 180, 181, 3, 44, 22, 0, 181, 11, 1, 0, 0, 0, 182, 183, 5, 11, 0, 0, 183, 184, 3, 14, 7, 0, 184, 13, 1, 0, 0, 0, 185, 190, 3, 16, 8, 0, 186, 187, 5, 58, 0, 0, 187, 189, 3, 16, 8, 0, 188, 186, 1, 0, 0, 0, 189, 192, 1, 0, 0, 0, 190, 188, 1, 0, 0, 0, 190, 191, 1, 0, 0, 0, 191, 15, 1, 0, 0, 0, 192, 190, 1, 0, 0, 0, 193, 194, 3, 38, 19, 0, 194, 195, 5, 55, 0, 0, 195, 197, 1, 0, 0, 0, 196, 193, 1, 0, 0, 0, 196, 197, 1, 0, 0, 0, 197, 198, 1, 0, 0, 0, 198, 199, 3, 92, 46, 0, 199, 17, 1, 0, 0, 0, 200, 201, 5, 16, 0, 0, 201, 206, 3, 20, 10, 0, 202, 203, 5, 58, 0, 0, 203, 205, 3, 20, 10, 0, 204, 202, 1, 0, 0, 0, 205, 208, 1, 0, 0, 0, 206, 204, 1, 0, 0, 0, 206, 207, 1, 0, 0, 0, 207, 210, 1, 0, 0, 0, 208, 206, 1, 0, 0, 0, 209, 211, 3, 26, 13, 0, 210, 209, 1, 0, 0, 0, 210, 211, 1, 0, 0, 0, 211, 19, 1, 0, 0, 0, 212, 213, 3, 22, 11, 0, 213, 214, 5, 57, 0, 0, 214, 216, 1, 0, 0, 0, 215, 212, 1, 0, 0, 0, 215, 216, 1, 0, 0, 0, 216, 217, 1, 0, 0, 0, 217, 218, 3, 24, 12, 0, 218, 21, 1, 0, 0, 0, 219, 220, 7, 0, 0, 0, 220, 23, 1, 0, 0, 0, 221, 222, 7, 0, 0, 0, 222, 25, 1, 0, 0, 0, 223, 224, 5, 98, 0, 0, 224, 229, 5, 99, 0, 0, 225, 226, 5, 58, 0, 0, 226, 228, 5, 99, 0, 0, 227, 225, 1, 0, 0, 0, 228, 231, 1, 0, 0, 0, 229, 227, 1, 0, 0, 0, 229, 230, 1, 0, 0, 0, 230, 27, 1, 0, 0, 0, 231, 229, 1, 0, 0, 0, 232, 233, 5, 22, 0, 0, 233, 238, 3, 20, 10, 0, 234, 235, 5, 58, 0, 0, 235, 237, 3, 20, 10, 0, 236, 234, 1, 0, 0, 0, 237, 240, 1, 0, 0, 0, 238, 236, 1, 0, 0, 0, 238, 239, 1, 0, 0, 0, 239, 242, 1, 0, 0, 0, 240, 238, 1, 0, 0, 0, 241, 243, 3, 34, 17, 0, 242, 241, 1, 0, 0, 0, 242, 243, 1, 0, 0, 0, 243, 246, 1, 0, 0, 0, 244, 245, 5, 52, 0, 0, 245, 247, 3, 14, 7, 0, 246, 244, 1, 0, 0, 0, 246, 247, 1, 0, 0, 0, 247, 29, 1, 0, 0, 0, 248, 249, 5, 8, 0, 0, 249, 250, 3, 14, 7, 0, 250, 31, 1, 0, 0, 0, 251, 253, 5, 13, 0, 0, 252, 254, 3, 34, 17, 0, 253, 252, 1, 0, 0, 0, 253, 254, 1, 0, 0, 0, 254, 257, 1, 0, 0, 0, 255, 256, 5, 52, 0, 0, 256, 258, 3, 14, 7, 0, 257, 255, 1, 0, 0, 0, 257, 258, 1, 0, 0, 0, 258, 33, 1, 0, 0, 0, 259, 264, 3, 36, 18, 0, 260, 261, 5, 58, 0, 0, 261, 263, 3, 36, 18, 0, 262, 260, 1, 0, 0, 0, 263, 266, 1, 0, 0, 0, 264, 262, 1, 0, 0, 0, 264, 265, 1, 0, 0, 0, 265, 35, 1, 0, 0, 0, 266, 264, 1, 0, 0, 0, 267, 270, 3, 16, 8, 0, 268, 269, 5, 14, 0, 0, 269, 271, 3, 92, 46, 0, 270, 268, 1, 0, 0, 0, 270, 271, 1, 0, 0, 0, 271, 37, 1, 0, 0, 0, 272, 277, 3, 50, 25, 0, 273, 274, 5, 60, 0, 0, 274, 276, 3, 50, 25, 0, 275, 273, 1, 0, 0, 0, 276, 279, 1, 0, 0, 0, 277, 275, 1, 0, 0, 0, 277, 278, 1, 0, 0, 0, 278, 39, 1, 0, 0, 0, 279, 277, 1, 0, 0, 0, 280, 285, 3, 46, 23, 0, 281, 282, 5, 60, 0, 0, 282, 284, 3, 46, 23, 0, 283, 281, 1, 0, 0, 0, 284, 287, 1, 0, 0, 0, 285, 283, 1, 0, 0, 0, 285, 286, 1, 0, 0, 0, 286, 41, 1, 0, 0, 0, 287, 285, 1, 0, 0, 0, 288, 293, 3, 40, 20, 0, 289, 290, 5, 58, 0, 0, 290, 292, 3, 40, 20, 0, 291, 289, 1, 0, 0, 0, 292, 295, 1, 0, 0, 0, 293, 291, 1, 0, 0, 0, 293, 294, 1, 0, 0, 0, 294, 43, 1, 0, 0, 0, 295, 293, 1, 0, 0, 0, 296, 297, 7, 1, 0, 0, 297, 45, 1, 0, 0, 0, 298, 301, 5, 123, 0, 0, 299, 301, 3, 48, 24, 0, 300, 298, 1, 0, 0, 0, 300, 299, 1, 0, 0, 0, 301, 47, 1, 0, 0, 0, 302, 305, 5, 72, 0, 0, 303, 305, 5, 90, 0, 0, 304, 302, 1, 0, 0, 0, 304, 303, 1, 0, 0, 0, 305, 49, 1, 0, 0, 0, 306, 309, 3, 44, 22, 0, 307, 309, 3, 48, 24, 0, 308, 306, 1, 0, 0, 0, 308, 307, 1, 0, 0, 0, 309, 51, 1, 0, 0, 0, 310, 311, 5, 10, 0, 0, 311, 312, 5, 50, 0, 0, 312, 53, 1, 0, 0, 0, 313, 314, 5, 12, 0, 0, 314, 319, 3, 56, 28, 0, 315, 316, 5, 58, 0, 0, 316, 318, 3, 56, 28, 0, 317, 315, 1, 0, 0, 0, 318, 321, 1, 0, 0, 0, 319, 317, 1, 0, 0, 0, 319, 320, 1, 0, 0, 0, 320, 55, 1, 0, 0, 0, 321, 319, 1, 0, 0, 0, 322, 324, 3, 92, 46, 0, 323, 325, 7, 2, 0, 0, 324, 323, 1, 0, 0, 0, 324, 325, 1, 0, 0, 0, 325, 328, 1, 0, 0, 0, 326, 327, 5, 70, 0, 0, 327, 329, 7, 3, 0, 0, 328, 326, 1, 0, 0, 0, 328, 329, 1, 0, 0, 0, 329, 57, 1, 0, 0, 0, 330, 331, 5, 25, 0, 0, 331, 332, 3, 42, 21, 0, 332, 59, 1, 0, 0, 0, 333, 334, 5, 24, 0, 0, 334, 335, 3, 42, 21, 0, 335, 61, 1, 0, 0, 0, 336, 337, 5, 26, 0, 0, 337, 342, 3, 64, 32, 0, 338, 339, 5, 58, 0, 0, 339, 341, 3, 64, 32, 0, 340, 338, 1, 0, 0, 0, 341, 344, 1, 0, 0, 0, 342, 340, 1, 0, 0, 0, 342, 343, 1, 0, 0, 0, 343, 63, 1, 0, 0, 0, 344, 342, 1, 0, 0, 0, 345, 346, 3, 40, 20, 0, 346, 347, 5, 127, 0, 0, 347, 348, 3, 40, 20, 0, 348, 65, 1, 0, 0, 0, 349, 350, 5, 7, 0, 0, 350, 351, 3, 102, 51, 0, 351, 353, 3, 122, 61, 0, 352, 354, 3, 72, 36, 0, 353, 352, 1, 0, 0, 0, 353, 354, 1, 0, 0, 0, 354, 67, 1, 0, 0, 0, 355, 356, 5, 9, 0, 0, 356, 357, 3, 102, 51, 0, 357, 358, 3, 122, 61, 0, 358, 69, 1, 0, 0, 0, 359, 360, 5, 23, 0, 0, 360, 361, 3, 38, 19, 0, 361, 71, 1, 0, 0, 0, 362, 367, 3, 74, 37, 0, 363, 364, 5, 58, 0, 0, 364, 366, 3, 74, 37, 0, 365, 363, 1, 0, 0, 0, 366, 369, 1, 0, 0, 0, 367, 365, 1, 0, 0, 0, 367, 368, 1, 0, 0, 0, 368, 73, 1, 0, 0, 0, 369, 367, 1, 0, 0, 0, 370, 371, 3, 44, 22, 0, 371, 372, 5, 55, 0, 0, 372, 373, 3, 112, 56, 0, 373, 75, 1, 0, 0, 0, 374, 375, 5, 6, 0, 0, 375, 376, 3, 78, 39, 0, 376, 77, 1, 0, 0, 0, 377, 378, 5, 91, 0, 0, 378, 379, 3, 2, 1, 0, 379, 380, 5, 92, 0, 0, 380, 79, 1, 0, 0, 0, 381, 382, 5, 27, 0, 0, 382, 383, 5, 131, 0, 0, 383, 81, 1, 0, 0, 0, 384, 385, 5, 5, 0, 0, 385, 388, 5, 34, 0, 0, 386, 387, 5, 32, 0, 0, 387, 389, 3, 40, 20, 0, 388, 386, 1, 0, 0, 0, 388, 389, 1, 0, 0, 0, 389, 399, 1, 0, 0, 0, 390, 391, 5, 33, 0, 0, 391, 396, 3, 84, 42, 0, 392, 393, 5, 58, 0, 0, 393, 395, 3, 84, 42, 0, 394, 392, 1, 0, 0, 0, 395, 398, 1, 0, 0, 0, 396, 394, 1, 0, 0, 0, 396, 397, 1, 0, 0, 0, 397, 400, 1, 0, 0, 0, 398, 396, 1, 0, 0, 0, 399, 390, 1, 0, 0, 0, 399, 400, 1, 0, 0, 0, 400, 83, 1, 0, 0, 0, 401, 402, 3, 40, 20, 0, 402, 403, 5, 55, 0, 0, 403, 405, 1, 0, 0, 0, 404, 401, 1, 0, 0, 0, 404, 405, 1, 0, 0, 0, 405, 406, 1, 0, 0, 0, 406, 407, 3, 40, 20, 0, 407, 85, 1, 0, 0, 0, 408, 409, 5, 21, 0, 0, 409, 410, 3, 20, 10, 0, 410, 411, 5, 32, 0, 0, 411, 412, 3, 42, 21, 0, 412, 87, 1, 0, 0, 0, 413, 414, 5, 15, 0, 0, 414, 417, 3, 34, 17, 0, 415, 416, 5, 52, 0, 0, 416, 418, 3, 14, 7, 0, 417, 415, 1, 0, 0, 0, 417, 418, 1, 0, 0, 0, 418, 89, 1, 0, 0, 0, 419, 420, 5, 4, 0, 0, 420, 423, 3, 38, 19, 0, 421, 422, 5, 32, 0, 0, 422, 424, 3, 38, 19, 0, 423, 421, 1, 0, 0, 0, 423, 424, 1, 0, 0, 0, 424, 430, 1, 0, 0, 0, 425, 426, 5, 127, 0, 0, 426, 427, 3, 38, 19, 0, 427, 428, 5, 58, 0, 0, 428, 429, 3, 38, 19, 0, 429, 431, 1, 0, 0, 0, 430, 425, 1, 0, 0, 0, 430, 431, 1, 0, 0, 0, 431, 91, 1, 0, 0, 0, 432, 433, 6, 46, -1, 0, 433, 434, 5, 68, 0, 0, 434, 462, 3, 92, 46, 8, 435, 462, 3, 98, 49, 0, 436, 462, 3, 94, 47, 0, 437, 439, 3, 98, 49, 0, 438, 440, 5, 68, 0, 0, 439, 438, 1, 0, 0, 0, 439, 440, 1, 0, 0, 0, 440, 441, 1, 0, 0, 0, 441, 442, 5, 63, 0, 0, 442, 443, 5, 67, 0, 0, 443, 448, 3, 98, 49, 0, 444, 445, 5, 58, 0, 0, 445, 447, 3, 98, 49, 0, 446, 444, 1, 0, 0, 0, 447, 450, 1, 0, 0, 0, 448, 446, 1, 0, 0, 0, 448, 449, 1, 0, 0, 0, 449, 451, 1, 0, 0, 0, 450, 448, 1, 0, 0, 0, 451, 452, 5, 74, 0, 0, 452, 462, 1, 0, 0, 0, 453, 454, 3, 98, 49, 0, 454, 456, 5, 64, 0, 0, 455, 457, 5, 68, 0, 0, 456, 455, 1, 0, 0, 0, 456, 457, 1, 0, 0, 0, 457, 458, 1, 0, 0, 0, 458, 459, 5, 69, 0, 0, 459, 462, 1, 0, 0, 0, 460, 462, 3, 96, 48, 0, 461, 432, 1, 0, 0, 0, 461, 435, 1, 0, 0, 0, 461, 436, 1, 0, 0, 0, 461, 437, 1, 0, 0, 0, 461, 453, 1, 0, 0, 0, 461, 460, 1, 0, 0, 0, 462, 471, 1, 0, 0, 0, 463, 464, 10, 5, 0, 0, 464, 465, 5, 53, 0, 0, 465, 470, 3, 92, 46, 6, 466, 467, 10, 4, 0, 0, 467, 468, 5, 71, 0, 0, 468, 470, 3, 92, 46, 5, 469, 463, 1, 0, 0, 0, 469, 466, 1, 0, 0, 0, 470, 473, 1, 0, 0, 0, 471, 469, 1, 0, 0, 0, 471, 472, 1, 0, 0, 0, 472, 93, 1, 0, 0, 0, 473, 471, 1, 0, 0, 0, 474, 476, 3, 98, 49, 0, 475, 477, 5, 68, 0, 0, 476, 475, 1, 0, 0, 0, 476, 477, 1, 0, 0, 0, 477, 478, 1, 0, 0, 0, 478, 479, 5, 66, 0, 0, 479, 480, 3, 122, 61, 0, 480, 489, 1, 0, 0, 0, 481, 483, 3, 98, 49, 0, 482, 484, 5, 68, 0, 0, 483, 482, 1, 0, 0, 0, 483, 484, 1, 0, 0, 0, 484, 485, 1, 0, 0, 0, 485, 486, 5, 73, 0, 0, 486, 487, 3, 122, 61, 0, 487, 489, 1, 0, 0, 0, 488, 474, 1, 0, 0, 0, 488, 481, 1, 0, 0, 0, 489, 95, 1, 0, 0, 0, 490, 493, 3, 38, 19, 0, 491, 492, 5, 56, 0, 0, 492, 494, 3, 10, 5, 0, 493, 491, 1, 0, 0, 0, 493, 494, 1, 0, 0, 0, 494, 495, 1, 0, 0, 0, 495, 496, 5, 57, 0, 0, 496, 497, 3, 112, 56, 0, 497, 97, 1, 0, 0, 0, 498, 504, 3, 100, 50, 0, 499, 500, 3, 100, 50, 0, 500, 501, 3, 124, 62, 0, 501, 502, 3, 100, 50, 0, 502, 504, 1, 0, 0, 0, 503, 498, 1, 0, 0, 0, 503, 499, 1, 0, 0, 0, 504, 99, 1, 0, 0, 0, 505, 506, 6, 50, -1, 0, 506, 510, 3, 102, 51, 0, 507, 508, 7, 4, 0, 0, 508, 510, 3, 100, 50, 3, 509, 505, 1, 0, 0, 0, 509, 507, 1, 0, 0, 0, 510, 519, 1, 0, 0, 0, 511, 512, 10, 2, 0, 0, 512, 513, 7, 5, 0, 0, 513, 518, 3, 100, 50, 3, 514, 515, 10, 1, 0, 0, 515, 516, 7, 4, 0, 0, 516, 518, 3, 100, 50, 2, 517, 511, 1, 0, 0, 0, 517, 514, 1, 0, 0, 0, 518, 521, 1, 0, 0, 0, 519, 517, 1, 0, 0, 0, 519, 520, 1, 0, 0, 0, 520, 101, 1, 0, 0, 0, 521, 519, 1, 0, 0, 0, 522, 523, 6, 51, -1, 0, 523, 531, 3, 112, 56, 0, 524, 531, 3, 38, 19, 0, 525, 531, 3, 104, 52, 0, 526, 527, 5, 67, 0, 0, 527, 528, 3, 92, 46, 0, 528, 529, 5, 74, 0, 0, 529, 531, 1, 0, 0, 0, 530, 522, 1, 0, 0, 0, 530, 524, 1, 0, 0, 0, 530, 525, 1, 0, 0, 0, 530, 526, 1, 0, 0, 0, 531, 537, 1, 0, 0, 0, 532, 533, 10, 1, 0, 0, 533, 534, 5, 56, 0, 0, 534, 536, 3, 10, 5, 0, 535, 532, 1, 0, 0, 0, 536, 539, 1, 0, 0, 0, 537, 535, 1, 0, 0, 0, 537, 538, 1, 0, 0, 0, 538, 103, 1, 0, 0, 0, 539, 537, 1, 0, 0, 0, 540, 541, 3, 106, 53, 0, 541, 555, 5, 67, 0, 0, 542, 556, 5, 85, 0, 0, 543, 548, 3, 92, 46, 0, 544, 545, 5, 58, 0, 0, 545, 547, 3, 92, 46, 0, 546, 544, 1, 0, 0, 0, 547, 550, 1, 0, 0, 0, 548, 546, 1, 0, 0, 0, 548, 549, 1, 0, 0, 0, 549, 553, 1, 0, 0, 0, 550, 548, 1, 0, 0, 0, 551, 552, 5, 58, 0, 0, 552, 554, 3, 108, 54, 0, 553, 551, 1, 0, 0, 0, 553, 554, 1, 0, 0, 0, 554, 556, 1, 0, 0, 0, 555, 542, 1, 0, 0, 0, 555, 543, 1, 0, 0, 0, 555, 556, 1, 0, 0, 0, 556, 557, 1, 0, 0, 0, 557, 558, 5, 74, 0, 0, 558, 105, 1, 0, 0, 0, 559, 560, 3, 50, 25, 0, 560, 107, 1, 0, 0, 0, 561, 562, 5, 88, 0, 0, 562, 567, 3, 110, 55, 0, 563, 564, 5, 58, 0, 0, 564, 566, 3, 110, 55, 0, 565, 563, 1, 0, 0, 0, 566, 569, 1, 0, 0, 0, 567, 565, 1, 0, 0, 0, 567, 568, 1, 0, 0, 0, 568, 570, 1, 0, 0, 0, 569, 567, 1, 0, 0, 0, 570, 571, 5, 89, 0, 0, 571, 109, 1, 0, 0, 0, 572, 573, 3, 122, 61, 0, 573, 574, 5, 57, 0, 0, 574, 575, 3, 112, 56, 0, 575, 111, 1, 0, 0, 0, 576, 619, 5, 69, 0, 0, 577, 578, 3, 120, 60, 0, 578, 579, 5, 93, 0, 0, 579, 619, 1, 0, 0, 0, 580, 619, 3, 118, 59, 0, 581, 619, 3, 120, 60, 0, 582, 619, 3, 114, 57, 0, 583, 619, 3, 48, 24, 0, 584, 619, 3, 122, 61, 0, 585, 586, 5, 91, 0, 0, 586, 591, 3, 116, 58, 0, 587, 588, 5, 58, 0, 0, 588, 590, 3, 116, 58, 0, 589, 587, 1, 0, 0, 0, 590, 593, 1, 0, 0, 0, 591, 589, 1, 0, 0, 0, 591, 592, 1, 0, 0, 0, 592, 594, 1, 0, 0, 0, 593, 591, 1, 0, 0, 0, 594, 595, 5, 92, 0, 0, 595, 619, 1, 0, 0, 0, 596, 597, 5, 91, 0, 0, 597, 602, 3, 114, 57, 0, 598, 599, 5, 58, 0, 0, 599, 601, 3, 114, 57, 0, 600, 598, 1, 0, 0, 0, 601, 604, 1, 0, 0, 0, 602, 600, 1, 0, 0, 0, 602, 603, 1, 0, 0, 0, 603, 605, 1, 0, 0, 0, 604, 602, 1, 0, 0, 0, 605, 606, 5, 92, 0, 0, 606, 619, 1, 0, 0, 0, 607, 608, 5, 91, 0, 0, 608, 613, 3, 122, 61, 0, 609, 610, 5, 58, 0, 0, 610, 612, 3, 122, 61, 0, 611, 609, 1, 0, 0, 0, 612, 615, 1, 0, 0, 0, 613, 611, 1, 0, 0, 0, 613, 614, 1, 0, 0, 0, 614, 616, 1, 0, 0, 0, 615, 613, 1, 0, 0, 0, 616, 617, 5, 92, 0, 0, 617, 619, 1, 0, 0, 0, 618, 576, 1, 0, 0, 0, 618, 577, 1, 0, 0, 0, 618, 580, 1, 0, 0, 0, 618, 581, 1, 0, 0, 0, 618, 582, 1, 0, 0, 0, 618, 583, 1, 0, 0, 0, 618, 584, 1, 0, 0, 0, 618, 585, 1, 0, 0, 0, 618, 596, 1, 0, 0, 0, 618, 607, 1, 0, 0, 0, 619, 113, 1, 0, 0, 0, 620, 621, 7, 6, 0, 0, 621, 115, 1, 0, 0, 0, 622, 625, 3, 118, 59, 0, 623, 625, 3, 120, 60, 0, 624, 622, 1, 0, 0, 0, 624, 623, 1, 0, 0, 0, 625, 117, 1, 0, 0, 0, 626, 628, 7, 4, 0, 0, 627, 626, 1, 0, 0, 0, 627, 628, 1, 0, 0, 0, 628, 629, 1, 0, 0, 0, 629, 630, 5, 51, 0, 0, 630, 119, 1, 0, 0, 0, 631, 633, 7, 4, 0, 0, 632, 631, 1, 0, 0, 0, 632, 633, 1, 0, 0, 0, 633, 634, 1, 0, 0, 0, 634, 635, 5, 50, 0, 0, 635, 121, 1, 0, 0, 0, 636, 637, 5, 49, 0, 0, 637, 123, 1, 0, 0, 0, 638, 639, 7, 7, 0, 0, 639, 125, 1, 0, 0, 0, 640, 641, 7, 8, 0, 0, 641, 642, 5, 103, 0, 0, 642, 643, 3, 128, 64, 0, 643, 644, 3, 130, 65, 0, 644, 127, 1, 0, 0, 0, 645, 646, 3, 20, 10, 0, 646, 129, 1, 0, 0, 0, 647, 648, 5, 32, 0, 0, 648, 653, 3, 132, 66, 0, 649, 650, 5, 58, 0, 0, 650, 652, 3, 132, 66, 0, 651, 649, 1, 0, 0, 0, 652, 655, 1, 0, 0, 0, 653, 651, 1, 0, 0, 0, 653, 654, 1, 0, 0, 0, 654, 131, 1, 0, 0, 0, 655, 653, 1, 0, 0, 0, 656, 657, 3, 98, 49, 0, 657, 133, 1, 0, 0, 0, 63, 145, 154, 175, 190, 196, 206, 210, 215, 229, 238, 242, 246, 253, 257, 264, 270, 277, 285, 293, 300, 304, 308, 319, 324, 328, 342, 353, 367, 388, 396, 399, 404, 417, 423, 430, 439, 448, 456, 461, 469, 471, 476, 483, 488, 493, 503, 509, 517, 519, 530, 537, 548, 553, 555, 567, 591, 602, 613, 618, 624, 627, 632, 653] \ No newline at end of file diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java index 5bd2a3b48710c..dbb08f9f3c8e9 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParser.java @@ -56,43 +56,43 @@ public class EsqlBaseParser extends ParserConfig { SHOW_WS=134; public static final int RULE_singleStatement = 0, RULE_query = 1, RULE_sourceCommand = 2, RULE_processingCommand = 3, - RULE_whereCommand = 4, RULE_booleanExpression = 5, RULE_regexBooleanExpression = 6, - RULE_matchBooleanExpression = 7, RULE_valueExpression = 8, RULE_operatorExpression = 9, - RULE_primaryExpression = 10, RULE_functionExpression = 11, RULE_functionName = 12, - RULE_mapExpression = 13, RULE_entryExpression = 14, RULE_dataType = 15, - RULE_rowCommand = 16, RULE_fields = 17, RULE_field = 18, RULE_fromCommand = 19, - RULE_indexPattern = 20, RULE_clusterString = 21, RULE_indexString = 22, - RULE_metadata = 23, RULE_metricsCommand = 24, RULE_evalCommand = 25, RULE_statsCommand = 26, - RULE_aggFields = 27, RULE_aggField = 28, RULE_qualifiedName = 29, RULE_qualifiedNamePattern = 30, - RULE_qualifiedNamePatterns = 31, RULE_identifier = 32, RULE_identifierPattern = 33, - RULE_constant = 34, RULE_parameter = 35, RULE_identifierOrParameter = 36, - RULE_limitCommand = 37, RULE_sortCommand = 38, RULE_orderExpression = 39, - RULE_keepCommand = 40, RULE_dropCommand = 41, RULE_renameCommand = 42, - RULE_renameClause = 43, RULE_dissectCommand = 44, RULE_grokCommand = 45, - RULE_mvExpandCommand = 46, RULE_commandOptions = 47, RULE_commandOption = 48, - RULE_booleanValue = 49, RULE_numericValue = 50, RULE_decimalValue = 51, - RULE_integerValue = 52, RULE_string = 53, RULE_comparisonOperator = 54, - RULE_explainCommand = 55, RULE_subqueryExpression = 56, RULE_showCommand = 57, - RULE_enrichCommand = 58, RULE_enrichWithClause = 59, RULE_lookupCommand = 60, - RULE_inlinestatsCommand = 61, RULE_joinCommand = 62, RULE_joinTarget = 63, - RULE_joinCondition = 64, RULE_joinPredicate = 65, RULE_changePointCommand = 66; + RULE_whereCommand = 4, RULE_dataType = 5, RULE_rowCommand = 6, RULE_fields = 7, + RULE_field = 8, RULE_fromCommand = 9, RULE_indexPattern = 10, RULE_clusterString = 11, + RULE_indexString = 12, RULE_metadata = 13, RULE_metricsCommand = 14, RULE_evalCommand = 15, + RULE_statsCommand = 16, RULE_aggFields = 17, RULE_aggField = 18, RULE_qualifiedName = 19, + RULE_qualifiedNamePattern = 20, RULE_qualifiedNamePatterns = 21, RULE_identifier = 22, + RULE_identifierPattern = 23, RULE_parameter = 24, RULE_identifierOrParameter = 25, + RULE_limitCommand = 26, RULE_sortCommand = 27, RULE_orderExpression = 28, + RULE_keepCommand = 29, RULE_dropCommand = 30, RULE_renameCommand = 31, + RULE_renameClause = 32, RULE_dissectCommand = 33, RULE_grokCommand = 34, + RULE_mvExpandCommand = 35, RULE_commandOptions = 36, RULE_commandOption = 37, + RULE_explainCommand = 38, RULE_subqueryExpression = 39, RULE_showCommand = 40, + RULE_enrichCommand = 41, RULE_enrichWithClause = 42, RULE_lookupCommand = 43, + RULE_inlinestatsCommand = 44, RULE_changePointCommand = 45, RULE_booleanExpression = 46, + RULE_regexBooleanExpression = 47, RULE_matchBooleanExpression = 48, RULE_valueExpression = 49, + RULE_operatorExpression = 50, RULE_primaryExpression = 51, RULE_functionExpression = 52, + RULE_functionName = 53, RULE_mapExpression = 54, RULE_entryExpression = 55, + RULE_constant = 56, RULE_booleanValue = 57, RULE_numericValue = 58, RULE_decimalValue = 59, + RULE_integerValue = 60, RULE_string = 61, RULE_comparisonOperator = 62, + RULE_joinCommand = 63, RULE_joinTarget = 64, RULE_joinCondition = 65, + RULE_joinPredicate = 66; private static String[] makeRuleNames() { return new String[] { "singleStatement", "query", "sourceCommand", "processingCommand", "whereCommand", + "dataType", "rowCommand", "fields", "field", "fromCommand", "indexPattern", + "clusterString", "indexString", "metadata", "metricsCommand", "evalCommand", + "statsCommand", "aggFields", "aggField", "qualifiedName", "qualifiedNamePattern", + "qualifiedNamePatterns", "identifier", "identifierPattern", "parameter", + "identifierOrParameter", "limitCommand", "sortCommand", "orderExpression", + "keepCommand", "dropCommand", "renameCommand", "renameClause", "dissectCommand", + "grokCommand", "mvExpandCommand", "commandOptions", "commandOption", + "explainCommand", "subqueryExpression", "showCommand", "enrichCommand", + "enrichWithClause", "lookupCommand", "inlinestatsCommand", "changePointCommand", "booleanExpression", "regexBooleanExpression", "matchBooleanExpression", "valueExpression", "operatorExpression", "primaryExpression", "functionExpression", - "functionName", "mapExpression", "entryExpression", "dataType", "rowCommand", - "fields", "field", "fromCommand", "indexPattern", "clusterString", "indexString", - "metadata", "metricsCommand", "evalCommand", "statsCommand", "aggFields", - "aggField", "qualifiedName", "qualifiedNamePattern", "qualifiedNamePatterns", - "identifier", "identifierPattern", "constant", "parameter", "identifierOrParameter", - "limitCommand", "sortCommand", "orderExpression", "keepCommand", "dropCommand", - "renameCommand", "renameClause", "dissectCommand", "grokCommand", "mvExpandCommand", - "commandOptions", "commandOption", "booleanValue", "numericValue", "decimalValue", - "integerValue", "string", "comparisonOperator", "explainCommand", "subqueryExpression", - "showCommand", "enrichCommand", "enrichWithClause", "lookupCommand", - "inlinestatsCommand", "joinCommand", "joinTarget", "joinCondition", "joinPredicate", - "changePointCommand" + "functionName", "mapExpression", "entryExpression", "constant", "booleanValue", + "numericValue", "decimalValue", "integerValue", "string", "comparisonOperator", + "joinCommand", "joinTarget", "joinCondition", "joinPredicate" }; } public static final String[] ruleNames = makeRuleNames(); @@ -722,360 +722,233 @@ public final WhereCommandContext whereCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class BooleanExpressionContext extends ParserRuleContext { + public static class DataTypeContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public BooleanExpressionContext(ParserRuleContext parent, int invokingState) { + public DataTypeContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_booleanExpression; } + @Override public int getRuleIndex() { return RULE_dataType; } @SuppressWarnings("this-escape") - public BooleanExpressionContext() { } - public void copyFrom(BooleanExpressionContext ctx) { + public DataTypeContext() { } + public void copyFrom(DataTypeContext ctx) { super.copyFrom(ctx); } } @SuppressWarnings("CheckReturnValue") - public static class MatchExpressionContext extends BooleanExpressionContext { - public MatchBooleanExpressionContext matchBooleanExpression() { - return getRuleContext(MatchBooleanExpressionContext.class,0); + public static class ToDataTypeContext extends DataTypeContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class,0); } @SuppressWarnings("this-escape") - public MatchExpressionContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + public ToDataTypeContext(DataTypeContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMatchExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterToDataType(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMatchExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitToDataType(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMatchExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitToDataType(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class LogicalNotContext extends BooleanExpressionContext { - public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } - public BooleanExpressionContext booleanExpression() { - return getRuleContext(BooleanExpressionContext.class,0); - } - @SuppressWarnings("this-escape") - public LogicalNotContext(BooleanExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalNot(this); + + public final DataTypeContext dataType() throws RecognitionException { + DataTypeContext _localctx = new DataTypeContext(_ctx, getState()); + enterRule(_localctx, 10, RULE_dataType); + try { + _localctx = new ToDataTypeContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(180); + identifier(); + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalNot(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalNot(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class BooleanDefaultContext extends BooleanExpressionContext { - public ValueExpressionContext valueExpression() { - return getRuleContext(ValueExpressionContext.class,0); + public static class RowCommandContext extends ParserRuleContext { + public TerminalNode ROW() { return getToken(EsqlBaseParser.ROW, 0); } + public FieldsContext fields() { + return getRuleContext(FieldsContext.class,0); } @SuppressWarnings("this-escape") - public BooleanDefaultContext(BooleanExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanDefault(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanDefault(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanDefault(this); - else return visitor.visitChildren(this); - } - } - @SuppressWarnings("CheckReturnValue") - public static class IsNullContext extends BooleanExpressionContext { - public ValueExpressionContext valueExpression() { - return getRuleContext(ValueExpressionContext.class,0); + public RowCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); } - public TerminalNode IS() { return getToken(EsqlBaseParser.IS, 0); } - public TerminalNode NULL() { return getToken(EsqlBaseParser.NULL, 0); } - public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } - @SuppressWarnings("this-escape") - public IsNullContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + @Override public int getRuleIndex() { return RULE_rowCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIsNull(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRowCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIsNull(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRowCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIsNull(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRowCommand(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class RegexExpressionContext extends BooleanExpressionContext { - public RegexBooleanExpressionContext regexBooleanExpression() { - return getRuleContext(RegexBooleanExpressionContext.class,0); - } - @SuppressWarnings("this-escape") - public RegexExpressionContext(BooleanExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRegexExpression(this); + + public final RowCommandContext rowCommand() throws RecognitionException { + RowCommandContext _localctx = new RowCommandContext(_ctx, getState()); + enterRule(_localctx, 12, RULE_rowCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(182); + match(ROW); + setState(183); + fields(); + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRegexExpression(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRegexExpression(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class LogicalInContext extends BooleanExpressionContext { - public List valueExpression() { - return getRuleContexts(ValueExpressionContext.class); + public static class FieldsContext extends ParserRuleContext { + public List field() { + return getRuleContexts(FieldContext.class); } - public ValueExpressionContext valueExpression(int i) { - return getRuleContext(ValueExpressionContext.class,i); + public FieldContext field(int i) { + return getRuleContext(FieldContext.class,i); } - public TerminalNode IN() { return getToken(EsqlBaseParser.IN, 0); } - public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } - public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } - public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public LogicalInContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + public FieldsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_fields; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalIn(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFields(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalIn(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFields(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalIn(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFields(this); else return visitor.visitChildren(this); } } + + public final FieldsContext fields() throws RecognitionException { + FieldsContext _localctx = new FieldsContext(_ctx, getState()); + enterRule(_localctx, 14, RULE_fields); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(185); + field(); + setState(190); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,3,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(186); + match(COMMA); + setState(187); + field(); + } + } + } + setState(192); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,3,_ctx); + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + @SuppressWarnings("CheckReturnValue") - public static class LogicalBinaryContext extends BooleanExpressionContext { - public BooleanExpressionContext left; - public Token operator; - public BooleanExpressionContext right; - public List booleanExpression() { - return getRuleContexts(BooleanExpressionContext.class); + public static class FieldContext extends ParserRuleContext { + public BooleanExpressionContext booleanExpression() { + return getRuleContext(BooleanExpressionContext.class,0); } - public BooleanExpressionContext booleanExpression(int i) { - return getRuleContext(BooleanExpressionContext.class,i); + public QualifiedNameContext qualifiedName() { + return getRuleContext(QualifiedNameContext.class,0); } - public TerminalNode AND() { return getToken(EsqlBaseParser.AND, 0); } - public TerminalNode OR() { return getToken(EsqlBaseParser.OR, 0); } + public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } @SuppressWarnings("this-escape") - public LogicalBinaryContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + public FieldContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_field; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalBinary(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterField(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalBinary(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitField(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalBinary(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitField(this); else return visitor.visitChildren(this); } } - public final BooleanExpressionContext booleanExpression() throws RecognitionException { - return booleanExpression(0); - } - - private BooleanExpressionContext booleanExpression(int _p) throws RecognitionException { - ParserRuleContext _parentctx = _ctx; - int _parentState = getState(); - BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, _parentState); - BooleanExpressionContext _prevctx = _localctx; - int _startState = 10; - enterRecursionRule(_localctx, 10, RULE_booleanExpression, _p); - int _la; + public final FieldContext field() throws RecognitionException { + FieldContext _localctx = new FieldContext(_ctx, getState()); + enterRule(_localctx, 16, RULE_field); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(209); + setState(196); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,4,_ctx) ) { case 1: { - _localctx = new LogicalNotContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - - setState(181); - match(NOT); - setState(182); - booleanExpression(8); - } - break; - case 2: - { - _localctx = new BooleanDefaultContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(183); - valueExpression(); + setState(193); + qualifiedName(); + setState(194); + match(ASSIGN); } break; - case 3: - { - _localctx = new RegexExpressionContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(184); - regexBooleanExpression(); - } - break; - case 4: - { - _localctx = new LogicalInContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(185); - valueExpression(); - setState(187); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==NOT) { - { - setState(186); - match(NOT); - } - } - - setState(189); - match(IN); - setState(190); - match(LP); - setState(191); - valueExpression(); - setState(196); - _errHandler.sync(this); - _la = _input.LA(1); - while (_la==COMMA) { - { - { - setState(192); - match(COMMA); - setState(193); - valueExpression(); - } - } - setState(198); - _errHandler.sync(this); - _la = _input.LA(1); - } - setState(199); - match(RP); - } - break; - case 5: - { - _localctx = new IsNullContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(201); - valueExpression(); - setState(202); - match(IS); - setState(204); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==NOT) { - { - setState(203); - match(NOT); - } - } - - setState(206); - match(NULL); - } - break; - case 6: - { - _localctx = new MatchExpressionContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(208); - matchBooleanExpression(); - } - break; - } - _ctx.stop = _input.LT(-1); - setState(219); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,8,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - if ( _parseListeners!=null ) triggerExitRuleEvent(); - _prevctx = _localctx; - { - setState(217); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) { - case 1: - { - _localctx = new LogicalBinaryContext(new BooleanExpressionContext(_parentctx, _parentState)); - ((LogicalBinaryContext)_localctx).left = _prevctx; - pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression); - setState(211); - if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); - setState(212); - ((LogicalBinaryContext)_localctx).operator = match(AND); - setState(213); - ((LogicalBinaryContext)_localctx).right = booleanExpression(6); - } - break; - case 2: - { - _localctx = new LogicalBinaryContext(new BooleanExpressionContext(_parentctx, _parentState)); - ((LogicalBinaryContext)_localctx).left = _prevctx; - pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression); - setState(214); - if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); - setState(215); - ((LogicalBinaryContext)_localctx).operator = match(OR); - setState(216); - ((LogicalBinaryContext)_localctx).right = booleanExpression(5); - } - break; - } - } - } - setState(221); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,8,_ctx); } + setState(198); + booleanExpression(0); } } catch (RecognitionException re) { @@ -1084,95 +957,87 @@ private BooleanExpressionContext booleanExpression(int _p) throws RecognitionExc _errHandler.recover(this, re); } finally { - unrollRecursionContexts(_parentctx); + exitRule(); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class RegexBooleanExpressionContext extends ParserRuleContext { - public Token kind; - public StringContext pattern; - public ValueExpressionContext valueExpression() { - return getRuleContext(ValueExpressionContext.class,0); + public static class FromCommandContext extends ParserRuleContext { + public TerminalNode FROM() { return getToken(EsqlBaseParser.FROM, 0); } + public List indexPattern() { + return getRuleContexts(IndexPatternContext.class); } - public TerminalNode LIKE() { return getToken(EsqlBaseParser.LIKE, 0); } - public StringContext string() { - return getRuleContext(StringContext.class,0); + public IndexPatternContext indexPattern(int i) { + return getRuleContext(IndexPatternContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); + } + public MetadataContext metadata() { + return getRuleContext(MetadataContext.class,0); } - public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } - public TerminalNode RLIKE() { return getToken(EsqlBaseParser.RLIKE, 0); } @SuppressWarnings("this-escape") - public RegexBooleanExpressionContext(ParserRuleContext parent, int invokingState) { + public FromCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_regexBooleanExpression; } + @Override public int getRuleIndex() { return RULE_fromCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRegexBooleanExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFromCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRegexBooleanExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFromCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRegexBooleanExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFromCommand(this); else return visitor.visitChildren(this); } } - public final RegexBooleanExpressionContext regexBooleanExpression() throws RecognitionException { - RegexBooleanExpressionContext _localctx = new RegexBooleanExpressionContext(_ctx, getState()); - enterRule(_localctx, 12, RULE_regexBooleanExpression); - int _la; + public final FromCommandContext fromCommand() throws RecognitionException { + FromCommandContext _localctx = new FromCommandContext(_ctx, getState()); + enterRule(_localctx, 18, RULE_fromCommand); try { - setState(236); + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(200); + match(FROM); + setState(201); + indexPattern(); + setState(206); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) { - case 1: - enterOuterAlt(_localctx, 1); - { - setState(222); - valueExpression(); - setState(224); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==NOT) { + _alt = getInterpreter().adaptivePredict(_input,5,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { { - setState(223); - match(NOT); - } - } - - setState(226); - ((RegexBooleanExpressionContext)_localctx).kind = match(LIKE); - setState(227); - ((RegexBooleanExpressionContext)_localctx).pattern = string(); - } - break; - case 2: - enterOuterAlt(_localctx, 2); - { - setState(229); - valueExpression(); - setState(231); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==NOT) { { - setState(230); - match(NOT); + setState(202); + match(COMMA); + setState(203); + indexPattern(); } + } } - - setState(233); - ((RegexBooleanExpressionContext)_localctx).kind = match(RLIKE); - setState(234); - ((RegexBooleanExpressionContext)_localctx).pattern = string(); + setState(208); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,5,_ctx); + } + setState(210); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,6,_ctx) ) { + case 1: + { + setState(209); + metadata(); } break; } + } } catch (RecognitionException re) { _localctx.exception = re; @@ -1186,66 +1051,54 @@ public final RegexBooleanExpressionContext regexBooleanExpression() throws Recog } @SuppressWarnings("CheckReturnValue") - public static class MatchBooleanExpressionContext extends ParserRuleContext { - public QualifiedNameContext fieldExp; - public DataTypeContext fieldType; - public ConstantContext matchQuery; - public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } - public QualifiedNameContext qualifiedName() { - return getRuleContext(QualifiedNameContext.class,0); - } - public ConstantContext constant() { - return getRuleContext(ConstantContext.class,0); + public static class IndexPatternContext extends ParserRuleContext { + public IndexStringContext indexString() { + return getRuleContext(IndexStringContext.class,0); } - public TerminalNode CAST_OP() { return getToken(EsqlBaseParser.CAST_OP, 0); } - public DataTypeContext dataType() { - return getRuleContext(DataTypeContext.class,0); + public ClusterStringContext clusterString() { + return getRuleContext(ClusterStringContext.class,0); } + public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } @SuppressWarnings("this-escape") - public MatchBooleanExpressionContext(ParserRuleContext parent, int invokingState) { + public IndexPatternContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_matchBooleanExpression; } + @Override public int getRuleIndex() { return RULE_indexPattern; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMatchBooleanExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIndexPattern(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMatchBooleanExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIndexPattern(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMatchBooleanExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIndexPattern(this); else return visitor.visitChildren(this); } } - public final MatchBooleanExpressionContext matchBooleanExpression() throws RecognitionException { - MatchBooleanExpressionContext _localctx = new MatchBooleanExpressionContext(_ctx, getState()); - enterRule(_localctx, 14, RULE_matchBooleanExpression); - int _la; + public final IndexPatternContext indexPattern() throws RecognitionException { + IndexPatternContext _localctx = new IndexPatternContext(_ctx, getState()); + enterRule(_localctx, 20, RULE_indexPattern); try { enterOuterAlt(_localctx, 1); { - setState(238); - ((MatchBooleanExpressionContext)_localctx).fieldExp = qualifiedName(); - setState(241); + setState(215); _errHandler.sync(this); - _la = _input.LA(1); - if (_la==CAST_OP) { + switch ( getInterpreter().adaptivePredict(_input,7,_ctx) ) { + case 1: { - setState(239); - match(CAST_OP); - setState(240); - ((MatchBooleanExpressionContext)_localctx).fieldType = dataType(); + setState(212); + clusterString(); + setState(213); + match(COLON); } + break; } - - setState(243); - match(COLON); - setState(244); - ((MatchBooleanExpressionContext)_localctx).matchQuery = constant(); + setState(217); + indexString(); } } catch (RecognitionException re) { @@ -1260,97 +1113,100 @@ public final MatchBooleanExpressionContext matchBooleanExpression() throws Recog } @SuppressWarnings("CheckReturnValue") - public static class ValueExpressionContext extends ParserRuleContext { + public static class ClusterStringContext extends ParserRuleContext { + public TerminalNode UNQUOTED_SOURCE() { return getToken(EsqlBaseParser.UNQUOTED_SOURCE, 0); } + public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } @SuppressWarnings("this-escape") - public ValueExpressionContext(ParserRuleContext parent, int invokingState) { + public ClusterStringContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_valueExpression; } - - @SuppressWarnings("this-escape") - public ValueExpressionContext() { } - public void copyFrom(ValueExpressionContext ctx) { - super.copyFrom(ctx); - } - } - @SuppressWarnings("CheckReturnValue") - public static class ValueExpressionDefaultContext extends ValueExpressionContext { - public OperatorExpressionContext operatorExpression() { - return getRuleContext(OperatorExpressionContext.class,0); - } - @SuppressWarnings("this-escape") - public ValueExpressionDefaultContext(ValueExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterValueExpressionDefault(this); + @Override public int getRuleIndex() { return RULE_clusterString; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterClusterString(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitValueExpressionDefault(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitClusterString(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitValueExpressionDefault(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitClusterString(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class ComparisonContext extends ValueExpressionContext { - public OperatorExpressionContext left; - public OperatorExpressionContext right; - public ComparisonOperatorContext comparisonOperator() { - return getRuleContext(ComparisonOperatorContext.class,0); + + public final ClusterStringContext clusterString() throws RecognitionException { + ClusterStringContext _localctx = new ClusterStringContext(_ctx, getState()); + enterRule(_localctx, 22, RULE_clusterString); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(219); + _la = _input.LA(1); + if ( !(_la==QUOTED_STRING || _la==UNQUOTED_SOURCE) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + } } - public List operatorExpression() { - return getRuleContexts(OperatorExpressionContext.class); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - public OperatorExpressionContext operatorExpression(int i) { - return getRuleContext(OperatorExpressionContext.class,i); + finally { + exitRule(); } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class IndexStringContext extends ParserRuleContext { + public TerminalNode UNQUOTED_SOURCE() { return getToken(EsqlBaseParser.UNQUOTED_SOURCE, 0); } + public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } @SuppressWarnings("this-escape") - public ComparisonContext(ValueExpressionContext ctx) { copyFrom(ctx); } + public IndexStringContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_indexString; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterComparison(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIndexString(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitComparison(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIndexString(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitComparison(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIndexString(this); else return visitor.visitChildren(this); } } - public final ValueExpressionContext valueExpression() throws RecognitionException { - ValueExpressionContext _localctx = new ValueExpressionContext(_ctx, getState()); - enterRule(_localctx, 16, RULE_valueExpression); + public final IndexStringContext indexString() throws RecognitionException { + IndexStringContext _localctx = new IndexStringContext(_ctx, getState()); + enterRule(_localctx, 24, RULE_indexString); + int _la; try { - setState(251); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) { - case 1: - _localctx = new ValueExpressionDefaultContext(_localctx); - enterOuterAlt(_localctx, 1); - { - setState(246); - operatorExpression(0); - } - break; - case 2: - _localctx = new ComparisonContext(_localctx); - enterOuterAlt(_localctx, 2); - { - setState(247); - ((ComparisonContext)_localctx).left = operatorExpression(0); - setState(248); - comparisonOperator(); - setState(249); - ((ComparisonContext)_localctx).right = operatorExpression(0); - } - break; + enterOuterAlt(_localctx, 1); + { + setState(221); + _la = _input.LA(1); + if ( !(_la==QUOTED_STRING || _la==UNQUOTED_SOURCE) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } } } catch (RecognitionException re) { @@ -1365,209 +1221,170 @@ public final ValueExpressionContext valueExpression() throws RecognitionExceptio } @SuppressWarnings("CheckReturnValue") - public static class OperatorExpressionContext extends ParserRuleContext { - @SuppressWarnings("this-escape") - public OperatorExpressionContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_operatorExpression; } - - @SuppressWarnings("this-escape") - public OperatorExpressionContext() { } - public void copyFrom(OperatorExpressionContext ctx) { - super.copyFrom(ctx); + public static class MetadataContext extends ParserRuleContext { + public TerminalNode METADATA() { return getToken(EsqlBaseParser.METADATA, 0); } + public List UNQUOTED_SOURCE() { return getTokens(EsqlBaseParser.UNQUOTED_SOURCE); } + public TerminalNode UNQUOTED_SOURCE(int i) { + return getToken(EsqlBaseParser.UNQUOTED_SOURCE, i); } - } - @SuppressWarnings("CheckReturnValue") - public static class OperatorExpressionDefaultContext extends OperatorExpressionContext { - public PrimaryExpressionContext primaryExpression() { - return getRuleContext(PrimaryExpressionContext.class,0); + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public OperatorExpressionDefaultContext(OperatorExpressionContext ctx) { copyFrom(ctx); } + public MetadataContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_metadata; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterOperatorExpressionDefault(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMetadata(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitOperatorExpressionDefault(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMetadata(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitOperatorExpressionDefault(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMetadata(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class ArithmeticBinaryContext extends OperatorExpressionContext { - public OperatorExpressionContext left; - public Token operator; - public OperatorExpressionContext right; - public List operatorExpression() { - return getRuleContexts(OperatorExpressionContext.class); - } - public OperatorExpressionContext operatorExpression(int i) { - return getRuleContext(OperatorExpressionContext.class,i); - } - public TerminalNode ASTERISK() { return getToken(EsqlBaseParser.ASTERISK, 0); } - public TerminalNode SLASH() { return getToken(EsqlBaseParser.SLASH, 0); } - public TerminalNode PERCENT() { return getToken(EsqlBaseParser.PERCENT, 0); } - public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } - public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } - @SuppressWarnings("this-escape") - public ArithmeticBinaryContext(OperatorExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterArithmeticBinary(this); + + public final MetadataContext metadata() throws RecognitionException { + MetadataContext _localctx = new MetadataContext(_ctx, getState()); + enterRule(_localctx, 26, RULE_metadata); + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(223); + match(METADATA); + setState(224); + match(UNQUOTED_SOURCE); + setState(229); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,8,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(225); + match(COMMA); + setState(226); + match(UNQUOTED_SOURCE); + } + } + } + setState(231); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,8,_ctx); + } + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitArithmeticBinary(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitArithmeticBinary(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class ArithmeticUnaryContext extends OperatorExpressionContext { - public Token operator; - public OperatorExpressionContext operatorExpression() { - return getRuleContext(OperatorExpressionContext.class,0); + public static class MetricsCommandContext extends ParserRuleContext { + public AggFieldsContext aggregates; + public FieldsContext grouping; + public TerminalNode DEV_METRICS() { return getToken(EsqlBaseParser.DEV_METRICS, 0); } + public List indexPattern() { + return getRuleContexts(IndexPatternContext.class); + } + public IndexPatternContext indexPattern(int i) { + return getRuleContext(IndexPatternContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); + } + public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } + public AggFieldsContext aggFields() { + return getRuleContext(AggFieldsContext.class,0); + } + public FieldsContext fields() { + return getRuleContext(FieldsContext.class,0); } - public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } - public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } @SuppressWarnings("this-escape") - public ArithmeticUnaryContext(OperatorExpressionContext ctx) { copyFrom(ctx); } + public MetricsCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_metricsCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterArithmeticUnary(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMetricsCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitArithmeticUnary(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMetricsCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitArithmeticUnary(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMetricsCommand(this); else return visitor.visitChildren(this); } } - public final OperatorExpressionContext operatorExpression() throws RecognitionException { - return operatorExpression(0); - } - - private OperatorExpressionContext operatorExpression(int _p) throws RecognitionException { - ParserRuleContext _parentctx = _ctx; - int _parentState = getState(); - OperatorExpressionContext _localctx = new OperatorExpressionContext(_ctx, _parentState); - OperatorExpressionContext _prevctx = _localctx; - int _startState = 18; - enterRecursionRule(_localctx, 18, RULE_operatorExpression, _p); - int _la; + public final MetricsCommandContext metricsCommand() throws RecognitionException { + MetricsCommandContext _localctx = new MetricsCommandContext(_ctx, getState()); + enterRule(_localctx, 28, RULE_metricsCommand); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(257); + setState(232); + match(DEV_METRICS); + setState(233); + indexPattern(); + setState(238); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,14,_ctx) ) { - case 1: - { - _localctx = new OperatorExpressionDefaultContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - - setState(254); - primaryExpression(0); - } - break; - case 2: - { - _localctx = new ArithmeticUnaryContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(255); - ((ArithmeticUnaryContext)_localctx).operator = _input.LT(1); - _la = _input.LA(1); - if ( !(_la==PLUS || _la==MINUS) ) { - ((ArithmeticUnaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - setState(256); - operatorExpression(3); - } - break; - } - _ctx.stop = _input.LT(-1); - setState(267); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,16,_ctx); + _alt = getInterpreter().adaptivePredict(_input,9,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { - if ( _parseListeners!=null ) triggerExitRuleEvent(); - _prevctx = _localctx; { - setState(265); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { - case 1: - { - _localctx = new ArithmeticBinaryContext(new OperatorExpressionContext(_parentctx, _parentState)); - ((ArithmeticBinaryContext)_localctx).left = _prevctx; - pushNewRecursionContext(_localctx, _startState, RULE_operatorExpression); - setState(259); - if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); - setState(260); - ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); - _la = _input.LA(1); - if ( !(((((_la - 85)) & ~0x3f) == 0 && ((1L << (_la - 85)) & 7L) != 0)) ) { - ((ArithmeticBinaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - setState(261); - ((ArithmeticBinaryContext)_localctx).right = operatorExpression(3); - } - break; - case 2: - { - _localctx = new ArithmeticBinaryContext(new OperatorExpressionContext(_parentctx, _parentState)); - ((ArithmeticBinaryContext)_localctx).left = _prevctx; - pushNewRecursionContext(_localctx, _startState, RULE_operatorExpression); - setState(262); - if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); - setState(263); - ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); - _la = _input.LA(1); - if ( !(_la==PLUS || _la==MINUS) ) { - ((ArithmeticBinaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - setState(264); - ((ArithmeticBinaryContext)_localctx).right = operatorExpression(2); - } - break; + { + setState(234); + match(COMMA); + setState(235); + indexPattern(); } } } - setState(269); + setState(240); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,16,_ctx); + _alt = getInterpreter().adaptivePredict(_input,9,_ctx); + } + setState(242); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,10,_ctx) ) { + case 1: + { + setState(241); + ((MetricsCommandContext)_localctx).aggregates = aggFields(); + } + break; + } + setState(246); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,11,_ctx) ) { + case 1: + { + setState(244); + match(BY); + setState(245); + ((MetricsCommandContext)_localctx).grouping = fields(); + } + break; } } } @@ -1577,221 +1394,193 @@ private OperatorExpressionContext operatorExpression(int _p) throws RecognitionE _errHandler.recover(this, re); } finally { - unrollRecursionContexts(_parentctx); + exitRule(); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class PrimaryExpressionContext extends ParserRuleContext { - @SuppressWarnings("this-escape") - public PrimaryExpressionContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public static class EvalCommandContext extends ParserRuleContext { + public TerminalNode EVAL() { return getToken(EsqlBaseParser.EVAL, 0); } + public FieldsContext fields() { + return getRuleContext(FieldsContext.class,0); } - @Override public int getRuleIndex() { return RULE_primaryExpression; } - @SuppressWarnings("this-escape") - public PrimaryExpressionContext() { } - public void copyFrom(PrimaryExpressionContext ctx) { - super.copyFrom(ctx); - } - } - @SuppressWarnings("CheckReturnValue") - public static class DereferenceContext extends PrimaryExpressionContext { - public QualifiedNameContext qualifiedName() { - return getRuleContext(QualifiedNameContext.class,0); + public EvalCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); } - @SuppressWarnings("this-escape") - public DereferenceContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } + @Override public int getRuleIndex() { return RULE_evalCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDereference(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEvalCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDereference(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEvalCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDereference(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEvalCommand(this); else return visitor.visitChildren(this); } } + + public final EvalCommandContext evalCommand() throws RecognitionException { + EvalCommandContext _localctx = new EvalCommandContext(_ctx, getState()); + enterRule(_localctx, 30, RULE_evalCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(248); + match(EVAL); + setState(249); + fields(); + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + @SuppressWarnings("CheckReturnValue") - public static class InlineCastContext extends PrimaryExpressionContext { - public PrimaryExpressionContext primaryExpression() { - return getRuleContext(PrimaryExpressionContext.class,0); + public static class StatsCommandContext extends ParserRuleContext { + public AggFieldsContext stats; + public FieldsContext grouping; + public TerminalNode STATS() { return getToken(EsqlBaseParser.STATS, 0); } + public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } + public AggFieldsContext aggFields() { + return getRuleContext(AggFieldsContext.class,0); } - public TerminalNode CAST_OP() { return getToken(EsqlBaseParser.CAST_OP, 0); } - public DataTypeContext dataType() { - return getRuleContext(DataTypeContext.class,0); + public FieldsContext fields() { + return getRuleContext(FieldsContext.class,0); } @SuppressWarnings("this-escape") - public InlineCastContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } + public StatsCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_statsCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInlineCast(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStatsCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInlineCast(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStatsCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInlineCast(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStatsCommand(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class ConstantDefaultContext extends PrimaryExpressionContext { - public ConstantContext constant() { - return getRuleContext(ConstantContext.class,0); - } - @SuppressWarnings("this-escape") - public ConstantDefaultContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterConstantDefault(this); + + public final StatsCommandContext statsCommand() throws RecognitionException { + StatsCommandContext _localctx = new StatsCommandContext(_ctx, getState()); + enterRule(_localctx, 32, RULE_statsCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(251); + match(STATS); + setState(253); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,12,_ctx) ) { + case 1: + { + setState(252); + ((StatsCommandContext)_localctx).stats = aggFields(); + } + break; + } + setState(257); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,13,_ctx) ) { + case 1: + { + setState(255); + match(BY); + setState(256); + ((StatsCommandContext)_localctx).grouping = fields(); + } + break; + } + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitConstantDefault(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitConstantDefault(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class ParenthesizedExpressionContext extends PrimaryExpressionContext { - public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } - public BooleanExpressionContext booleanExpression() { - return getRuleContext(BooleanExpressionContext.class,0); + public static class AggFieldsContext extends ParserRuleContext { + public List aggField() { + return getRuleContexts(AggFieldContext.class); + } + public AggFieldContext aggField(int i) { + return getRuleContext(AggFieldContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } - public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } @SuppressWarnings("this-escape") - public ParenthesizedExpressionContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } + public AggFieldsContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_aggFields; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterParenthesizedExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterAggFields(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitParenthesizedExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitAggFields(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitParenthesizedExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitAggFields(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class FunctionContext extends PrimaryExpressionContext { - public FunctionExpressionContext functionExpression() { - return getRuleContext(FunctionExpressionContext.class,0); - } - @SuppressWarnings("this-escape") - public FunctionContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunction(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunction(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunction(this); - else return visitor.visitChildren(this); - } - } - - public final PrimaryExpressionContext primaryExpression() throws RecognitionException { - return primaryExpression(0); - } - private PrimaryExpressionContext primaryExpression(int _p) throws RecognitionException { - ParserRuleContext _parentctx = _ctx; - int _parentState = getState(); - PrimaryExpressionContext _localctx = new PrimaryExpressionContext(_ctx, _parentState); - PrimaryExpressionContext _prevctx = _localctx; - int _startState = 20; - enterRecursionRule(_localctx, 20, RULE_primaryExpression, _p); + public final AggFieldsContext aggFields() throws RecognitionException { + AggFieldsContext _localctx = new AggFieldsContext(_ctx, getState()); + enterRule(_localctx, 34, RULE_aggFields); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(278); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,17,_ctx) ) { - case 1: - { - _localctx = new ConstantDefaultContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - - setState(271); - constant(); - } - break; - case 2: - { - _localctx = new DereferenceContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(272); - qualifiedName(); - } - break; - case 3: - { - _localctx = new FunctionContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(273); - functionExpression(); - } - break; - case 4: - { - _localctx = new ParenthesizedExpressionContext(_localctx); - _ctx = _localctx; - _prevctx = _localctx; - setState(274); - match(LP); - setState(275); - booleanExpression(0); - setState(276); - match(RP); - } - break; - } - _ctx.stop = _input.LT(-1); - setState(285); + setState(259); + aggField(); + setState(264); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + _alt = getInterpreter().adaptivePredict(_input,14,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { - if ( _parseListeners!=null ) triggerExitRuleEvent(); - _prevctx = _localctx; { { - _localctx = new InlineCastContext(new PrimaryExpressionContext(_parentctx, _parentState)); - pushNewRecursionContext(_localctx, _startState, RULE_primaryExpression); - setState(280); - if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); - setState(281); - match(CAST_OP); - setState(282); - dataType(); + setState(260); + match(COMMA); + setState(261); + aggField(); } } } - setState(287); + setState(266); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + _alt = getInterpreter().adaptivePredict(_input,14,_ctx); } } } @@ -1801,132 +1590,60 @@ private PrimaryExpressionContext primaryExpression(int _p) throws RecognitionExc _errHandler.recover(this, re); } finally { - unrollRecursionContexts(_parentctx); + exitRule(); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class FunctionExpressionContext extends ParserRuleContext { - public FunctionNameContext functionName() { - return getRuleContext(FunctionNameContext.class,0); - } - public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } - public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } - public TerminalNode ASTERISK() { return getToken(EsqlBaseParser.ASTERISK, 0); } - public List booleanExpression() { - return getRuleContexts(BooleanExpressionContext.class); - } - public BooleanExpressionContext booleanExpression(int i) { - return getRuleContext(BooleanExpressionContext.class,i); - } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public static class AggFieldContext extends ParserRuleContext { + public FieldContext field() { + return getRuleContext(FieldContext.class,0); } - public MapExpressionContext mapExpression() { - return getRuleContext(MapExpressionContext.class,0); + public TerminalNode WHERE() { return getToken(EsqlBaseParser.WHERE, 0); } + public BooleanExpressionContext booleanExpression() { + return getRuleContext(BooleanExpressionContext.class,0); } @SuppressWarnings("this-escape") - public FunctionExpressionContext(ParserRuleContext parent, int invokingState) { + public AggFieldContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_functionExpression; } + @Override public int getRuleIndex() { return RULE_aggField; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunctionExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterAggField(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunctionExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitAggField(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunctionExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitAggField(this); else return visitor.visitChildren(this); } } - public final FunctionExpressionContext functionExpression() throws RecognitionException { - FunctionExpressionContext _localctx = new FunctionExpressionContext(_ctx, getState()); - enterRule(_localctx, 22, RULE_functionExpression); - int _la; + public final AggFieldContext aggField() throws RecognitionException { + AggFieldContext _localctx = new AggFieldContext(_ctx, getState()); + enterRule(_localctx, 36, RULE_aggField); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(288); - functionName(); - setState(289); - match(LP); - setState(303); + setState(267); + field(); + setState(270); _errHandler.sync(this); - switch (_input.LA(1)) { - case ASTERISK: - { - setState(290); - match(ASTERISK); - } - break; - case QUOTED_STRING: - case INTEGER_LITERAL: - case DECIMAL_LITERAL: - case FALSE: - case LP: - case NOT: - case NULL: - case PARAM: - case TRUE: - case PLUS: - case MINUS: - case NAMED_OR_POSITIONAL_PARAM: - case OPENING_BRACKET: - case UNQUOTED_IDENTIFIER: - case QUOTED_IDENTIFIER: - { + switch ( getInterpreter().adaptivePredict(_input,15,_ctx) ) { + case 1: { - setState(291); + setState(268); + match(WHERE); + setState(269); booleanExpression(0); - setState(296); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,19,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(292); - match(COMMA); - setState(293); - booleanExpression(0); - } - } - } - setState(298); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,19,_ctx); } - setState(301); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==COMMA) { - { - setState(299); - match(COMMA); - setState(300); - mapExpression(); - } - } - - } - } - break; - case RP: - break; - default: break; } - setState(305); - match(RP); } } catch (RecognitionException re) { @@ -1941,38 +1658,64 @@ public final FunctionExpressionContext functionExpression() throws RecognitionEx } @SuppressWarnings("CheckReturnValue") - public static class FunctionNameContext extends ParserRuleContext { - public IdentifierOrParameterContext identifierOrParameter() { - return getRuleContext(IdentifierOrParameterContext.class,0); + public static class QualifiedNameContext extends ParserRuleContext { + public List identifierOrParameter() { + return getRuleContexts(IdentifierOrParameterContext.class); + } + public IdentifierOrParameterContext identifierOrParameter(int i) { + return getRuleContext(IdentifierOrParameterContext.class,i); + } + public List DOT() { return getTokens(EsqlBaseParser.DOT); } + public TerminalNode DOT(int i) { + return getToken(EsqlBaseParser.DOT, i); } @SuppressWarnings("this-escape") - public FunctionNameContext(ParserRuleContext parent, int invokingState) { + public QualifiedNameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_functionName; } + @Override public int getRuleIndex() { return RULE_qualifiedName; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunctionName(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedName(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunctionName(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedName(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunctionName(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedName(this); else return visitor.visitChildren(this); } } - public final FunctionNameContext functionName() throws RecognitionException { - FunctionNameContext _localctx = new FunctionNameContext(_ctx, getState()); - enterRule(_localctx, 24, RULE_functionName); + public final QualifiedNameContext qualifiedName() throws RecognitionException { + QualifiedNameContext _localctx = new QualifiedNameContext(_ctx, getState()); + enterRule(_localctx, 38, RULE_qualifiedName); try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(307); + setState(272); identifierOrParameter(); + setState(277); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,16,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(273); + match(DOT); + setState(274); + identifierOrParameter(); + } + } + } + setState(279); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,16,_ctx); + } } } catch (RecognitionException re) { @@ -1987,68 +1730,64 @@ public final FunctionNameContext functionName() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class MapExpressionContext extends ParserRuleContext { - public TerminalNode LEFT_BRACES() { return getToken(EsqlBaseParser.LEFT_BRACES, 0); } - public List entryExpression() { - return getRuleContexts(EntryExpressionContext.class); + public static class QualifiedNamePatternContext extends ParserRuleContext { + public List identifierPattern() { + return getRuleContexts(IdentifierPatternContext.class); } - public EntryExpressionContext entryExpression(int i) { - return getRuleContext(EntryExpressionContext.class,i); + public IdentifierPatternContext identifierPattern(int i) { + return getRuleContext(IdentifierPatternContext.class,i); } - public TerminalNode RIGHT_BRACES() { return getToken(EsqlBaseParser.RIGHT_BRACES, 0); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public List DOT() { return getTokens(EsqlBaseParser.DOT); } + public TerminalNode DOT(int i) { + return getToken(EsqlBaseParser.DOT, i); } @SuppressWarnings("this-escape") - public MapExpressionContext(ParserRuleContext parent, int invokingState) { + public QualifiedNamePatternContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_mapExpression; } + @Override public int getRuleIndex() { return RULE_qualifiedNamePattern; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMapExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedNamePattern(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMapExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedNamePattern(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMapExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedNamePattern(this); else return visitor.visitChildren(this); } } - public final MapExpressionContext mapExpression() throws RecognitionException { - MapExpressionContext _localctx = new MapExpressionContext(_ctx, getState()); - enterRule(_localctx, 26, RULE_mapExpression); - int _la; + public final QualifiedNamePatternContext qualifiedNamePattern() throws RecognitionException { + QualifiedNamePatternContext _localctx = new QualifiedNamePatternContext(_ctx, getState()); + enterRule(_localctx, 40, RULE_qualifiedNamePattern); try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(309); - match(LEFT_BRACES); - setState(310); - entryExpression(); - setState(315); - _errHandler.sync(this); - _la = _input.LA(1); - while (_la==COMMA) { - { - { - setState(311); - match(COMMA); - setState(312); - entryExpression(); - } + setState(280); + identifierPattern(); + setState(285); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,17,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(281); + match(DOT); + setState(282); + identifierPattern(); + } + } } - setState(317); + setState(287); _errHandler.sync(this); - _la = _input.LA(1); + _alt = getInterpreter().adaptivePredict(_input,17,_ctx); } - setState(318); - match(RIGHT_BRACES); } } catch (RecognitionException re) { @@ -2063,48 +1802,64 @@ public final MapExpressionContext mapExpression() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class EntryExpressionContext extends ParserRuleContext { - public StringContext key; - public ConstantContext value; - public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } - public StringContext string() { - return getRuleContext(StringContext.class,0); + public static class QualifiedNamePatternsContext extends ParserRuleContext { + public List qualifiedNamePattern() { + return getRuleContexts(QualifiedNamePatternContext.class); } - public ConstantContext constant() { - return getRuleContext(ConstantContext.class,0); + public QualifiedNamePatternContext qualifiedNamePattern(int i) { + return getRuleContext(QualifiedNamePatternContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public EntryExpressionContext(ParserRuleContext parent, int invokingState) { + public QualifiedNamePatternsContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_entryExpression; } + @Override public int getRuleIndex() { return RULE_qualifiedNamePatterns; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEntryExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedNamePatterns(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEntryExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedNamePatterns(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEntryExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedNamePatterns(this); else return visitor.visitChildren(this); } } - public final EntryExpressionContext entryExpression() throws RecognitionException { - EntryExpressionContext _localctx = new EntryExpressionContext(_ctx, getState()); - enterRule(_localctx, 28, RULE_entryExpression); + public final QualifiedNamePatternsContext qualifiedNamePatterns() throws RecognitionException { + QualifiedNamePatternsContext _localctx = new QualifiedNamePatternsContext(_ctx, getState()); + enterRule(_localctx, 42, RULE_qualifiedNamePatterns); try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(320); - ((EntryExpressionContext)_localctx).key = string(); - setState(321); - match(COLON); - setState(322); - ((EntryExpressionContext)_localctx).value = constant(); + setState(288); + qualifiedNamePattern(); + setState(293); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(289); + match(COMMA); + setState(290); + qualifiedNamePattern(); + } + } + } + setState(295); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,18,_ctx); + } } } catch (RecognitionException re) { @@ -2119,50 +1874,46 @@ public final EntryExpressionContext entryExpression() throws RecognitionExceptio } @SuppressWarnings("CheckReturnValue") - public static class DataTypeContext extends ParserRuleContext { + public static class IdentifierContext extends ParserRuleContext { + public TerminalNode UNQUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.UNQUOTED_IDENTIFIER, 0); } + public TerminalNode QUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.QUOTED_IDENTIFIER, 0); } @SuppressWarnings("this-escape") - public DataTypeContext(ParserRuleContext parent, int invokingState) { + public IdentifierContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_dataType; } - - @SuppressWarnings("this-escape") - public DataTypeContext() { } - public void copyFrom(DataTypeContext ctx) { - super.copyFrom(ctx); - } - } - @SuppressWarnings("CheckReturnValue") - public static class ToDataTypeContext extends DataTypeContext { - public IdentifierContext identifier() { - return getRuleContext(IdentifierContext.class,0); - } - @SuppressWarnings("this-escape") - public ToDataTypeContext(DataTypeContext ctx) { copyFrom(ctx); } + @Override public int getRuleIndex() { return RULE_identifier; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterToDataType(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifier(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitToDataType(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifier(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitToDataType(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifier(this); else return visitor.visitChildren(this); } } - public final DataTypeContext dataType() throws RecognitionException { - DataTypeContext _localctx = new DataTypeContext(_ctx, getState()); - enterRule(_localctx, 30, RULE_dataType); + public final IdentifierContext identifier() throws RecognitionException { + IdentifierContext _localctx = new IdentifierContext(_ctx, getState()); + enterRule(_localctx, 44, RULE_identifier); + int _la; try { - _localctx = new ToDataTypeContext(_localctx); enterOuterAlt(_localctx, 1); { - setState(324); - identifier(); + setState(296); + _la = _input.LA(1); + if ( !(_la==UNQUOTED_IDENTIFIER || _la==QUOTED_IDENTIFIER) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } } } catch (RecognitionException re) { @@ -2177,41 +1928,55 @@ public final DataTypeContext dataType() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class RowCommandContext extends ParserRuleContext { - public TerminalNode ROW() { return getToken(EsqlBaseParser.ROW, 0); } - public FieldsContext fields() { - return getRuleContext(FieldsContext.class,0); + public static class IdentifierPatternContext extends ParserRuleContext { + public TerminalNode ID_PATTERN() { return getToken(EsqlBaseParser.ID_PATTERN, 0); } + public ParameterContext parameter() { + return getRuleContext(ParameterContext.class,0); } @SuppressWarnings("this-escape") - public RowCommandContext(ParserRuleContext parent, int invokingState) { + public IdentifierPatternContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_rowCommand; } + @Override public int getRuleIndex() { return RULE_identifierPattern; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRowCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifierPattern(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRowCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifierPattern(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRowCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifierPattern(this); else return visitor.visitChildren(this); } } - public final RowCommandContext rowCommand() throws RecognitionException { - RowCommandContext _localctx = new RowCommandContext(_ctx, getState()); - enterRule(_localctx, 32, RULE_rowCommand); + public final IdentifierPatternContext identifierPattern() throws RecognitionException { + IdentifierPatternContext _localctx = new IdentifierPatternContext(_ctx, getState()); + enterRule(_localctx, 46, RULE_identifierPattern); try { - enterOuterAlt(_localctx, 1); - { - setState(326); - match(ROW); - setState(327); - fields(); + setState(300); + _errHandler.sync(this); + switch (_input.LA(1)) { + case ID_PATTERN: + enterOuterAlt(_localctx, 1); + { + setState(298); + match(ID_PATTERN); + } + break; + case PARAM: + case NAMED_OR_POSITIONAL_PARAM: + enterOuterAlt(_localctx, 2); + { + setState(299); + parameter(); + } + break; + default: + throw new NoViableAltException(this); } } catch (RecognitionException re) { @@ -2226,64 +1991,83 @@ public final RowCommandContext rowCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class FieldsContext extends ParserRuleContext { - public List field() { - return getRuleContexts(FieldContext.class); - } - public FieldContext field(int i) { - return getRuleContext(FieldContext.class,i); + public static class ParameterContext extends ParserRuleContext { + @SuppressWarnings("this-escape") + public ParameterContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + @Override public int getRuleIndex() { return RULE_parameter; } + + @SuppressWarnings("this-escape") + public ParameterContext() { } + public void copyFrom(ParameterContext ctx) { + super.copyFrom(ctx); } + } + @SuppressWarnings("CheckReturnValue") + public static class InputNamedOrPositionalParamContext extends ParameterContext { + public TerminalNode NAMED_OR_POSITIONAL_PARAM() { return getToken(EsqlBaseParser.NAMED_OR_POSITIONAL_PARAM, 0); } @SuppressWarnings("this-escape") - public FieldsContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public InputNamedOrPositionalParamContext(ParameterContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputNamedOrPositionalParam(this); } - @Override public int getRuleIndex() { return RULE_fields; } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputNamedOrPositionalParam(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputNamedOrPositionalParam(this); + else return visitor.visitChildren(this); + } + } + @SuppressWarnings("CheckReturnValue") + public static class InputParamContext extends ParameterContext { + public TerminalNode PARAM() { return getToken(EsqlBaseParser.PARAM, 0); } + @SuppressWarnings("this-escape") + public InputParamContext(ParameterContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFields(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputParam(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFields(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputParam(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFields(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputParam(this); else return visitor.visitChildren(this); } } - public final FieldsContext fields() throws RecognitionException { - FieldsContext _localctx = new FieldsContext(_ctx, getState()); - enterRule(_localctx, 34, RULE_fields); + public final ParameterContext parameter() throws RecognitionException { + ParameterContext _localctx = new ParameterContext(_ctx, getState()); + enterRule(_localctx, 48, RULE_parameter); try { - int _alt; - enterOuterAlt(_localctx, 1); - { - setState(329); - field(); - setState(334); + setState(304); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,23,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(330); - match(COMMA); - setState(331); - field(); - } - } + switch (_input.LA(1)) { + case PARAM: + _localctx = new InputParamContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(302); + match(PARAM); } - setState(336); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,23,_ctx); - } + break; + case NAMED_OR_POSITIONAL_PARAM: + _localctx = new InputNamedOrPositionalParamContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(303); + match(NAMED_OR_POSITIONAL_PARAM); + } + break; + default: + throw new NoViableAltException(this); } } catch (RecognitionException re) { @@ -2298,54 +2082,105 @@ public final FieldsContext fields() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class FieldContext extends ParserRuleContext { - public BooleanExpressionContext booleanExpression() { - return getRuleContext(BooleanExpressionContext.class,0); + public static class IdentifierOrParameterContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class,0); } - public QualifiedNameContext qualifiedName() { - return getRuleContext(QualifiedNameContext.class,0); + public ParameterContext parameter() { + return getRuleContext(ParameterContext.class,0); } - public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } @SuppressWarnings("this-escape") - public FieldContext(ParserRuleContext parent, int invokingState) { + public IdentifierOrParameterContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_field; } + @Override public int getRuleIndex() { return RULE_identifierOrParameter; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterField(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifierOrParameter(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitField(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifierOrParameter(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitField(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifierOrParameter(this); else return visitor.visitChildren(this); } } - public final FieldContext field() throws RecognitionException { - FieldContext _localctx = new FieldContext(_ctx, getState()); - enterRule(_localctx, 36, RULE_field); + public final IdentifierOrParameterContext identifierOrParameter() throws RecognitionException { + IdentifierOrParameterContext _localctx = new IdentifierOrParameterContext(_ctx, getState()); + enterRule(_localctx, 50, RULE_identifierOrParameter); try { - enterOuterAlt(_localctx, 1); - { - setState(340); + setState(308); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { - case 1: + switch (_input.LA(1)) { + case UNQUOTED_IDENTIFIER: + case QUOTED_IDENTIFIER: + enterOuterAlt(_localctx, 1); { - setState(337); - qualifiedName(); - setState(338); - match(ASSIGN); + setState(306); + identifier(); + } + break; + case PARAM: + case NAMED_OR_POSITIONAL_PARAM: + enterOuterAlt(_localctx, 2); + { + setState(307); + parameter(); } break; + default: + throw new NoViableAltException(this); } - setState(342); - booleanExpression(0); + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + + @SuppressWarnings("CheckReturnValue") + public static class LimitCommandContext extends ParserRuleContext { + public TerminalNode LIMIT() { return getToken(EsqlBaseParser.LIMIT, 0); } + public TerminalNode INTEGER_LITERAL() { return getToken(EsqlBaseParser.INTEGER_LITERAL, 0); } + @SuppressWarnings("this-escape") + public LimitCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_limitCommand; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLimitCommand(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLimitCommand(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLimitCommand(this); + else return visitor.visitChildren(this); + } + } + + public final LimitCommandContext limitCommand() throws RecognitionException { + LimitCommandContext _localctx = new LimitCommandContext(_ctx, getState()); + enterRule(_localctx, 52, RULE_limitCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(310); + match(LIMIT); + setState(311); + match(INTEGER_LITERAL); } } catch (RecognitionException re) { @@ -2360,79 +2195,66 @@ public final FieldContext field() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class FromCommandContext extends ParserRuleContext { - public TerminalNode FROM() { return getToken(EsqlBaseParser.FROM, 0); } - public List indexPattern() { - return getRuleContexts(IndexPatternContext.class); + public static class SortCommandContext extends ParserRuleContext { + public TerminalNode SORT() { return getToken(EsqlBaseParser.SORT, 0); } + public List orderExpression() { + return getRuleContexts(OrderExpressionContext.class); } - public IndexPatternContext indexPattern(int i) { - return getRuleContext(IndexPatternContext.class,i); + public OrderExpressionContext orderExpression(int i) { + return getRuleContext(OrderExpressionContext.class,i); } public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(EsqlBaseParser.COMMA, i); } - public MetadataContext metadata() { - return getRuleContext(MetadataContext.class,0); - } @SuppressWarnings("this-escape") - public FromCommandContext(ParserRuleContext parent, int invokingState) { + public SortCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_fromCommand; } + @Override public int getRuleIndex() { return RULE_sortCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFromCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterSortCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFromCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitSortCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFromCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitSortCommand(this); else return visitor.visitChildren(this); } } - public final FromCommandContext fromCommand() throws RecognitionException { - FromCommandContext _localctx = new FromCommandContext(_ctx, getState()); - enterRule(_localctx, 38, RULE_fromCommand); + public final SortCommandContext sortCommand() throws RecognitionException { + SortCommandContext _localctx = new SortCommandContext(_ctx, getState()); + enterRule(_localctx, 54, RULE_sortCommand); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(344); - match(FROM); - setState(345); - indexPattern(); - setState(350); + setState(313); + match(SORT); + setState(314); + orderExpression(); + setState(319); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,25,_ctx); + _alt = getInterpreter().adaptivePredict(_input,22,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(346); + setState(315); match(COMMA); - setState(347); - indexPattern(); + setState(316); + orderExpression(); } } } - setState(352); + setState(321); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,25,_ctx); - } - setState(354); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) { - case 1: - { - setState(353); - metadata(); - } - break; + _alt = getInterpreter().adaptivePredict(_input,22,_ctx); } } } @@ -2448,54 +2270,86 @@ public final FromCommandContext fromCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class IndexPatternContext extends ParserRuleContext { - public IndexStringContext indexString() { - return getRuleContext(IndexStringContext.class,0); - } - public ClusterStringContext clusterString() { - return getRuleContext(ClusterStringContext.class,0); + public static class OrderExpressionContext extends ParserRuleContext { + public Token ordering; + public Token nullOrdering; + public BooleanExpressionContext booleanExpression() { + return getRuleContext(BooleanExpressionContext.class,0); } - public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } + public TerminalNode NULLS() { return getToken(EsqlBaseParser.NULLS, 0); } + public TerminalNode ASC() { return getToken(EsqlBaseParser.ASC, 0); } + public TerminalNode DESC() { return getToken(EsqlBaseParser.DESC, 0); } + public TerminalNode FIRST() { return getToken(EsqlBaseParser.FIRST, 0); } + public TerminalNode LAST() { return getToken(EsqlBaseParser.LAST, 0); } @SuppressWarnings("this-escape") - public IndexPatternContext(ParserRuleContext parent, int invokingState) { + public OrderExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_indexPattern; } + @Override public int getRuleIndex() { return RULE_orderExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIndexPattern(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterOrderExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIndexPattern(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitOrderExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIndexPattern(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitOrderExpression(this); else return visitor.visitChildren(this); } } - public final IndexPatternContext indexPattern() throws RecognitionException { - IndexPatternContext _localctx = new IndexPatternContext(_ctx, getState()); - enterRule(_localctx, 40, RULE_indexPattern); + public final OrderExpressionContext orderExpression() throws RecognitionException { + OrderExpressionContext _localctx = new OrderExpressionContext(_ctx, getState()); + enterRule(_localctx, 56, RULE_orderExpression); + int _la; try { enterOuterAlt(_localctx, 1); { - setState(359); + setState(322); + booleanExpression(0); + setState(324); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,27,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,23,_ctx) ) { case 1: { - setState(356); - clusterString(); - setState(357); - match(COLON); + setState(323); + ((OrderExpressionContext)_localctx).ordering = _input.LT(1); + _la = _input.LA(1); + if ( !(_la==ASC || _la==DESC) ) { + ((OrderExpressionContext)_localctx).ordering = (Token)_errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + } + break; + } + setState(328); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,24,_ctx) ) { + case 1: + { + setState(326); + match(NULLS); + setState(327); + ((OrderExpressionContext)_localctx).nullOrdering = _input.LT(1); + _la = _input.LA(1); + if ( !(_la==FIRST || _la==LAST) ) { + ((OrderExpressionContext)_localctx).nullOrdering = (Token)_errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } } break; } - setState(361); - indexString(); } } catch (RecognitionException re) { @@ -2510,46 +2364,41 @@ public final IndexPatternContext indexPattern() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class ClusterStringContext extends ParserRuleContext { - public TerminalNode UNQUOTED_SOURCE() { return getToken(EsqlBaseParser.UNQUOTED_SOURCE, 0); } - public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } + public static class KeepCommandContext extends ParserRuleContext { + public TerminalNode KEEP() { return getToken(EsqlBaseParser.KEEP, 0); } + public QualifiedNamePatternsContext qualifiedNamePatterns() { + return getRuleContext(QualifiedNamePatternsContext.class,0); + } @SuppressWarnings("this-escape") - public ClusterStringContext(ParserRuleContext parent, int invokingState) { + public KeepCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_clusterString; } + @Override public int getRuleIndex() { return RULE_keepCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterClusterString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterKeepCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitClusterString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitKeepCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitClusterString(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitKeepCommand(this); else return visitor.visitChildren(this); } } - public final ClusterStringContext clusterString() throws RecognitionException { - ClusterStringContext _localctx = new ClusterStringContext(_ctx, getState()); - enterRule(_localctx, 42, RULE_clusterString); - int _la; + public final KeepCommandContext keepCommand() throws RecognitionException { + KeepCommandContext _localctx = new KeepCommandContext(_ctx, getState()); + enterRule(_localctx, 58, RULE_keepCommand); try { enterOuterAlt(_localctx, 1); { - setState(363); - _la = _input.LA(1); - if ( !(_la==QUOTED_STRING || _la==UNQUOTED_SOURCE) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } + setState(330); + match(KEEP); + setState(331); + qualifiedNamePatterns(); } } catch (RecognitionException re) { @@ -2564,46 +2413,41 @@ public final ClusterStringContext clusterString() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class IndexStringContext extends ParserRuleContext { - public TerminalNode UNQUOTED_SOURCE() { return getToken(EsqlBaseParser.UNQUOTED_SOURCE, 0); } - public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } + public static class DropCommandContext extends ParserRuleContext { + public TerminalNode DROP() { return getToken(EsqlBaseParser.DROP, 0); } + public QualifiedNamePatternsContext qualifiedNamePatterns() { + return getRuleContext(QualifiedNamePatternsContext.class,0); + } @SuppressWarnings("this-escape") - public IndexStringContext(ParserRuleContext parent, int invokingState) { + public DropCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_indexString; } + @Override public int getRuleIndex() { return RULE_dropCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIndexString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDropCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIndexString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDropCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIndexString(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDropCommand(this); else return visitor.visitChildren(this); } } - public final IndexStringContext indexString() throws RecognitionException { - IndexStringContext _localctx = new IndexStringContext(_ctx, getState()); - enterRule(_localctx, 44, RULE_indexString); - int _la; + public final DropCommandContext dropCommand() throws RecognitionException { + DropCommandContext _localctx = new DropCommandContext(_ctx, getState()); + enterRule(_localctx, 60, RULE_dropCommand); try { enterOuterAlt(_localctx, 1); { - setState(365); - _la = _input.LA(1); - if ( !(_la==QUOTED_STRING || _la==UNQUOTED_SOURCE) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } + setState(333); + match(DROP); + setState(334); + qualifiedNamePatterns(); } } catch (RecognitionException re) { @@ -2618,64 +2462,66 @@ public final IndexStringContext indexString() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class MetadataContext extends ParserRuleContext { - public TerminalNode METADATA() { return getToken(EsqlBaseParser.METADATA, 0); } - public List UNQUOTED_SOURCE() { return getTokens(EsqlBaseParser.UNQUOTED_SOURCE); } - public TerminalNode UNQUOTED_SOURCE(int i) { - return getToken(EsqlBaseParser.UNQUOTED_SOURCE, i); + public static class RenameCommandContext extends ParserRuleContext { + public TerminalNode RENAME() { return getToken(EsqlBaseParser.RENAME, 0); } + public List renameClause() { + return getRuleContexts(RenameClauseContext.class); + } + public RenameClauseContext renameClause(int i) { + return getRuleContext(RenameClauseContext.class,i); } public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public MetadataContext(ParserRuleContext parent, int invokingState) { + public RenameCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_metadata; } + @Override public int getRuleIndex() { return RULE_renameCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMetadata(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRenameCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMetadata(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRenameCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMetadata(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRenameCommand(this); else return visitor.visitChildren(this); } } - public final MetadataContext metadata() throws RecognitionException { - MetadataContext _localctx = new MetadataContext(_ctx, getState()); - enterRule(_localctx, 46, RULE_metadata); + public final RenameCommandContext renameCommand() throws RecognitionException { + RenameCommandContext _localctx = new RenameCommandContext(_ctx, getState()); + enterRule(_localctx, 62, RULE_renameCommand); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(367); - match(METADATA); - setState(368); - match(UNQUOTED_SOURCE); - setState(373); + setState(336); + match(RENAME); + setState(337); + renameClause(); + setState(342); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,28,_ctx); + _alt = getInterpreter().adaptivePredict(_input,25,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(369); + setState(338); match(COMMA); - setState(370); - match(UNQUOTED_SOURCE); + setState(339); + renameClause(); } } } - setState(375); + setState(344); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,28,_ctx); + _alt = getInterpreter().adaptivePredict(_input,25,_ctx); } } } @@ -2691,98 +2537,48 @@ public final MetadataContext metadata() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class MetricsCommandContext extends ParserRuleContext { - public AggFieldsContext aggregates; - public FieldsContext grouping; - public TerminalNode DEV_METRICS() { return getToken(EsqlBaseParser.DEV_METRICS, 0); } - public List indexPattern() { - return getRuleContexts(IndexPatternContext.class); - } - public IndexPatternContext indexPattern(int i) { - return getRuleContext(IndexPatternContext.class,i); - } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); - } - public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } - public AggFieldsContext aggFields() { - return getRuleContext(AggFieldsContext.class,0); + public static class RenameClauseContext extends ParserRuleContext { + public QualifiedNamePatternContext oldName; + public QualifiedNamePatternContext newName; + public TerminalNode AS() { return getToken(EsqlBaseParser.AS, 0); } + public List qualifiedNamePattern() { + return getRuleContexts(QualifiedNamePatternContext.class); } - public FieldsContext fields() { - return getRuleContext(FieldsContext.class,0); + public QualifiedNamePatternContext qualifiedNamePattern(int i) { + return getRuleContext(QualifiedNamePatternContext.class,i); } @SuppressWarnings("this-escape") - public MetricsCommandContext(ParserRuleContext parent, int invokingState) { + public RenameClauseContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_metricsCommand; } + @Override public int getRuleIndex() { return RULE_renameClause; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMetricsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRenameClause(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMetricsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRenameClause(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMetricsCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRenameClause(this); else return visitor.visitChildren(this); } } - public final MetricsCommandContext metricsCommand() throws RecognitionException { - MetricsCommandContext _localctx = new MetricsCommandContext(_ctx, getState()); - enterRule(_localctx, 48, RULE_metricsCommand); + public final RenameClauseContext renameClause() throws RecognitionException { + RenameClauseContext _localctx = new RenameClauseContext(_ctx, getState()); + enterRule(_localctx, 64, RULE_renameClause); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(376); - match(DEV_METRICS); - setState(377); - indexPattern(); - setState(382); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,29,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(378); - match(COMMA); - setState(379); - indexPattern(); - } - } - } - setState(384); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,29,_ctx); - } - setState(386); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,30,_ctx) ) { - case 1: - { - setState(385); - ((MetricsCommandContext)_localctx).aggregates = aggFields(); - } - break; - } - setState(390); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,31,_ctx) ) { - case 1: - { - setState(388); - match(BY); - setState(389); - ((MetricsCommandContext)_localctx).grouping = fields(); - } - break; - } + setState(345); + ((RenameClauseContext)_localctx).oldName = qualifiedNamePattern(); + setState(346); + match(AS); + setState(347); + ((RenameClauseContext)_localctx).newName = qualifiedNamePattern(); } } catch (RecognitionException re) { @@ -2797,41 +2593,59 @@ public final MetricsCommandContext metricsCommand() throws RecognitionException } @SuppressWarnings("CheckReturnValue") - public static class EvalCommandContext extends ParserRuleContext { - public TerminalNode EVAL() { return getToken(EsqlBaseParser.EVAL, 0); } - public FieldsContext fields() { - return getRuleContext(FieldsContext.class,0); + public static class DissectCommandContext extends ParserRuleContext { + public TerminalNode DISSECT() { return getToken(EsqlBaseParser.DISSECT, 0); } + public PrimaryExpressionContext primaryExpression() { + return getRuleContext(PrimaryExpressionContext.class,0); + } + public StringContext string() { + return getRuleContext(StringContext.class,0); + } + public CommandOptionsContext commandOptions() { + return getRuleContext(CommandOptionsContext.class,0); } @SuppressWarnings("this-escape") - public EvalCommandContext(ParserRuleContext parent, int invokingState) { + public DissectCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_evalCommand; } + @Override public int getRuleIndex() { return RULE_dissectCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEvalCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDissectCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEvalCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDissectCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEvalCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDissectCommand(this); else return visitor.visitChildren(this); } } - public final EvalCommandContext evalCommand() throws RecognitionException { - EvalCommandContext _localctx = new EvalCommandContext(_ctx, getState()); - enterRule(_localctx, 50, RULE_evalCommand); + public final DissectCommandContext dissectCommand() throws RecognitionException { + DissectCommandContext _localctx = new DissectCommandContext(_ctx, getState()); + enterRule(_localctx, 66, RULE_dissectCommand); try { enterOuterAlt(_localctx, 1); { - setState(392); - match(EVAL); - setState(393); - fields(); + setState(349); + match(DISSECT); + setState(350); + primaryExpression(0); + setState(351); + string(); + setState(353); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,26,_ctx) ) { + case 1: + { + setState(352); + commandOptions(); + } + break; + } } } catch (RecognitionException re) { @@ -2846,67 +2660,46 @@ public final EvalCommandContext evalCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class StatsCommandContext extends ParserRuleContext { - public AggFieldsContext stats; - public FieldsContext grouping; - public TerminalNode STATS() { return getToken(EsqlBaseParser.STATS, 0); } - public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } - public AggFieldsContext aggFields() { - return getRuleContext(AggFieldsContext.class,0); + public static class GrokCommandContext extends ParserRuleContext { + public TerminalNode GROK() { return getToken(EsqlBaseParser.GROK, 0); } + public PrimaryExpressionContext primaryExpression() { + return getRuleContext(PrimaryExpressionContext.class,0); } - public FieldsContext fields() { - return getRuleContext(FieldsContext.class,0); + public StringContext string() { + return getRuleContext(StringContext.class,0); } @SuppressWarnings("this-escape") - public StatsCommandContext(ParserRuleContext parent, int invokingState) { + public GrokCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_statsCommand; } + @Override public int getRuleIndex() { return RULE_grokCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStatsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterGrokCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStatsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitGrokCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStatsCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitGrokCommand(this); else return visitor.visitChildren(this); } } - public final StatsCommandContext statsCommand() throws RecognitionException { - StatsCommandContext _localctx = new StatsCommandContext(_ctx, getState()); - enterRule(_localctx, 52, RULE_statsCommand); + public final GrokCommandContext grokCommand() throws RecognitionException { + GrokCommandContext _localctx = new GrokCommandContext(_ctx, getState()); + enterRule(_localctx, 68, RULE_grokCommand); try { enterOuterAlt(_localctx, 1); { - setState(395); - match(STATS); - setState(397); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { - case 1: - { - setState(396); - ((StatsCommandContext)_localctx).stats = aggFields(); - } - break; - } - setState(401); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) { - case 1: - { - setState(399); - match(BY); - setState(400); - ((StatsCommandContext)_localctx).grouping = fields(); - } - break; - } + setState(355); + match(GROK); + setState(356); + primaryExpression(0); + setState(357); + string(); } } catch (RecognitionException re) { @@ -2921,64 +2714,41 @@ public final StatsCommandContext statsCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class AggFieldsContext extends ParserRuleContext { - public List aggField() { - return getRuleContexts(AggFieldContext.class); - } - public AggFieldContext aggField(int i) { - return getRuleContext(AggFieldContext.class,i); - } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public static class MvExpandCommandContext extends ParserRuleContext { + public TerminalNode MV_EXPAND() { return getToken(EsqlBaseParser.MV_EXPAND, 0); } + public QualifiedNameContext qualifiedName() { + return getRuleContext(QualifiedNameContext.class,0); } @SuppressWarnings("this-escape") - public AggFieldsContext(ParserRuleContext parent, int invokingState) { + public MvExpandCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_aggFields; } + @Override public int getRuleIndex() { return RULE_mvExpandCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterAggFields(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMvExpandCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitAggFields(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMvExpandCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitAggFields(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMvExpandCommand(this); else return visitor.visitChildren(this); } } - public final AggFieldsContext aggFields() throws RecognitionException { - AggFieldsContext _localctx = new AggFieldsContext(_ctx, getState()); - enterRule(_localctx, 54, RULE_aggFields); + public final MvExpandCommandContext mvExpandCommand() throws RecognitionException { + MvExpandCommandContext _localctx = new MvExpandCommandContext(_ctx, getState()); + enterRule(_localctx, 70, RULE_mvExpandCommand); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(403); - aggField(); - setState(408); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,34,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(404); - match(COMMA); - setState(405); - aggField(); - } - } - } - setState(410); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,34,_ctx); - } + setState(359); + match(MV_EXPAND); + setState(360); + qualifiedName(); } } catch (RecognitionException re) { @@ -2993,53 +2763,63 @@ public final AggFieldsContext aggFields() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class AggFieldContext extends ParserRuleContext { - public FieldContext field() { - return getRuleContext(FieldContext.class,0); + public static class CommandOptionsContext extends ParserRuleContext { + public List commandOption() { + return getRuleContexts(CommandOptionContext.class); } - public TerminalNode WHERE() { return getToken(EsqlBaseParser.WHERE, 0); } - public BooleanExpressionContext booleanExpression() { - return getRuleContext(BooleanExpressionContext.class,0); + public CommandOptionContext commandOption(int i) { + return getRuleContext(CommandOptionContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public AggFieldContext(ParserRuleContext parent, int invokingState) { + public CommandOptionsContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_aggField; } + @Override public int getRuleIndex() { return RULE_commandOptions; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterAggField(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterCommandOptions(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitAggField(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitCommandOptions(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitAggField(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitCommandOptions(this); else return visitor.visitChildren(this); } } - public final AggFieldContext aggField() throws RecognitionException { - AggFieldContext _localctx = new AggFieldContext(_ctx, getState()); - enterRule(_localctx, 56, RULE_aggField); + public final CommandOptionsContext commandOptions() throws RecognitionException { + CommandOptionsContext _localctx = new CommandOptionsContext(_ctx, getState()); + enterRule(_localctx, 72, RULE_commandOptions); try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(411); - field(); - setState(414); + setState(362); + commandOption(); + setState(367); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,35,_ctx) ) { - case 1: - { - setState(412); - match(WHERE); - setState(413); - booleanExpression(0); + _alt = getInterpreter().adaptivePredict(_input,27,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(363); + match(COMMA); + setState(364); + commandOption(); + } + } } - break; + setState(369); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,27,_ctx); } } } @@ -3055,64 +2835,46 @@ public final AggFieldContext aggField() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class QualifiedNameContext extends ParserRuleContext { - public List identifierOrParameter() { - return getRuleContexts(IdentifierOrParameterContext.class); - } - public IdentifierOrParameterContext identifierOrParameter(int i) { - return getRuleContext(IdentifierOrParameterContext.class,i); + public static class CommandOptionContext extends ParserRuleContext { + public IdentifierContext identifier() { + return getRuleContext(IdentifierContext.class,0); } - public List DOT() { return getTokens(EsqlBaseParser.DOT); } - public TerminalNode DOT(int i) { - return getToken(EsqlBaseParser.DOT, i); + public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } + public ConstantContext constant() { + return getRuleContext(ConstantContext.class,0); } @SuppressWarnings("this-escape") - public QualifiedNameContext(ParserRuleContext parent, int invokingState) { + public CommandOptionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_qualifiedName; } + @Override public int getRuleIndex() { return RULE_commandOption; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedName(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterCommandOption(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedName(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitCommandOption(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedName(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitCommandOption(this); else return visitor.visitChildren(this); } } - public final QualifiedNameContext qualifiedName() throws RecognitionException { - QualifiedNameContext _localctx = new QualifiedNameContext(_ctx, getState()); - enterRule(_localctx, 58, RULE_qualifiedName); + public final CommandOptionContext commandOption() throws RecognitionException { + CommandOptionContext _localctx = new CommandOptionContext(_ctx, getState()); + enterRule(_localctx, 74, RULE_commandOption); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(416); - identifierOrParameter(); - setState(421); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,36,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(417); - match(DOT); - setState(418); - identifierOrParameter(); - } - } - } - setState(423); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,36,_ctx); - } + setState(370); + identifier(); + setState(371); + match(ASSIGN); + setState(372); + constant(); } } catch (RecognitionException re) { @@ -3127,64 +2889,41 @@ public final QualifiedNameContext qualifiedName() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class QualifiedNamePatternContext extends ParserRuleContext { - public List identifierPattern() { - return getRuleContexts(IdentifierPatternContext.class); - } - public IdentifierPatternContext identifierPattern(int i) { - return getRuleContext(IdentifierPatternContext.class,i); - } - public List DOT() { return getTokens(EsqlBaseParser.DOT); } - public TerminalNode DOT(int i) { - return getToken(EsqlBaseParser.DOT, i); + public static class ExplainCommandContext extends ParserRuleContext { + public TerminalNode EXPLAIN() { return getToken(EsqlBaseParser.EXPLAIN, 0); } + public SubqueryExpressionContext subqueryExpression() { + return getRuleContext(SubqueryExpressionContext.class,0); } @SuppressWarnings("this-escape") - public QualifiedNamePatternContext(ParserRuleContext parent, int invokingState) { + public ExplainCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_qualifiedNamePattern; } + @Override public int getRuleIndex() { return RULE_explainCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedNamePattern(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterExplainCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedNamePattern(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitExplainCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedNamePattern(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitExplainCommand(this); else return visitor.visitChildren(this); } } - public final QualifiedNamePatternContext qualifiedNamePattern() throws RecognitionException { - QualifiedNamePatternContext _localctx = new QualifiedNamePatternContext(_ctx, getState()); - enterRule(_localctx, 60, RULE_qualifiedNamePattern); + public final ExplainCommandContext explainCommand() throws RecognitionException { + ExplainCommandContext _localctx = new ExplainCommandContext(_ctx, getState()); + enterRule(_localctx, 76, RULE_explainCommand); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(424); - identifierPattern(); - setState(429); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,37,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(425); - match(DOT); - setState(426); - identifierPattern(); - } - } - } - setState(431); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,37,_ctx); - } + setState(374); + match(EXPLAIN); + setState(375); + subqueryExpression(); } } catch (RecognitionException re) { @@ -3199,64 +2938,44 @@ public final QualifiedNamePatternContext qualifiedNamePattern() throws Recogniti } @SuppressWarnings("CheckReturnValue") - public static class QualifiedNamePatternsContext extends ParserRuleContext { - public List qualifiedNamePattern() { - return getRuleContexts(QualifiedNamePatternContext.class); - } - public QualifiedNamePatternContext qualifiedNamePattern(int i) { - return getRuleContext(QualifiedNamePatternContext.class,i); - } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public static class SubqueryExpressionContext extends ParserRuleContext { + public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } + public QueryContext query() { + return getRuleContext(QueryContext.class,0); } + public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } @SuppressWarnings("this-escape") - public QualifiedNamePatternsContext(ParserRuleContext parent, int invokingState) { + public SubqueryExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_qualifiedNamePatterns; } + @Override public int getRuleIndex() { return RULE_subqueryExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedNamePatterns(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterSubqueryExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedNamePatterns(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitSubqueryExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedNamePatterns(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitSubqueryExpression(this); else return visitor.visitChildren(this); } } - public final QualifiedNamePatternsContext qualifiedNamePatterns() throws RecognitionException { - QualifiedNamePatternsContext _localctx = new QualifiedNamePatternsContext(_ctx, getState()); - enterRule(_localctx, 62, RULE_qualifiedNamePatterns); + public final SubqueryExpressionContext subqueryExpression() throws RecognitionException { + SubqueryExpressionContext _localctx = new SubqueryExpressionContext(_ctx, getState()); + enterRule(_localctx, 78, RULE_subqueryExpression); try { - int _alt; enterOuterAlt(_localctx, 1); { - setState(432); - qualifiedNamePattern(); - setState(437); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,38,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(433); - match(COMMA); - setState(434); - qualifiedNamePattern(); - } - } - } - setState(439); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,38,_ctx); - } + setState(377); + match(OPENING_BRACKET); + setState(378); + query(0); + setState(379); + match(CLOSING_BRACKET); } } catch (RecognitionException re) { @@ -3271,46 +2990,51 @@ public final QualifiedNamePatternsContext qualifiedNamePatterns() throws Recogni } @SuppressWarnings("CheckReturnValue") - public static class IdentifierContext extends ParserRuleContext { - public TerminalNode UNQUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.UNQUOTED_IDENTIFIER, 0); } - public TerminalNode QUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.QUOTED_IDENTIFIER, 0); } + public static class ShowCommandContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public IdentifierContext(ParserRuleContext parent, int invokingState) { + public ShowCommandContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_identifier; } + @Override public int getRuleIndex() { return RULE_showCommand; } + + @SuppressWarnings("this-escape") + public ShowCommandContext() { } + public void copyFrom(ShowCommandContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class ShowInfoContext extends ShowCommandContext { + public TerminalNode SHOW() { return getToken(EsqlBaseParser.SHOW, 0); } + public TerminalNode INFO() { return getToken(EsqlBaseParser.INFO, 0); } + @SuppressWarnings("this-escape") + public ShowInfoContext(ShowCommandContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifier(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterShowInfo(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifier(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitShowInfo(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifier(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitShowInfo(this); else return visitor.visitChildren(this); } } - public final IdentifierContext identifier() throws RecognitionException { - IdentifierContext _localctx = new IdentifierContext(_ctx, getState()); - enterRule(_localctx, 64, RULE_identifier); - int _la; + public final ShowCommandContext showCommand() throws RecognitionException { + ShowCommandContext _localctx = new ShowCommandContext(_ctx, getState()); + enterRule(_localctx, 80, RULE_showCommand); try { + _localctx = new ShowInfoContext(_localctx); enterOuterAlt(_localctx, 1); { - setState(440); - _la = _input.LA(1); - if ( !(_la==UNQUOTED_IDENTIFIER || _la==QUOTED_IDENTIFIER) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } + setState(381); + match(SHOW); + setState(382); + match(INFO); } } catch (RecognitionException re) { @@ -3325,55 +3049,99 @@ public final IdentifierContext identifier() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class IdentifierPatternContext extends ParserRuleContext { - public TerminalNode ID_PATTERN() { return getToken(EsqlBaseParser.ID_PATTERN, 0); } - public ParameterContext parameter() { - return getRuleContext(ParameterContext.class,0); - } - @SuppressWarnings("this-escape") - public IdentifierPatternContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_identifierPattern; } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifierPattern(this); + public static class EnrichCommandContext extends ParserRuleContext { + public Token policyName; + public QualifiedNamePatternContext matchField; + public TerminalNode ENRICH() { return getToken(EsqlBaseParser.ENRICH, 0); } + public TerminalNode ENRICH_POLICY_NAME() { return getToken(EsqlBaseParser.ENRICH_POLICY_NAME, 0); } + public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } + public TerminalNode WITH() { return getToken(EsqlBaseParser.WITH, 0); } + public List enrichWithClause() { + return getRuleContexts(EnrichWithClauseContext.class); + } + public EnrichWithClauseContext enrichWithClause(int i) { + return getRuleContext(EnrichWithClauseContext.class,i); + } + public QualifiedNamePatternContext qualifiedNamePattern() { + return getRuleContext(QualifiedNamePatternContext.class,0); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); + } + @SuppressWarnings("this-escape") + public EnrichCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_enrichCommand; } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEnrichCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifierPattern(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEnrichCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifierPattern(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEnrichCommand(this); else return visitor.visitChildren(this); } } - public final IdentifierPatternContext identifierPattern() throws RecognitionException { - IdentifierPatternContext _localctx = new IdentifierPatternContext(_ctx, getState()); - enterRule(_localctx, 66, RULE_identifierPattern); + public final EnrichCommandContext enrichCommand() throws RecognitionException { + EnrichCommandContext _localctx = new EnrichCommandContext(_ctx, getState()); + enterRule(_localctx, 82, RULE_enrichCommand); try { - setState(444); + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(384); + match(ENRICH); + setState(385); + ((EnrichCommandContext)_localctx).policyName = match(ENRICH_POLICY_NAME); + setState(388); _errHandler.sync(this); - switch (_input.LA(1)) { - case ID_PATTERN: - enterOuterAlt(_localctx, 1); + switch ( getInterpreter().adaptivePredict(_input,28,_ctx) ) { + case 1: { - setState(442); - match(ID_PATTERN); + setState(386); + match(ON); + setState(387); + ((EnrichCommandContext)_localctx).matchField = qualifiedNamePattern(); } break; - case PARAM: - case NAMED_OR_POSITIONAL_PARAM: - enterOuterAlt(_localctx, 2); + } + setState(399); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,30,_ctx) ) { + case 1: { - setState(443); - parameter(); + setState(390); + match(WITH); + setState(391); + enrichWithClause(); + setState(396); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,29,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(392); + match(COMMA); + setState(393); + enrichWithClause(); + } + } + } + setState(398); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,29,_ctx); + } } break; - default: - throw new NoViableAltException(this); + } } } catch (RecognitionException re) { @@ -3388,406 +3156,637 @@ public final IdentifierPatternContext identifierPattern() throws RecognitionExce } @SuppressWarnings("CheckReturnValue") - public static class ConstantContext extends ParserRuleContext { - @SuppressWarnings("this-escape") - public ConstantContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_constant; } - - @SuppressWarnings("this-escape") - public ConstantContext() { } - public void copyFrom(ConstantContext ctx) { - super.copyFrom(ctx); - } - } - @SuppressWarnings("CheckReturnValue") - public static class BooleanArrayLiteralContext extends ConstantContext { - public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } - public List booleanValue() { - return getRuleContexts(BooleanValueContext.class); - } - public BooleanValueContext booleanValue(int i) { - return getRuleContext(BooleanValueContext.class,i); + public static class EnrichWithClauseContext extends ParserRuleContext { + public QualifiedNamePatternContext newName; + public QualifiedNamePatternContext enrichField; + public List qualifiedNamePattern() { + return getRuleContexts(QualifiedNamePatternContext.class); } - public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public QualifiedNamePatternContext qualifiedNamePattern(int i) { + return getRuleContext(QualifiedNamePatternContext.class,i); } + public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } @SuppressWarnings("this-escape") - public BooleanArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public EnrichWithClauseContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_enrichWithClause; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEnrichWithClause(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEnrichWithClause(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanArrayLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEnrichWithClause(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class DecimalLiteralContext extends ConstantContext { - public DecimalValueContext decimalValue() { - return getRuleContext(DecimalValueContext.class,0); - } - @SuppressWarnings("this-escape") - public DecimalLiteralContext(ConstantContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDecimalLiteral(this); + + public final EnrichWithClauseContext enrichWithClause() throws RecognitionException { + EnrichWithClauseContext _localctx = new EnrichWithClauseContext(_ctx, getState()); + enterRule(_localctx, 84, RULE_enrichWithClause); + try { + enterOuterAlt(_localctx, 1); + { + setState(404); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,31,_ctx) ) { + case 1: + { + setState(401); + ((EnrichWithClauseContext)_localctx).newName = qualifiedNamePattern(); + setState(402); + match(ASSIGN); + } + break; + } + setState(406); + ((EnrichWithClauseContext)_localctx).enrichField = qualifiedNamePattern(); + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDecimalLiteral(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDecimalLiteral(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class NullLiteralContext extends ConstantContext { - public TerminalNode NULL() { return getToken(EsqlBaseParser.NULL, 0); } + public static class LookupCommandContext extends ParserRuleContext { + public IndexPatternContext tableName; + public QualifiedNamePatternsContext matchFields; + public TerminalNode DEV_LOOKUP() { return getToken(EsqlBaseParser.DEV_LOOKUP, 0); } + public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } + public IndexPatternContext indexPattern() { + return getRuleContext(IndexPatternContext.class,0); + } + public QualifiedNamePatternsContext qualifiedNamePatterns() { + return getRuleContext(QualifiedNamePatternsContext.class,0); + } @SuppressWarnings("this-escape") - public NullLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public LookupCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_lookupCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNullLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLookupCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNullLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLookupCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNullLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLookupCommand(this); else return visitor.visitChildren(this); } } - @SuppressWarnings("CheckReturnValue") - public static class QualifiedIntegerLiteralContext extends ConstantContext { - public IntegerValueContext integerValue() { - return getRuleContext(IntegerValueContext.class,0); - } - public TerminalNode UNQUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.UNQUOTED_IDENTIFIER, 0); } - @SuppressWarnings("this-escape") - public QualifiedIntegerLiteralContext(ConstantContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedIntegerLiteral(this); + + public final LookupCommandContext lookupCommand() throws RecognitionException { + LookupCommandContext _localctx = new LookupCommandContext(_ctx, getState()); + enterRule(_localctx, 86, RULE_lookupCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(408); + match(DEV_LOOKUP); + setState(409); + ((LookupCommandContext)_localctx).tableName = indexPattern(); + setState(410); + match(ON); + setState(411); + ((LookupCommandContext)_localctx).matchFields = qualifiedNamePatterns(); + } } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedIntegerLiteral(this); + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedIntegerLiteral(this); - else return visitor.visitChildren(this); + finally { + exitRule(); } + return _localctx; } + @SuppressWarnings("CheckReturnValue") - public static class StringArrayLiteralContext extends ConstantContext { - public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } - public List string() { - return getRuleContexts(StringContext.class); - } - public StringContext string(int i) { - return getRuleContext(StringContext.class,i); + public static class InlinestatsCommandContext extends ParserRuleContext { + public AggFieldsContext stats; + public FieldsContext grouping; + public TerminalNode DEV_INLINESTATS() { return getToken(EsqlBaseParser.DEV_INLINESTATS, 0); } + public AggFieldsContext aggFields() { + return getRuleContext(AggFieldsContext.class,0); } - public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } + public FieldsContext fields() { + return getRuleContext(FieldsContext.class,0); } @SuppressWarnings("this-escape") - public StringArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public InlinestatsCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_inlinestatsCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStringArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInlinestatsCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStringArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInlinestatsCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStringArrayLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInlinestatsCommand(this); else return visitor.visitChildren(this); } } + + public final InlinestatsCommandContext inlinestatsCommand() throws RecognitionException { + InlinestatsCommandContext _localctx = new InlinestatsCommandContext(_ctx, getState()); + enterRule(_localctx, 88, RULE_inlinestatsCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(413); + match(DEV_INLINESTATS); + setState(414); + ((InlinestatsCommandContext)_localctx).stats = aggFields(); + setState(417); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,32,_ctx) ) { + case 1: + { + setState(415); + match(BY); + setState(416); + ((InlinestatsCommandContext)_localctx).grouping = fields(); + } + break; + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + @SuppressWarnings("CheckReturnValue") - public static class InputParameterContext extends ConstantContext { - public ParameterContext parameter() { - return getRuleContext(ParameterContext.class,0); + public static class ChangePointCommandContext extends ParserRuleContext { + public QualifiedNameContext value; + public QualifiedNameContext key; + public QualifiedNameContext targetType; + public QualifiedNameContext targetPvalue; + public TerminalNode DEV_CHANGE_POINT() { return getToken(EsqlBaseParser.DEV_CHANGE_POINT, 0); } + public List qualifiedName() { + return getRuleContexts(QualifiedNameContext.class); } + public QualifiedNameContext qualifiedName(int i) { + return getRuleContext(QualifiedNameContext.class,i); + } + public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } + public TerminalNode AS() { return getToken(EsqlBaseParser.AS, 0); } + public TerminalNode COMMA() { return getToken(EsqlBaseParser.COMMA, 0); } @SuppressWarnings("this-escape") - public InputParameterContext(ConstantContext ctx) { copyFrom(ctx); } + public ChangePointCommandContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_changePointCommand; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputParameter(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterChangePointCommand(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputParameter(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitChangePointCommand(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputParameter(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitChangePointCommand(this); else return visitor.visitChildren(this); } } + + public final ChangePointCommandContext changePointCommand() throws RecognitionException { + ChangePointCommandContext _localctx = new ChangePointCommandContext(_ctx, getState()); + enterRule(_localctx, 90, RULE_changePointCommand); + try { + enterOuterAlt(_localctx, 1); + { + setState(419); + match(DEV_CHANGE_POINT); + setState(420); + ((ChangePointCommandContext)_localctx).value = qualifiedName(); + setState(423); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,33,_ctx) ) { + case 1: + { + setState(421); + match(ON); + setState(422); + ((ChangePointCommandContext)_localctx).key = qualifiedName(); + } + break; + } + setState(430); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,34,_ctx) ) { + case 1: + { + setState(425); + match(AS); + setState(426); + ((ChangePointCommandContext)_localctx).targetType = qualifiedName(); + setState(427); + match(COMMA); + setState(428); + ((ChangePointCommandContext)_localctx).targetPvalue = qualifiedName(); + } + break; + } + } + } + catch (RecognitionException re) { + _localctx.exception = re; + _errHandler.reportError(this, re); + _errHandler.recover(this, re); + } + finally { + exitRule(); + } + return _localctx; + } + @SuppressWarnings("CheckReturnValue") - public static class StringLiteralContext extends ConstantContext { - public StringContext string() { - return getRuleContext(StringContext.class,0); + public static class BooleanExpressionContext extends ParserRuleContext { + @SuppressWarnings("this-escape") + public BooleanExpressionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); } + @Override public int getRuleIndex() { return RULE_booleanExpression; } + @SuppressWarnings("this-escape") - public StringLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public BooleanExpressionContext() { } + public void copyFrom(BooleanExpressionContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class MatchExpressionContext extends BooleanExpressionContext { + public MatchBooleanExpressionContext matchBooleanExpression() { + return getRuleContext(MatchBooleanExpressionContext.class,0); + } + @SuppressWarnings("this-escape") + public MatchExpressionContext(BooleanExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStringLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMatchExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStringLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMatchExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStringLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMatchExpression(this); else return visitor.visitChildren(this); } } @SuppressWarnings("CheckReturnValue") - public static class NumericArrayLiteralContext extends ConstantContext { - public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } - public List numericValue() { - return getRuleContexts(NumericValueContext.class); + public static class LogicalNotContext extends BooleanExpressionContext { + public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } + public BooleanExpressionContext booleanExpression() { + return getRuleContext(BooleanExpressionContext.class,0); } - public NumericValueContext numericValue(int i) { - return getRuleContext(NumericValueContext.class,i); + @SuppressWarnings("this-escape") + public LogicalNotContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalNot(this); } - public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalNot(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalNot(this); + else return visitor.visitChildren(this); + } + } + @SuppressWarnings("CheckReturnValue") + public static class BooleanDefaultContext extends BooleanExpressionContext { + public ValueExpressionContext valueExpression() { + return getRuleContext(ValueExpressionContext.class,0); } @SuppressWarnings("this-escape") - public NumericArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public BooleanDefaultContext(BooleanExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNumericArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanDefault(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNumericArrayLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanDefault(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNumericArrayLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanDefault(this); else return visitor.visitChildren(this); } } @SuppressWarnings("CheckReturnValue") - public static class IntegerLiteralContext extends ConstantContext { - public IntegerValueContext integerValue() { - return getRuleContext(IntegerValueContext.class,0); + public static class IsNullContext extends BooleanExpressionContext { + public ValueExpressionContext valueExpression() { + return getRuleContext(ValueExpressionContext.class,0); } + public TerminalNode IS() { return getToken(EsqlBaseParser.IS, 0); } + public TerminalNode NULL() { return getToken(EsqlBaseParser.NULL, 0); } + public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } @SuppressWarnings("this-escape") - public IntegerLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public IsNullContext(BooleanExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIntegerLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIsNull(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIntegerLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIsNull(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIntegerLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIsNull(this); else return visitor.visitChildren(this); } } @SuppressWarnings("CheckReturnValue") - public static class BooleanLiteralContext extends ConstantContext { - public BooleanValueContext booleanValue() { - return getRuleContext(BooleanValueContext.class,0); + public static class RegexExpressionContext extends BooleanExpressionContext { + public RegexBooleanExpressionContext regexBooleanExpression() { + return getRuleContext(RegexBooleanExpressionContext.class,0); } @SuppressWarnings("this-escape") - public BooleanLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + public RegexExpressionContext(BooleanExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRegexExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanLiteral(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRegexExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanLiteral(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRegexExpression(this); else return visitor.visitChildren(this); } } - - public final ConstantContext constant() throws RecognitionException { - ConstantContext _localctx = new ConstantContext(_ctx, getState()); - enterRule(_localctx, 68, RULE_constant); - int _la; - try { - setState(488); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,43,_ctx) ) { - case 1: - _localctx = new NullLiteralContext(_localctx); - enterOuterAlt(_localctx, 1); - { - setState(446); - match(NULL); - } - break; - case 2: - _localctx = new QualifiedIntegerLiteralContext(_localctx); - enterOuterAlt(_localctx, 2); - { - setState(447); - integerValue(); - setState(448); - match(UNQUOTED_IDENTIFIER); - } - break; - case 3: - _localctx = new DecimalLiteralContext(_localctx); - enterOuterAlt(_localctx, 3); - { - setState(450); - decimalValue(); - } - break; - case 4: - _localctx = new IntegerLiteralContext(_localctx); - enterOuterAlt(_localctx, 4); - { - setState(451); - integerValue(); - } - break; - case 5: - _localctx = new BooleanLiteralContext(_localctx); - enterOuterAlt(_localctx, 5); - { - setState(452); - booleanValue(); - } - break; - case 6: - _localctx = new InputParameterContext(_localctx); - enterOuterAlt(_localctx, 6); - { - setState(453); - parameter(); - } - break; - case 7: - _localctx = new StringLiteralContext(_localctx); - enterOuterAlt(_localctx, 7); + @SuppressWarnings("CheckReturnValue") + public static class LogicalInContext extends BooleanExpressionContext { + public List valueExpression() { + return getRuleContexts(ValueExpressionContext.class); + } + public ValueExpressionContext valueExpression(int i) { + return getRuleContext(ValueExpressionContext.class,i); + } + public TerminalNode IN() { return getToken(EsqlBaseParser.IN, 0); } + public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } + public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } + public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); + } + @SuppressWarnings("this-escape") + public LogicalInContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalIn(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalIn(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalIn(this); + else return visitor.visitChildren(this); + } + } + @SuppressWarnings("CheckReturnValue") + public static class LogicalBinaryContext extends BooleanExpressionContext { + public BooleanExpressionContext left; + public Token operator; + public BooleanExpressionContext right; + public List booleanExpression() { + return getRuleContexts(BooleanExpressionContext.class); + } + public BooleanExpressionContext booleanExpression(int i) { + return getRuleContext(BooleanExpressionContext.class,i); + } + public TerminalNode AND() { return getToken(EsqlBaseParser.AND, 0); } + public TerminalNode OR() { return getToken(EsqlBaseParser.OR, 0); } + @SuppressWarnings("this-escape") + public LogicalBinaryContext(BooleanExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLogicalBinary(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLogicalBinary(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLogicalBinary(this); + else return visitor.visitChildren(this); + } + } + + public final BooleanExpressionContext booleanExpression() throws RecognitionException { + return booleanExpression(0); + } + + private BooleanExpressionContext booleanExpression(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + BooleanExpressionContext _localctx = new BooleanExpressionContext(_ctx, _parentState); + BooleanExpressionContext _prevctx = _localctx; + int _startState = 92; + enterRecursionRule(_localctx, 92, RULE_booleanExpression, _p); + int _la; + try { + int _alt; + enterOuterAlt(_localctx, 1); + { + setState(461); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,38,_ctx) ) { + case 1: { - setState(454); - string(); + _localctx = new LogicalNotContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(433); + match(NOT); + setState(434); + booleanExpression(8); } break; - case 8: - _localctx = new NumericArrayLiteralContext(_localctx); - enterOuterAlt(_localctx, 8); + case 2: { - setState(455); - match(OPENING_BRACKET); - setState(456); - numericValue(); - setState(461); + _localctx = new BooleanDefaultContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(435); + valueExpression(); + } + break; + case 3: + { + _localctx = new RegexExpressionContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(436); + regexBooleanExpression(); + } + break; + case 4: + { + _localctx = new LogicalInContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(437); + valueExpression(); + setState(439); _errHandler.sync(this); _la = _input.LA(1); - while (_la==COMMA) { - { + if (_la==NOT) { { - setState(457); - match(COMMA); - setState(458); - numericValue(); - } + setState(438); + match(NOT); } - setState(463); - _errHandler.sync(this); - _la = _input.LA(1); - } - setState(464); - match(CLOSING_BRACKET); } - break; - case 9: - _localctx = new BooleanArrayLiteralContext(_localctx); - enterOuterAlt(_localctx, 9); - { - setState(466); - match(OPENING_BRACKET); - setState(467); - booleanValue(); - setState(472); + + setState(441); + match(IN); + setState(442); + match(LP); + setState(443); + valueExpression(); + setState(448); _errHandler.sync(this); _la = _input.LA(1); while (_la==COMMA) { { { - setState(468); + setState(444); match(COMMA); - setState(469); - booleanValue(); + setState(445); + valueExpression(); } } - setState(474); + setState(450); _errHandler.sync(this); _la = _input.LA(1); } - setState(475); - match(CLOSING_BRACKET); + setState(451); + match(RP); } break; - case 10: - _localctx = new StringArrayLiteralContext(_localctx); - enterOuterAlt(_localctx, 10); + case 5: { - setState(477); - match(OPENING_BRACKET); - setState(478); - string(); - setState(483); + _localctx = new IsNullContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(453); + valueExpression(); + setState(454); + match(IS); + setState(456); _errHandler.sync(this); _la = _input.LA(1); - while (_la==COMMA) { - { + if (_la==NOT) { { - setState(479); - match(COMMA); - setState(480); - string(); - } + setState(455); + match(NOT); } - setState(485); - _errHandler.sync(this); - _la = _input.LA(1); } - setState(486); - match(CLOSING_BRACKET); + + setState(458); + match(NULL); } break; + case 6: + { + _localctx = new MatchExpressionContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(460); + matchBooleanExpression(); + } + break; + } + _ctx.stop = _input.LT(-1); + setState(471); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,40,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + setState(469); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,39,_ctx) ) { + case 1: + { + _localctx = new LogicalBinaryContext(new BooleanExpressionContext(_parentctx, _parentState)); + ((LogicalBinaryContext)_localctx).left = _prevctx; + pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression); + setState(463); + if (!(precpred(_ctx, 5))) throw new FailedPredicateException(this, "precpred(_ctx, 5)"); + setState(464); + ((LogicalBinaryContext)_localctx).operator = match(AND); + setState(465); + ((LogicalBinaryContext)_localctx).right = booleanExpression(6); + } + break; + case 2: + { + _localctx = new LogicalBinaryContext(new BooleanExpressionContext(_parentctx, _parentState)); + ((LogicalBinaryContext)_localctx).left = _prevctx; + pushNewRecursionContext(_localctx, _startState, RULE_booleanExpression); + setState(466); + if (!(precpred(_ctx, 4))) throw new FailedPredicateException(this, "precpred(_ctx, 4)"); + setState(467); + ((LogicalBinaryContext)_localctx).operator = match(OR); + setState(468); + ((LogicalBinaryContext)_localctx).right = booleanExpression(5); + } + break; + } + } + } + setState(473); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,40,_ctx); + } } } catch (RecognitionException re) { @@ -3796,89 +3795,94 @@ public final ConstantContext constant() throws RecognitionException { _errHandler.recover(this, re); } finally { - exitRule(); + unrollRecursionContexts(_parentctx); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class ParameterContext extends ParserRuleContext { - @SuppressWarnings("this-escape") - public ParameterContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public static class RegexBooleanExpressionContext extends ParserRuleContext { + public Token kind; + public StringContext pattern; + public ValueExpressionContext valueExpression() { + return getRuleContext(ValueExpressionContext.class,0); } - @Override public int getRuleIndex() { return RULE_parameter; } - - @SuppressWarnings("this-escape") - public ParameterContext() { } - public void copyFrom(ParameterContext ctx) { - super.copyFrom(ctx); + public TerminalNode LIKE() { return getToken(EsqlBaseParser.LIKE, 0); } + public StringContext string() { + return getRuleContext(StringContext.class,0); } - } - @SuppressWarnings("CheckReturnValue") - public static class InputNamedOrPositionalParamContext extends ParameterContext { - public TerminalNode NAMED_OR_POSITIONAL_PARAM() { return getToken(EsqlBaseParser.NAMED_OR_POSITIONAL_PARAM, 0); } + public TerminalNode NOT() { return getToken(EsqlBaseParser.NOT, 0); } + public TerminalNode RLIKE() { return getToken(EsqlBaseParser.RLIKE, 0); } @SuppressWarnings("this-escape") - public InputNamedOrPositionalParamContext(ParameterContext ctx) { copyFrom(ctx); } + public RegexBooleanExpressionContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); + } + @Override public int getRuleIndex() { return RULE_regexBooleanExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputNamedOrPositionalParam(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRegexBooleanExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputNamedOrPositionalParam(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRegexBooleanExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputNamedOrPositionalParam(this); - else return visitor.visitChildren(this); - } - } - @SuppressWarnings("CheckReturnValue") - public static class InputParamContext extends ParameterContext { - public TerminalNode PARAM() { return getToken(EsqlBaseParser.PARAM, 0); } - @SuppressWarnings("this-escape") - public InputParamContext(ParameterContext ctx) { copyFrom(ctx); } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputParam(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputParam(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputParam(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRegexBooleanExpression(this); else return visitor.visitChildren(this); } } - public final ParameterContext parameter() throws RecognitionException { - ParameterContext _localctx = new ParameterContext(_ctx, getState()); - enterRule(_localctx, 70, RULE_parameter); + public final RegexBooleanExpressionContext regexBooleanExpression() throws RecognitionException { + RegexBooleanExpressionContext _localctx = new RegexBooleanExpressionContext(_ctx, getState()); + enterRule(_localctx, 94, RULE_regexBooleanExpression); + int _la; try { - setState(492); + setState(488); _errHandler.sync(this); - switch (_input.LA(1)) { - case PARAM: - _localctx = new InputParamContext(_localctx); + switch ( getInterpreter().adaptivePredict(_input,43,_ctx) ) { + case 1: enterOuterAlt(_localctx, 1); { - setState(490); - match(PARAM); + setState(474); + valueExpression(); + setState(476); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la==NOT) { + { + setState(475); + match(NOT); + } + } + + setState(478); + ((RegexBooleanExpressionContext)_localctx).kind = match(LIKE); + setState(479); + ((RegexBooleanExpressionContext)_localctx).pattern = string(); } break; - case NAMED_OR_POSITIONAL_PARAM: - _localctx = new InputNamedOrPositionalParamContext(_localctx); + case 2: enterOuterAlt(_localctx, 2); { - setState(491); - match(NAMED_OR_POSITIONAL_PARAM); + setState(481); + valueExpression(); + setState(483); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la==NOT) { + { + setState(482); + match(NOT); + } + } + + setState(485); + ((RegexBooleanExpressionContext)_localctx).kind = match(RLIKE); + setState(486); + ((RegexBooleanExpressionContext)_localctx).pattern = string(); } break; - default: - throw new NoViableAltException(this); } } catch (RecognitionException re) { @@ -3893,58 +3897,66 @@ public final ParameterContext parameter() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class IdentifierOrParameterContext extends ParserRuleContext { - public IdentifierContext identifier() { - return getRuleContext(IdentifierContext.class,0); + public static class MatchBooleanExpressionContext extends ParserRuleContext { + public QualifiedNameContext fieldExp; + public DataTypeContext fieldType; + public ConstantContext matchQuery; + public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } + public QualifiedNameContext qualifiedName() { + return getRuleContext(QualifiedNameContext.class,0); } - public ParameterContext parameter() { - return getRuleContext(ParameterContext.class,0); + public ConstantContext constant() { + return getRuleContext(ConstantContext.class,0); + } + public TerminalNode CAST_OP() { return getToken(EsqlBaseParser.CAST_OP, 0); } + public DataTypeContext dataType() { + return getRuleContext(DataTypeContext.class,0); } @SuppressWarnings("this-escape") - public IdentifierOrParameterContext(ParserRuleContext parent, int invokingState) { + public MatchBooleanExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_identifierOrParameter; } + @Override public int getRuleIndex() { return RULE_matchBooleanExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIdentifierOrParameter(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMatchBooleanExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIdentifierOrParameter(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMatchBooleanExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIdentifierOrParameter(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMatchBooleanExpression(this); else return visitor.visitChildren(this); } } - public final IdentifierOrParameterContext identifierOrParameter() throws RecognitionException { - IdentifierOrParameterContext _localctx = new IdentifierOrParameterContext(_ctx, getState()); - enterRule(_localctx, 72, RULE_identifierOrParameter); + public final MatchBooleanExpressionContext matchBooleanExpression() throws RecognitionException { + MatchBooleanExpressionContext _localctx = new MatchBooleanExpressionContext(_ctx, getState()); + enterRule(_localctx, 96, RULE_matchBooleanExpression); + int _la; try { - setState(496); + enterOuterAlt(_localctx, 1); + { + setState(490); + ((MatchBooleanExpressionContext)_localctx).fieldExp = qualifiedName(); + setState(493); _errHandler.sync(this); - switch (_input.LA(1)) { - case UNQUOTED_IDENTIFIER: - case QUOTED_IDENTIFIER: - enterOuterAlt(_localctx, 1); - { - setState(494); - identifier(); - } - break; - case PARAM: - case NAMED_OR_POSITIONAL_PARAM: - enterOuterAlt(_localctx, 2); + _la = _input.LA(1); + if (_la==CAST_OP) { { - setState(495); - parameter(); + setState(491); + match(CAST_OP); + setState(492); + ((MatchBooleanExpressionContext)_localctx).fieldType = dataType(); } - break; - default: - throw new NoViableAltException(this); + } + + setState(495); + match(COLON); + setState(496); + ((MatchBooleanExpressionContext)_localctx).matchQuery = constant(); } } catch (RecognitionException re) { @@ -3959,114 +3971,97 @@ public final IdentifierOrParameterContext identifierOrParameter() throws Recogni } @SuppressWarnings("CheckReturnValue") - public static class LimitCommandContext extends ParserRuleContext { - public TerminalNode LIMIT() { return getToken(EsqlBaseParser.LIMIT, 0); } - public TerminalNode INTEGER_LITERAL() { return getToken(EsqlBaseParser.INTEGER_LITERAL, 0); } + public static class ValueExpressionContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public LimitCommandContext(ParserRuleContext parent, int invokingState) { + public ValueExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_limitCommand; } + @Override public int getRuleIndex() { return RULE_valueExpression; } + + @SuppressWarnings("this-escape") + public ValueExpressionContext() { } + public void copyFrom(ValueExpressionContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class ValueExpressionDefaultContext extends ValueExpressionContext { + public OperatorExpressionContext operatorExpression() { + return getRuleContext(OperatorExpressionContext.class,0); + } + @SuppressWarnings("this-escape") + public ValueExpressionDefaultContext(ValueExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLimitCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterValueExpressionDefault(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLimitCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitValueExpressionDefault(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLimitCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitValueExpressionDefault(this); else return visitor.visitChildren(this); } } - - public final LimitCommandContext limitCommand() throws RecognitionException { - LimitCommandContext _localctx = new LimitCommandContext(_ctx, getState()); - enterRule(_localctx, 74, RULE_limitCommand); - try { - enterOuterAlt(_localctx, 1); - { - setState(498); - match(LIMIT); - setState(499); - match(INTEGER_LITERAL); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - @SuppressWarnings("CheckReturnValue") - public static class SortCommandContext extends ParserRuleContext { - public TerminalNode SORT() { return getToken(EsqlBaseParser.SORT, 0); } - public List orderExpression() { - return getRuleContexts(OrderExpressionContext.class); + public static class ComparisonContext extends ValueExpressionContext { + public OperatorExpressionContext left; + public OperatorExpressionContext right; + public ComparisonOperatorContext comparisonOperator() { + return getRuleContext(ComparisonOperatorContext.class,0); } - public OrderExpressionContext orderExpression(int i) { - return getRuleContext(OrderExpressionContext.class,i); + public List operatorExpression() { + return getRuleContexts(OperatorExpressionContext.class); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + public OperatorExpressionContext operatorExpression(int i) { + return getRuleContext(OperatorExpressionContext.class,i); } @SuppressWarnings("this-escape") - public SortCommandContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_sortCommand; } + public ComparisonContext(ValueExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterSortCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterComparison(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitSortCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitComparison(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitSortCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitComparison(this); else return visitor.visitChildren(this); } } - public final SortCommandContext sortCommand() throws RecognitionException { - SortCommandContext _localctx = new SortCommandContext(_ctx, getState()); - enterRule(_localctx, 76, RULE_sortCommand); + public final ValueExpressionContext valueExpression() throws RecognitionException { + ValueExpressionContext _localctx = new ValueExpressionContext(_ctx, getState()); + enterRule(_localctx, 98, RULE_valueExpression); try { - int _alt; - enterOuterAlt(_localctx, 1); - { - setState(501); - match(SORT); - setState(502); - orderExpression(); - setState(507); + setState(503); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,46,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(503); - match(COMMA); - setState(504); - orderExpression(); - } - } + switch ( getInterpreter().adaptivePredict(_input,45,_ctx) ) { + case 1: + _localctx = new ValueExpressionDefaultContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(498); + operatorExpression(0); } - setState(509); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,46,_ctx); - } + break; + case 2: + _localctx = new ComparisonContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(499); + ((ComparisonContext)_localctx).left = operatorExpression(0); + setState(500); + comparisonOperator(); + setState(501); + ((ComparisonContext)_localctx).right = operatorExpression(0); + } + break; } } catch (RecognitionException re) { @@ -4081,86 +4076,210 @@ public final SortCommandContext sortCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class OrderExpressionContext extends ParserRuleContext { - public Token ordering; - public Token nullOrdering; - public BooleanExpressionContext booleanExpression() { - return getRuleContext(BooleanExpressionContext.class,0); - } - public TerminalNode NULLS() { return getToken(EsqlBaseParser.NULLS, 0); } - public TerminalNode ASC() { return getToken(EsqlBaseParser.ASC, 0); } - public TerminalNode DESC() { return getToken(EsqlBaseParser.DESC, 0); } - public TerminalNode FIRST() { return getToken(EsqlBaseParser.FIRST, 0); } - public TerminalNode LAST() { return getToken(EsqlBaseParser.LAST, 0); } + public static class OperatorExpressionContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public OrderExpressionContext(ParserRuleContext parent, int invokingState) { + public OperatorExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_orderExpression; } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterOrderExpression(this); - } + @Override public int getRuleIndex() { return RULE_operatorExpression; } + + @SuppressWarnings("this-escape") + public OperatorExpressionContext() { } + public void copyFrom(OperatorExpressionContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class OperatorExpressionDefaultContext extends OperatorExpressionContext { + public PrimaryExpressionContext primaryExpression() { + return getRuleContext(PrimaryExpressionContext.class,0); + } + @SuppressWarnings("this-escape") + public OperatorExpressionDefaultContext(OperatorExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterOperatorExpressionDefault(this); + } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitOrderExpression(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitOperatorExpressionDefault(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitOrderExpression(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitOperatorExpressionDefault(this); + else return visitor.visitChildren(this); + } + } + @SuppressWarnings("CheckReturnValue") + public static class ArithmeticBinaryContext extends OperatorExpressionContext { + public OperatorExpressionContext left; + public Token operator; + public OperatorExpressionContext right; + public List operatorExpression() { + return getRuleContexts(OperatorExpressionContext.class); + } + public OperatorExpressionContext operatorExpression(int i) { + return getRuleContext(OperatorExpressionContext.class,i); + } + public TerminalNode ASTERISK() { return getToken(EsqlBaseParser.ASTERISK, 0); } + public TerminalNode SLASH() { return getToken(EsqlBaseParser.SLASH, 0); } + public TerminalNode PERCENT() { return getToken(EsqlBaseParser.PERCENT, 0); } + public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } + public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } + @SuppressWarnings("this-escape") + public ArithmeticBinaryContext(OperatorExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterArithmeticBinary(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitArithmeticBinary(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitArithmeticBinary(this); + else return visitor.visitChildren(this); + } + } + @SuppressWarnings("CheckReturnValue") + public static class ArithmeticUnaryContext extends OperatorExpressionContext { + public Token operator; + public OperatorExpressionContext operatorExpression() { + return getRuleContext(OperatorExpressionContext.class,0); + } + public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } + public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } + @SuppressWarnings("this-escape") + public ArithmeticUnaryContext(OperatorExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterArithmeticUnary(this); + } + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitArithmeticUnary(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitArithmeticUnary(this); else return visitor.visitChildren(this); } } - public final OrderExpressionContext orderExpression() throws RecognitionException { - OrderExpressionContext _localctx = new OrderExpressionContext(_ctx, getState()); - enterRule(_localctx, 78, RULE_orderExpression); + public final OperatorExpressionContext operatorExpression() throws RecognitionException { + return operatorExpression(0); + } + + private OperatorExpressionContext operatorExpression(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + OperatorExpressionContext _localctx = new OperatorExpressionContext(_ctx, _parentState); + OperatorExpressionContext _prevctx = _localctx; + int _startState = 100; + enterRecursionRule(_localctx, 100, RULE_operatorExpression, _p); int _la; try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(510); - booleanExpression(0); - setState(512); + setState(509); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,47,_ctx) ) { + switch ( getInterpreter().adaptivePredict(_input,46,_ctx) ) { case 1: { - setState(511); - ((OrderExpressionContext)_localctx).ordering = _input.LT(1); - _la = _input.LA(1); - if ( !(_la==ASC || _la==DESC) ) { - ((OrderExpressionContext)_localctx).ordering = (Token)_errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } + _localctx = new OperatorExpressionDefaultContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(506); + primaryExpression(0); } break; - } - setState(516); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,48,_ctx) ) { - case 1: + case 2: { - setState(514); - match(NULLS); - setState(515); - ((OrderExpressionContext)_localctx).nullOrdering = _input.LT(1); + _localctx = new ArithmeticUnaryContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(507); + ((ArithmeticUnaryContext)_localctx).operator = _input.LT(1); _la = _input.LA(1); - if ( !(_la==FIRST || _la==LAST) ) { - ((OrderExpressionContext)_localctx).nullOrdering = (Token)_errHandler.recoverInline(this); + if ( !(_la==PLUS || _la==MINUS) ) { + ((ArithmeticUnaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); } else { if ( _input.LA(1)==Token.EOF ) matchedEOF = true; _errHandler.reportMatch(this); consume(); } + setState(508); + operatorExpression(3); } break; } + _ctx.stop = _input.LT(-1); + setState(519); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,48,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; + { + setState(517); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,47,_ctx) ) { + case 1: + { + _localctx = new ArithmeticBinaryContext(new OperatorExpressionContext(_parentctx, _parentState)); + ((ArithmeticBinaryContext)_localctx).left = _prevctx; + pushNewRecursionContext(_localctx, _startState, RULE_operatorExpression); + setState(511); + if (!(precpred(_ctx, 2))) throw new FailedPredicateException(this, "precpred(_ctx, 2)"); + setState(512); + ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); + _la = _input.LA(1); + if ( !(((((_la - 85)) & ~0x3f) == 0 && ((1L << (_la - 85)) & 7L) != 0)) ) { + ((ArithmeticBinaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + setState(513); + ((ArithmeticBinaryContext)_localctx).right = operatorExpression(3); + } + break; + case 2: + { + _localctx = new ArithmeticBinaryContext(new OperatorExpressionContext(_parentctx, _parentState)); + ((ArithmeticBinaryContext)_localctx).left = _prevctx; + pushNewRecursionContext(_localctx, _startState, RULE_operatorExpression); + setState(514); + if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); + setState(515); + ((ArithmeticBinaryContext)_localctx).operator = _input.LT(1); + _la = _input.LA(1); + if ( !(_la==PLUS || _la==MINUS) ) { + ((ArithmeticBinaryContext)_localctx).operator = (Token)_errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } + setState(516); + ((ArithmeticBinaryContext)_localctx).right = operatorExpression(2); + } + break; + } + } + } + setState(521); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,48,_ctx); + } } } catch (RecognitionException re) { @@ -4169,170 +4288,221 @@ public final OrderExpressionContext orderExpression() throws RecognitionExceptio _errHandler.recover(this, re); } finally { - exitRule(); + unrollRecursionContexts(_parentctx); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class KeepCommandContext extends ParserRuleContext { - public TerminalNode KEEP() { return getToken(EsqlBaseParser.KEEP, 0); } - public QualifiedNamePatternsContext qualifiedNamePatterns() { - return getRuleContext(QualifiedNamePatternsContext.class,0); - } + public static class PrimaryExpressionContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public KeepCommandContext(ParserRuleContext parent, int invokingState) { + public PrimaryExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_keepCommand; } + @Override public int getRuleIndex() { return RULE_primaryExpression; } + + @SuppressWarnings("this-escape") + public PrimaryExpressionContext() { } + public void copyFrom(PrimaryExpressionContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class DereferenceContext extends PrimaryExpressionContext { + public QualifiedNameContext qualifiedName() { + return getRuleContext(QualifiedNameContext.class,0); + } + @SuppressWarnings("this-escape") + public DereferenceContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterKeepCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDereference(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitKeepCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDereference(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitKeepCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDereference(this); else return visitor.visitChildren(this); } } - - public final KeepCommandContext keepCommand() throws RecognitionException { - KeepCommandContext _localctx = new KeepCommandContext(_ctx, getState()); - enterRule(_localctx, 80, RULE_keepCommand); - try { - enterOuterAlt(_localctx, 1); - { - setState(518); - match(KEEP); - setState(519); - qualifiedNamePatterns(); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - @SuppressWarnings("CheckReturnValue") - public static class DropCommandContext extends ParserRuleContext { - public TerminalNode DROP() { return getToken(EsqlBaseParser.DROP, 0); } - public QualifiedNamePatternsContext qualifiedNamePatterns() { - return getRuleContext(QualifiedNamePatternsContext.class,0); + public static class InlineCastContext extends PrimaryExpressionContext { + public PrimaryExpressionContext primaryExpression() { + return getRuleContext(PrimaryExpressionContext.class,0); } - @SuppressWarnings("this-escape") - public DropCommandContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public TerminalNode CAST_OP() { return getToken(EsqlBaseParser.CAST_OP, 0); } + public DataTypeContext dataType() { + return getRuleContext(DataTypeContext.class,0); } - @Override public int getRuleIndex() { return RULE_dropCommand; } + @SuppressWarnings("this-escape") + public InlineCastContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDropCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInlineCast(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDropCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInlineCast(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDropCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInlineCast(this); else return visitor.visitChildren(this); } } - - public final DropCommandContext dropCommand() throws RecognitionException { - DropCommandContext _localctx = new DropCommandContext(_ctx, getState()); - enterRule(_localctx, 82, RULE_dropCommand); - try { - enterOuterAlt(_localctx, 1); - { - setState(521); - match(DROP); - setState(522); - qualifiedNamePatterns(); - } + @SuppressWarnings("CheckReturnValue") + public static class ConstantDefaultContext extends PrimaryExpressionContext { + public ConstantContext constant() { + return getRuleContext(ConstantContext.class,0); } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + @SuppressWarnings("this-escape") + public ConstantDefaultContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterConstantDefault(this); } - finally { - exitRule(); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitConstantDefault(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitConstantDefault(this); + else return visitor.visitChildren(this); } - return _localctx; } - @SuppressWarnings("CheckReturnValue") - public static class RenameCommandContext extends ParserRuleContext { - public TerminalNode RENAME() { return getToken(EsqlBaseParser.RENAME, 0); } - public List renameClause() { - return getRuleContexts(RenameClauseContext.class); + public static class ParenthesizedExpressionContext extends PrimaryExpressionContext { + public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } + public BooleanExpressionContext booleanExpression() { + return getRuleContext(BooleanExpressionContext.class,0); } - public RenameClauseContext renameClause(int i) { - return getRuleContext(RenameClauseContext.class,i); + public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } + @SuppressWarnings("this-escape") + public ParenthesizedExpressionContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterParenthesizedExpression(this); } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitParenthesizedExpression(this); } - @SuppressWarnings("this-escape") - public RenameCommandContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitParenthesizedExpression(this); + else return visitor.visitChildren(this); } - @Override public int getRuleIndex() { return RULE_renameCommand; } + } + @SuppressWarnings("CheckReturnValue") + public static class FunctionContext extends PrimaryExpressionContext { + public FunctionExpressionContext functionExpression() { + return getRuleContext(FunctionExpressionContext.class,0); + } + @SuppressWarnings("this-escape") + public FunctionContext(PrimaryExpressionContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRenameCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunction(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRenameCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunction(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRenameCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunction(this); else return visitor.visitChildren(this); } } - public final RenameCommandContext renameCommand() throws RecognitionException { - RenameCommandContext _localctx = new RenameCommandContext(_ctx, getState()); - enterRule(_localctx, 84, RULE_renameCommand); + public final PrimaryExpressionContext primaryExpression() throws RecognitionException { + return primaryExpression(0); + } + + private PrimaryExpressionContext primaryExpression(int _p) throws RecognitionException { + ParserRuleContext _parentctx = _ctx; + int _parentState = getState(); + PrimaryExpressionContext _localctx = new PrimaryExpressionContext(_ctx, _parentState); + PrimaryExpressionContext _prevctx = _localctx; + int _startState = 102; + enterRecursionRule(_localctx, 102, RULE_primaryExpression, _p); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(524); - match(RENAME); - setState(525); - renameClause(); setState(530); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,49,_ctx); + switch ( getInterpreter().adaptivePredict(_input,49,_ctx) ) { + case 1: + { + _localctx = new ConstantDefaultContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + + setState(523); + constant(); + } + break; + case 2: + { + _localctx = new DereferenceContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(524); + qualifiedName(); + } + break; + case 3: + { + _localctx = new FunctionContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(525); + functionExpression(); + } + break; + case 4: + { + _localctx = new ParenthesizedExpressionContext(_localctx); + _ctx = _localctx; + _prevctx = _localctx; + setState(526); + match(LP); + setState(527); + booleanExpression(0); + setState(528); + match(RP); + } + break; + } + _ctx.stop = _input.LT(-1); + setState(537); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,50,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { + if ( _parseListeners!=null ) triggerExitRuleEvent(); + _prevctx = _localctx; { { - setState(526); - match(COMMA); - setState(527); - renameClause(); + _localctx = new InlineCastContext(new PrimaryExpressionContext(_parentctx, _parentState)); + pushNewRecursionContext(_localctx, _startState, RULE_primaryExpression); + setState(532); + if (!(precpred(_ctx, 1))) throw new FailedPredicateException(this, "precpred(_ctx, 1)"); + setState(533); + match(CAST_OP); + setState(534); + dataType(); } } } - setState(532); + setState(539); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,49,_ctx); + _alt = getInterpreter().adaptivePredict(_input,50,_ctx); } } } @@ -4342,54 +4512,132 @@ public final RenameCommandContext renameCommand() throws RecognitionException { _errHandler.recover(this, re); } finally { - exitRule(); + unrollRecursionContexts(_parentctx); } return _localctx; } @SuppressWarnings("CheckReturnValue") - public static class RenameClauseContext extends ParserRuleContext { - public QualifiedNamePatternContext oldName; - public QualifiedNamePatternContext newName; - public TerminalNode AS() { return getToken(EsqlBaseParser.AS, 0); } - public List qualifiedNamePattern() { - return getRuleContexts(QualifiedNamePatternContext.class); + public static class FunctionExpressionContext extends ParserRuleContext { + public FunctionNameContext functionName() { + return getRuleContext(FunctionNameContext.class,0); } - public QualifiedNamePatternContext qualifiedNamePattern(int i) { - return getRuleContext(QualifiedNamePatternContext.class,i); + public TerminalNode LP() { return getToken(EsqlBaseParser.LP, 0); } + public TerminalNode RP() { return getToken(EsqlBaseParser.RP, 0); } + public TerminalNode ASTERISK() { return getToken(EsqlBaseParser.ASTERISK, 0); } + public List booleanExpression() { + return getRuleContexts(BooleanExpressionContext.class); + } + public BooleanExpressionContext booleanExpression(int i) { + return getRuleContext(BooleanExpressionContext.class,i); + } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); + } + public MapExpressionContext mapExpression() { + return getRuleContext(MapExpressionContext.class,0); } @SuppressWarnings("this-escape") - public RenameClauseContext(ParserRuleContext parent, int invokingState) { + public FunctionExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_renameClause; } + @Override public int getRuleIndex() { return RULE_functionExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterRenameClause(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunctionExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitRenameClause(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunctionExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitRenameClause(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunctionExpression(this); else return visitor.visitChildren(this); } } - public final RenameClauseContext renameClause() throws RecognitionException { - RenameClauseContext _localctx = new RenameClauseContext(_ctx, getState()); - enterRule(_localctx, 86, RULE_renameClause); + public final FunctionExpressionContext functionExpression() throws RecognitionException { + FunctionExpressionContext _localctx = new FunctionExpressionContext(_ctx, getState()); + enterRule(_localctx, 104, RULE_functionExpression); + int _la; try { + int _alt; enterOuterAlt(_localctx, 1); { - setState(533); - ((RenameClauseContext)_localctx).oldName = qualifiedNamePattern(); - setState(534); - match(AS); - setState(535); - ((RenameClauseContext)_localctx).newName = qualifiedNamePattern(); + setState(540); + functionName(); + setState(541); + match(LP); + setState(555); + _errHandler.sync(this); + switch (_input.LA(1)) { + case ASTERISK: + { + setState(542); + match(ASTERISK); + } + break; + case QUOTED_STRING: + case INTEGER_LITERAL: + case DECIMAL_LITERAL: + case FALSE: + case LP: + case NOT: + case NULL: + case PARAM: + case TRUE: + case PLUS: + case MINUS: + case NAMED_OR_POSITIONAL_PARAM: + case OPENING_BRACKET: + case UNQUOTED_IDENTIFIER: + case QUOTED_IDENTIFIER: + { + { + setState(543); + booleanExpression(0); + setState(548); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,51,_ctx); + while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { + if ( _alt==1 ) { + { + { + setState(544); + match(COMMA); + setState(545); + booleanExpression(0); + } + } + } + setState(550); + _errHandler.sync(this); + _alt = getInterpreter().adaptivePredict(_input,51,_ctx); + } + setState(553); + _errHandler.sync(this); + _la = _input.LA(1); + if (_la==COMMA) { + { + setState(551); + match(COMMA); + setState(552); + mapExpression(); + } + } + + } + } + break; + case RP: + break; + default: + break; + } + setState(557); + match(RP); } } catch (RecognitionException re) { @@ -4404,59 +4652,38 @@ public final RenameClauseContext renameClause() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class DissectCommandContext extends ParserRuleContext { - public TerminalNode DISSECT() { return getToken(EsqlBaseParser.DISSECT, 0); } - public PrimaryExpressionContext primaryExpression() { - return getRuleContext(PrimaryExpressionContext.class,0); - } - public StringContext string() { - return getRuleContext(StringContext.class,0); - } - public CommandOptionsContext commandOptions() { - return getRuleContext(CommandOptionsContext.class,0); + public static class FunctionNameContext extends ParserRuleContext { + public IdentifierOrParameterContext identifierOrParameter() { + return getRuleContext(IdentifierOrParameterContext.class,0); } @SuppressWarnings("this-escape") - public DissectCommandContext(ParserRuleContext parent, int invokingState) { + public FunctionNameContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_dissectCommand; } + @Override public int getRuleIndex() { return RULE_functionName; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDissectCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterFunctionName(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDissectCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitFunctionName(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDissectCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitFunctionName(this); else return visitor.visitChildren(this); } } - public final DissectCommandContext dissectCommand() throws RecognitionException { - DissectCommandContext _localctx = new DissectCommandContext(_ctx, getState()); - enterRule(_localctx, 88, RULE_dissectCommand); + public final FunctionNameContext functionName() throws RecognitionException { + FunctionNameContext _localctx = new FunctionNameContext(_ctx, getState()); + enterRule(_localctx, 106, RULE_functionName); try { enterOuterAlt(_localctx, 1); { - setState(537); - match(DISSECT); - setState(538); - primaryExpression(0); - setState(539); - string(); - setState(541); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,50,_ctx) ) { - case 1: - { - setState(540); - commandOptions(); - } - break; - } + setState(559); + identifierOrParameter(); } } catch (RecognitionException re) { @@ -4471,46 +4698,68 @@ public final DissectCommandContext dissectCommand() throws RecognitionException } @SuppressWarnings("CheckReturnValue") - public static class GrokCommandContext extends ParserRuleContext { - public TerminalNode GROK() { return getToken(EsqlBaseParser.GROK, 0); } - public PrimaryExpressionContext primaryExpression() { - return getRuleContext(PrimaryExpressionContext.class,0); + public static class MapExpressionContext extends ParserRuleContext { + public TerminalNode LEFT_BRACES() { return getToken(EsqlBaseParser.LEFT_BRACES, 0); } + public List entryExpression() { + return getRuleContexts(EntryExpressionContext.class); } - public StringContext string() { - return getRuleContext(StringContext.class,0); + public EntryExpressionContext entryExpression(int i) { + return getRuleContext(EntryExpressionContext.class,i); + } + public TerminalNode RIGHT_BRACES() { return getToken(EsqlBaseParser.RIGHT_BRACES, 0); } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public GrokCommandContext(ParserRuleContext parent, int invokingState) { + public MapExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_grokCommand; } + @Override public int getRuleIndex() { return RULE_mapExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterGrokCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMapExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitGrokCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMapExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitGrokCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMapExpression(this); else return visitor.visitChildren(this); } } - public final GrokCommandContext grokCommand() throws RecognitionException { - GrokCommandContext _localctx = new GrokCommandContext(_ctx, getState()); - enterRule(_localctx, 90, RULE_grokCommand); + public final MapExpressionContext mapExpression() throws RecognitionException { + MapExpressionContext _localctx = new MapExpressionContext(_ctx, getState()); + enterRule(_localctx, 108, RULE_mapExpression); + int _la; try { enterOuterAlt(_localctx, 1); { - setState(543); - match(GROK); - setState(544); - primaryExpression(0); - setState(545); - string(); + setState(561); + match(LEFT_BRACES); + setState(562); + entryExpression(); + setState(567); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(563); + match(COMMA); + setState(564); + entryExpression(); + } + } + setState(569); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(570); + match(RIGHT_BRACES); } } catch (RecognitionException re) { @@ -4525,41 +4774,48 @@ public final GrokCommandContext grokCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class MvExpandCommandContext extends ParserRuleContext { - public TerminalNode MV_EXPAND() { return getToken(EsqlBaseParser.MV_EXPAND, 0); } - public QualifiedNameContext qualifiedName() { - return getRuleContext(QualifiedNameContext.class,0); + public static class EntryExpressionContext extends ParserRuleContext { + public StringContext key; + public ConstantContext value; + public TerminalNode COLON() { return getToken(EsqlBaseParser.COLON, 0); } + public StringContext string() { + return getRuleContext(StringContext.class,0); + } + public ConstantContext constant() { + return getRuleContext(ConstantContext.class,0); } @SuppressWarnings("this-escape") - public MvExpandCommandContext(ParserRuleContext parent, int invokingState) { + public EntryExpressionContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_mvExpandCommand; } + @Override public int getRuleIndex() { return RULE_entryExpression; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterMvExpandCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEntryExpression(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitMvExpandCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEntryExpression(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitMvExpandCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEntryExpression(this); else return visitor.visitChildren(this); } } - public final MvExpandCommandContext mvExpandCommand() throws RecognitionException { - MvExpandCommandContext _localctx = new MvExpandCommandContext(_ctx, getState()); - enterRule(_localctx, 92, RULE_mvExpandCommand); + public final EntryExpressionContext entryExpression() throws RecognitionException { + EntryExpressionContext _localctx = new EntryExpressionContext(_ctx, getState()); + enterRule(_localctx, 110, RULE_entryExpression); try { enterOuterAlt(_localctx, 1); { - setState(547); - match(MV_EXPAND); - setState(548); - qualifiedName(); + setState(572); + ((EntryExpressionContext)_localctx).key = string(); + setState(573); + match(COLON); + setState(574); + ((EntryExpressionContext)_localctx).value = constant(); } } catch (RecognitionException re) { @@ -4574,408 +4830,406 @@ public final MvExpandCommandContext mvExpandCommand() throws RecognitionExceptio } @SuppressWarnings("CheckReturnValue") - public static class CommandOptionsContext extends ParserRuleContext { - public List commandOption() { - return getRuleContexts(CommandOptionContext.class); + public static class ConstantContext extends ParserRuleContext { + @SuppressWarnings("this-escape") + public ConstantContext(ParserRuleContext parent, int invokingState) { + super(parent, invokingState); } - public CommandOptionContext commandOption(int i) { - return getRuleContext(CommandOptionContext.class,i); + @Override public int getRuleIndex() { return RULE_constant; } + + @SuppressWarnings("this-escape") + public ConstantContext() { } + public void copyFrom(ConstantContext ctx) { + super.copyFrom(ctx); + } + } + @SuppressWarnings("CheckReturnValue") + public static class BooleanArrayLiteralContext extends ConstantContext { + public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } + public List booleanValue() { + return getRuleContexts(BooleanValueContext.class); + } + public BooleanValueContext booleanValue(int i) { + return getRuleContext(BooleanValueContext.class,i); } + public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } public TerminalNode COMMA(int i) { return getToken(EsqlBaseParser.COMMA, i); } @SuppressWarnings("this-escape") - public CommandOptionsContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_commandOptions; } + public BooleanArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterCommandOptions(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanArrayLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitCommandOptions(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanArrayLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitCommandOptions(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanArrayLiteral(this); else return visitor.visitChildren(this); } } - - public final CommandOptionsContext commandOptions() throws RecognitionException { - CommandOptionsContext _localctx = new CommandOptionsContext(_ctx, getState()); - enterRule(_localctx, 94, RULE_commandOptions); - try { - int _alt; - enterOuterAlt(_localctx, 1); - { - setState(550); - commandOption(); - setState(555); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,51,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(551); - match(COMMA); - setState(552); - commandOption(); - } - } - } - setState(557); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,51,_ctx); - } - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - @SuppressWarnings("CheckReturnValue") - public static class CommandOptionContext extends ParserRuleContext { - public IdentifierContext identifier() { - return getRuleContext(IdentifierContext.class,0); - } - public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } - public ConstantContext constant() { - return getRuleContext(ConstantContext.class,0); + public static class DecimalLiteralContext extends ConstantContext { + public DecimalValueContext decimalValue() { + return getRuleContext(DecimalValueContext.class,0); } @SuppressWarnings("this-escape") - public CommandOptionContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_commandOption; } + public DecimalLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterCommandOption(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDecimalLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitCommandOption(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDecimalLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitCommandOption(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDecimalLiteral(this); else return visitor.visitChildren(this); } } - - public final CommandOptionContext commandOption() throws RecognitionException { - CommandOptionContext _localctx = new CommandOptionContext(_ctx, getState()); - enterRule(_localctx, 96, RULE_commandOption); - try { - enterOuterAlt(_localctx, 1); - { - setState(558); - identifier(); - setState(559); - match(ASSIGN); - setState(560); - constant(); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - @SuppressWarnings("CheckReturnValue") - public static class BooleanValueContext extends ParserRuleContext { - public TerminalNode TRUE() { return getToken(EsqlBaseParser.TRUE, 0); } - public TerminalNode FALSE() { return getToken(EsqlBaseParser.FALSE, 0); } + public static class NullLiteralContext extends ConstantContext { + public TerminalNode NULL() { return getToken(EsqlBaseParser.NULL, 0); } @SuppressWarnings("this-escape") - public BooleanValueContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_booleanValue; } + public NullLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNullLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNullLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanValue(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNullLiteral(this); else return visitor.visitChildren(this); } } - - public final BooleanValueContext booleanValue() throws RecognitionException { - BooleanValueContext _localctx = new BooleanValueContext(_ctx, getState()); - enterRule(_localctx, 98, RULE_booleanValue); - int _la; - try { - enterOuterAlt(_localctx, 1); - { - setState(562); - _la = _input.LA(1); - if ( !(_la==FALSE || _la==TRUE) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - } + @SuppressWarnings("CheckReturnValue") + public static class QualifiedIntegerLiteralContext extends ConstantContext { + public IntegerValueContext integerValue() { + return getRuleContext(IntegerValueContext.class,0); } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + public TerminalNode UNQUOTED_IDENTIFIER() { return getToken(EsqlBaseParser.UNQUOTED_IDENTIFIER, 0); } + @SuppressWarnings("this-escape") + public QualifiedIntegerLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterQualifiedIntegerLiteral(this); } - finally { - exitRule(); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitQualifiedIntegerLiteral(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitQualifiedIntegerLiteral(this); + else return visitor.visitChildren(this); } - return _localctx; } - @SuppressWarnings("CheckReturnValue") - public static class NumericValueContext extends ParserRuleContext { - public DecimalValueContext decimalValue() { - return getRuleContext(DecimalValueContext.class,0); + public static class StringArrayLiteralContext extends ConstantContext { + public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } + public List string() { + return getRuleContexts(StringContext.class); } - public IntegerValueContext integerValue() { - return getRuleContext(IntegerValueContext.class,0); + public StringContext string(int i) { + return getRuleContext(StringContext.class,i); } - @SuppressWarnings("this-escape") - public NumericValueContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } - @Override public int getRuleIndex() { return RULE_numericValue; } + @SuppressWarnings("this-escape") + public StringArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNumericValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStringArrayLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNumericValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStringArrayLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNumericValue(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStringArrayLiteral(this); else return visitor.visitChildren(this); } } - - public final NumericValueContext numericValue() throws RecognitionException { - NumericValueContext _localctx = new NumericValueContext(_ctx, getState()); - enterRule(_localctx, 100, RULE_numericValue); - try { - setState(566); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,52,_ctx) ) { - case 1: - enterOuterAlt(_localctx, 1); - { - setState(564); - decimalValue(); - } - break; - case 2: - enterOuterAlt(_localctx, 2); - { - setState(565); - integerValue(); - } - break; - } + @SuppressWarnings("CheckReturnValue") + public static class InputParameterContext extends ConstantContext { + public ParameterContext parameter() { + return getRuleContext(ParameterContext.class,0); } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + @SuppressWarnings("this-escape") + public InputParameterContext(ConstantContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInputParameter(this); } - finally { - exitRule(); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInputParameter(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInputParameter(this); + else return visitor.visitChildren(this); } - return _localctx; } - @SuppressWarnings("CheckReturnValue") - public static class DecimalValueContext extends ParserRuleContext { - public TerminalNode DECIMAL_LITERAL() { return getToken(EsqlBaseParser.DECIMAL_LITERAL, 0); } - public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } - public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } - @SuppressWarnings("this-escape") - public DecimalValueContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public static class StringLiteralContext extends ConstantContext { + public StringContext string() { + return getRuleContext(StringContext.class,0); } - @Override public int getRuleIndex() { return RULE_decimalValue; } + @SuppressWarnings("this-escape") + public StringLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDecimalValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterStringLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDecimalValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitStringLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDecimalValue(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitStringLiteral(this); else return visitor.visitChildren(this); } } - - public final DecimalValueContext decimalValue() throws RecognitionException { - DecimalValueContext _localctx = new DecimalValueContext(_ctx, getState()); - enterRule(_localctx, 102, RULE_decimalValue); - int _la; - try { - enterOuterAlt(_localctx, 1); - { - setState(569); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==PLUS || _la==MINUS) { - { - setState(568); - _la = _input.LA(1); - if ( !(_la==PLUS || _la==MINUS) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - } - } - - setState(571); - match(DECIMAL_LITERAL); - } + @SuppressWarnings("CheckReturnValue") + public static class NumericArrayLiteralContext extends ConstantContext { + public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } + public List numericValue() { + return getRuleContexts(NumericValueContext.class); } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + public NumericValueContext numericValue(int i) { + return getRuleContext(NumericValueContext.class,i); } - finally { - exitRule(); + public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } + public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } + public TerminalNode COMMA(int i) { + return getToken(EsqlBaseParser.COMMA, i); } - return _localctx; - } - - @SuppressWarnings("CheckReturnValue") - public static class IntegerValueContext extends ParserRuleContext { - public TerminalNode INTEGER_LITERAL() { return getToken(EsqlBaseParser.INTEGER_LITERAL, 0); } - public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } - public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } @SuppressWarnings("this-escape") - public IntegerValueContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_integerValue; } + public NumericArrayLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIntegerValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNumericArrayLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIntegerValue(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNumericArrayLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIntegerValue(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNumericArrayLiteral(this); else return visitor.visitChildren(this); } } - - public final IntegerValueContext integerValue() throws RecognitionException { - IntegerValueContext _localctx = new IntegerValueContext(_ctx, getState()); - enterRule(_localctx, 104, RULE_integerValue); - int _la; - try { - enterOuterAlt(_localctx, 1); - { - setState(574); - _errHandler.sync(this); - _la = _input.LA(1); - if (_la==PLUS || _la==MINUS) { - { - setState(573); - _la = _input.LA(1); - if ( !(_la==PLUS || _la==MINUS) ) { - _errHandler.recoverInline(this); - } - else { - if ( _input.LA(1)==Token.EOF ) matchedEOF = true; - _errHandler.reportMatch(this); - consume(); - } - } - } - - setState(576); - match(INTEGER_LITERAL); - } + @SuppressWarnings("CheckReturnValue") + public static class IntegerLiteralContext extends ConstantContext { + public IntegerValueContext integerValue() { + return getRuleContext(IntegerValueContext.class,0); } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + @SuppressWarnings("this-escape") + public IntegerLiteralContext(ConstantContext ctx) { copyFrom(ctx); } + @Override + public void enterRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIntegerLiteral(this); } - finally { - exitRule(); + @Override + public void exitRule(ParseTreeListener listener) { + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIntegerLiteral(this); + } + @Override + public T accept(ParseTreeVisitor visitor) { + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIntegerLiteral(this); + else return visitor.visitChildren(this); } - return _localctx; } - @SuppressWarnings("CheckReturnValue") - public static class StringContext extends ParserRuleContext { - public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } - @SuppressWarnings("this-escape") - public StringContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); + public static class BooleanLiteralContext extends ConstantContext { + public BooleanValueContext booleanValue() { + return getRuleContext(BooleanValueContext.class,0); } - @Override public int getRuleIndex() { return RULE_string; } + @SuppressWarnings("this-escape") + public BooleanLiteralContext(ConstantContext ctx) { copyFrom(ctx); } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanLiteral(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitString(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanLiteral(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitString(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanLiteral(this); else return visitor.visitChildren(this); } } - public final StringContext string() throws RecognitionException { - StringContext _localctx = new StringContext(_ctx, getState()); - enterRule(_localctx, 106, RULE_string); + public final ConstantContext constant() throws RecognitionException { + ConstantContext _localctx = new ConstantContext(_ctx, getState()); + enterRule(_localctx, 112, RULE_constant); + int _la; try { - enterOuterAlt(_localctx, 1); - { - setState(578); - match(QUOTED_STRING); + setState(618); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) { + case 1: + _localctx = new NullLiteralContext(_localctx); + enterOuterAlt(_localctx, 1); + { + setState(576); + match(NULL); + } + break; + case 2: + _localctx = new QualifiedIntegerLiteralContext(_localctx); + enterOuterAlt(_localctx, 2); + { + setState(577); + integerValue(); + setState(578); + match(UNQUOTED_IDENTIFIER); + } + break; + case 3: + _localctx = new DecimalLiteralContext(_localctx); + enterOuterAlt(_localctx, 3); + { + setState(580); + decimalValue(); + } + break; + case 4: + _localctx = new IntegerLiteralContext(_localctx); + enterOuterAlt(_localctx, 4); + { + setState(581); + integerValue(); + } + break; + case 5: + _localctx = new BooleanLiteralContext(_localctx); + enterOuterAlt(_localctx, 5); + { + setState(582); + booleanValue(); + } + break; + case 6: + _localctx = new InputParameterContext(_localctx); + enterOuterAlt(_localctx, 6); + { + setState(583); + parameter(); + } + break; + case 7: + _localctx = new StringLiteralContext(_localctx); + enterOuterAlt(_localctx, 7); + { + setState(584); + string(); + } + break; + case 8: + _localctx = new NumericArrayLiteralContext(_localctx); + enterOuterAlt(_localctx, 8); + { + setState(585); + match(OPENING_BRACKET); + setState(586); + numericValue(); + setState(591); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(587); + match(COMMA); + setState(588); + numericValue(); + } + } + setState(593); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(594); + match(CLOSING_BRACKET); + } + break; + case 9: + _localctx = new BooleanArrayLiteralContext(_localctx); + enterOuterAlt(_localctx, 9); + { + setState(596); + match(OPENING_BRACKET); + setState(597); + booleanValue(); + setState(602); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(598); + match(COMMA); + setState(599); + booleanValue(); + } + } + setState(604); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(605); + match(CLOSING_BRACKET); + } + break; + case 10: + _localctx = new StringArrayLiteralContext(_localctx); + enterOuterAlt(_localctx, 10); + { + setState(607); + match(OPENING_BRACKET); + setState(608); + string(); + setState(613); + _errHandler.sync(this); + _la = _input.LA(1); + while (_la==COMMA) { + { + { + setState(609); + match(COMMA); + setState(610); + string(); + } + } + setState(615); + _errHandler.sync(this); + _la = _input.LA(1); + } + setState(616); + match(CLOSING_BRACKET); + } + break; } } catch (RecognitionException re) { @@ -4990,43 +5244,39 @@ public final StringContext string() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class ComparisonOperatorContext extends ParserRuleContext { - public TerminalNode EQ() { return getToken(EsqlBaseParser.EQ, 0); } - public TerminalNode NEQ() { return getToken(EsqlBaseParser.NEQ, 0); } - public TerminalNode LT() { return getToken(EsqlBaseParser.LT, 0); } - public TerminalNode LTE() { return getToken(EsqlBaseParser.LTE, 0); } - public TerminalNode GT() { return getToken(EsqlBaseParser.GT, 0); } - public TerminalNode GTE() { return getToken(EsqlBaseParser.GTE, 0); } + public static class BooleanValueContext extends ParserRuleContext { + public TerminalNode TRUE() { return getToken(EsqlBaseParser.TRUE, 0); } + public TerminalNode FALSE() { return getToken(EsqlBaseParser.FALSE, 0); } @SuppressWarnings("this-escape") - public ComparisonOperatorContext(ParserRuleContext parent, int invokingState) { + public BooleanValueContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_comparisonOperator; } + @Override public int getRuleIndex() { return RULE_booleanValue; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterComparisonOperator(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterBooleanValue(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitComparisonOperator(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitBooleanValue(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitComparisonOperator(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitBooleanValue(this); else return visitor.visitChildren(this); } } - public final ComparisonOperatorContext comparisonOperator() throws RecognitionException { - ComparisonOperatorContext _localctx = new ComparisonOperatorContext(_ctx, getState()); - enterRule(_localctx, 108, RULE_comparisonOperator); + public final BooleanValueContext booleanValue() throws RecognitionException { + BooleanValueContext _localctx = new BooleanValueContext(_ctx, getState()); + enterRule(_localctx, 114, RULE_booleanValue); int _la; try { enterOuterAlt(_localctx, 1); { - setState(580); + setState(620); _la = _input.LA(1); - if ( !(((((_la - 76)) & ~0x3f) == 0 && ((1L << (_la - 76)) & 125L) != 0)) ) { + if ( !(_la==FALSE || _la==TRUE) ) { _errHandler.recoverInline(this); } else { @@ -5048,152 +5298,54 @@ public final ComparisonOperatorContext comparisonOperator() throws RecognitionEx } @SuppressWarnings("CheckReturnValue") - public static class ExplainCommandContext extends ParserRuleContext { - public TerminalNode EXPLAIN() { return getToken(EsqlBaseParser.EXPLAIN, 0); } - public SubqueryExpressionContext subqueryExpression() { - return getRuleContext(SubqueryExpressionContext.class,0); - } - @SuppressWarnings("this-escape") - public ExplainCommandContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_explainCommand; } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterExplainCommand(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitExplainCommand(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitExplainCommand(this); - else return visitor.visitChildren(this); - } - } - - public final ExplainCommandContext explainCommand() throws RecognitionException { - ExplainCommandContext _localctx = new ExplainCommandContext(_ctx, getState()); - enterRule(_localctx, 110, RULE_explainCommand); - try { - enterOuterAlt(_localctx, 1); - { - setState(582); - match(EXPLAIN); - setState(583); - subqueryExpression(); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - - @SuppressWarnings("CheckReturnValue") - public static class SubqueryExpressionContext extends ParserRuleContext { - public TerminalNode OPENING_BRACKET() { return getToken(EsqlBaseParser.OPENING_BRACKET, 0); } - public QueryContext query() { - return getRuleContext(QueryContext.class,0); - } - public TerminalNode CLOSING_BRACKET() { return getToken(EsqlBaseParser.CLOSING_BRACKET, 0); } - @SuppressWarnings("this-escape") - public SubqueryExpressionContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_subqueryExpression; } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterSubqueryExpression(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitSubqueryExpression(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitSubqueryExpression(this); - else return visitor.visitChildren(this); - } - } - - public final SubqueryExpressionContext subqueryExpression() throws RecognitionException { - SubqueryExpressionContext _localctx = new SubqueryExpressionContext(_ctx, getState()); - enterRule(_localctx, 112, RULE_subqueryExpression); - try { - enterOuterAlt(_localctx, 1); - { - setState(585); - match(OPENING_BRACKET); - setState(586); - query(0); - setState(587); - match(CLOSING_BRACKET); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); + public static class NumericValueContext extends ParserRuleContext { + public DecimalValueContext decimalValue() { + return getRuleContext(DecimalValueContext.class,0); } - finally { - exitRule(); + public IntegerValueContext integerValue() { + return getRuleContext(IntegerValueContext.class,0); } - return _localctx; - } - - @SuppressWarnings("CheckReturnValue") - public static class ShowCommandContext extends ParserRuleContext { @SuppressWarnings("this-escape") - public ShowCommandContext(ParserRuleContext parent, int invokingState) { + public NumericValueContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_showCommand; } - - @SuppressWarnings("this-escape") - public ShowCommandContext() { } - public void copyFrom(ShowCommandContext ctx) { - super.copyFrom(ctx); - } - } - @SuppressWarnings("CheckReturnValue") - public static class ShowInfoContext extends ShowCommandContext { - public TerminalNode SHOW() { return getToken(EsqlBaseParser.SHOW, 0); } - public TerminalNode INFO() { return getToken(EsqlBaseParser.INFO, 0); } - @SuppressWarnings("this-escape") - public ShowInfoContext(ShowCommandContext ctx) { copyFrom(ctx); } + @Override public int getRuleIndex() { return RULE_numericValue; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterShowInfo(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterNumericValue(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitShowInfo(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitNumericValue(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitShowInfo(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitNumericValue(this); else return visitor.visitChildren(this); } } - public final ShowCommandContext showCommand() throws RecognitionException { - ShowCommandContext _localctx = new ShowCommandContext(_ctx, getState()); - enterRule(_localctx, 114, RULE_showCommand); + public final NumericValueContext numericValue() throws RecognitionException { + NumericValueContext _localctx = new NumericValueContext(_ctx, getState()); + enterRule(_localctx, 116, RULE_numericValue); try { - _localctx = new ShowInfoContext(_localctx); - enterOuterAlt(_localctx, 1); - { - setState(589); - match(SHOW); - setState(590); - match(INFO); + setState(624); + _errHandler.sync(this); + switch ( getInterpreter().adaptivePredict(_input,59,_ctx) ) { + case 1: + enterOuterAlt(_localctx, 1); + { + setState(622); + decimalValue(); + } + break; + case 2: + enterOuterAlt(_localctx, 2); + { + setState(623); + integerValue(); + } + break; } } catch (RecognitionException re) { @@ -5208,99 +5360,57 @@ public final ShowCommandContext showCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class EnrichCommandContext extends ParserRuleContext { - public Token policyName; - public QualifiedNamePatternContext matchField; - public TerminalNode ENRICH() { return getToken(EsqlBaseParser.ENRICH, 0); } - public TerminalNode ENRICH_POLICY_NAME() { return getToken(EsqlBaseParser.ENRICH_POLICY_NAME, 0); } - public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } - public TerminalNode WITH() { return getToken(EsqlBaseParser.WITH, 0); } - public List enrichWithClause() { - return getRuleContexts(EnrichWithClauseContext.class); - } - public EnrichWithClauseContext enrichWithClause(int i) { - return getRuleContext(EnrichWithClauseContext.class,i); - } - public QualifiedNamePatternContext qualifiedNamePattern() { - return getRuleContext(QualifiedNamePatternContext.class,0); - } - public List COMMA() { return getTokens(EsqlBaseParser.COMMA); } - public TerminalNode COMMA(int i) { - return getToken(EsqlBaseParser.COMMA, i); - } + public static class DecimalValueContext extends ParserRuleContext { + public TerminalNode DECIMAL_LITERAL() { return getToken(EsqlBaseParser.DECIMAL_LITERAL, 0); } + public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } + public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } @SuppressWarnings("this-escape") - public EnrichCommandContext(ParserRuleContext parent, int invokingState) { + public DecimalValueContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_enrichCommand; } + @Override public int getRuleIndex() { return RULE_decimalValue; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEnrichCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterDecimalValue(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEnrichCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitDecimalValue(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEnrichCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitDecimalValue(this); else return visitor.visitChildren(this); } } - public final EnrichCommandContext enrichCommand() throws RecognitionException { - EnrichCommandContext _localctx = new EnrichCommandContext(_ctx, getState()); - enterRule(_localctx, 116, RULE_enrichCommand); - try { - int _alt; - enterOuterAlt(_localctx, 1); - { - setState(592); - match(ENRICH); - setState(593); - ((EnrichCommandContext)_localctx).policyName = match(ENRICH_POLICY_NAME); - setState(596); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,55,_ctx) ) { - case 1: - { - setState(594); - match(ON); - setState(595); - ((EnrichCommandContext)_localctx).matchField = qualifiedNamePattern(); - } - break; - } - setState(607); + public final DecimalValueContext decimalValue() throws RecognitionException { + DecimalValueContext _localctx = new DecimalValueContext(_ctx, getState()); + enterRule(_localctx, 118, RULE_decimalValue); + int _la; + try { + enterOuterAlt(_localctx, 1); + { + setState(627); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,57,_ctx) ) { - case 1: + _la = _input.LA(1); + if (_la==PLUS || _la==MINUS) { { - setState(598); - match(WITH); - setState(599); - enrichWithClause(); - setState(604); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,56,_ctx); - while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { - if ( _alt==1 ) { - { - { - setState(600); - match(COMMA); - setState(601); - enrichWithClause(); - } - } - } - setState(606); - _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,56,_ctx); + setState(626); + _la = _input.LA(1); + if ( !(_la==PLUS || _la==MINUS) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); } } - break; } + + setState(629); + match(DECIMAL_LITERAL); } } catch (RecognitionException re) { @@ -5315,56 +5425,57 @@ public final EnrichCommandContext enrichCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class EnrichWithClauseContext extends ParserRuleContext { - public QualifiedNamePatternContext newName; - public QualifiedNamePatternContext enrichField; - public List qualifiedNamePattern() { - return getRuleContexts(QualifiedNamePatternContext.class); - } - public QualifiedNamePatternContext qualifiedNamePattern(int i) { - return getRuleContext(QualifiedNamePatternContext.class,i); - } - public TerminalNode ASSIGN() { return getToken(EsqlBaseParser.ASSIGN, 0); } + public static class IntegerValueContext extends ParserRuleContext { + public TerminalNode INTEGER_LITERAL() { return getToken(EsqlBaseParser.INTEGER_LITERAL, 0); } + public TerminalNode PLUS() { return getToken(EsqlBaseParser.PLUS, 0); } + public TerminalNode MINUS() { return getToken(EsqlBaseParser.MINUS, 0); } @SuppressWarnings("this-escape") - public EnrichWithClauseContext(ParserRuleContext parent, int invokingState) { + public IntegerValueContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_enrichWithClause; } + @Override public int getRuleIndex() { return RULE_integerValue; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterEnrichWithClause(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterIntegerValue(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitEnrichWithClause(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitIntegerValue(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitEnrichWithClause(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitIntegerValue(this); else return visitor.visitChildren(this); } } - public final EnrichWithClauseContext enrichWithClause() throws RecognitionException { - EnrichWithClauseContext _localctx = new EnrichWithClauseContext(_ctx, getState()); - enterRule(_localctx, 118, RULE_enrichWithClause); + public final IntegerValueContext integerValue() throws RecognitionException { + IntegerValueContext _localctx = new IntegerValueContext(_ctx, getState()); + enterRule(_localctx, 120, RULE_integerValue); + int _la; try { enterOuterAlt(_localctx, 1); { - setState(612); + setState(632); _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,58,_ctx) ) { - case 1: + _la = _input.LA(1); + if (_la==PLUS || _la==MINUS) { { - setState(609); - ((EnrichWithClauseContext)_localctx).newName = qualifiedNamePattern(); - setState(610); - match(ASSIGN); + setState(631); + _la = _input.LA(1); + if ( !(_la==PLUS || _la==MINUS) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); + } } - break; } - setState(614); - ((EnrichWithClauseContext)_localctx).enrichField = qualifiedNamePattern(); + + setState(634); + match(INTEGER_LITERAL); } } catch (RecognitionException re) { @@ -5379,51 +5490,36 @@ public final EnrichWithClauseContext enrichWithClause() throws RecognitionExcept } @SuppressWarnings("CheckReturnValue") - public static class LookupCommandContext extends ParserRuleContext { - public IndexPatternContext tableName; - public QualifiedNamePatternsContext matchFields; - public TerminalNode DEV_LOOKUP() { return getToken(EsqlBaseParser.DEV_LOOKUP, 0); } - public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } - public IndexPatternContext indexPattern() { - return getRuleContext(IndexPatternContext.class,0); - } - public QualifiedNamePatternsContext qualifiedNamePatterns() { - return getRuleContext(QualifiedNamePatternsContext.class,0); - } + public static class StringContext extends ParserRuleContext { + public TerminalNode QUOTED_STRING() { return getToken(EsqlBaseParser.QUOTED_STRING, 0); } @SuppressWarnings("this-escape") - public LookupCommandContext(ParserRuleContext parent, int invokingState) { + public StringContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_lookupCommand; } + @Override public int getRuleIndex() { return RULE_string; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterLookupCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterString(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitLookupCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitString(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitLookupCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitString(this); else return visitor.visitChildren(this); } } - public final LookupCommandContext lookupCommand() throws RecognitionException { - LookupCommandContext _localctx = new LookupCommandContext(_ctx, getState()); - enterRule(_localctx, 120, RULE_lookupCommand); + public final StringContext string() throws RecognitionException { + StringContext _localctx = new StringContext(_ctx, getState()); + enterRule(_localctx, 122, RULE_string); try { enterOuterAlt(_localctx, 1); { - setState(616); - match(DEV_LOOKUP); - setState(617); - ((LookupCommandContext)_localctx).tableName = indexPattern(); - setState(618); - match(ON); - setState(619); - ((LookupCommandContext)_localctx).matchFields = qualifiedNamePatterns(); + setState(636); + match(QUOTED_STRING); } } catch (RecognitionException re) { @@ -5438,58 +5534,49 @@ public final LookupCommandContext lookupCommand() throws RecognitionException { } @SuppressWarnings("CheckReturnValue") - public static class InlinestatsCommandContext extends ParserRuleContext { - public AggFieldsContext stats; - public FieldsContext grouping; - public TerminalNode DEV_INLINESTATS() { return getToken(EsqlBaseParser.DEV_INLINESTATS, 0); } - public AggFieldsContext aggFields() { - return getRuleContext(AggFieldsContext.class,0); - } - public TerminalNode BY() { return getToken(EsqlBaseParser.BY, 0); } - public FieldsContext fields() { - return getRuleContext(FieldsContext.class,0); - } + public static class ComparisonOperatorContext extends ParserRuleContext { + public TerminalNode EQ() { return getToken(EsqlBaseParser.EQ, 0); } + public TerminalNode NEQ() { return getToken(EsqlBaseParser.NEQ, 0); } + public TerminalNode LT() { return getToken(EsqlBaseParser.LT, 0); } + public TerminalNode LTE() { return getToken(EsqlBaseParser.LTE, 0); } + public TerminalNode GT() { return getToken(EsqlBaseParser.GT, 0); } + public TerminalNode GTE() { return getToken(EsqlBaseParser.GTE, 0); } @SuppressWarnings("this-escape") - public InlinestatsCommandContext(ParserRuleContext parent, int invokingState) { + public ComparisonOperatorContext(ParserRuleContext parent, int invokingState) { super(parent, invokingState); } - @Override public int getRuleIndex() { return RULE_inlinestatsCommand; } + @Override public int getRuleIndex() { return RULE_comparisonOperator; } @Override public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterInlinestatsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterComparisonOperator(this); } @Override public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitInlinestatsCommand(this); + if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitComparisonOperator(this); } @Override public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitInlinestatsCommand(this); + if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitComparisonOperator(this); else return visitor.visitChildren(this); } } - public final InlinestatsCommandContext inlinestatsCommand() throws RecognitionException { - InlinestatsCommandContext _localctx = new InlinestatsCommandContext(_ctx, getState()); - enterRule(_localctx, 122, RULE_inlinestatsCommand); + public final ComparisonOperatorContext comparisonOperator() throws RecognitionException { + ComparisonOperatorContext _localctx = new ComparisonOperatorContext(_ctx, getState()); + enterRule(_localctx, 124, RULE_comparisonOperator); + int _la; try { enterOuterAlt(_localctx, 1); { - setState(621); - match(DEV_INLINESTATS); - setState(622); - ((InlinestatsCommandContext)_localctx).stats = aggFields(); - setState(625); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,59,_ctx) ) { - case 1: - { - setState(623); - match(BY); - setState(624); - ((InlinestatsCommandContext)_localctx).grouping = fields(); - } - break; + setState(638); + _la = _input.LA(1); + if ( !(((((_la - 76)) & ~0x3f) == 0 && ((1L << (_la - 76)) & 125L) != 0)) ) { + _errHandler.recoverInline(this); + } + else { + if ( _input.LA(1)==Token.EOF ) matchedEOF = true; + _errHandler.reportMatch(this); + consume(); } } } @@ -5539,12 +5626,12 @@ public T accept(ParseTreeVisitor visitor) { public final JoinCommandContext joinCommand() throws RecognitionException { JoinCommandContext _localctx = new JoinCommandContext(_ctx, getState()); - enterRule(_localctx, 124, RULE_joinCommand); + enterRule(_localctx, 126, RULE_joinCommand); int _la; try { enterOuterAlt(_localctx, 1); { - setState(627); + setState(640); ((JoinCommandContext)_localctx).type = _input.LT(1); _la = _input.LA(1); if ( !((((_la) & ~0x3f) == 0 && ((1L << _la) & 1703936L) != 0)) ) { @@ -5555,11 +5642,11 @@ public final JoinCommandContext joinCommand() throws RecognitionException { _errHandler.reportMatch(this); consume(); } - setState(628); + setState(641); match(JOIN); - setState(629); + setState(642); joinTarget(); - setState(630); + setState(643); joinCondition(); } } @@ -5602,11 +5689,11 @@ public T accept(ParseTreeVisitor visitor) { public final JoinTargetContext joinTarget() throws RecognitionException { JoinTargetContext _localctx = new JoinTargetContext(_ctx, getState()); - enterRule(_localctx, 126, RULE_joinTarget); + enterRule(_localctx, 128, RULE_joinTarget); try { enterOuterAlt(_localctx, 1); { - setState(632); + setState(645); ((JoinTargetContext)_localctx).index = indexPattern(); } } @@ -5656,32 +5743,32 @@ public T accept(ParseTreeVisitor visitor) { public final JoinConditionContext joinCondition() throws RecognitionException { JoinConditionContext _localctx = new JoinConditionContext(_ctx, getState()); - enterRule(_localctx, 128, RULE_joinCondition); + enterRule(_localctx, 130, RULE_joinCondition); try { int _alt; enterOuterAlt(_localctx, 1); { - setState(634); + setState(647); match(ON); - setState(635); + setState(648); joinPredicate(); - setState(640); + setState(653); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,60,_ctx); + _alt = getInterpreter().adaptivePredict(_input,62,_ctx); while ( _alt!=2 && _alt!=org.antlr.v4.runtime.atn.ATN.INVALID_ALT_NUMBER ) { if ( _alt==1 ) { { { - setState(636); + setState(649); match(COMMA); - setState(637); + setState(650); joinPredicate(); } } } - setState(642); + setState(655); _errHandler.sync(this); - _alt = getInterpreter().adaptivePredict(_input,60,_ctx); + _alt = getInterpreter().adaptivePredict(_input,62,_ctx); } } } @@ -5723,99 +5810,12 @@ public T accept(ParseTreeVisitor visitor) { public final JoinPredicateContext joinPredicate() throws RecognitionException { JoinPredicateContext _localctx = new JoinPredicateContext(_ctx, getState()); - enterRule(_localctx, 130, RULE_joinPredicate); - try { - enterOuterAlt(_localctx, 1); - { - setState(643); - valueExpression(); - } - } - catch (RecognitionException re) { - _localctx.exception = re; - _errHandler.reportError(this, re); - _errHandler.recover(this, re); - } - finally { - exitRule(); - } - return _localctx; - } - - @SuppressWarnings("CheckReturnValue") - public static class ChangePointCommandContext extends ParserRuleContext { - public QualifiedNameContext value; - public QualifiedNameContext key; - public QualifiedNameContext targetType; - public QualifiedNameContext targetPvalue; - public TerminalNode DEV_CHANGE_POINT() { return getToken(EsqlBaseParser.DEV_CHANGE_POINT, 0); } - public List qualifiedName() { - return getRuleContexts(QualifiedNameContext.class); - } - public QualifiedNameContext qualifiedName(int i) { - return getRuleContext(QualifiedNameContext.class,i); - } - public TerminalNode ON() { return getToken(EsqlBaseParser.ON, 0); } - public TerminalNode AS() { return getToken(EsqlBaseParser.AS, 0); } - public TerminalNode COMMA() { return getToken(EsqlBaseParser.COMMA, 0); } - @SuppressWarnings("this-escape") - public ChangePointCommandContext(ParserRuleContext parent, int invokingState) { - super(parent, invokingState); - } - @Override public int getRuleIndex() { return RULE_changePointCommand; } - @Override - public void enterRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).enterChangePointCommand(this); - } - @Override - public void exitRule(ParseTreeListener listener) { - if ( listener instanceof EsqlBaseParserListener ) ((EsqlBaseParserListener)listener).exitChangePointCommand(this); - } - @Override - public T accept(ParseTreeVisitor visitor) { - if ( visitor instanceof EsqlBaseParserVisitor ) return ((EsqlBaseParserVisitor)visitor).visitChangePointCommand(this); - else return visitor.visitChildren(this); - } - } - - public final ChangePointCommandContext changePointCommand() throws RecognitionException { - ChangePointCommandContext _localctx = new ChangePointCommandContext(_ctx, getState()); - enterRule(_localctx, 132, RULE_changePointCommand); + enterRule(_localctx, 132, RULE_joinPredicate); try { enterOuterAlt(_localctx, 1); { - setState(645); - match(DEV_CHANGE_POINT); - setState(646); - ((ChangePointCommandContext)_localctx).value = qualifiedName(); - setState(649); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,61,_ctx) ) { - case 1: - { - setState(647); - match(ON); - setState(648); - ((ChangePointCommandContext)_localctx).key = qualifiedName(); - } - break; - } setState(656); - _errHandler.sync(this); - switch ( getInterpreter().adaptivePredict(_input,62,_ctx) ) { - case 1: - { - setState(651); - match(AS); - setState(652); - ((ChangePointCommandContext)_localctx).targetType = qualifiedName(); - setState(653); - match(COMMA); - setState(654); - ((ChangePointCommandContext)_localctx).targetPvalue = qualifiedName(); - } - break; - } + valueExpression(); } } catch (RecognitionException re) { @@ -5837,11 +5837,11 @@ public boolean sempred(RuleContext _localctx, int ruleIndex, int predIndex) { return sourceCommand_sempred((SourceCommandContext)_localctx, predIndex); case 3: return processingCommand_sempred((ProcessingCommandContext)_localctx, predIndex); - case 5: + case 46: return booleanExpression_sempred((BooleanExpressionContext)_localctx, predIndex); - case 9: + case 50: return operatorExpression_sempred((OperatorExpressionContext)_localctx, predIndex); - case 10: + case 51: return primaryExpression_sempred((PrimaryExpressionContext)_localctx, predIndex); } return true; @@ -5923,124 +5923,118 @@ private boolean primaryExpression_sempred(PrimaryExpressionContext _localctx, in "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ "\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003\u0001\u0003"+ "\u0001\u0003\u0003\u0003\u00b0\b\u0003\u0001\u0004\u0001\u0004\u0001\u0004"+ - "\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005"+ - "\u0001\u0005\u0003\u0005\u00bc\b\u0005\u0001\u0005\u0001\u0005\u0001\u0005"+ - "\u0001\u0005\u0001\u0005\u0005\u0005\u00c3\b\u0005\n\u0005\f\u0005\u00c6"+ - "\t\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0003"+ - "\u0005\u00cd\b\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0003\u0005\u00d2"+ - "\b\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001\u0005\u0001"+ - "\u0005\u0005\u0005\u00da\b\u0005\n\u0005\f\u0005\u00dd\t\u0005\u0001\u0006"+ - "\u0001\u0006\u0003\u0006\u00e1\b\u0006\u0001\u0006\u0001\u0006\u0001\u0006"+ - "\u0001\u0006\u0001\u0006\u0003\u0006\u00e8\b\u0006\u0001\u0006\u0001\u0006"+ - "\u0001\u0006\u0003\u0006\u00ed\b\u0006\u0001\u0007\u0001\u0007\u0001\u0007"+ - "\u0003\u0007\u00f2\b\u0007\u0001\u0007\u0001\u0007\u0001\u0007\u0001\b"+ - "\u0001\b\u0001\b\u0001\b\u0001\b\u0003\b\u00fc\b\b\u0001\t\u0001\t\u0001"+ - "\t\u0001\t\u0003\t\u0102\b\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001\t\u0001"+ - "\t\u0005\t\u010a\b\t\n\t\f\t\u010d\t\t\u0001\n\u0001\n\u0001\n\u0001\n"+ - "\u0001\n\u0001\n\u0001\n\u0001\n\u0003\n\u0117\b\n\u0001\n\u0001\n\u0001"+ - "\n\u0005\n\u011c\b\n\n\n\f\n\u011f\t\n\u0001\u000b\u0001\u000b\u0001\u000b"+ - "\u0001\u000b\u0001\u000b\u0001\u000b\u0005\u000b\u0127\b\u000b\n\u000b"+ - "\f\u000b\u012a\t\u000b\u0001\u000b\u0001\u000b\u0003\u000b\u012e\b\u000b"+ - "\u0003\u000b\u0130\b\u000b\u0001\u000b\u0001\u000b\u0001\f\u0001\f\u0001"+ - "\r\u0001\r\u0001\r\u0001\r\u0005\r\u013a\b\r\n\r\f\r\u013d\t\r\u0001\r"+ - "\u0001\r\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000e\u0001\u000f\u0001"+ - "\u000f\u0001\u0010\u0001\u0010\u0001\u0010\u0001\u0011\u0001\u0011\u0001"+ - "\u0011\u0005\u0011\u014d\b\u0011\n\u0011\f\u0011\u0150\t\u0011\u0001\u0012"+ - "\u0001\u0012\u0001\u0012\u0003\u0012\u0155\b\u0012\u0001\u0012\u0001\u0012"+ - "\u0001\u0013\u0001\u0013\u0001\u0013\u0001\u0013\u0005\u0013\u015d\b\u0013"+ - "\n\u0013\f\u0013\u0160\t\u0013\u0001\u0013\u0003\u0013\u0163\b\u0013\u0001"+ - "\u0014\u0001\u0014\u0001\u0014\u0003\u0014\u0168\b\u0014\u0001\u0014\u0001"+ - "\u0014\u0001\u0015\u0001\u0015\u0001\u0016\u0001\u0016\u0001\u0017\u0001"+ - "\u0017\u0001\u0017\u0001\u0017\u0005\u0017\u0174\b\u0017\n\u0017\f\u0017"+ - "\u0177\t\u0017\u0001\u0018\u0001\u0018\u0001\u0018\u0001\u0018\u0005\u0018"+ - "\u017d\b\u0018\n\u0018\f\u0018\u0180\t\u0018\u0001\u0018\u0003\u0018\u0183"+ - "\b\u0018\u0001\u0018\u0001\u0018\u0003\u0018\u0187\b\u0018\u0001\u0019"+ - "\u0001\u0019\u0001\u0019\u0001\u001a\u0001\u001a\u0003\u001a\u018e\b\u001a"+ - "\u0001\u001a\u0001\u001a\u0003\u001a\u0192\b\u001a\u0001\u001b\u0001\u001b"+ - "\u0001\u001b\u0005\u001b\u0197\b\u001b\n\u001b\f\u001b\u019a\t\u001b\u0001"+ - "\u001c\u0001\u001c\u0001\u001c\u0003\u001c\u019f\b\u001c\u0001\u001d\u0001"+ - "\u001d\u0001\u001d\u0005\u001d\u01a4\b\u001d\n\u001d\f\u001d\u01a7\t\u001d"+ - "\u0001\u001e\u0001\u001e\u0001\u001e\u0005\u001e\u01ac\b\u001e\n\u001e"+ - "\f\u001e\u01af\t\u001e\u0001\u001f\u0001\u001f\u0001\u001f\u0005\u001f"+ - "\u01b4\b\u001f\n\u001f\f\u001f\u01b7\t\u001f\u0001 \u0001 \u0001!\u0001"+ - "!\u0003!\u01bd\b!\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001"+ - "\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0005\"\u01cc\b\"\n"+ - "\"\f\"\u01cf\t\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\"\u0005"+ - "\"\u01d7\b\"\n\"\f\"\u01da\t\"\u0001\"\u0001\"\u0001\"\u0001\"\u0001\""+ - "\u0001\"\u0005\"\u01e2\b\"\n\"\f\"\u01e5\t\"\u0001\"\u0001\"\u0003\"\u01e9"+ - "\b\"\u0001#\u0001#\u0003#\u01ed\b#\u0001$\u0001$\u0003$\u01f1\b$\u0001"+ - "%\u0001%\u0001%\u0001&\u0001&\u0001&\u0001&\u0005&\u01fa\b&\n&\f&\u01fd"+ - "\t&\u0001\'\u0001\'\u0003\'\u0201\b\'\u0001\'\u0001\'\u0003\'\u0205\b"+ - "\'\u0001(\u0001(\u0001(\u0001)\u0001)\u0001)\u0001*\u0001*\u0001*\u0001"+ - "*\u0005*\u0211\b*\n*\f*\u0214\t*\u0001+\u0001+\u0001+\u0001+\u0001,\u0001"+ - ",\u0001,\u0001,\u0003,\u021e\b,\u0001-\u0001-\u0001-\u0001-\u0001.\u0001"+ - ".\u0001.\u0001/\u0001/\u0001/\u0005/\u022a\b/\n/\f/\u022d\t/\u00010\u0001"+ - "0\u00010\u00010\u00011\u00011\u00012\u00012\u00032\u0237\b2\u00013\u0003"+ - "3\u023a\b3\u00013\u00013\u00014\u00034\u023f\b4\u00014\u00014\u00015\u0001"+ - "5\u00016\u00016\u00017\u00017\u00017\u00018\u00018\u00018\u00018\u0001"+ - "9\u00019\u00019\u0001:\u0001:\u0001:\u0001:\u0003:\u0255\b:\u0001:\u0001"+ - ":\u0001:\u0001:\u0005:\u025b\b:\n:\f:\u025e\t:\u0003:\u0260\b:\u0001;"+ - "\u0001;\u0001;\u0003;\u0265\b;\u0001;\u0001;\u0001<\u0001<\u0001<\u0001"+ - "<\u0001<\u0001=\u0001=\u0001=\u0001=\u0003=\u0272\b=\u0001>\u0001>\u0001"+ - ">\u0001>\u0001>\u0001?\u0001?\u0001@\u0001@\u0001@\u0001@\u0005@\u027f"+ - "\b@\n@\f@\u0282\t@\u0001A\u0001A\u0001B\u0001B\u0001B\u0001B\u0003B\u028a"+ - "\bB\u0001B\u0001B\u0001B\u0001B\u0001B\u0003B\u0291\bB\u0001B\u0000\u0004"+ - "\u0002\n\u0012\u0014C\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012"+ - "\u0014\u0016\u0018\u001a\u001c\u001e \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\"+ - "^`bdfhjlnprtvxz|~\u0080\u0082\u0084\u0000\t\u0001\u0000ST\u0001\u0000"+ - "UW\u0002\u000011cc\u0001\u0000]^\u0002\u000066;;\u0002\u0000>>AA\u0002"+ - "\u0000==KK\u0002\u0000LLNR\u0002\u0000\u0011\u0011\u0013\u0014\u02ae\u0000"+ - "\u0086\u0001\u0000\u0000\u0000\u0002\u0089\u0001\u0000\u0000\u0000\u0004"+ - "\u009a\u0001\u0000\u0000\u0000\u0006\u00af\u0001\u0000\u0000\u0000\b\u00b1"+ - "\u0001\u0000\u0000\u0000\n\u00d1\u0001\u0000\u0000\u0000\f\u00ec\u0001"+ - "\u0000\u0000\u0000\u000e\u00ee\u0001\u0000\u0000\u0000\u0010\u00fb\u0001"+ - "\u0000\u0000\u0000\u0012\u0101\u0001\u0000\u0000\u0000\u0014\u0116\u0001"+ - "\u0000\u0000\u0000\u0016\u0120\u0001\u0000\u0000\u0000\u0018\u0133\u0001"+ - "\u0000\u0000\u0000\u001a\u0135\u0001\u0000\u0000\u0000\u001c\u0140\u0001"+ - "\u0000\u0000\u0000\u001e\u0144\u0001\u0000\u0000\u0000 \u0146\u0001\u0000"+ - "\u0000\u0000\"\u0149\u0001\u0000\u0000\u0000$\u0154\u0001\u0000\u0000"+ - "\u0000&\u0158\u0001\u0000\u0000\u0000(\u0167\u0001\u0000\u0000\u0000*"+ - "\u016b\u0001\u0000\u0000\u0000,\u016d\u0001\u0000\u0000\u0000.\u016f\u0001"+ - "\u0000\u0000\u00000\u0178\u0001\u0000\u0000\u00002\u0188\u0001\u0000\u0000"+ - "\u00004\u018b\u0001\u0000\u0000\u00006\u0193\u0001\u0000\u0000\u00008"+ - "\u019b\u0001\u0000\u0000\u0000:\u01a0\u0001\u0000\u0000\u0000<\u01a8\u0001"+ - "\u0000\u0000\u0000>\u01b0\u0001\u0000\u0000\u0000@\u01b8\u0001\u0000\u0000"+ - "\u0000B\u01bc\u0001\u0000\u0000\u0000D\u01e8\u0001\u0000\u0000\u0000F"+ - "\u01ec\u0001\u0000\u0000\u0000H\u01f0\u0001\u0000\u0000\u0000J\u01f2\u0001"+ - "\u0000\u0000\u0000L\u01f5\u0001\u0000\u0000\u0000N\u01fe\u0001\u0000\u0000"+ - "\u0000P\u0206\u0001\u0000\u0000\u0000R\u0209\u0001\u0000\u0000\u0000T"+ - "\u020c\u0001\u0000\u0000\u0000V\u0215\u0001\u0000\u0000\u0000X\u0219\u0001"+ - "\u0000\u0000\u0000Z\u021f\u0001\u0000\u0000\u0000\\\u0223\u0001\u0000"+ - "\u0000\u0000^\u0226\u0001\u0000\u0000\u0000`\u022e\u0001\u0000\u0000\u0000"+ - "b\u0232\u0001\u0000\u0000\u0000d\u0236\u0001\u0000\u0000\u0000f\u0239"+ - "\u0001\u0000\u0000\u0000h\u023e\u0001\u0000\u0000\u0000j\u0242\u0001\u0000"+ - "\u0000\u0000l\u0244\u0001\u0000\u0000\u0000n\u0246\u0001\u0000\u0000\u0000"+ - "p\u0249\u0001\u0000\u0000\u0000r\u024d\u0001\u0000\u0000\u0000t\u0250"+ - "\u0001\u0000\u0000\u0000v\u0264\u0001\u0000\u0000\u0000x\u0268\u0001\u0000"+ - "\u0000\u0000z\u026d\u0001\u0000\u0000\u0000|\u0273\u0001\u0000\u0000\u0000"+ - "~\u0278\u0001\u0000\u0000\u0000\u0080\u027a\u0001\u0000\u0000\u0000\u0082"+ - "\u0283\u0001\u0000\u0000\u0000\u0084\u0285\u0001\u0000\u0000\u0000\u0086"+ - "\u0087\u0003\u0002\u0001\u0000\u0087\u0088\u0005\u0000\u0000\u0001\u0088"+ - "\u0001\u0001\u0000\u0000\u0000\u0089\u008a\u0006\u0001\uffff\uffff\u0000"+ - "\u008a\u008b\u0003\u0004\u0002\u0000\u008b\u0091\u0001\u0000\u0000\u0000"+ - "\u008c\u008d\n\u0001\u0000\u0000\u008d\u008e\u00050\u0000\u0000\u008e"+ - "\u0090\u0003\u0006\u0003\u0000\u008f\u008c\u0001\u0000\u0000\u0000\u0090"+ - "\u0093\u0001\u0000\u0000\u0000\u0091\u008f\u0001\u0000\u0000\u0000\u0091"+ - "\u0092\u0001\u0000\u0000\u0000\u0092\u0003\u0001\u0000\u0000\u0000\u0093"+ - "\u0091\u0001\u0000\u0000\u0000\u0094\u009b\u0003n7\u0000\u0095\u009b\u0003"+ - "&\u0013\u0000\u0096\u009b\u0003 \u0010\u0000\u0097\u009b\u0003r9\u0000"+ - "\u0098\u0099\u0004\u0002\u0001\u0000\u0099\u009b\u00030\u0018\u0000\u009a"+ - "\u0094\u0001\u0000\u0000\u0000\u009a\u0095\u0001\u0000\u0000\u0000\u009a"+ - "\u0096\u0001\u0000\u0000\u0000\u009a\u0097\u0001\u0000\u0000\u0000\u009a"+ - "\u0098\u0001\u0000\u0000\u0000\u009b\u0005\u0001\u0000\u0000\u0000\u009c"+ - "\u00b0\u00032\u0019\u0000\u009d\u00b0\u0003\b\u0004\u0000\u009e\u00b0"+ - "\u0003P(\u0000\u009f\u00b0\u0003J%\u0000\u00a0\u00b0\u00034\u001a\u0000"+ - "\u00a1\u00b0\u0003L&\u0000\u00a2\u00b0\u0003R)\u0000\u00a3\u00b0\u0003"+ - "T*\u0000\u00a4\u00b0\u0003X,\u0000\u00a5\u00b0\u0003Z-\u0000\u00a6\u00b0"+ - "\u0003t:\u0000\u00a7\u00b0\u0003\\.\u0000\u00a8\u00b0\u0003|>\u0000\u00a9"+ - "\u00aa\u0004\u0003\u0002\u0000\u00aa\u00b0\u0003z=\u0000\u00ab\u00ac\u0004"+ - "\u0003\u0003\u0000\u00ac\u00b0\u0003x<\u0000\u00ad\u00ae\u0004\u0003\u0004"+ - "\u0000\u00ae\u00b0\u0003\u0084B\u0000\u00af\u009c\u0001\u0000\u0000\u0000"+ + "\u0001\u0005\u0001\u0005\u0001\u0006\u0001\u0006\u0001\u0006\u0001\u0007"+ + "\u0001\u0007\u0001\u0007\u0005\u0007\u00bd\b\u0007\n\u0007\f\u0007\u00c0"+ + "\t\u0007\u0001\b\u0001\b\u0001\b\u0003\b\u00c5\b\b\u0001\b\u0001\b\u0001"+ + "\t\u0001\t\u0001\t\u0001\t\u0005\t\u00cd\b\t\n\t\f\t\u00d0\t\t\u0001\t"+ + "\u0003\t\u00d3\b\t\u0001\n\u0001\n\u0001\n\u0003\n\u00d8\b\n\u0001\n\u0001"+ + "\n\u0001\u000b\u0001\u000b\u0001\f\u0001\f\u0001\r\u0001\r\u0001\r\u0001"+ + "\r\u0005\r\u00e4\b\r\n\r\f\r\u00e7\t\r\u0001\u000e\u0001\u000e\u0001\u000e"+ + "\u0001\u000e\u0005\u000e\u00ed\b\u000e\n\u000e\f\u000e\u00f0\t\u000e\u0001"+ + "\u000e\u0003\u000e\u00f3\b\u000e\u0001\u000e\u0001\u000e\u0003\u000e\u00f7"+ + "\b\u000e\u0001\u000f\u0001\u000f\u0001\u000f\u0001\u0010\u0001\u0010\u0003"+ + "\u0010\u00fe\b\u0010\u0001\u0010\u0001\u0010\u0003\u0010\u0102\b\u0010"+ + "\u0001\u0011\u0001\u0011\u0001\u0011\u0005\u0011\u0107\b\u0011\n\u0011"+ + "\f\u0011\u010a\t\u0011\u0001\u0012\u0001\u0012\u0001\u0012\u0003\u0012"+ + "\u010f\b\u0012\u0001\u0013\u0001\u0013\u0001\u0013\u0005\u0013\u0114\b"+ + "\u0013\n\u0013\f\u0013\u0117\t\u0013\u0001\u0014\u0001\u0014\u0001\u0014"+ + "\u0005\u0014\u011c\b\u0014\n\u0014\f\u0014\u011f\t\u0014\u0001\u0015\u0001"+ + "\u0015\u0001\u0015\u0005\u0015\u0124\b\u0015\n\u0015\f\u0015\u0127\t\u0015"+ + "\u0001\u0016\u0001\u0016\u0001\u0017\u0001\u0017\u0003\u0017\u012d\b\u0017"+ + "\u0001\u0018\u0001\u0018\u0003\u0018\u0131\b\u0018\u0001\u0019\u0001\u0019"+ + "\u0003\u0019\u0135\b\u0019\u0001\u001a\u0001\u001a\u0001\u001a\u0001\u001b"+ + "\u0001\u001b\u0001\u001b\u0001\u001b\u0005\u001b\u013e\b\u001b\n\u001b"+ + "\f\u001b\u0141\t\u001b\u0001\u001c\u0001\u001c\u0003\u001c\u0145\b\u001c"+ + "\u0001\u001c\u0001\u001c\u0003\u001c\u0149\b\u001c\u0001\u001d\u0001\u001d"+ + "\u0001\u001d\u0001\u001e\u0001\u001e\u0001\u001e\u0001\u001f\u0001\u001f"+ + "\u0001\u001f\u0001\u001f\u0005\u001f\u0155\b\u001f\n\u001f\f\u001f\u0158"+ + "\t\u001f\u0001 \u0001 \u0001 \u0001 \u0001!\u0001!\u0001!\u0001!\u0003"+ + "!\u0162\b!\u0001\"\u0001\"\u0001\"\u0001\"\u0001#\u0001#\u0001#\u0001"+ + "$\u0001$\u0001$\u0005$\u016e\b$\n$\f$\u0171\t$\u0001%\u0001%\u0001%\u0001"+ + "%\u0001&\u0001&\u0001&\u0001\'\u0001\'\u0001\'\u0001\'\u0001(\u0001(\u0001"+ + "(\u0001)\u0001)\u0001)\u0001)\u0003)\u0185\b)\u0001)\u0001)\u0001)\u0001"+ + ")\u0005)\u018b\b)\n)\f)\u018e\t)\u0003)\u0190\b)\u0001*\u0001*\u0001*"+ + "\u0003*\u0195\b*\u0001*\u0001*\u0001+\u0001+\u0001+\u0001+\u0001+\u0001"+ + ",\u0001,\u0001,\u0001,\u0003,\u01a2\b,\u0001-\u0001-\u0001-\u0001-\u0003"+ + "-\u01a8\b-\u0001-\u0001-\u0001-\u0001-\u0001-\u0003-\u01af\b-\u0001.\u0001"+ + ".\u0001.\u0001.\u0001.\u0001.\u0001.\u0003.\u01b8\b.\u0001.\u0001.\u0001"+ + ".\u0001.\u0001.\u0005.\u01bf\b.\n.\f.\u01c2\t.\u0001.\u0001.\u0001.\u0001"+ + ".\u0001.\u0003.\u01c9\b.\u0001.\u0001.\u0001.\u0003.\u01ce\b.\u0001.\u0001"+ + ".\u0001.\u0001.\u0001.\u0001.\u0005.\u01d6\b.\n.\f.\u01d9\t.\u0001/\u0001"+ + "/\u0003/\u01dd\b/\u0001/\u0001/\u0001/\u0001/\u0001/\u0003/\u01e4\b/\u0001"+ + "/\u0001/\u0001/\u0003/\u01e9\b/\u00010\u00010\u00010\u00030\u01ee\b0\u0001"+ + "0\u00010\u00010\u00011\u00011\u00011\u00011\u00011\u00031\u01f8\b1\u0001"+ + "2\u00012\u00012\u00012\u00032\u01fe\b2\u00012\u00012\u00012\u00012\u0001"+ + "2\u00012\u00052\u0206\b2\n2\f2\u0209\t2\u00013\u00013\u00013\u00013\u0001"+ + "3\u00013\u00013\u00013\u00033\u0213\b3\u00013\u00013\u00013\u00053\u0218"+ + "\b3\n3\f3\u021b\t3\u00014\u00014\u00014\u00014\u00014\u00014\u00054\u0223"+ + "\b4\n4\f4\u0226\t4\u00014\u00014\u00034\u022a\b4\u00034\u022c\b4\u0001"+ + "4\u00014\u00015\u00015\u00016\u00016\u00016\u00016\u00056\u0236\b6\n6"+ + "\f6\u0239\t6\u00016\u00016\u00017\u00017\u00017\u00017\u00018\u00018\u0001"+ + "8\u00018\u00018\u00018\u00018\u00018\u00018\u00018\u00018\u00018\u0001"+ + "8\u00058\u024e\b8\n8\f8\u0251\t8\u00018\u00018\u00018\u00018\u00018\u0001"+ + "8\u00058\u0259\b8\n8\f8\u025c\t8\u00018\u00018\u00018\u00018\u00018\u0001"+ + "8\u00058\u0264\b8\n8\f8\u0267\t8\u00018\u00018\u00038\u026b\b8\u00019"+ + "\u00019\u0001:\u0001:\u0003:\u0271\b:\u0001;\u0003;\u0274\b;\u0001;\u0001"+ + ";\u0001<\u0003<\u0279\b<\u0001<\u0001<\u0001=\u0001=\u0001>\u0001>\u0001"+ + "?\u0001?\u0001?\u0001?\u0001?\u0001@\u0001@\u0001A\u0001A\u0001A\u0001"+ + "A\u0005A\u028c\bA\nA\fA\u028f\tA\u0001B\u0001B\u0001B\u0000\u0004\u0002"+ + "\\dfC\u0000\u0002\u0004\u0006\b\n\f\u000e\u0010\u0012\u0014\u0016\u0018"+ + "\u001a\u001c\u001e \"$&(*,.02468:<>@BDFHJLNPRTVXZ\\^`bdfhjlnprtvxz|~\u0080"+ + "\u0082\u0084\u0000\t\u0002\u000011cc\u0001\u0000]^\u0002\u000066;;\u0002"+ + "\u0000>>AA\u0001\u0000ST\u0001\u0000UW\u0002\u0000==KK\u0002\u0000LLN"+ + "R\u0002\u0000\u0011\u0011\u0013\u0014\u02ae\u0000\u0086\u0001\u0000\u0000"+ + "\u0000\u0002\u0089\u0001\u0000\u0000\u0000\u0004\u009a\u0001\u0000\u0000"+ + "\u0000\u0006\u00af\u0001\u0000\u0000\u0000\b\u00b1\u0001\u0000\u0000\u0000"+ + "\n\u00b4\u0001\u0000\u0000\u0000\f\u00b6\u0001\u0000\u0000\u0000\u000e"+ + "\u00b9\u0001\u0000\u0000\u0000\u0010\u00c4\u0001\u0000\u0000\u0000\u0012"+ + "\u00c8\u0001\u0000\u0000\u0000\u0014\u00d7\u0001\u0000\u0000\u0000\u0016"+ + "\u00db\u0001\u0000\u0000\u0000\u0018\u00dd\u0001\u0000\u0000\u0000\u001a"+ + "\u00df\u0001\u0000\u0000\u0000\u001c\u00e8\u0001\u0000\u0000\u0000\u001e"+ + "\u00f8\u0001\u0000\u0000\u0000 \u00fb\u0001\u0000\u0000\u0000\"\u0103"+ + "\u0001\u0000\u0000\u0000$\u010b\u0001\u0000\u0000\u0000&\u0110\u0001\u0000"+ + "\u0000\u0000(\u0118\u0001\u0000\u0000\u0000*\u0120\u0001\u0000\u0000\u0000"+ + ",\u0128\u0001\u0000\u0000\u0000.\u012c\u0001\u0000\u0000\u00000\u0130"+ + "\u0001\u0000\u0000\u00002\u0134\u0001\u0000\u0000\u00004\u0136\u0001\u0000"+ + "\u0000\u00006\u0139\u0001\u0000\u0000\u00008\u0142\u0001\u0000\u0000\u0000"+ + ":\u014a\u0001\u0000\u0000\u0000<\u014d\u0001\u0000\u0000\u0000>\u0150"+ + "\u0001\u0000\u0000\u0000@\u0159\u0001\u0000\u0000\u0000B\u015d\u0001\u0000"+ + "\u0000\u0000D\u0163\u0001\u0000\u0000\u0000F\u0167\u0001\u0000\u0000\u0000"+ + "H\u016a\u0001\u0000\u0000\u0000J\u0172\u0001\u0000\u0000\u0000L\u0176"+ + "\u0001\u0000\u0000\u0000N\u0179\u0001\u0000\u0000\u0000P\u017d\u0001\u0000"+ + "\u0000\u0000R\u0180\u0001\u0000\u0000\u0000T\u0194\u0001\u0000\u0000\u0000"+ + "V\u0198\u0001\u0000\u0000\u0000X\u019d\u0001\u0000\u0000\u0000Z\u01a3"+ + "\u0001\u0000\u0000\u0000\\\u01cd\u0001\u0000\u0000\u0000^\u01e8\u0001"+ + "\u0000\u0000\u0000`\u01ea\u0001\u0000\u0000\u0000b\u01f7\u0001\u0000\u0000"+ + "\u0000d\u01fd\u0001\u0000\u0000\u0000f\u0212\u0001\u0000\u0000\u0000h"+ + "\u021c\u0001\u0000\u0000\u0000j\u022f\u0001\u0000\u0000\u0000l\u0231\u0001"+ + "\u0000\u0000\u0000n\u023c\u0001\u0000\u0000\u0000p\u026a\u0001\u0000\u0000"+ + "\u0000r\u026c\u0001\u0000\u0000\u0000t\u0270\u0001\u0000\u0000\u0000v"+ + "\u0273\u0001\u0000\u0000\u0000x\u0278\u0001\u0000\u0000\u0000z\u027c\u0001"+ + "\u0000\u0000\u0000|\u027e\u0001\u0000\u0000\u0000~\u0280\u0001\u0000\u0000"+ + "\u0000\u0080\u0285\u0001\u0000\u0000\u0000\u0082\u0287\u0001\u0000\u0000"+ + "\u0000\u0084\u0290\u0001\u0000\u0000\u0000\u0086\u0087\u0003\u0002\u0001"+ + "\u0000\u0087\u0088\u0005\u0000\u0000\u0001\u0088\u0001\u0001\u0000\u0000"+ + "\u0000\u0089\u008a\u0006\u0001\uffff\uffff\u0000\u008a\u008b\u0003\u0004"+ + "\u0002\u0000\u008b\u0091\u0001\u0000\u0000\u0000\u008c\u008d\n\u0001\u0000"+ + "\u0000\u008d\u008e\u00050\u0000\u0000\u008e\u0090\u0003\u0006\u0003\u0000"+ + "\u008f\u008c\u0001\u0000\u0000\u0000\u0090\u0093\u0001\u0000\u0000\u0000"+ + "\u0091\u008f\u0001\u0000\u0000\u0000\u0091\u0092\u0001\u0000\u0000\u0000"+ + "\u0092\u0003\u0001\u0000\u0000\u0000\u0093\u0091\u0001\u0000\u0000\u0000"+ + "\u0094\u009b\u0003L&\u0000\u0095\u009b\u0003\u0012\t\u0000\u0096\u009b"+ + "\u0003\f\u0006\u0000\u0097\u009b\u0003P(\u0000\u0098\u0099\u0004\u0002"+ + "\u0001\u0000\u0099\u009b\u0003\u001c\u000e\u0000\u009a\u0094\u0001\u0000"+ + "\u0000\u0000\u009a\u0095\u0001\u0000\u0000\u0000\u009a\u0096\u0001\u0000"+ + "\u0000\u0000\u009a\u0097\u0001\u0000\u0000\u0000\u009a\u0098\u0001\u0000"+ + "\u0000\u0000\u009b\u0005\u0001\u0000\u0000\u0000\u009c\u00b0\u0003\u001e"+ + "\u000f\u0000\u009d\u00b0\u0003\b\u0004\u0000\u009e\u00b0\u0003:\u001d"+ + "\u0000\u009f\u00b0\u00034\u001a\u0000\u00a0\u00b0\u0003 \u0010\u0000\u00a1"+ + "\u00b0\u00036\u001b\u0000\u00a2\u00b0\u0003<\u001e\u0000\u00a3\u00b0\u0003"+ + ">\u001f\u0000\u00a4\u00b0\u0003B!\u0000\u00a5\u00b0\u0003D\"\u0000\u00a6"+ + "\u00b0\u0003R)\u0000\u00a7\u00b0\u0003F#\u0000\u00a8\u00b0\u0003~?\u0000"+ + "\u00a9\u00aa\u0004\u0003\u0002\u0000\u00aa\u00b0\u0003X,\u0000\u00ab\u00ac"+ + "\u0004\u0003\u0003\u0000\u00ac\u00b0\u0003V+\u0000\u00ad\u00ae\u0004\u0003"+ + "\u0004\u0000\u00ae\u00b0\u0003Z-\u0000\u00af\u009c\u0001\u0000\u0000\u0000"+ "\u00af\u009d\u0001\u0000\u0000\u0000\u00af\u009e\u0001\u0000\u0000\u0000"+ "\u00af\u009f\u0001\u0000\u0000\u0000\u00af\u00a0\u0001\u0000\u0000\u0000"+ "\u00af\u00a1\u0001\u0000\u0000\u0000\u00af\u00a2\u0001\u0000\u0000\u0000"+ @@ -6049,269 +6043,268 @@ private boolean primaryExpression_sempred(PrimaryExpressionContext _localctx, in "\u00af\u00a7\u0001\u0000\u0000\u0000\u00af\u00a8\u0001\u0000\u0000\u0000"+ "\u00af\u00a9\u0001\u0000\u0000\u0000\u00af\u00ab\u0001\u0000\u0000\u0000"+ "\u00af\u00ad\u0001\u0000\u0000\u0000\u00b0\u0007\u0001\u0000\u0000\u0000"+ - "\u00b1\u00b2\u0005\u000e\u0000\u0000\u00b2\u00b3\u0003\n\u0005\u0000\u00b3"+ - "\t\u0001\u0000\u0000\u0000\u00b4\u00b5\u0006\u0005\uffff\uffff\u0000\u00b5"+ - "\u00b6\u0005D\u0000\u0000\u00b6\u00d2\u0003\n\u0005\b\u00b7\u00d2\u0003"+ - "\u0010\b\u0000\u00b8\u00d2\u0003\f\u0006\u0000\u00b9\u00bb\u0003\u0010"+ - "\b\u0000\u00ba\u00bc\u0005D\u0000\u0000\u00bb\u00ba\u0001\u0000\u0000"+ - "\u0000\u00bb\u00bc\u0001\u0000\u0000\u0000\u00bc\u00bd\u0001\u0000\u0000"+ - "\u0000\u00bd\u00be\u0005?\u0000\u0000\u00be\u00bf\u0005C\u0000\u0000\u00bf"+ - "\u00c4\u0003\u0010\b\u0000\u00c0\u00c1\u0005:\u0000\u0000\u00c1\u00c3"+ - "\u0003\u0010\b\u0000\u00c2\u00c0\u0001\u0000\u0000\u0000\u00c3\u00c6\u0001"+ - "\u0000\u0000\u0000\u00c4\u00c2\u0001\u0000\u0000\u0000\u00c4\u00c5\u0001"+ - "\u0000\u0000\u0000\u00c5\u00c7\u0001\u0000\u0000\u0000\u00c6\u00c4\u0001"+ - "\u0000\u0000\u0000\u00c7\u00c8\u0005J\u0000\u0000\u00c8\u00d2\u0001\u0000"+ - "\u0000\u0000\u00c9\u00ca\u0003\u0010\b\u0000\u00ca\u00cc\u0005@\u0000"+ - "\u0000\u00cb\u00cd\u0005D\u0000\u0000\u00cc\u00cb\u0001\u0000\u0000\u0000"+ - "\u00cc\u00cd\u0001\u0000\u0000\u0000\u00cd\u00ce\u0001\u0000\u0000\u0000"+ - "\u00ce\u00cf\u0005E\u0000\u0000\u00cf\u00d2\u0001\u0000\u0000\u0000\u00d0"+ - "\u00d2\u0003\u000e\u0007\u0000\u00d1\u00b4\u0001\u0000\u0000\u0000\u00d1"+ - "\u00b7\u0001\u0000\u0000\u0000\u00d1\u00b8\u0001\u0000\u0000\u0000\u00d1"+ - "\u00b9\u0001\u0000\u0000\u0000\u00d1\u00c9\u0001\u0000\u0000\u0000\u00d1"+ - "\u00d0\u0001\u0000\u0000\u0000\u00d2\u00db\u0001\u0000\u0000\u0000\u00d3"+ - "\u00d4\n\u0005\u0000\u0000\u00d4\u00d5\u00055\u0000\u0000\u00d5\u00da"+ - "\u0003\n\u0005\u0006\u00d6\u00d7\n\u0004\u0000\u0000\u00d7\u00d8\u0005"+ - "G\u0000\u0000\u00d8\u00da\u0003\n\u0005\u0005\u00d9\u00d3\u0001\u0000"+ - "\u0000\u0000\u00d9\u00d6\u0001\u0000\u0000\u0000\u00da\u00dd\u0001\u0000"+ - "\u0000\u0000\u00db\u00d9\u0001\u0000\u0000\u0000\u00db\u00dc\u0001\u0000"+ - "\u0000\u0000\u00dc\u000b\u0001\u0000\u0000\u0000\u00dd\u00db\u0001\u0000"+ - "\u0000\u0000\u00de\u00e0\u0003\u0010\b\u0000\u00df\u00e1\u0005D\u0000"+ - "\u0000\u00e0\u00df\u0001\u0000\u0000\u0000\u00e0\u00e1\u0001\u0000\u0000"+ - "\u0000\u00e1\u00e2\u0001\u0000\u0000\u0000\u00e2\u00e3\u0005B\u0000\u0000"+ - "\u00e3\u00e4\u0003j5\u0000\u00e4\u00ed\u0001\u0000\u0000\u0000\u00e5\u00e7"+ - "\u0003\u0010\b\u0000\u00e6\u00e8\u0005D\u0000\u0000\u00e7\u00e6\u0001"+ - "\u0000\u0000\u0000\u00e7\u00e8\u0001\u0000\u0000\u0000\u00e8\u00e9\u0001"+ - "\u0000\u0000\u0000\u00e9\u00ea\u0005I\u0000\u0000\u00ea\u00eb\u0003j5"+ - "\u0000\u00eb\u00ed\u0001\u0000\u0000\u0000\u00ec\u00de\u0001\u0000\u0000"+ - "\u0000\u00ec\u00e5\u0001\u0000\u0000\u0000\u00ed\r\u0001\u0000\u0000\u0000"+ - "\u00ee\u00f1\u0003:\u001d\u0000\u00ef\u00f0\u00058\u0000\u0000\u00f0\u00f2"+ - "\u0003\u001e\u000f\u0000\u00f1\u00ef\u0001\u0000\u0000\u0000\u00f1\u00f2"+ - "\u0001\u0000\u0000\u0000\u00f2\u00f3\u0001\u0000\u0000\u0000\u00f3\u00f4"+ - "\u00059\u0000\u0000\u00f4\u00f5\u0003D\"\u0000\u00f5\u000f\u0001\u0000"+ - "\u0000\u0000\u00f6\u00fc\u0003\u0012\t\u0000\u00f7\u00f8\u0003\u0012\t"+ - "\u0000\u00f8\u00f9\u0003l6\u0000\u00f9\u00fa\u0003\u0012\t\u0000\u00fa"+ - "\u00fc\u0001\u0000\u0000\u0000\u00fb\u00f6\u0001\u0000\u0000\u0000\u00fb"+ - "\u00f7\u0001\u0000\u0000\u0000\u00fc\u0011\u0001\u0000\u0000\u0000\u00fd"+ - "\u00fe\u0006\t\uffff\uffff\u0000\u00fe\u0102\u0003\u0014\n\u0000\u00ff"+ - "\u0100\u0007\u0000\u0000\u0000\u0100\u0102\u0003\u0012\t\u0003\u0101\u00fd"+ - "\u0001\u0000\u0000\u0000\u0101\u00ff\u0001\u0000\u0000\u0000\u0102\u010b"+ - "\u0001\u0000\u0000\u0000\u0103\u0104\n\u0002\u0000\u0000\u0104\u0105\u0007"+ - "\u0001\u0000\u0000\u0105\u010a\u0003\u0012\t\u0003\u0106\u0107\n\u0001"+ - "\u0000\u0000\u0107\u0108\u0007\u0000\u0000\u0000\u0108\u010a\u0003\u0012"+ - "\t\u0002\u0109\u0103\u0001\u0000\u0000\u0000\u0109\u0106\u0001\u0000\u0000"+ - "\u0000\u010a\u010d\u0001\u0000\u0000\u0000\u010b\u0109\u0001\u0000\u0000"+ - "\u0000\u010b\u010c\u0001\u0000\u0000\u0000\u010c\u0013\u0001\u0000\u0000"+ - "\u0000\u010d\u010b\u0001\u0000\u0000\u0000\u010e\u010f\u0006\n\uffff\uffff"+ - "\u0000\u010f\u0117\u0003D\"\u0000\u0110\u0117\u0003:\u001d\u0000\u0111"+ - "\u0117\u0003\u0016\u000b\u0000\u0112\u0113\u0005C\u0000\u0000\u0113\u0114"+ - "\u0003\n\u0005\u0000\u0114\u0115\u0005J\u0000\u0000\u0115\u0117\u0001"+ - "\u0000\u0000\u0000\u0116\u010e\u0001\u0000\u0000\u0000\u0116\u0110\u0001"+ - "\u0000\u0000\u0000\u0116\u0111\u0001\u0000\u0000\u0000\u0116\u0112\u0001"+ - "\u0000\u0000\u0000\u0117\u011d\u0001\u0000\u0000\u0000\u0118\u0119\n\u0001"+ - "\u0000\u0000\u0119\u011a\u00058\u0000\u0000\u011a\u011c\u0003\u001e\u000f"+ - "\u0000\u011b\u0118\u0001\u0000\u0000\u0000\u011c\u011f\u0001\u0000\u0000"+ - "\u0000\u011d\u011b\u0001\u0000\u0000\u0000\u011d\u011e\u0001\u0000\u0000"+ - "\u0000\u011e\u0015\u0001\u0000\u0000\u0000\u011f\u011d\u0001\u0000\u0000"+ - "\u0000\u0120\u0121\u0003\u0018\f\u0000\u0121\u012f\u0005C\u0000\u0000"+ - "\u0122\u0130\u0005U\u0000\u0000\u0123\u0128\u0003\n\u0005\u0000\u0124"+ - "\u0125\u0005:\u0000\u0000\u0125\u0127\u0003\n\u0005\u0000\u0126\u0124"+ - "\u0001\u0000\u0000\u0000\u0127\u012a\u0001\u0000\u0000\u0000\u0128\u0126"+ - "\u0001\u0000\u0000\u0000\u0128\u0129\u0001\u0000\u0000\u0000\u0129\u012d"+ - "\u0001\u0000\u0000\u0000\u012a\u0128\u0001\u0000\u0000\u0000\u012b\u012c"+ - "\u0005:\u0000\u0000\u012c\u012e\u0003\u001a\r\u0000\u012d\u012b\u0001"+ - "\u0000\u0000\u0000\u012d\u012e\u0001\u0000\u0000\u0000\u012e\u0130\u0001"+ - "\u0000\u0000\u0000\u012f\u0122\u0001\u0000\u0000\u0000\u012f\u0123\u0001"+ - "\u0000\u0000\u0000\u012f\u0130\u0001\u0000\u0000\u0000\u0130\u0131\u0001"+ - "\u0000\u0000\u0000\u0131\u0132\u0005J\u0000\u0000\u0132\u0017\u0001\u0000"+ - "\u0000\u0000\u0133\u0134\u0003H$\u0000\u0134\u0019\u0001\u0000\u0000\u0000"+ - "\u0135\u0136\u0005X\u0000\u0000\u0136\u013b\u0003\u001c\u000e\u0000\u0137"+ - "\u0138\u0005:\u0000\u0000\u0138\u013a\u0003\u001c\u000e\u0000\u0139\u0137"+ - "\u0001\u0000\u0000\u0000\u013a\u013d\u0001\u0000\u0000\u0000\u013b\u0139"+ - "\u0001\u0000\u0000\u0000\u013b\u013c\u0001\u0000\u0000\u0000\u013c\u013e"+ - "\u0001\u0000\u0000\u0000\u013d\u013b\u0001\u0000\u0000\u0000\u013e\u013f"+ - "\u0005Y\u0000\u0000\u013f\u001b\u0001\u0000\u0000\u0000\u0140\u0141\u0003"+ - "j5\u0000\u0141\u0142\u00059\u0000\u0000\u0142\u0143\u0003D\"\u0000\u0143"+ - "\u001d\u0001\u0000\u0000\u0000\u0144\u0145\u0003@ \u0000\u0145\u001f\u0001"+ - "\u0000\u0000\u0000\u0146\u0147\u0005\u000b\u0000\u0000\u0147\u0148\u0003"+ - "\"\u0011\u0000\u0148!\u0001\u0000\u0000\u0000\u0149\u014e\u0003$\u0012"+ - "\u0000\u014a\u014b\u0005:\u0000\u0000\u014b\u014d\u0003$\u0012\u0000\u014c"+ - "\u014a\u0001\u0000\u0000\u0000\u014d\u0150\u0001\u0000\u0000\u0000\u014e"+ - "\u014c\u0001\u0000\u0000\u0000\u014e\u014f\u0001\u0000\u0000\u0000\u014f"+ - "#\u0001\u0000\u0000\u0000\u0150\u014e\u0001\u0000\u0000\u0000\u0151\u0152"+ - "\u0003:\u001d\u0000\u0152\u0153\u00057\u0000\u0000\u0153\u0155\u0001\u0000"+ - "\u0000\u0000\u0154\u0151\u0001\u0000\u0000\u0000\u0154\u0155\u0001\u0000"+ - "\u0000\u0000\u0155\u0156\u0001\u0000\u0000\u0000\u0156\u0157\u0003\n\u0005"+ - "\u0000\u0157%\u0001\u0000\u0000\u0000\u0158\u0159\u0005\u0010\u0000\u0000"+ - "\u0159\u015e\u0003(\u0014\u0000\u015a\u015b\u0005:\u0000\u0000\u015b\u015d"+ - "\u0003(\u0014\u0000\u015c\u015a\u0001\u0000\u0000\u0000\u015d\u0160\u0001"+ - "\u0000\u0000\u0000\u015e\u015c\u0001\u0000\u0000\u0000\u015e\u015f\u0001"+ - "\u0000\u0000\u0000\u015f\u0162\u0001\u0000\u0000\u0000\u0160\u015e\u0001"+ - "\u0000\u0000\u0000\u0161\u0163\u0003.\u0017\u0000\u0162\u0161\u0001\u0000"+ - "\u0000\u0000\u0162\u0163\u0001\u0000\u0000\u0000\u0163\'\u0001\u0000\u0000"+ - "\u0000\u0164\u0165\u0003*\u0015\u0000\u0165\u0166\u00059\u0000\u0000\u0166"+ - "\u0168\u0001\u0000\u0000\u0000\u0167\u0164\u0001\u0000\u0000\u0000\u0167"+ - "\u0168\u0001\u0000\u0000\u0000\u0168\u0169\u0001\u0000\u0000\u0000\u0169"+ - "\u016a\u0003,\u0016\u0000\u016a)\u0001\u0000\u0000\u0000\u016b\u016c\u0007"+ - "\u0002\u0000\u0000\u016c+\u0001\u0000\u0000\u0000\u016d\u016e\u0007\u0002"+ - "\u0000\u0000\u016e-\u0001\u0000\u0000\u0000\u016f\u0170\u0005b\u0000\u0000"+ - "\u0170\u0175\u0005c\u0000\u0000\u0171\u0172\u0005:\u0000\u0000\u0172\u0174"+ - "\u0005c\u0000\u0000\u0173\u0171\u0001\u0000\u0000\u0000\u0174\u0177\u0001"+ - "\u0000\u0000\u0000\u0175\u0173\u0001\u0000\u0000\u0000\u0175\u0176\u0001"+ - "\u0000\u0000\u0000\u0176/\u0001\u0000\u0000\u0000\u0177\u0175\u0001\u0000"+ - "\u0000\u0000\u0178\u0179\u0005\u0016\u0000\u0000\u0179\u017e\u0003(\u0014"+ - "\u0000\u017a\u017b\u0005:\u0000\u0000\u017b\u017d\u0003(\u0014\u0000\u017c"+ - "\u017a\u0001\u0000\u0000\u0000\u017d\u0180\u0001\u0000\u0000\u0000\u017e"+ - "\u017c\u0001\u0000\u0000\u0000\u017e\u017f\u0001\u0000\u0000\u0000\u017f"+ - "\u0182\u0001\u0000\u0000\u0000\u0180\u017e\u0001\u0000\u0000\u0000\u0181"+ - "\u0183\u00036\u001b\u0000\u0182\u0181\u0001\u0000\u0000\u0000\u0182\u0183"+ - "\u0001\u0000\u0000\u0000\u0183\u0186\u0001\u0000\u0000\u0000\u0184\u0185"+ - "\u00054\u0000\u0000\u0185\u0187\u0003\"\u0011\u0000\u0186\u0184\u0001"+ - "\u0000\u0000\u0000\u0186\u0187\u0001\u0000\u0000\u0000\u01871\u0001\u0000"+ - "\u0000\u0000\u0188\u0189\u0005\b\u0000\u0000\u0189\u018a\u0003\"\u0011"+ - "\u0000\u018a3\u0001\u0000\u0000\u0000\u018b\u018d\u0005\r\u0000\u0000"+ - "\u018c\u018e\u00036\u001b\u0000\u018d\u018c\u0001\u0000\u0000\u0000\u018d"+ - "\u018e\u0001\u0000\u0000\u0000\u018e\u0191\u0001\u0000\u0000\u0000\u018f"+ - "\u0190\u00054\u0000\u0000\u0190\u0192\u0003\"\u0011\u0000\u0191\u018f"+ - "\u0001\u0000\u0000\u0000\u0191\u0192\u0001\u0000\u0000\u0000\u01925\u0001"+ - "\u0000\u0000\u0000\u0193\u0198\u00038\u001c\u0000\u0194\u0195\u0005:\u0000"+ - "\u0000\u0195\u0197\u00038\u001c\u0000\u0196\u0194\u0001\u0000\u0000\u0000"+ - "\u0197\u019a\u0001\u0000\u0000\u0000\u0198\u0196\u0001\u0000\u0000\u0000"+ - "\u0198\u0199\u0001\u0000\u0000\u0000\u01997\u0001\u0000\u0000\u0000\u019a"+ - "\u0198\u0001\u0000\u0000\u0000\u019b\u019e\u0003$\u0012\u0000\u019c\u019d"+ - "\u0005\u000e\u0000\u0000\u019d\u019f\u0003\n\u0005\u0000\u019e\u019c\u0001"+ - "\u0000\u0000\u0000\u019e\u019f\u0001\u0000\u0000\u0000\u019f9\u0001\u0000"+ - "\u0000\u0000\u01a0\u01a5\u0003H$\u0000\u01a1\u01a2\u0005<\u0000\u0000"+ - "\u01a2\u01a4\u0003H$\u0000\u01a3\u01a1\u0001\u0000\u0000\u0000\u01a4\u01a7"+ - "\u0001\u0000\u0000\u0000\u01a5\u01a3\u0001\u0000\u0000\u0000\u01a5\u01a6"+ - "\u0001\u0000\u0000\u0000\u01a6;\u0001\u0000\u0000\u0000\u01a7\u01a5\u0001"+ - "\u0000\u0000\u0000\u01a8\u01ad\u0003B!\u0000\u01a9\u01aa\u0005<\u0000"+ - "\u0000\u01aa\u01ac\u0003B!\u0000\u01ab\u01a9\u0001\u0000\u0000\u0000\u01ac"+ - "\u01af\u0001\u0000\u0000\u0000\u01ad\u01ab\u0001\u0000\u0000\u0000\u01ad"+ - "\u01ae\u0001\u0000\u0000\u0000\u01ae=\u0001\u0000\u0000\u0000\u01af\u01ad"+ - "\u0001\u0000\u0000\u0000\u01b0\u01b5\u0003<\u001e\u0000\u01b1\u01b2\u0005"+ - ":\u0000\u0000\u01b2\u01b4\u0003<\u001e\u0000\u01b3\u01b1\u0001\u0000\u0000"+ - "\u0000\u01b4\u01b7\u0001\u0000\u0000\u0000\u01b5\u01b3\u0001\u0000\u0000"+ - "\u0000\u01b5\u01b6\u0001\u0000\u0000\u0000\u01b6?\u0001\u0000\u0000\u0000"+ - "\u01b7\u01b5\u0001\u0000\u0000\u0000\u01b8\u01b9\u0007\u0003\u0000\u0000"+ - "\u01b9A\u0001\u0000\u0000\u0000\u01ba\u01bd\u0005{\u0000\u0000\u01bb\u01bd"+ - "\u0003F#\u0000\u01bc\u01ba\u0001\u0000\u0000\u0000\u01bc\u01bb\u0001\u0000"+ - "\u0000\u0000\u01bdC\u0001\u0000\u0000\u0000\u01be\u01e9\u0005E\u0000\u0000"+ - "\u01bf\u01c0\u0003h4\u0000\u01c0\u01c1\u0005]\u0000\u0000\u01c1\u01e9"+ - "\u0001\u0000\u0000\u0000\u01c2\u01e9\u0003f3\u0000\u01c3\u01e9\u0003h"+ - "4\u0000\u01c4\u01e9\u0003b1\u0000\u01c5\u01e9\u0003F#\u0000\u01c6\u01e9"+ - "\u0003j5\u0000\u01c7\u01c8\u0005[\u0000\u0000\u01c8\u01cd\u0003d2\u0000"+ - "\u01c9\u01ca\u0005:\u0000\u0000\u01ca\u01cc\u0003d2\u0000\u01cb\u01c9"+ - "\u0001\u0000\u0000\u0000\u01cc\u01cf\u0001\u0000\u0000\u0000\u01cd\u01cb"+ - "\u0001\u0000\u0000\u0000\u01cd\u01ce\u0001\u0000\u0000\u0000\u01ce\u01d0"+ - "\u0001\u0000\u0000\u0000\u01cf\u01cd\u0001\u0000\u0000\u0000\u01d0\u01d1"+ - "\u0005\\\u0000\u0000\u01d1\u01e9\u0001\u0000\u0000\u0000\u01d2\u01d3\u0005"+ - "[\u0000\u0000\u01d3\u01d8\u0003b1\u0000\u01d4\u01d5\u0005:\u0000\u0000"+ - "\u01d5\u01d7\u0003b1\u0000\u01d6\u01d4\u0001\u0000\u0000\u0000\u01d7\u01da"+ - "\u0001\u0000\u0000\u0000\u01d8\u01d6\u0001\u0000\u0000\u0000\u01d8\u01d9"+ - "\u0001\u0000\u0000\u0000\u01d9\u01db\u0001\u0000\u0000\u0000\u01da\u01d8"+ - "\u0001\u0000\u0000\u0000\u01db\u01dc\u0005\\\u0000\u0000\u01dc\u01e9\u0001"+ - "\u0000\u0000\u0000\u01dd\u01de\u0005[\u0000\u0000\u01de\u01e3\u0003j5"+ - "\u0000\u01df\u01e0\u0005:\u0000\u0000\u01e0\u01e2\u0003j5\u0000\u01e1"+ - "\u01df\u0001\u0000\u0000\u0000\u01e2\u01e5\u0001\u0000\u0000\u0000\u01e3"+ - "\u01e1\u0001\u0000\u0000\u0000\u01e3\u01e4\u0001\u0000\u0000\u0000\u01e4"+ - "\u01e6\u0001\u0000\u0000\u0000\u01e5\u01e3\u0001\u0000\u0000\u0000\u01e6"+ - "\u01e7\u0005\\\u0000\u0000\u01e7\u01e9\u0001\u0000\u0000\u0000\u01e8\u01be"+ - "\u0001\u0000\u0000\u0000\u01e8\u01bf\u0001\u0000\u0000\u0000\u01e8\u01c2"+ - "\u0001\u0000\u0000\u0000\u01e8\u01c3\u0001\u0000\u0000\u0000\u01e8\u01c4"+ - "\u0001\u0000\u0000\u0000\u01e8\u01c5\u0001\u0000\u0000\u0000\u01e8\u01c6"+ - "\u0001\u0000\u0000\u0000\u01e8\u01c7\u0001\u0000\u0000\u0000\u01e8\u01d2"+ - "\u0001\u0000\u0000\u0000\u01e8\u01dd\u0001\u0000\u0000\u0000\u01e9E\u0001"+ - "\u0000\u0000\u0000\u01ea\u01ed\u0005H\u0000\u0000\u01eb\u01ed\u0005Z\u0000"+ - "\u0000\u01ec\u01ea\u0001\u0000\u0000\u0000\u01ec\u01eb\u0001\u0000\u0000"+ - "\u0000\u01edG\u0001\u0000\u0000\u0000\u01ee\u01f1\u0003@ \u0000\u01ef"+ - "\u01f1\u0003F#\u0000\u01f0\u01ee\u0001\u0000\u0000\u0000\u01f0\u01ef\u0001"+ - "\u0000\u0000\u0000\u01f1I\u0001\u0000\u0000\u0000\u01f2\u01f3\u0005\n"+ - "\u0000\u0000\u01f3\u01f4\u00052\u0000\u0000\u01f4K\u0001\u0000\u0000\u0000"+ - "\u01f5\u01f6\u0005\f\u0000\u0000\u01f6\u01fb\u0003N\'\u0000\u01f7\u01f8"+ - "\u0005:\u0000\u0000\u01f8\u01fa\u0003N\'\u0000\u01f9\u01f7\u0001\u0000"+ - "\u0000\u0000\u01fa\u01fd\u0001\u0000\u0000\u0000\u01fb\u01f9\u0001\u0000"+ - "\u0000\u0000\u01fb\u01fc\u0001\u0000\u0000\u0000\u01fcM\u0001\u0000\u0000"+ - "\u0000\u01fd\u01fb\u0001\u0000\u0000\u0000\u01fe\u0200\u0003\n\u0005\u0000"+ - "\u01ff\u0201\u0007\u0004\u0000\u0000\u0200\u01ff\u0001\u0000\u0000\u0000"+ - "\u0200\u0201\u0001\u0000\u0000\u0000\u0201\u0204\u0001\u0000\u0000\u0000"+ - "\u0202\u0203\u0005F\u0000\u0000\u0203\u0205\u0007\u0005\u0000\u0000\u0204"+ - "\u0202\u0001\u0000\u0000\u0000\u0204\u0205\u0001\u0000\u0000\u0000\u0205"+ - "O\u0001\u0000\u0000\u0000\u0206\u0207\u0005\u0019\u0000\u0000\u0207\u0208"+ - "\u0003>\u001f\u0000\u0208Q\u0001\u0000\u0000\u0000\u0209\u020a\u0005\u0018"+ - "\u0000\u0000\u020a\u020b\u0003>\u001f\u0000\u020bS\u0001\u0000\u0000\u0000"+ - "\u020c\u020d\u0005\u001a\u0000\u0000\u020d\u0212\u0003V+\u0000\u020e\u020f"+ - "\u0005:\u0000\u0000\u020f\u0211\u0003V+\u0000\u0210\u020e\u0001\u0000"+ - "\u0000\u0000\u0211\u0214\u0001\u0000\u0000\u0000\u0212\u0210\u0001\u0000"+ - "\u0000\u0000\u0212\u0213\u0001\u0000\u0000\u0000\u0213U\u0001\u0000\u0000"+ - "\u0000\u0214\u0212\u0001\u0000\u0000\u0000\u0215\u0216\u0003<\u001e\u0000"+ - "\u0216\u0217\u0005\u007f\u0000\u0000\u0217\u0218\u0003<\u001e\u0000\u0218"+ - "W\u0001\u0000\u0000\u0000\u0219\u021a\u0005\u0007\u0000\u0000\u021a\u021b"+ - "\u0003\u0014\n\u0000\u021b\u021d\u0003j5\u0000\u021c\u021e\u0003^/\u0000"+ - "\u021d\u021c\u0001\u0000\u0000\u0000\u021d\u021e\u0001\u0000\u0000\u0000"+ - "\u021eY\u0001\u0000\u0000\u0000\u021f\u0220\u0005\t\u0000\u0000\u0220"+ - "\u0221\u0003\u0014\n\u0000\u0221\u0222\u0003j5\u0000\u0222[\u0001\u0000"+ - "\u0000\u0000\u0223\u0224\u0005\u0017\u0000\u0000\u0224\u0225\u0003:\u001d"+ - "\u0000\u0225]\u0001\u0000\u0000\u0000\u0226\u022b\u0003`0\u0000\u0227"+ - "\u0228\u0005:\u0000\u0000\u0228\u022a\u0003`0\u0000\u0229\u0227\u0001"+ - "\u0000\u0000\u0000\u022a\u022d\u0001\u0000\u0000\u0000\u022b\u0229\u0001"+ - "\u0000\u0000\u0000\u022b\u022c\u0001\u0000\u0000\u0000\u022c_\u0001\u0000"+ - "\u0000\u0000\u022d\u022b\u0001\u0000\u0000\u0000\u022e\u022f\u0003@ \u0000"+ - "\u022f\u0230\u00057\u0000\u0000\u0230\u0231\u0003D\"\u0000\u0231a\u0001"+ - "\u0000\u0000\u0000\u0232\u0233\u0007\u0006\u0000\u0000\u0233c\u0001\u0000"+ - "\u0000\u0000\u0234\u0237\u0003f3\u0000\u0235\u0237\u0003h4\u0000\u0236"+ - "\u0234\u0001\u0000\u0000\u0000\u0236\u0235\u0001\u0000\u0000\u0000\u0237"+ - "e\u0001\u0000\u0000\u0000\u0238\u023a\u0007\u0000\u0000\u0000\u0239\u0238"+ - "\u0001\u0000\u0000\u0000\u0239\u023a\u0001\u0000\u0000\u0000\u023a\u023b"+ - "\u0001\u0000\u0000\u0000\u023b\u023c\u00053\u0000\u0000\u023cg\u0001\u0000"+ - "\u0000\u0000\u023d\u023f\u0007\u0000\u0000\u0000\u023e\u023d\u0001\u0000"+ - "\u0000\u0000\u023e\u023f\u0001\u0000\u0000\u0000\u023f\u0240\u0001\u0000"+ - "\u0000\u0000\u0240\u0241\u00052\u0000\u0000\u0241i\u0001\u0000\u0000\u0000"+ - "\u0242\u0243\u00051\u0000\u0000\u0243k\u0001\u0000\u0000\u0000\u0244\u0245"+ - "\u0007\u0007\u0000\u0000\u0245m\u0001\u0000\u0000\u0000\u0246\u0247\u0005"+ - "\u0006\u0000\u0000\u0247\u0248\u0003p8\u0000\u0248o\u0001\u0000\u0000"+ - "\u0000\u0249\u024a\u0005[\u0000\u0000\u024a\u024b\u0003\u0002\u0001\u0000"+ - "\u024b\u024c\u0005\\\u0000\u0000\u024cq\u0001\u0000\u0000\u0000\u024d"+ - "\u024e\u0005\u001b\u0000\u0000\u024e\u024f\u0005\u0083\u0000\u0000\u024f"+ - "s\u0001\u0000\u0000\u0000\u0250\u0251\u0005\u0005\u0000\u0000\u0251\u0254"+ - "\u0005\"\u0000\u0000\u0252\u0253\u0005 \u0000\u0000\u0253\u0255\u0003"+ - "<\u001e\u0000\u0254\u0252\u0001\u0000\u0000\u0000\u0254\u0255\u0001\u0000"+ - "\u0000\u0000\u0255\u025f\u0001\u0000\u0000\u0000\u0256\u0257\u0005!\u0000"+ - "\u0000\u0257\u025c\u0003v;\u0000\u0258\u0259\u0005:\u0000\u0000\u0259"+ - "\u025b\u0003v;\u0000\u025a\u0258\u0001\u0000\u0000\u0000\u025b\u025e\u0001"+ - "\u0000\u0000\u0000\u025c\u025a\u0001\u0000\u0000\u0000\u025c\u025d\u0001"+ - "\u0000\u0000\u0000\u025d\u0260\u0001\u0000\u0000\u0000\u025e\u025c\u0001"+ - "\u0000\u0000\u0000\u025f\u0256\u0001\u0000\u0000\u0000\u025f\u0260\u0001"+ - "\u0000\u0000\u0000\u0260u\u0001\u0000\u0000\u0000\u0261\u0262\u0003<\u001e"+ - "\u0000\u0262\u0263\u00057\u0000\u0000\u0263\u0265\u0001\u0000\u0000\u0000"+ - "\u0264\u0261\u0001\u0000\u0000\u0000\u0264\u0265\u0001\u0000\u0000\u0000"+ - "\u0265\u0266\u0001\u0000\u0000\u0000\u0266\u0267\u0003<\u001e\u0000\u0267"+ - "w\u0001\u0000\u0000\u0000\u0268\u0269\u0005\u0015\u0000\u0000\u0269\u026a"+ - "\u0003(\u0014\u0000\u026a\u026b\u0005 \u0000\u0000\u026b\u026c\u0003>"+ - "\u001f\u0000\u026cy\u0001\u0000\u0000\u0000\u026d\u026e\u0005\u000f\u0000"+ - "\u0000\u026e\u0271\u00036\u001b\u0000\u026f\u0270\u00054\u0000\u0000\u0270"+ - "\u0272\u0003\"\u0011\u0000\u0271\u026f\u0001\u0000\u0000\u0000\u0271\u0272"+ - "\u0001\u0000\u0000\u0000\u0272{\u0001\u0000\u0000\u0000\u0273\u0274\u0007"+ - "\b\u0000\u0000\u0274\u0275\u0005g\u0000\u0000\u0275\u0276\u0003~?\u0000"+ - "\u0276\u0277\u0003\u0080@\u0000\u0277}\u0001\u0000\u0000\u0000\u0278\u0279"+ - "\u0003(\u0014\u0000\u0279\u007f\u0001\u0000\u0000\u0000\u027a\u027b\u0005"+ - " \u0000\u0000\u027b\u0280\u0003\u0082A\u0000\u027c\u027d\u0005:\u0000"+ - "\u0000\u027d\u027f\u0003\u0082A\u0000\u027e\u027c\u0001\u0000\u0000\u0000"+ - "\u027f\u0282\u0001\u0000\u0000\u0000\u0280\u027e\u0001\u0000\u0000\u0000"+ - "\u0280\u0281\u0001\u0000\u0000\u0000\u0281\u0081\u0001\u0000\u0000\u0000"+ - "\u0282\u0280\u0001\u0000\u0000\u0000\u0283\u0284\u0003\u0010\b\u0000\u0284"+ - "\u0083\u0001\u0000\u0000\u0000\u0285\u0286\u0005\u0004\u0000\u0000\u0286"+ - "\u0289\u0003:\u001d\u0000\u0287\u0288\u0005 \u0000\u0000\u0288\u028a\u0003"+ - ":\u001d\u0000\u0289\u0287\u0001\u0000\u0000\u0000\u0289\u028a\u0001\u0000"+ - "\u0000\u0000\u028a\u0290\u0001\u0000\u0000\u0000\u028b\u028c\u0005\u007f"+ - "\u0000\u0000\u028c\u028d\u0003:\u001d\u0000\u028d\u028e\u0005:\u0000\u0000"+ - "\u028e\u028f\u0003:\u001d\u0000\u028f\u0291\u0001\u0000\u0000\u0000\u0290"+ - "\u028b\u0001\u0000\u0000\u0000\u0290\u0291\u0001\u0000\u0000\u0000\u0291"+ - "\u0085\u0001\u0000\u0000\u0000?\u0091\u009a\u00af\u00bb\u00c4\u00cc\u00d1"+ - "\u00d9\u00db\u00e0\u00e7\u00ec\u00f1\u00fb\u0101\u0109\u010b\u0116\u011d"+ - "\u0128\u012d\u012f\u013b\u014e\u0154\u015e\u0162\u0167\u0175\u017e\u0182"+ - "\u0186\u018d\u0191\u0198\u019e\u01a5\u01ad\u01b5\u01bc\u01cd\u01d8\u01e3"+ - "\u01e8\u01ec\u01f0\u01fb\u0200\u0204\u0212\u021d\u022b\u0236\u0239\u023e"+ - "\u0254\u025c\u025f\u0264\u0271\u0280\u0289\u0290"; + "\u00b1\u00b2\u0005\u000e\u0000\u0000\u00b2\u00b3\u0003\\.\u0000\u00b3"+ + "\t\u0001\u0000\u0000\u0000\u00b4\u00b5\u0003,\u0016\u0000\u00b5\u000b"+ + "\u0001\u0000\u0000\u0000\u00b6\u00b7\u0005\u000b\u0000\u0000\u00b7\u00b8"+ + "\u0003\u000e\u0007\u0000\u00b8\r\u0001\u0000\u0000\u0000\u00b9\u00be\u0003"+ + "\u0010\b\u0000\u00ba\u00bb\u0005:\u0000\u0000\u00bb\u00bd\u0003\u0010"+ + "\b\u0000\u00bc\u00ba\u0001\u0000\u0000\u0000\u00bd\u00c0\u0001\u0000\u0000"+ + "\u0000\u00be\u00bc\u0001\u0000\u0000\u0000\u00be\u00bf\u0001\u0000\u0000"+ + "\u0000\u00bf\u000f\u0001\u0000\u0000\u0000\u00c0\u00be\u0001\u0000\u0000"+ + "\u0000\u00c1\u00c2\u0003&\u0013\u0000\u00c2\u00c3\u00057\u0000\u0000\u00c3"+ + "\u00c5\u0001\u0000\u0000\u0000\u00c4\u00c1\u0001\u0000\u0000\u0000\u00c4"+ + "\u00c5\u0001\u0000\u0000\u0000\u00c5\u00c6\u0001\u0000\u0000\u0000\u00c6"+ + "\u00c7\u0003\\.\u0000\u00c7\u0011\u0001\u0000\u0000\u0000\u00c8\u00c9"+ + "\u0005\u0010\u0000\u0000\u00c9\u00ce\u0003\u0014\n\u0000\u00ca\u00cb\u0005"+ + ":\u0000\u0000\u00cb\u00cd\u0003\u0014\n\u0000\u00cc\u00ca\u0001\u0000"+ + "\u0000\u0000\u00cd\u00d0\u0001\u0000\u0000\u0000\u00ce\u00cc\u0001\u0000"+ + "\u0000\u0000\u00ce\u00cf\u0001\u0000\u0000\u0000\u00cf\u00d2\u0001\u0000"+ + "\u0000\u0000\u00d0\u00ce\u0001\u0000\u0000\u0000\u00d1\u00d3\u0003\u001a"+ + "\r\u0000\u00d2\u00d1\u0001\u0000\u0000\u0000\u00d2\u00d3\u0001\u0000\u0000"+ + "\u0000\u00d3\u0013\u0001\u0000\u0000\u0000\u00d4\u00d5\u0003\u0016\u000b"+ + "\u0000\u00d5\u00d6\u00059\u0000\u0000\u00d6\u00d8\u0001\u0000\u0000\u0000"+ + "\u00d7\u00d4\u0001\u0000\u0000\u0000\u00d7\u00d8\u0001\u0000\u0000\u0000"+ + "\u00d8\u00d9\u0001\u0000\u0000\u0000\u00d9\u00da\u0003\u0018\f\u0000\u00da"+ + "\u0015\u0001\u0000\u0000\u0000\u00db\u00dc\u0007\u0000\u0000\u0000\u00dc"+ + "\u0017\u0001\u0000\u0000\u0000\u00dd\u00de\u0007\u0000\u0000\u0000\u00de"+ + "\u0019\u0001\u0000\u0000\u0000\u00df\u00e0\u0005b\u0000\u0000\u00e0\u00e5"+ + "\u0005c\u0000\u0000\u00e1\u00e2\u0005:\u0000\u0000\u00e2\u00e4\u0005c"+ + "\u0000\u0000\u00e3\u00e1\u0001\u0000\u0000\u0000\u00e4\u00e7\u0001\u0000"+ + "\u0000\u0000\u00e5\u00e3\u0001\u0000\u0000\u0000\u00e5\u00e6\u0001\u0000"+ + "\u0000\u0000\u00e6\u001b\u0001\u0000\u0000\u0000\u00e7\u00e5\u0001\u0000"+ + "\u0000\u0000\u00e8\u00e9\u0005\u0016\u0000\u0000\u00e9\u00ee\u0003\u0014"+ + "\n\u0000\u00ea\u00eb\u0005:\u0000\u0000\u00eb\u00ed\u0003\u0014\n\u0000"+ + "\u00ec\u00ea\u0001\u0000\u0000\u0000\u00ed\u00f0\u0001\u0000\u0000\u0000"+ + "\u00ee\u00ec\u0001\u0000\u0000\u0000\u00ee\u00ef\u0001\u0000\u0000\u0000"+ + "\u00ef\u00f2\u0001\u0000\u0000\u0000\u00f0\u00ee\u0001\u0000\u0000\u0000"+ + "\u00f1\u00f3\u0003\"\u0011\u0000\u00f2\u00f1\u0001\u0000\u0000\u0000\u00f2"+ + "\u00f3\u0001\u0000\u0000\u0000\u00f3\u00f6\u0001\u0000\u0000\u0000\u00f4"+ + "\u00f5\u00054\u0000\u0000\u00f5\u00f7\u0003\u000e\u0007\u0000\u00f6\u00f4"+ + "\u0001\u0000\u0000\u0000\u00f6\u00f7\u0001\u0000\u0000\u0000\u00f7\u001d"+ + "\u0001\u0000\u0000\u0000\u00f8\u00f9\u0005\b\u0000\u0000\u00f9\u00fa\u0003"+ + "\u000e\u0007\u0000\u00fa\u001f\u0001\u0000\u0000\u0000\u00fb\u00fd\u0005"+ + "\r\u0000\u0000\u00fc\u00fe\u0003\"\u0011\u0000\u00fd\u00fc\u0001\u0000"+ + "\u0000\u0000\u00fd\u00fe\u0001\u0000\u0000\u0000\u00fe\u0101\u0001\u0000"+ + "\u0000\u0000\u00ff\u0100\u00054\u0000\u0000\u0100\u0102\u0003\u000e\u0007"+ + "\u0000\u0101\u00ff\u0001\u0000\u0000\u0000\u0101\u0102\u0001\u0000\u0000"+ + "\u0000\u0102!\u0001\u0000\u0000\u0000\u0103\u0108\u0003$\u0012\u0000\u0104"+ + "\u0105\u0005:\u0000\u0000\u0105\u0107\u0003$\u0012\u0000\u0106\u0104\u0001"+ + "\u0000\u0000\u0000\u0107\u010a\u0001\u0000\u0000\u0000\u0108\u0106\u0001"+ + "\u0000\u0000\u0000\u0108\u0109\u0001\u0000\u0000\u0000\u0109#\u0001\u0000"+ + "\u0000\u0000\u010a\u0108\u0001\u0000\u0000\u0000\u010b\u010e\u0003\u0010"+ + "\b\u0000\u010c\u010d\u0005\u000e\u0000\u0000\u010d\u010f\u0003\\.\u0000"+ + "\u010e\u010c\u0001\u0000\u0000\u0000\u010e\u010f\u0001\u0000\u0000\u0000"+ + "\u010f%\u0001\u0000\u0000\u0000\u0110\u0115\u00032\u0019\u0000\u0111\u0112"+ + "\u0005<\u0000\u0000\u0112\u0114\u00032\u0019\u0000\u0113\u0111\u0001\u0000"+ + "\u0000\u0000\u0114\u0117\u0001\u0000\u0000\u0000\u0115\u0113\u0001\u0000"+ + "\u0000\u0000\u0115\u0116\u0001\u0000\u0000\u0000\u0116\'\u0001\u0000\u0000"+ + "\u0000\u0117\u0115\u0001\u0000\u0000\u0000\u0118\u011d\u0003.\u0017\u0000"+ + "\u0119\u011a\u0005<\u0000\u0000\u011a\u011c\u0003.\u0017\u0000\u011b\u0119"+ + "\u0001\u0000\u0000\u0000\u011c\u011f\u0001\u0000\u0000\u0000\u011d\u011b"+ + "\u0001\u0000\u0000\u0000\u011d\u011e\u0001\u0000\u0000\u0000\u011e)\u0001"+ + "\u0000\u0000\u0000\u011f\u011d\u0001\u0000\u0000\u0000\u0120\u0125\u0003"+ + "(\u0014\u0000\u0121\u0122\u0005:\u0000\u0000\u0122\u0124\u0003(\u0014"+ + "\u0000\u0123\u0121\u0001\u0000\u0000\u0000\u0124\u0127\u0001\u0000\u0000"+ + "\u0000\u0125\u0123\u0001\u0000\u0000\u0000\u0125\u0126\u0001\u0000\u0000"+ + "\u0000\u0126+\u0001\u0000\u0000\u0000\u0127\u0125\u0001\u0000\u0000\u0000"+ + "\u0128\u0129\u0007\u0001\u0000\u0000\u0129-\u0001\u0000\u0000\u0000\u012a"+ + "\u012d\u0005{\u0000\u0000\u012b\u012d\u00030\u0018\u0000\u012c\u012a\u0001"+ + "\u0000\u0000\u0000\u012c\u012b\u0001\u0000\u0000\u0000\u012d/\u0001\u0000"+ + "\u0000\u0000\u012e\u0131\u0005H\u0000\u0000\u012f\u0131\u0005Z\u0000\u0000"+ + "\u0130\u012e\u0001\u0000\u0000\u0000\u0130\u012f\u0001\u0000\u0000\u0000"+ + "\u01311\u0001\u0000\u0000\u0000\u0132\u0135\u0003,\u0016\u0000\u0133\u0135"+ + "\u00030\u0018\u0000\u0134\u0132\u0001\u0000\u0000\u0000\u0134\u0133\u0001"+ + "\u0000\u0000\u0000\u01353\u0001\u0000\u0000\u0000\u0136\u0137\u0005\n"+ + "\u0000\u0000\u0137\u0138\u00052\u0000\u0000\u01385\u0001\u0000\u0000\u0000"+ + "\u0139\u013a\u0005\f\u0000\u0000\u013a\u013f\u00038\u001c\u0000\u013b"+ + "\u013c\u0005:\u0000\u0000\u013c\u013e\u00038\u001c\u0000\u013d\u013b\u0001"+ + "\u0000\u0000\u0000\u013e\u0141\u0001\u0000\u0000\u0000\u013f\u013d\u0001"+ + "\u0000\u0000\u0000\u013f\u0140\u0001\u0000\u0000\u0000\u01407\u0001\u0000"+ + "\u0000\u0000\u0141\u013f\u0001\u0000\u0000\u0000\u0142\u0144\u0003\\."+ + "\u0000\u0143\u0145\u0007\u0002\u0000\u0000\u0144\u0143\u0001\u0000\u0000"+ + "\u0000\u0144\u0145\u0001\u0000\u0000\u0000\u0145\u0148\u0001\u0000\u0000"+ + "\u0000\u0146\u0147\u0005F\u0000\u0000\u0147\u0149\u0007\u0003\u0000\u0000"+ + "\u0148\u0146\u0001\u0000\u0000\u0000\u0148\u0149\u0001\u0000\u0000\u0000"+ + "\u01499\u0001\u0000\u0000\u0000\u014a\u014b\u0005\u0019\u0000\u0000\u014b"+ + "\u014c\u0003*\u0015\u0000\u014c;\u0001\u0000\u0000\u0000\u014d\u014e\u0005"+ + "\u0018\u0000\u0000\u014e\u014f\u0003*\u0015\u0000\u014f=\u0001\u0000\u0000"+ + "\u0000\u0150\u0151\u0005\u001a\u0000\u0000\u0151\u0156\u0003@ \u0000\u0152"+ + "\u0153\u0005:\u0000\u0000\u0153\u0155\u0003@ \u0000\u0154\u0152\u0001"+ + "\u0000\u0000\u0000\u0155\u0158\u0001\u0000\u0000\u0000\u0156\u0154\u0001"+ + "\u0000\u0000\u0000\u0156\u0157\u0001\u0000\u0000\u0000\u0157?\u0001\u0000"+ + "\u0000\u0000\u0158\u0156\u0001\u0000\u0000\u0000\u0159\u015a\u0003(\u0014"+ + "\u0000\u015a\u015b\u0005\u007f\u0000\u0000\u015b\u015c\u0003(\u0014\u0000"+ + "\u015cA\u0001\u0000\u0000\u0000\u015d\u015e\u0005\u0007\u0000\u0000\u015e"+ + "\u015f\u0003f3\u0000\u015f\u0161\u0003z=\u0000\u0160\u0162\u0003H$\u0000"+ + "\u0161\u0160\u0001\u0000\u0000\u0000\u0161\u0162\u0001\u0000\u0000\u0000"+ + "\u0162C\u0001\u0000\u0000\u0000\u0163\u0164\u0005\t\u0000\u0000\u0164"+ + "\u0165\u0003f3\u0000\u0165\u0166\u0003z=\u0000\u0166E\u0001\u0000\u0000"+ + "\u0000\u0167\u0168\u0005\u0017\u0000\u0000\u0168\u0169\u0003&\u0013\u0000"+ + "\u0169G\u0001\u0000\u0000\u0000\u016a\u016f\u0003J%\u0000\u016b\u016c"+ + "\u0005:\u0000\u0000\u016c\u016e\u0003J%\u0000\u016d\u016b\u0001\u0000"+ + "\u0000\u0000\u016e\u0171\u0001\u0000\u0000\u0000\u016f\u016d\u0001\u0000"+ + "\u0000\u0000\u016f\u0170\u0001\u0000\u0000\u0000\u0170I\u0001\u0000\u0000"+ + "\u0000\u0171\u016f\u0001\u0000\u0000\u0000\u0172\u0173\u0003,\u0016\u0000"+ + "\u0173\u0174\u00057\u0000\u0000\u0174\u0175\u0003p8\u0000\u0175K\u0001"+ + "\u0000\u0000\u0000\u0176\u0177\u0005\u0006\u0000\u0000\u0177\u0178\u0003"+ + "N\'\u0000\u0178M\u0001\u0000\u0000\u0000\u0179\u017a\u0005[\u0000\u0000"+ + "\u017a\u017b\u0003\u0002\u0001\u0000\u017b\u017c\u0005\\\u0000\u0000\u017c"+ + "O\u0001\u0000\u0000\u0000\u017d\u017e\u0005\u001b\u0000\u0000\u017e\u017f"+ + "\u0005\u0083\u0000\u0000\u017fQ\u0001\u0000\u0000\u0000\u0180\u0181\u0005"+ + "\u0005\u0000\u0000\u0181\u0184\u0005\"\u0000\u0000\u0182\u0183\u0005 "+ + "\u0000\u0000\u0183\u0185\u0003(\u0014\u0000\u0184\u0182\u0001\u0000\u0000"+ + "\u0000\u0184\u0185\u0001\u0000\u0000\u0000\u0185\u018f\u0001\u0000\u0000"+ + "\u0000\u0186\u0187\u0005!\u0000\u0000\u0187\u018c\u0003T*\u0000\u0188"+ + "\u0189\u0005:\u0000\u0000\u0189\u018b\u0003T*\u0000\u018a\u0188\u0001"+ + "\u0000\u0000\u0000\u018b\u018e\u0001\u0000\u0000\u0000\u018c\u018a\u0001"+ + "\u0000\u0000\u0000\u018c\u018d\u0001\u0000\u0000\u0000\u018d\u0190\u0001"+ + "\u0000\u0000\u0000\u018e\u018c\u0001\u0000\u0000\u0000\u018f\u0186\u0001"+ + "\u0000\u0000\u0000\u018f\u0190\u0001\u0000\u0000\u0000\u0190S\u0001\u0000"+ + "\u0000\u0000\u0191\u0192\u0003(\u0014\u0000\u0192\u0193\u00057\u0000\u0000"+ + "\u0193\u0195\u0001\u0000\u0000\u0000\u0194\u0191\u0001\u0000\u0000\u0000"+ + "\u0194\u0195\u0001\u0000\u0000\u0000\u0195\u0196\u0001\u0000\u0000\u0000"+ + "\u0196\u0197\u0003(\u0014\u0000\u0197U\u0001\u0000\u0000\u0000\u0198\u0199"+ + "\u0005\u0015\u0000\u0000\u0199\u019a\u0003\u0014\n\u0000\u019a\u019b\u0005"+ + " \u0000\u0000\u019b\u019c\u0003*\u0015\u0000\u019cW\u0001\u0000\u0000"+ + "\u0000\u019d\u019e\u0005\u000f\u0000\u0000\u019e\u01a1\u0003\"\u0011\u0000"+ + "\u019f\u01a0\u00054\u0000\u0000\u01a0\u01a2\u0003\u000e\u0007\u0000\u01a1"+ + "\u019f\u0001\u0000\u0000\u0000\u01a1\u01a2\u0001\u0000\u0000\u0000\u01a2"+ + "Y\u0001\u0000\u0000\u0000\u01a3\u01a4\u0005\u0004\u0000\u0000\u01a4\u01a7"+ + "\u0003&\u0013\u0000\u01a5\u01a6\u0005 \u0000\u0000\u01a6\u01a8\u0003&"+ + "\u0013\u0000\u01a7\u01a5\u0001\u0000\u0000\u0000\u01a7\u01a8\u0001\u0000"+ + "\u0000\u0000\u01a8\u01ae\u0001\u0000\u0000\u0000\u01a9\u01aa\u0005\u007f"+ + "\u0000\u0000\u01aa\u01ab\u0003&\u0013\u0000\u01ab\u01ac\u0005:\u0000\u0000"+ + "\u01ac\u01ad\u0003&\u0013\u0000\u01ad\u01af\u0001\u0000\u0000\u0000\u01ae"+ + "\u01a9\u0001\u0000\u0000\u0000\u01ae\u01af\u0001\u0000\u0000\u0000\u01af"+ + "[\u0001\u0000\u0000\u0000\u01b0\u01b1\u0006.\uffff\uffff\u0000\u01b1\u01b2"+ + "\u0005D\u0000\u0000\u01b2\u01ce\u0003\\.\b\u01b3\u01ce\u0003b1\u0000\u01b4"+ + "\u01ce\u0003^/\u0000\u01b5\u01b7\u0003b1\u0000\u01b6\u01b8\u0005D\u0000"+ + "\u0000\u01b7\u01b6\u0001\u0000\u0000\u0000\u01b7\u01b8\u0001\u0000\u0000"+ + "\u0000\u01b8\u01b9\u0001\u0000\u0000\u0000\u01b9\u01ba\u0005?\u0000\u0000"+ + "\u01ba\u01bb\u0005C\u0000\u0000\u01bb\u01c0\u0003b1\u0000\u01bc\u01bd"+ + "\u0005:\u0000\u0000\u01bd\u01bf\u0003b1\u0000\u01be\u01bc\u0001\u0000"+ + "\u0000\u0000\u01bf\u01c2\u0001\u0000\u0000\u0000\u01c0\u01be\u0001\u0000"+ + "\u0000\u0000\u01c0\u01c1\u0001\u0000\u0000\u0000\u01c1\u01c3\u0001\u0000"+ + "\u0000\u0000\u01c2\u01c0\u0001\u0000\u0000\u0000\u01c3\u01c4\u0005J\u0000"+ + "\u0000\u01c4\u01ce\u0001\u0000\u0000\u0000\u01c5\u01c6\u0003b1\u0000\u01c6"+ + "\u01c8\u0005@\u0000\u0000\u01c7\u01c9\u0005D\u0000\u0000\u01c8\u01c7\u0001"+ + "\u0000\u0000\u0000\u01c8\u01c9\u0001\u0000\u0000\u0000\u01c9\u01ca\u0001"+ + "\u0000\u0000\u0000\u01ca\u01cb\u0005E\u0000\u0000\u01cb\u01ce\u0001\u0000"+ + "\u0000\u0000\u01cc\u01ce\u0003`0\u0000\u01cd\u01b0\u0001\u0000\u0000\u0000"+ + "\u01cd\u01b3\u0001\u0000\u0000\u0000\u01cd\u01b4\u0001\u0000\u0000\u0000"+ + "\u01cd\u01b5\u0001\u0000\u0000\u0000\u01cd\u01c5\u0001\u0000\u0000\u0000"+ + "\u01cd\u01cc\u0001\u0000\u0000\u0000\u01ce\u01d7\u0001\u0000\u0000\u0000"+ + "\u01cf\u01d0\n\u0005\u0000\u0000\u01d0\u01d1\u00055\u0000\u0000\u01d1"+ + "\u01d6\u0003\\.\u0006\u01d2\u01d3\n\u0004\u0000\u0000\u01d3\u01d4\u0005"+ + "G\u0000\u0000\u01d4\u01d6\u0003\\.\u0005\u01d5\u01cf\u0001\u0000\u0000"+ + "\u0000\u01d5\u01d2\u0001\u0000\u0000\u0000\u01d6\u01d9\u0001\u0000\u0000"+ + "\u0000\u01d7\u01d5\u0001\u0000\u0000\u0000\u01d7\u01d8\u0001\u0000\u0000"+ + "\u0000\u01d8]\u0001\u0000\u0000\u0000\u01d9\u01d7\u0001\u0000\u0000\u0000"+ + "\u01da\u01dc\u0003b1\u0000\u01db\u01dd\u0005D\u0000\u0000\u01dc\u01db"+ + "\u0001\u0000\u0000\u0000\u01dc\u01dd\u0001\u0000\u0000\u0000\u01dd\u01de"+ + "\u0001\u0000\u0000\u0000\u01de\u01df\u0005B\u0000\u0000\u01df\u01e0\u0003"+ + "z=\u0000\u01e0\u01e9\u0001\u0000\u0000\u0000\u01e1\u01e3\u0003b1\u0000"+ + "\u01e2\u01e4\u0005D\u0000\u0000\u01e3\u01e2\u0001\u0000\u0000\u0000\u01e3"+ + "\u01e4\u0001\u0000\u0000\u0000\u01e4\u01e5\u0001\u0000\u0000\u0000\u01e5"+ + "\u01e6\u0005I\u0000\u0000\u01e6\u01e7\u0003z=\u0000\u01e7\u01e9\u0001"+ + "\u0000\u0000\u0000\u01e8\u01da\u0001\u0000\u0000\u0000\u01e8\u01e1\u0001"+ + "\u0000\u0000\u0000\u01e9_\u0001\u0000\u0000\u0000\u01ea\u01ed\u0003&\u0013"+ + "\u0000\u01eb\u01ec\u00058\u0000\u0000\u01ec\u01ee\u0003\n\u0005\u0000"+ + "\u01ed\u01eb\u0001\u0000\u0000\u0000\u01ed\u01ee\u0001\u0000\u0000\u0000"+ + "\u01ee\u01ef\u0001\u0000\u0000\u0000\u01ef\u01f0\u00059\u0000\u0000\u01f0"+ + "\u01f1\u0003p8\u0000\u01f1a\u0001\u0000\u0000\u0000\u01f2\u01f8\u0003"+ + "d2\u0000\u01f3\u01f4\u0003d2\u0000\u01f4\u01f5\u0003|>\u0000\u01f5\u01f6"+ + "\u0003d2\u0000\u01f6\u01f8\u0001\u0000\u0000\u0000\u01f7\u01f2\u0001\u0000"+ + "\u0000\u0000\u01f7\u01f3\u0001\u0000\u0000\u0000\u01f8c\u0001\u0000\u0000"+ + "\u0000\u01f9\u01fa\u00062\uffff\uffff\u0000\u01fa\u01fe\u0003f3\u0000"+ + "\u01fb\u01fc\u0007\u0004\u0000\u0000\u01fc\u01fe\u0003d2\u0003\u01fd\u01f9"+ + "\u0001\u0000\u0000\u0000\u01fd\u01fb\u0001\u0000\u0000\u0000\u01fe\u0207"+ + "\u0001\u0000\u0000\u0000\u01ff\u0200\n\u0002\u0000\u0000\u0200\u0201\u0007"+ + "\u0005\u0000\u0000\u0201\u0206\u0003d2\u0003\u0202\u0203\n\u0001\u0000"+ + "\u0000\u0203\u0204\u0007\u0004\u0000\u0000\u0204\u0206\u0003d2\u0002\u0205"+ + "\u01ff\u0001\u0000\u0000\u0000\u0205\u0202\u0001\u0000\u0000\u0000\u0206"+ + "\u0209\u0001\u0000\u0000\u0000\u0207\u0205\u0001\u0000\u0000\u0000\u0207"+ + "\u0208\u0001\u0000\u0000\u0000\u0208e\u0001\u0000\u0000\u0000\u0209\u0207"+ + "\u0001\u0000\u0000\u0000\u020a\u020b\u00063\uffff\uffff\u0000\u020b\u0213"+ + "\u0003p8\u0000\u020c\u0213\u0003&\u0013\u0000\u020d\u0213\u0003h4\u0000"+ + "\u020e\u020f\u0005C\u0000\u0000\u020f\u0210\u0003\\.\u0000\u0210\u0211"+ + "\u0005J\u0000\u0000\u0211\u0213\u0001\u0000\u0000\u0000\u0212\u020a\u0001"+ + "\u0000\u0000\u0000\u0212\u020c\u0001\u0000\u0000\u0000\u0212\u020d\u0001"+ + "\u0000\u0000\u0000\u0212\u020e\u0001\u0000\u0000\u0000\u0213\u0219\u0001"+ + "\u0000\u0000\u0000\u0214\u0215\n\u0001\u0000\u0000\u0215\u0216\u00058"+ + "\u0000\u0000\u0216\u0218\u0003\n\u0005\u0000\u0217\u0214\u0001\u0000\u0000"+ + "\u0000\u0218\u021b\u0001\u0000\u0000\u0000\u0219\u0217\u0001\u0000\u0000"+ + "\u0000\u0219\u021a\u0001\u0000\u0000\u0000\u021ag\u0001\u0000\u0000\u0000"+ + "\u021b\u0219\u0001\u0000\u0000\u0000\u021c\u021d\u0003j5\u0000\u021d\u022b"+ + "\u0005C\u0000\u0000\u021e\u022c\u0005U\u0000\u0000\u021f\u0224\u0003\\"+ + ".\u0000\u0220\u0221\u0005:\u0000\u0000\u0221\u0223\u0003\\.\u0000\u0222"+ + "\u0220\u0001\u0000\u0000\u0000\u0223\u0226\u0001\u0000\u0000\u0000\u0224"+ + "\u0222\u0001\u0000\u0000\u0000\u0224\u0225\u0001\u0000\u0000\u0000\u0225"+ + "\u0229\u0001\u0000\u0000\u0000\u0226\u0224\u0001\u0000\u0000\u0000\u0227"+ + "\u0228\u0005:\u0000\u0000\u0228\u022a\u0003l6\u0000\u0229\u0227\u0001"+ + "\u0000\u0000\u0000\u0229\u022a\u0001\u0000\u0000\u0000\u022a\u022c\u0001"+ + "\u0000\u0000\u0000\u022b\u021e\u0001\u0000\u0000\u0000\u022b\u021f\u0001"+ + "\u0000\u0000\u0000\u022b\u022c\u0001\u0000\u0000\u0000\u022c\u022d\u0001"+ + "\u0000\u0000\u0000\u022d\u022e\u0005J\u0000\u0000\u022ei\u0001\u0000\u0000"+ + "\u0000\u022f\u0230\u00032\u0019\u0000\u0230k\u0001\u0000\u0000\u0000\u0231"+ + "\u0232\u0005X\u0000\u0000\u0232\u0237\u0003n7\u0000\u0233\u0234\u0005"+ + ":\u0000\u0000\u0234\u0236\u0003n7\u0000\u0235\u0233\u0001\u0000\u0000"+ + "\u0000\u0236\u0239\u0001\u0000\u0000\u0000\u0237\u0235\u0001\u0000\u0000"+ + "\u0000\u0237\u0238\u0001\u0000\u0000\u0000\u0238\u023a\u0001\u0000\u0000"+ + "\u0000\u0239\u0237\u0001\u0000\u0000\u0000\u023a\u023b\u0005Y\u0000\u0000"+ + "\u023bm\u0001\u0000\u0000\u0000\u023c\u023d\u0003z=\u0000\u023d\u023e"+ + "\u00059\u0000\u0000\u023e\u023f\u0003p8\u0000\u023fo\u0001\u0000\u0000"+ + "\u0000\u0240\u026b\u0005E\u0000\u0000\u0241\u0242\u0003x<\u0000\u0242"+ + "\u0243\u0005]\u0000\u0000\u0243\u026b\u0001\u0000\u0000\u0000\u0244\u026b"+ + "\u0003v;\u0000\u0245\u026b\u0003x<\u0000\u0246\u026b\u0003r9\u0000\u0247"+ + "\u026b\u00030\u0018\u0000\u0248\u026b\u0003z=\u0000\u0249\u024a\u0005"+ + "[\u0000\u0000\u024a\u024f\u0003t:\u0000\u024b\u024c\u0005:\u0000\u0000"+ + "\u024c\u024e\u0003t:\u0000\u024d\u024b\u0001\u0000\u0000\u0000\u024e\u0251"+ + "\u0001\u0000\u0000\u0000\u024f\u024d\u0001\u0000\u0000\u0000\u024f\u0250"+ + "\u0001\u0000\u0000\u0000\u0250\u0252\u0001\u0000\u0000\u0000\u0251\u024f"+ + "\u0001\u0000\u0000\u0000\u0252\u0253\u0005\\\u0000\u0000\u0253\u026b\u0001"+ + "\u0000\u0000\u0000\u0254\u0255\u0005[\u0000\u0000\u0255\u025a\u0003r9"+ + "\u0000\u0256\u0257\u0005:\u0000\u0000\u0257\u0259\u0003r9\u0000\u0258"+ + "\u0256\u0001\u0000\u0000\u0000\u0259\u025c\u0001\u0000\u0000\u0000\u025a"+ + "\u0258\u0001\u0000\u0000\u0000\u025a\u025b\u0001\u0000\u0000\u0000\u025b"+ + "\u025d\u0001\u0000\u0000\u0000\u025c\u025a\u0001\u0000\u0000\u0000\u025d"+ + "\u025e\u0005\\\u0000\u0000\u025e\u026b\u0001\u0000\u0000\u0000\u025f\u0260"+ + "\u0005[\u0000\u0000\u0260\u0265\u0003z=\u0000\u0261\u0262\u0005:\u0000"+ + "\u0000\u0262\u0264\u0003z=\u0000\u0263\u0261\u0001\u0000\u0000\u0000\u0264"+ + "\u0267\u0001\u0000\u0000\u0000\u0265\u0263\u0001\u0000\u0000\u0000\u0265"+ + "\u0266\u0001\u0000\u0000\u0000\u0266\u0268\u0001\u0000\u0000\u0000\u0267"+ + "\u0265\u0001\u0000\u0000\u0000\u0268\u0269\u0005\\\u0000\u0000\u0269\u026b"+ + "\u0001\u0000\u0000\u0000\u026a\u0240\u0001\u0000\u0000\u0000\u026a\u0241"+ + "\u0001\u0000\u0000\u0000\u026a\u0244\u0001\u0000\u0000\u0000\u026a\u0245"+ + "\u0001\u0000\u0000\u0000\u026a\u0246\u0001\u0000\u0000\u0000\u026a\u0247"+ + "\u0001\u0000\u0000\u0000\u026a\u0248\u0001\u0000\u0000\u0000\u026a\u0249"+ + "\u0001\u0000\u0000\u0000\u026a\u0254\u0001\u0000\u0000\u0000\u026a\u025f"+ + "\u0001\u0000\u0000\u0000\u026bq\u0001\u0000\u0000\u0000\u026c\u026d\u0007"+ + "\u0006\u0000\u0000\u026ds\u0001\u0000\u0000\u0000\u026e\u0271\u0003v;"+ + "\u0000\u026f\u0271\u0003x<\u0000\u0270\u026e\u0001\u0000\u0000\u0000\u0270"+ + "\u026f\u0001\u0000\u0000\u0000\u0271u\u0001\u0000\u0000\u0000\u0272\u0274"+ + "\u0007\u0004\u0000\u0000\u0273\u0272\u0001\u0000\u0000\u0000\u0273\u0274"+ + "\u0001\u0000\u0000\u0000\u0274\u0275\u0001\u0000\u0000\u0000\u0275\u0276"+ + "\u00053\u0000\u0000\u0276w\u0001\u0000\u0000\u0000\u0277\u0279\u0007\u0004"+ + "\u0000\u0000\u0278\u0277\u0001\u0000\u0000\u0000\u0278\u0279\u0001\u0000"+ + "\u0000\u0000\u0279\u027a\u0001\u0000\u0000\u0000\u027a\u027b\u00052\u0000"+ + "\u0000\u027by\u0001\u0000\u0000\u0000\u027c\u027d\u00051\u0000\u0000\u027d"+ + "{\u0001\u0000\u0000\u0000\u027e\u027f\u0007\u0007\u0000\u0000\u027f}\u0001"+ + "\u0000\u0000\u0000\u0280\u0281\u0007\b\u0000\u0000\u0281\u0282\u0005g"+ + "\u0000\u0000\u0282\u0283\u0003\u0080@\u0000\u0283\u0284\u0003\u0082A\u0000"+ + "\u0284\u007f\u0001\u0000\u0000\u0000\u0285\u0286\u0003\u0014\n\u0000\u0286"+ + "\u0081\u0001\u0000\u0000\u0000\u0287\u0288\u0005 \u0000\u0000\u0288\u028d"+ + "\u0003\u0084B\u0000\u0289\u028a\u0005:\u0000\u0000\u028a\u028c\u0003\u0084"+ + "B\u0000\u028b\u0289\u0001\u0000\u0000\u0000\u028c\u028f\u0001\u0000\u0000"+ + "\u0000\u028d\u028b\u0001\u0000\u0000\u0000\u028d\u028e\u0001\u0000\u0000"+ + "\u0000\u028e\u0083\u0001\u0000\u0000\u0000\u028f\u028d\u0001\u0000\u0000"+ + "\u0000\u0290\u0291\u0003b1\u0000\u0291\u0085\u0001\u0000\u0000\u0000?"+ + "\u0091\u009a\u00af\u00be\u00c4\u00ce\u00d2\u00d7\u00e5\u00ee\u00f2\u00f6"+ + "\u00fd\u0101\u0108\u010e\u0115\u011d\u0125\u012c\u0130\u0134\u013f\u0144"+ + "\u0148\u0156\u0161\u016f\u0184\u018c\u018f\u0194\u01a1\u01a7\u01ae\u01b7"+ + "\u01c0\u01c8\u01cd\u01d5\u01d7\u01dc\u01e3\u01e8\u01ed\u01f7\u01fd\u0205"+ + "\u0207\u0212\u0219\u0224\u0229\u022b\u0237\u024f\u025a\u0265\u026a\u0270"+ + "\u0273\u0278\u028d"; public static final ATN _ATN = new ATNDeserializer().deserialize(_serializedATN.toCharArray()); static { diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseListener.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseListener.java index ee2c97e1e3817..069c903f02b74 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseListener.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseListener.java @@ -97,1021 +97,1021 @@ public class EsqlBaseParserBaseListener implements EsqlBaseParserListener { * *

The default implementation does nothing.

*/ - @Override public void enterMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { } + @Override public void enterToDataType(EsqlBaseParser.ToDataTypeContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { } + @Override public void exitToDataType(EsqlBaseParser.ToDataTypeContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { } + @Override public void enterRowCommand(EsqlBaseParser.RowCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { } + @Override public void exitRowCommand(EsqlBaseParser.RowCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { } + @Override public void enterFields(EsqlBaseParser.FieldsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { } + @Override public void exitFields(EsqlBaseParser.FieldsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIsNull(EsqlBaseParser.IsNullContext ctx) { } + @Override public void enterField(EsqlBaseParser.FieldContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIsNull(EsqlBaseParser.IsNullContext ctx) { } + @Override public void exitField(EsqlBaseParser.FieldContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { } + @Override public void enterFromCommand(EsqlBaseParser.FromCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { } + @Override public void exitFromCommand(EsqlBaseParser.FromCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterLogicalIn(EsqlBaseParser.LogicalInContext ctx) { } + @Override public void enterIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitLogicalIn(EsqlBaseParser.LogicalInContext ctx) { } + @Override public void exitIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { } + @Override public void enterClusterString(EsqlBaseParser.ClusterStringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { } + @Override public void exitClusterString(EsqlBaseParser.ClusterStringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { } + @Override public void enterIndexString(EsqlBaseParser.IndexStringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { } + @Override public void exitIndexString(EsqlBaseParser.IndexStringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { } + @Override public void enterMetadata(EsqlBaseParser.MetadataContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { } + @Override public void exitMetadata(EsqlBaseParser.MetadataContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { } + @Override public void enterMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { } + @Override public void exitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterComparison(EsqlBaseParser.ComparisonContext ctx) { } + @Override public void enterEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitComparison(EsqlBaseParser.ComparisonContext ctx) { } + @Override public void exitEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { } + @Override public void enterStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { } + @Override public void exitStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { } + @Override public void enterAggFields(EsqlBaseParser.AggFieldsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { } + @Override public void exitAggFields(EsqlBaseParser.AggFieldsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { } + @Override public void enterAggField(EsqlBaseParser.AggFieldContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { } + @Override public void exitAggField(EsqlBaseParser.AggFieldContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterDereference(EsqlBaseParser.DereferenceContext ctx) { } + @Override public void enterQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitDereference(EsqlBaseParser.DereferenceContext ctx) { } + @Override public void exitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterInlineCast(EsqlBaseParser.InlineCastContext ctx) { } + @Override public void enterQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitInlineCast(EsqlBaseParser.InlineCastContext ctx) { } + @Override public void exitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { } + @Override public void enterQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { } + @Override public void exitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { } + @Override public void enterIdentifier(EsqlBaseParser.IdentifierContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { } + @Override public void exitIdentifier(EsqlBaseParser.IdentifierContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterFunction(EsqlBaseParser.FunctionContext ctx) { } + @Override public void enterIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitFunction(EsqlBaseParser.FunctionContext ctx) { } + @Override public void exitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { } + @Override public void enterInputParam(EsqlBaseParser.InputParamContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { } + @Override public void exitInputParam(EsqlBaseParser.InputParamContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterFunctionName(EsqlBaseParser.FunctionNameContext ctx) { } + @Override public void enterInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitFunctionName(EsqlBaseParser.FunctionNameContext ctx) { } + @Override public void exitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterMapExpression(EsqlBaseParser.MapExpressionContext ctx) { } + @Override public void enterIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMapExpression(EsqlBaseParser.MapExpressionContext ctx) { } + @Override public void exitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { } + @Override public void enterLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { } + @Override public void exitLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterToDataType(EsqlBaseParser.ToDataTypeContext ctx) { } + @Override public void enterSortCommand(EsqlBaseParser.SortCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitToDataType(EsqlBaseParser.ToDataTypeContext ctx) { } + @Override public void exitSortCommand(EsqlBaseParser.SortCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterRowCommand(EsqlBaseParser.RowCommandContext ctx) { } + @Override public void enterOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitRowCommand(EsqlBaseParser.RowCommandContext ctx) { } + @Override public void exitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterFields(EsqlBaseParser.FieldsContext ctx) { } + @Override public void enterKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitFields(EsqlBaseParser.FieldsContext ctx) { } + @Override public void exitKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterField(EsqlBaseParser.FieldContext ctx) { } + @Override public void enterDropCommand(EsqlBaseParser.DropCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitField(EsqlBaseParser.FieldContext ctx) { } + @Override public void exitDropCommand(EsqlBaseParser.DropCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterFromCommand(EsqlBaseParser.FromCommandContext ctx) { } + @Override public void enterRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitFromCommand(EsqlBaseParser.FromCommandContext ctx) { } + @Override public void exitRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { } + @Override public void enterRenameClause(EsqlBaseParser.RenameClauseContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { } + @Override public void exitRenameClause(EsqlBaseParser.RenameClauseContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterClusterString(EsqlBaseParser.ClusterStringContext ctx) { } + @Override public void enterDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitClusterString(EsqlBaseParser.ClusterStringContext ctx) { } + @Override public void exitDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIndexString(EsqlBaseParser.IndexStringContext ctx) { } + @Override public void enterGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIndexString(EsqlBaseParser.IndexStringContext ctx) { } + @Override public void exitGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterMetadata(EsqlBaseParser.MetadataContext ctx) { } + @Override public void enterMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMetadata(EsqlBaseParser.MetadataContext ctx) { } + @Override public void exitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { } + @Override public void enterCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { } + @Override public void exitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { } + @Override public void enterCommandOption(EsqlBaseParser.CommandOptionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { } + @Override public void exitCommandOption(EsqlBaseParser.CommandOptionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { } + @Override public void enterExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { } + @Override public void exitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterAggFields(EsqlBaseParser.AggFieldsContext ctx) { } + @Override public void enterSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitAggFields(EsqlBaseParser.AggFieldsContext ctx) { } + @Override public void exitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterAggField(EsqlBaseParser.AggFieldContext ctx) { } + @Override public void enterShowInfo(EsqlBaseParser.ShowInfoContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitAggField(EsqlBaseParser.AggFieldContext ctx) { } + @Override public void exitShowInfo(EsqlBaseParser.ShowInfoContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { } + @Override public void enterEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { } + @Override public void exitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { } + @Override public void enterEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { } + @Override public void exitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { } + @Override public void enterLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { } + @Override public void exitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIdentifier(EsqlBaseParser.IdentifierContext ctx) { } + @Override public void enterInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIdentifier(EsqlBaseParser.IdentifierContext ctx) { } + @Override public void exitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { } + @Override public void enterChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { } + @Override public void exitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { } + @Override public void enterMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { } + @Override public void exitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { } + @Override public void enterLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { } + @Override public void exitLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { } + @Override public void enterBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { } + @Override public void exitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { } + @Override public void enterIsNull(EsqlBaseParser.IsNullContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { } + @Override public void exitIsNull(EsqlBaseParser.IsNullContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { } + @Override public void enterRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { } + @Override public void exitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterInputParameter(EsqlBaseParser.InputParameterContext ctx) { } + @Override public void enterLogicalIn(EsqlBaseParser.LogicalInContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitInputParameter(EsqlBaseParser.InputParameterContext ctx) { } + @Override public void exitLogicalIn(EsqlBaseParser.LogicalInContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { } + @Override public void enterLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { } + @Override public void exitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { } + @Override public void enterRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { } + @Override public void exitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { } + @Override public void enterMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { } + @Override public void exitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { } + @Override public void enterValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { } + @Override public void exitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterInputParam(EsqlBaseParser.InputParamContext ctx) { } + @Override public void enterComparison(EsqlBaseParser.ComparisonContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitInputParam(EsqlBaseParser.InputParamContext ctx) { } + @Override public void exitComparison(EsqlBaseParser.ComparisonContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { } + @Override public void enterOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { } + @Override public void exitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { } + @Override public void enterArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { } + @Override public void exitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { } + @Override public void enterArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { } + @Override public void exitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterSortCommand(EsqlBaseParser.SortCommandContext ctx) { } + @Override public void enterDereference(EsqlBaseParser.DereferenceContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitSortCommand(EsqlBaseParser.SortCommandContext ctx) { } + @Override public void exitDereference(EsqlBaseParser.DereferenceContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { } + @Override public void enterInlineCast(EsqlBaseParser.InlineCastContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { } + @Override public void exitInlineCast(EsqlBaseParser.InlineCastContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { } + @Override public void enterConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { } + @Override public void exitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterDropCommand(EsqlBaseParser.DropCommandContext ctx) { } + @Override public void enterParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitDropCommand(EsqlBaseParser.DropCommandContext ctx) { } + @Override public void exitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { } + @Override public void enterFunction(EsqlBaseParser.FunctionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { } + @Override public void exitFunction(EsqlBaseParser.FunctionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterRenameClause(EsqlBaseParser.RenameClauseContext ctx) { } + @Override public void enterFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitRenameClause(EsqlBaseParser.RenameClauseContext ctx) { } + @Override public void exitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { } + @Override public void enterFunctionName(EsqlBaseParser.FunctionNameContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { } + @Override public void exitFunctionName(EsqlBaseParser.FunctionNameContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { } + @Override public void enterMapExpression(EsqlBaseParser.MapExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { } + @Override public void exitMapExpression(EsqlBaseParser.MapExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { } + @Override public void enterEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { } + @Override public void exitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { } + @Override public void enterNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { } + @Override public void exitNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterCommandOption(EsqlBaseParser.CommandOptionContext ctx) { } + @Override public void enterQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitCommandOption(EsqlBaseParser.CommandOptionContext ctx) { } + @Override public void exitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { } + @Override public void enterDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { } + @Override public void exitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterNumericValue(EsqlBaseParser.NumericValueContext ctx) { } + @Override public void enterIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitNumericValue(EsqlBaseParser.NumericValueContext ctx) { } + @Override public void exitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { } + @Override public void enterBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { } + @Override public void exitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { } + @Override public void enterInputParameter(EsqlBaseParser.InputParameterContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { } + @Override public void exitInputParameter(EsqlBaseParser.InputParameterContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterString(EsqlBaseParser.StringContext ctx) { } + @Override public void enterStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitString(EsqlBaseParser.StringContext ctx) { } + @Override public void exitStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { } + @Override public void enterNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { } + @Override public void exitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { } + @Override public void enterBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { } + @Override public void exitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { } + @Override public void enterStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { } + @Override public void exitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterShowInfo(EsqlBaseParser.ShowInfoContext ctx) { } + @Override public void enterBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitShowInfo(EsqlBaseParser.ShowInfoContext ctx) { } + @Override public void exitBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { } + @Override public void enterNumericValue(EsqlBaseParser.NumericValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { } + @Override public void exitNumericValue(EsqlBaseParser.NumericValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { } + @Override public void enterDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { } + @Override public void exitDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { } + @Override public void enterIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { } + @Override public void exitIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { } + @Override public void enterString(EsqlBaseParser.StringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { } + @Override public void exitString(EsqlBaseParser.StringContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { } + @Override public void enterComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { } + @Override public void exitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { } + @Override public void enterJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { } + @Override public void exitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { } + @Override public void enterJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { } + @Override public void exitJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { } + @Override public void enterJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { } + @Override public void exitJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void enterChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { } + @Override public void enterJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { } /** * {@inheritDoc} * *

The default implementation does nothing.

*/ - @Override public void exitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { } + @Override public void exitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { } /** * {@inheritDoc} diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseVisitor.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseVisitor.java index c1e3a4b32795a..d0d31ce64bd2f 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseVisitor.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserBaseVisitor.java @@ -68,593 +68,593 @@ public class EsqlBaseParserBaseVisitor extends AbstractParseTreeVisitor im *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitToDataType(EsqlBaseParser.ToDataTypeContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { return visitChildren(ctx); } + @Override public T visitRowCommand(EsqlBaseParser.RowCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { return visitChildren(ctx); } + @Override public T visitFields(EsqlBaseParser.FieldsContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIsNull(EsqlBaseParser.IsNullContext ctx) { return visitChildren(ctx); } + @Override public T visitField(EsqlBaseParser.FieldContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitFromCommand(EsqlBaseParser.FromCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitLogicalIn(EsqlBaseParser.LogicalInContext ctx) { return visitChildren(ctx); } + @Override public T visitIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { return visitChildren(ctx); } + @Override public T visitClusterString(EsqlBaseParser.ClusterStringContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitIndexString(EsqlBaseParser.IndexStringContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitMetadata(EsqlBaseParser.MetadataContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { return visitChildren(ctx); } + @Override public T visitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitComparison(EsqlBaseParser.ComparisonContext ctx) { return visitChildren(ctx); } + @Override public T visitEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { return visitChildren(ctx); } + @Override public T visitStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { return visitChildren(ctx); } + @Override public T visitAggFields(EsqlBaseParser.AggFieldsContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { return visitChildren(ctx); } + @Override public T visitAggField(EsqlBaseParser.AggFieldContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitDereference(EsqlBaseParser.DereferenceContext ctx) { return visitChildren(ctx); } + @Override public T visitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitInlineCast(EsqlBaseParser.InlineCastContext ctx) { return visitChildren(ctx); } + @Override public T visitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { return visitChildren(ctx); } + @Override public T visitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitIdentifier(EsqlBaseParser.IdentifierContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitFunction(EsqlBaseParser.FunctionContext ctx) { return visitChildren(ctx); } + @Override public T visitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitInputParam(EsqlBaseParser.InputParamContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitFunctionName(EsqlBaseParser.FunctionNameContext ctx) { return visitChildren(ctx); } + @Override public T visitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMapExpression(EsqlBaseParser.MapExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitToDataType(EsqlBaseParser.ToDataTypeContext ctx) { return visitChildren(ctx); } + @Override public T visitSortCommand(EsqlBaseParser.SortCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitRowCommand(EsqlBaseParser.RowCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitFields(EsqlBaseParser.FieldsContext ctx) { return visitChildren(ctx); } + @Override public T visitKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitField(EsqlBaseParser.FieldContext ctx) { return visitChildren(ctx); } + @Override public T visitDropCommand(EsqlBaseParser.DropCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitFromCommand(EsqlBaseParser.FromCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIndexPattern(EsqlBaseParser.IndexPatternContext ctx) { return visitChildren(ctx); } + @Override public T visitRenameClause(EsqlBaseParser.RenameClauseContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitClusterString(EsqlBaseParser.ClusterStringContext ctx) { return visitChildren(ctx); } + @Override public T visitDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIndexString(EsqlBaseParser.IndexStringContext ctx) { return visitChildren(ctx); } + @Override public T visitGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMetadata(EsqlBaseParser.MetadataContext ctx) { return visitChildren(ctx); } + @Override public T visitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitEvalCommand(EsqlBaseParser.EvalCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitCommandOption(EsqlBaseParser.CommandOptionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitStatsCommand(EsqlBaseParser.StatsCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitAggFields(EsqlBaseParser.AggFieldsContext ctx) { return visitChildren(ctx); } + @Override public T visitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitAggField(EsqlBaseParser.AggFieldContext ctx) { return visitChildren(ctx); } + @Override public T visitShowInfo(EsqlBaseParser.ShowInfoContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx) { return visitChildren(ctx); } + @Override public T visitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx) { return visitChildren(ctx); } + @Override public T visitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx) { return visitChildren(ctx); } + @Override public T visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIdentifier(EsqlBaseParser.IdentifierContext ctx) { return visitChildren(ctx); } + @Override public T visitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx) { return visitChildren(ctx); } + @Override public T visitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitLogicalNot(EsqlBaseParser.LogicalNotContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitIsNull(EsqlBaseParser.IsNullContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitInputParameter(EsqlBaseParser.InputParameterContext ctx) { return visitChildren(ctx); } + @Override public T visitLogicalIn(EsqlBaseParser.LogicalInContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { return visitChildren(ctx); } + @Override public T visitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitInputParam(EsqlBaseParser.InputParamContext ctx) { return visitChildren(ctx); } + @Override public T visitComparison(EsqlBaseParser.ComparisonContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx) { return visitChildren(ctx); } + @Override public T visitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx) { return visitChildren(ctx); } + @Override public T visitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitLimitCommand(EsqlBaseParser.LimitCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitSortCommand(EsqlBaseParser.SortCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitDereference(EsqlBaseParser.DereferenceContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitInlineCast(EsqlBaseParser.InlineCastContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitKeepCommand(EsqlBaseParser.KeepCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitDropCommand(EsqlBaseParser.DropCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitRenameCommand(EsqlBaseParser.RenameCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitFunction(EsqlBaseParser.FunctionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitRenameClause(EsqlBaseParser.RenameClauseContext ctx) { return visitChildren(ctx); } + @Override public T visitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitDissectCommand(EsqlBaseParser.DissectCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitFunctionName(EsqlBaseParser.FunctionNameContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitGrokCommand(EsqlBaseParser.GrokCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitMapExpression(EsqlBaseParser.MapExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx) { return visitChildren(ctx); } + @Override public T visitNullLiteral(EsqlBaseParser.NullLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitCommandOption(EsqlBaseParser.CommandOptionContext ctx) { return visitChildren(ctx); } + @Override public T visitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { return visitChildren(ctx); } + @Override public T visitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitNumericValue(EsqlBaseParser.NumericValueContext ctx) { return visitChildren(ctx); } + @Override public T visitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { return visitChildren(ctx); } + @Override public T visitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { return visitChildren(ctx); } + @Override public T visitInputParameter(EsqlBaseParser.InputParameterContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitString(EsqlBaseParser.StringContext ctx) { return visitChildren(ctx); } + @Override public T visitStringLiteral(EsqlBaseParser.StringLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { return visitChildren(ctx); } + @Override public T visitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx) { return visitChildren(ctx); } + @Override public T visitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitShowInfo(EsqlBaseParser.ShowInfoContext ctx) { return visitChildren(ctx); } + @Override public T visitBooleanValue(EsqlBaseParser.BooleanValueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitNumericValue(EsqlBaseParser.NumericValueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx) { return visitChildren(ctx); } + @Override public T visitDecimalValue(EsqlBaseParser.DecimalValueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitIntegerValue(EsqlBaseParser.IntegerValueContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitString(EsqlBaseParser.StringContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { return visitChildren(ctx); } + @Override public T visitJoinCommand(EsqlBaseParser.JoinCommandContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { return visitChildren(ctx); } + @Override public T visitJoinTarget(EsqlBaseParser.JoinTargetContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { return visitChildren(ctx); } + @Override public T visitJoinCondition(EsqlBaseParser.JoinConditionContext ctx) { return visitChildren(ctx); } /** * {@inheritDoc} * *

The default implementation returns the result of calling * {@link #visitChildren} on {@code ctx}.

*/ - @Override public T visitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx) { return visitChildren(ctx); } + @Override public T visitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx) { return visitChildren(ctx); } } diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserListener.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserListener.java index c4f72ae1444dd..9f5a70f9e8c1f 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserListener.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserListener.java @@ -79,6 +79,434 @@ public interface EsqlBaseParserListener extends ParseTreeListener { * @param ctx the parse tree */ void exitWhereCommand(EsqlBaseParser.WhereCommandContext ctx); + /** + * Enter a parse tree produced by the {@code toDataType} + * labeled alternative in {@link EsqlBaseParser#dataType}. + * @param ctx the parse tree + */ + void enterToDataType(EsqlBaseParser.ToDataTypeContext ctx); + /** + * Exit a parse tree produced by the {@code toDataType} + * labeled alternative in {@link EsqlBaseParser#dataType}. + * @param ctx the parse tree + */ + void exitToDataType(EsqlBaseParser.ToDataTypeContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#rowCommand}. + * @param ctx the parse tree + */ + void enterRowCommand(EsqlBaseParser.RowCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#rowCommand}. + * @param ctx the parse tree + */ + void exitRowCommand(EsqlBaseParser.RowCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#fields}. + * @param ctx the parse tree + */ + void enterFields(EsqlBaseParser.FieldsContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#fields}. + * @param ctx the parse tree + */ + void exitFields(EsqlBaseParser.FieldsContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#field}. + * @param ctx the parse tree + */ + void enterField(EsqlBaseParser.FieldContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#field}. + * @param ctx the parse tree + */ + void exitField(EsqlBaseParser.FieldContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#fromCommand}. + * @param ctx the parse tree + */ + void enterFromCommand(EsqlBaseParser.FromCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#fromCommand}. + * @param ctx the parse tree + */ + void exitFromCommand(EsqlBaseParser.FromCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#indexPattern}. + * @param ctx the parse tree + */ + void enterIndexPattern(EsqlBaseParser.IndexPatternContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#indexPattern}. + * @param ctx the parse tree + */ + void exitIndexPattern(EsqlBaseParser.IndexPatternContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#clusterString}. + * @param ctx the parse tree + */ + void enterClusterString(EsqlBaseParser.ClusterStringContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#clusterString}. + * @param ctx the parse tree + */ + void exitClusterString(EsqlBaseParser.ClusterStringContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#indexString}. + * @param ctx the parse tree + */ + void enterIndexString(EsqlBaseParser.IndexStringContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#indexString}. + * @param ctx the parse tree + */ + void exitIndexString(EsqlBaseParser.IndexStringContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#metadata}. + * @param ctx the parse tree + */ + void enterMetadata(EsqlBaseParser.MetadataContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#metadata}. + * @param ctx the parse tree + */ + void exitMetadata(EsqlBaseParser.MetadataContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#metricsCommand}. + * @param ctx the parse tree + */ + void enterMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#metricsCommand}. + * @param ctx the parse tree + */ + void exitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#evalCommand}. + * @param ctx the parse tree + */ + void enterEvalCommand(EsqlBaseParser.EvalCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#evalCommand}. + * @param ctx the parse tree + */ + void exitEvalCommand(EsqlBaseParser.EvalCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#statsCommand}. + * @param ctx the parse tree + */ + void enterStatsCommand(EsqlBaseParser.StatsCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#statsCommand}. + * @param ctx the parse tree + */ + void exitStatsCommand(EsqlBaseParser.StatsCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#aggFields}. + * @param ctx the parse tree + */ + void enterAggFields(EsqlBaseParser.AggFieldsContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#aggFields}. + * @param ctx the parse tree + */ + void exitAggFields(EsqlBaseParser.AggFieldsContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#aggField}. + * @param ctx the parse tree + */ + void enterAggField(EsqlBaseParser.AggFieldContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#aggField}. + * @param ctx the parse tree + */ + void exitAggField(EsqlBaseParser.AggFieldContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedName}. + * @param ctx the parse tree + */ + void enterQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedName}. + * @param ctx the parse tree + */ + void exitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. + * @param ctx the parse tree + */ + void enterQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. + * @param ctx the parse tree + */ + void exitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. + * @param ctx the parse tree + */ + void enterQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. + * @param ctx the parse tree + */ + void exitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#identifier}. + * @param ctx the parse tree + */ + void enterIdentifier(EsqlBaseParser.IdentifierContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#identifier}. + * @param ctx the parse tree + */ + void exitIdentifier(EsqlBaseParser.IdentifierContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#identifierPattern}. + * @param ctx the parse tree + */ + void enterIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#identifierPattern}. + * @param ctx the parse tree + */ + void exitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); + /** + * Enter a parse tree produced by the {@code inputParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. + * @param ctx the parse tree + */ + void enterInputParam(EsqlBaseParser.InputParamContext ctx); + /** + * Exit a parse tree produced by the {@code inputParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. + * @param ctx the parse tree + */ + void exitInputParam(EsqlBaseParser.InputParamContext ctx); + /** + * Enter a parse tree produced by the {@code inputNamedOrPositionalParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. + * @param ctx the parse tree + */ + void enterInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); + /** + * Exit a parse tree produced by the {@code inputNamedOrPositionalParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. + * @param ctx the parse tree + */ + void exitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. + * @param ctx the parse tree + */ + void enterIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. + * @param ctx the parse tree + */ + void exitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#limitCommand}. + * @param ctx the parse tree + */ + void enterLimitCommand(EsqlBaseParser.LimitCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#limitCommand}. + * @param ctx the parse tree + */ + void exitLimitCommand(EsqlBaseParser.LimitCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#sortCommand}. + * @param ctx the parse tree + */ + void enterSortCommand(EsqlBaseParser.SortCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#sortCommand}. + * @param ctx the parse tree + */ + void exitSortCommand(EsqlBaseParser.SortCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#orderExpression}. + * @param ctx the parse tree + */ + void enterOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#orderExpression}. + * @param ctx the parse tree + */ + void exitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#keepCommand}. + * @param ctx the parse tree + */ + void enterKeepCommand(EsqlBaseParser.KeepCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#keepCommand}. + * @param ctx the parse tree + */ + void exitKeepCommand(EsqlBaseParser.KeepCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#dropCommand}. + * @param ctx the parse tree + */ + void enterDropCommand(EsqlBaseParser.DropCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#dropCommand}. + * @param ctx the parse tree + */ + void exitDropCommand(EsqlBaseParser.DropCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#renameCommand}. + * @param ctx the parse tree + */ + void enterRenameCommand(EsqlBaseParser.RenameCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#renameCommand}. + * @param ctx the parse tree + */ + void exitRenameCommand(EsqlBaseParser.RenameCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#renameClause}. + * @param ctx the parse tree + */ + void enterRenameClause(EsqlBaseParser.RenameClauseContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#renameClause}. + * @param ctx the parse tree + */ + void exitRenameClause(EsqlBaseParser.RenameClauseContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#dissectCommand}. + * @param ctx the parse tree + */ + void enterDissectCommand(EsqlBaseParser.DissectCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#dissectCommand}. + * @param ctx the parse tree + */ + void exitDissectCommand(EsqlBaseParser.DissectCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#grokCommand}. + * @param ctx the parse tree + */ + void enterGrokCommand(EsqlBaseParser.GrokCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#grokCommand}. + * @param ctx the parse tree + */ + void exitGrokCommand(EsqlBaseParser.GrokCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. + * @param ctx the parse tree + */ + void enterMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. + * @param ctx the parse tree + */ + void exitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#commandOptions}. + * @param ctx the parse tree + */ + void enterCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#commandOptions}. + * @param ctx the parse tree + */ + void exitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#commandOption}. + * @param ctx the parse tree + */ + void enterCommandOption(EsqlBaseParser.CommandOptionContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#commandOption}. + * @param ctx the parse tree + */ + void exitCommandOption(EsqlBaseParser.CommandOptionContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#explainCommand}. + * @param ctx the parse tree + */ + void enterExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#explainCommand}. + * @param ctx the parse tree + */ + void exitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. + * @param ctx the parse tree + */ + void enterSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. + * @param ctx the parse tree + */ + void exitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); + /** + * Enter a parse tree produced by the {@code showInfo} + * labeled alternative in {@link EsqlBaseParser#showCommand}. + * @param ctx the parse tree + */ + void enterShowInfo(EsqlBaseParser.ShowInfoContext ctx); + /** + * Exit a parse tree produced by the {@code showInfo} + * labeled alternative in {@link EsqlBaseParser#showCommand}. + * @param ctx the parse tree + */ + void exitShowInfo(EsqlBaseParser.ShowInfoContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#enrichCommand}. + * @param ctx the parse tree + */ + void enterEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#enrichCommand}. + * @param ctx the parse tree + */ + void exitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. + * @param ctx the parse tree + */ + void enterEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. + * @param ctx the parse tree + */ + void exitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#lookupCommand}. + * @param ctx the parse tree + */ + void enterLookupCommand(EsqlBaseParser.LookupCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#lookupCommand}. + * @param ctx the parse tree + */ + void exitLookupCommand(EsqlBaseParser.LookupCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. + * @param ctx the parse tree + */ + void enterInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. + * @param ctx the parse tree + */ + void exitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); + /** + * Enter a parse tree produced by {@link EsqlBaseParser#changePointCommand}. + * @param ctx the parse tree + */ + void enterChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); + /** + * Exit a parse tree produced by {@link EsqlBaseParser#changePointCommand}. + * @param ctx the parse tree + */ + void exitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); /** * Enter a parse tree produced by the {@code matchExpression} * labeled alternative in {@link EsqlBaseParser#booleanExpression}. @@ -319,222 +747,30 @@ public interface EsqlBaseParserListener extends ParseTreeListener { */ void enterFunctionName(EsqlBaseParser.FunctionNameContext ctx); /** - * Exit a parse tree produced by {@link EsqlBaseParser#functionName}. - * @param ctx the parse tree - */ - void exitFunctionName(EsqlBaseParser.FunctionNameContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#mapExpression}. - * @param ctx the parse tree - */ - void enterMapExpression(EsqlBaseParser.MapExpressionContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#mapExpression}. - * @param ctx the parse tree - */ - void exitMapExpression(EsqlBaseParser.MapExpressionContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#entryExpression}. - * @param ctx the parse tree - */ - void enterEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#entryExpression}. - * @param ctx the parse tree - */ - void exitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); - /** - * Enter a parse tree produced by the {@code toDataType} - * labeled alternative in {@link EsqlBaseParser#dataType}. - * @param ctx the parse tree - */ - void enterToDataType(EsqlBaseParser.ToDataTypeContext ctx); - /** - * Exit a parse tree produced by the {@code toDataType} - * labeled alternative in {@link EsqlBaseParser#dataType}. - * @param ctx the parse tree - */ - void exitToDataType(EsqlBaseParser.ToDataTypeContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#rowCommand}. - * @param ctx the parse tree - */ - void enterRowCommand(EsqlBaseParser.RowCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#rowCommand}. - * @param ctx the parse tree - */ - void exitRowCommand(EsqlBaseParser.RowCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#fields}. - * @param ctx the parse tree - */ - void enterFields(EsqlBaseParser.FieldsContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#fields}. - * @param ctx the parse tree - */ - void exitFields(EsqlBaseParser.FieldsContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#field}. - * @param ctx the parse tree - */ - void enterField(EsqlBaseParser.FieldContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#field}. - * @param ctx the parse tree - */ - void exitField(EsqlBaseParser.FieldContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#fromCommand}. - * @param ctx the parse tree - */ - void enterFromCommand(EsqlBaseParser.FromCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#fromCommand}. - * @param ctx the parse tree - */ - void exitFromCommand(EsqlBaseParser.FromCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#indexPattern}. - * @param ctx the parse tree - */ - void enterIndexPattern(EsqlBaseParser.IndexPatternContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#indexPattern}. - * @param ctx the parse tree - */ - void exitIndexPattern(EsqlBaseParser.IndexPatternContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#clusterString}. - * @param ctx the parse tree - */ - void enterClusterString(EsqlBaseParser.ClusterStringContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#clusterString}. - * @param ctx the parse tree - */ - void exitClusterString(EsqlBaseParser.ClusterStringContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#indexString}. - * @param ctx the parse tree - */ - void enterIndexString(EsqlBaseParser.IndexStringContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#indexString}. - * @param ctx the parse tree - */ - void exitIndexString(EsqlBaseParser.IndexStringContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#metadata}. - * @param ctx the parse tree - */ - void enterMetadata(EsqlBaseParser.MetadataContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#metadata}. - * @param ctx the parse tree - */ - void exitMetadata(EsqlBaseParser.MetadataContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#metricsCommand}. - * @param ctx the parse tree - */ - void enterMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#metricsCommand}. - * @param ctx the parse tree - */ - void exitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#evalCommand}. - * @param ctx the parse tree - */ - void enterEvalCommand(EsqlBaseParser.EvalCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#evalCommand}. - * @param ctx the parse tree - */ - void exitEvalCommand(EsqlBaseParser.EvalCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#statsCommand}. - * @param ctx the parse tree - */ - void enterStatsCommand(EsqlBaseParser.StatsCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#statsCommand}. - * @param ctx the parse tree - */ - void exitStatsCommand(EsqlBaseParser.StatsCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#aggFields}. - * @param ctx the parse tree - */ - void enterAggFields(EsqlBaseParser.AggFieldsContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#aggFields}. - * @param ctx the parse tree - */ - void exitAggFields(EsqlBaseParser.AggFieldsContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#aggField}. - * @param ctx the parse tree - */ - void enterAggField(EsqlBaseParser.AggFieldContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#aggField}. - * @param ctx the parse tree - */ - void exitAggField(EsqlBaseParser.AggFieldContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedName}. - * @param ctx the parse tree - */ - void enterQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedName}. - * @param ctx the parse tree - */ - void exitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. - * @param ctx the parse tree - */ - void enterQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. - * @param ctx the parse tree - */ - void exitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. - * @param ctx the parse tree - */ - void enterQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. + * Exit a parse tree produced by {@link EsqlBaseParser#functionName}. * @param ctx the parse tree */ - void exitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); + void exitFunctionName(EsqlBaseParser.FunctionNameContext ctx); /** - * Enter a parse tree produced by {@link EsqlBaseParser#identifier}. + * Enter a parse tree produced by {@link EsqlBaseParser#mapExpression}. * @param ctx the parse tree */ - void enterIdentifier(EsqlBaseParser.IdentifierContext ctx); + void enterMapExpression(EsqlBaseParser.MapExpressionContext ctx); /** - * Exit a parse tree produced by {@link EsqlBaseParser#identifier}. + * Exit a parse tree produced by {@link EsqlBaseParser#mapExpression}. * @param ctx the parse tree */ - void exitIdentifier(EsqlBaseParser.IdentifierContext ctx); + void exitMapExpression(EsqlBaseParser.MapExpressionContext ctx); /** - * Enter a parse tree produced by {@link EsqlBaseParser#identifierPattern}. + * Enter a parse tree produced by {@link EsqlBaseParser#entryExpression}. * @param ctx the parse tree */ - void enterIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); + void enterEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); /** - * Exit a parse tree produced by {@link EsqlBaseParser#identifierPattern}. + * Exit a parse tree produced by {@link EsqlBaseParser#entryExpression}. * @param ctx the parse tree */ - void exitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); + void exitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); /** * Enter a parse tree produced by the {@code nullLiteral} * labeled alternative in {@link EsqlBaseParser#constant}. @@ -655,160 +891,6 @@ public interface EsqlBaseParserListener extends ParseTreeListener { * @param ctx the parse tree */ void exitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx); - /** - * Enter a parse tree produced by the {@code inputParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. - * @param ctx the parse tree - */ - void enterInputParam(EsqlBaseParser.InputParamContext ctx); - /** - * Exit a parse tree produced by the {@code inputParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. - * @param ctx the parse tree - */ - void exitInputParam(EsqlBaseParser.InputParamContext ctx); - /** - * Enter a parse tree produced by the {@code inputNamedOrPositionalParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. - * @param ctx the parse tree - */ - void enterInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); - /** - * Exit a parse tree produced by the {@code inputNamedOrPositionalParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. - * @param ctx the parse tree - */ - void exitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. - * @param ctx the parse tree - */ - void enterIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. - * @param ctx the parse tree - */ - void exitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#limitCommand}. - * @param ctx the parse tree - */ - void enterLimitCommand(EsqlBaseParser.LimitCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#limitCommand}. - * @param ctx the parse tree - */ - void exitLimitCommand(EsqlBaseParser.LimitCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#sortCommand}. - * @param ctx the parse tree - */ - void enterSortCommand(EsqlBaseParser.SortCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#sortCommand}. - * @param ctx the parse tree - */ - void exitSortCommand(EsqlBaseParser.SortCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#orderExpression}. - * @param ctx the parse tree - */ - void enterOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#orderExpression}. - * @param ctx the parse tree - */ - void exitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#keepCommand}. - * @param ctx the parse tree - */ - void enterKeepCommand(EsqlBaseParser.KeepCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#keepCommand}. - * @param ctx the parse tree - */ - void exitKeepCommand(EsqlBaseParser.KeepCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#dropCommand}. - * @param ctx the parse tree - */ - void enterDropCommand(EsqlBaseParser.DropCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#dropCommand}. - * @param ctx the parse tree - */ - void exitDropCommand(EsqlBaseParser.DropCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#renameCommand}. - * @param ctx the parse tree - */ - void enterRenameCommand(EsqlBaseParser.RenameCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#renameCommand}. - * @param ctx the parse tree - */ - void exitRenameCommand(EsqlBaseParser.RenameCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#renameClause}. - * @param ctx the parse tree - */ - void enterRenameClause(EsqlBaseParser.RenameClauseContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#renameClause}. - * @param ctx the parse tree - */ - void exitRenameClause(EsqlBaseParser.RenameClauseContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#dissectCommand}. - * @param ctx the parse tree - */ - void enterDissectCommand(EsqlBaseParser.DissectCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#dissectCommand}. - * @param ctx the parse tree - */ - void exitDissectCommand(EsqlBaseParser.DissectCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#grokCommand}. - * @param ctx the parse tree - */ - void enterGrokCommand(EsqlBaseParser.GrokCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#grokCommand}. - * @param ctx the parse tree - */ - void exitGrokCommand(EsqlBaseParser.GrokCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. - * @param ctx the parse tree - */ - void enterMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. - * @param ctx the parse tree - */ - void exitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#commandOptions}. - * @param ctx the parse tree - */ - void enterCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#commandOptions}. - * @param ctx the parse tree - */ - void exitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#commandOption}. - * @param ctx the parse tree - */ - void enterCommandOption(EsqlBaseParser.CommandOptionContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#commandOption}. - * @param ctx the parse tree - */ - void exitCommandOption(EsqlBaseParser.CommandOptionContext ctx); /** * Enter a parse tree produced by {@link EsqlBaseParser#booleanValue}. * @param ctx the parse tree @@ -869,78 +951,6 @@ public interface EsqlBaseParserListener extends ParseTreeListener { * @param ctx the parse tree */ void exitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#explainCommand}. - * @param ctx the parse tree - */ - void enterExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#explainCommand}. - * @param ctx the parse tree - */ - void exitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. - * @param ctx the parse tree - */ - void enterSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. - * @param ctx the parse tree - */ - void exitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); - /** - * Enter a parse tree produced by the {@code showInfo} - * labeled alternative in {@link EsqlBaseParser#showCommand}. - * @param ctx the parse tree - */ - void enterShowInfo(EsqlBaseParser.ShowInfoContext ctx); - /** - * Exit a parse tree produced by the {@code showInfo} - * labeled alternative in {@link EsqlBaseParser#showCommand}. - * @param ctx the parse tree - */ - void exitShowInfo(EsqlBaseParser.ShowInfoContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#enrichCommand}. - * @param ctx the parse tree - */ - void enterEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#enrichCommand}. - * @param ctx the parse tree - */ - void exitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. - * @param ctx the parse tree - */ - void enterEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. - * @param ctx the parse tree - */ - void exitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#lookupCommand}. - * @param ctx the parse tree - */ - void enterLookupCommand(EsqlBaseParser.LookupCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#lookupCommand}. - * @param ctx the parse tree - */ - void exitLookupCommand(EsqlBaseParser.LookupCommandContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. - * @param ctx the parse tree - */ - void enterInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. - * @param ctx the parse tree - */ - void exitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); /** * Enter a parse tree produced by {@link EsqlBaseParser#joinCommand}. * @param ctx the parse tree @@ -981,14 +991,4 @@ public interface EsqlBaseParserListener extends ParseTreeListener { * @param ctx the parse tree */ void exitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx); - /** - * Enter a parse tree produced by {@link EsqlBaseParser#changePointCommand}. - * @param ctx the parse tree - */ - void enterChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); - /** - * Exit a parse tree produced by {@link EsqlBaseParser#changePointCommand}. - * @param ctx the parse tree - */ - void exitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); } diff --git a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserVisitor.java b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserVisitor.java index 4dc2670662f57..18a178bf42dbe 100644 --- a/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserVisitor.java +++ b/x-pack/plugin/esql/src/main/java/org/elasticsearch/xpack/esql/parser/EsqlBaseParserVisitor.java @@ -57,516 +57,522 @@ public interface EsqlBaseParserVisitor extends ParseTreeVisitor { */ T visitWhereCommand(EsqlBaseParser.WhereCommandContext ctx); /** - * Visit a parse tree produced by the {@code matchExpression} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by the {@code toDataType} + * labeled alternative in {@link EsqlBaseParser#dataType}. * @param ctx the parse tree * @return the visitor result */ - T visitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx); + T visitToDataType(EsqlBaseParser.ToDataTypeContext ctx); /** - * Visit a parse tree produced by the {@code logicalNot} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#rowCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitLogicalNot(EsqlBaseParser.LogicalNotContext ctx); + T visitRowCommand(EsqlBaseParser.RowCommandContext ctx); /** - * Visit a parse tree produced by the {@code booleanDefault} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#fields}. * @param ctx the parse tree * @return the visitor result */ - T visitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx); + T visitFields(EsqlBaseParser.FieldsContext ctx); /** - * Visit a parse tree produced by the {@code isNull} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#field}. * @param ctx the parse tree * @return the visitor result */ - T visitIsNull(EsqlBaseParser.IsNullContext ctx); + T visitField(EsqlBaseParser.FieldContext ctx); /** - * Visit a parse tree produced by the {@code regexExpression} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#fromCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx); + T visitFromCommand(EsqlBaseParser.FromCommandContext ctx); /** - * Visit a parse tree produced by the {@code logicalIn} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#indexPattern}. * @param ctx the parse tree * @return the visitor result */ - T visitLogicalIn(EsqlBaseParser.LogicalInContext ctx); + T visitIndexPattern(EsqlBaseParser.IndexPatternContext ctx); /** - * Visit a parse tree produced by the {@code logicalBinary} - * labeled alternative in {@link EsqlBaseParser#booleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#clusterString}. * @param ctx the parse tree * @return the visitor result */ - T visitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx); + T visitClusterString(EsqlBaseParser.ClusterStringContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#regexBooleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#indexString}. * @param ctx the parse tree * @return the visitor result */ - T visitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx); + T visitIndexString(EsqlBaseParser.IndexStringContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#matchBooleanExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#metadata}. * @param ctx the parse tree * @return the visitor result */ - T visitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx); + T visitMetadata(EsqlBaseParser.MetadataContext ctx); /** - * Visit a parse tree produced by the {@code valueExpressionDefault} - * labeled alternative in {@link EsqlBaseParser#valueExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#metricsCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx); + T visitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); /** - * Visit a parse tree produced by the {@code comparison} - * labeled alternative in {@link EsqlBaseParser#valueExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#evalCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitComparison(EsqlBaseParser.ComparisonContext ctx); + T visitEvalCommand(EsqlBaseParser.EvalCommandContext ctx); /** - * Visit a parse tree produced by the {@code operatorExpressionDefault} - * labeled alternative in {@link EsqlBaseParser#operatorExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#statsCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx); + T visitStatsCommand(EsqlBaseParser.StatsCommandContext ctx); /** - * Visit a parse tree produced by the {@code arithmeticBinary} - * labeled alternative in {@link EsqlBaseParser#operatorExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#aggFields}. * @param ctx the parse tree * @return the visitor result */ - T visitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx); + T visitAggFields(EsqlBaseParser.AggFieldsContext ctx); /** - * Visit a parse tree produced by the {@code arithmeticUnary} - * labeled alternative in {@link EsqlBaseParser#operatorExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#aggField}. * @param ctx the parse tree * @return the visitor result */ - T visitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx); + T visitAggField(EsqlBaseParser.AggFieldContext ctx); /** - * Visit a parse tree produced by the {@code dereference} - * labeled alternative in {@link EsqlBaseParser#primaryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedName}. * @param ctx the parse tree * @return the visitor result */ - T visitDereference(EsqlBaseParser.DereferenceContext ctx); + T visitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); /** - * Visit a parse tree produced by the {@code inlineCast} - * labeled alternative in {@link EsqlBaseParser#primaryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. * @param ctx the parse tree * @return the visitor result */ - T visitInlineCast(EsqlBaseParser.InlineCastContext ctx); + T visitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); /** - * Visit a parse tree produced by the {@code constantDefault} - * labeled alternative in {@link EsqlBaseParser#primaryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. * @param ctx the parse tree * @return the visitor result */ - T visitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx); + T visitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); /** - * Visit a parse tree produced by the {@code parenthesizedExpression} - * labeled alternative in {@link EsqlBaseParser#primaryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#identifier}. * @param ctx the parse tree * @return the visitor result */ - T visitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx); + T visitIdentifier(EsqlBaseParser.IdentifierContext ctx); /** - * Visit a parse tree produced by the {@code function} - * labeled alternative in {@link EsqlBaseParser#primaryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#identifierPattern}. * @param ctx the parse tree * @return the visitor result */ - T visitFunction(EsqlBaseParser.FunctionContext ctx); + T visitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#functionExpression}. + * Visit a parse tree produced by the {@code inputParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. * @param ctx the parse tree * @return the visitor result */ - T visitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx); + T visitInputParam(EsqlBaseParser.InputParamContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#functionName}. + * Visit a parse tree produced by the {@code inputNamedOrPositionalParam} + * labeled alternative in {@link EsqlBaseParser#parameter}. * @param ctx the parse tree * @return the visitor result */ - T visitFunctionName(EsqlBaseParser.FunctionNameContext ctx); + T visitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#mapExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. * @param ctx the parse tree * @return the visitor result */ - T visitMapExpression(EsqlBaseParser.MapExpressionContext ctx); + T visitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#entryExpression}. + * Visit a parse tree produced by {@link EsqlBaseParser#limitCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); + T visitLimitCommand(EsqlBaseParser.LimitCommandContext ctx); /** - * Visit a parse tree produced by the {@code toDataType} - * labeled alternative in {@link EsqlBaseParser#dataType}. + * Visit a parse tree produced by {@link EsqlBaseParser#sortCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitToDataType(EsqlBaseParser.ToDataTypeContext ctx); + T visitSortCommand(EsqlBaseParser.SortCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#rowCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#orderExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitRowCommand(EsqlBaseParser.RowCommandContext ctx); + T visitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#fields}. + * Visit a parse tree produced by {@link EsqlBaseParser#keepCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitFields(EsqlBaseParser.FieldsContext ctx); + T visitKeepCommand(EsqlBaseParser.KeepCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#field}. + * Visit a parse tree produced by {@link EsqlBaseParser#dropCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitField(EsqlBaseParser.FieldContext ctx); + T visitDropCommand(EsqlBaseParser.DropCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#fromCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#renameCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitFromCommand(EsqlBaseParser.FromCommandContext ctx); + T visitRenameCommand(EsqlBaseParser.RenameCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#indexPattern}. + * Visit a parse tree produced by {@link EsqlBaseParser#renameClause}. * @param ctx the parse tree * @return the visitor result */ - T visitIndexPattern(EsqlBaseParser.IndexPatternContext ctx); + T visitRenameClause(EsqlBaseParser.RenameClauseContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#clusterString}. + * Visit a parse tree produced by {@link EsqlBaseParser#dissectCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitClusterString(EsqlBaseParser.ClusterStringContext ctx); + T visitDissectCommand(EsqlBaseParser.DissectCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#indexString}. + * Visit a parse tree produced by {@link EsqlBaseParser#grokCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitIndexString(EsqlBaseParser.IndexStringContext ctx); + T visitGrokCommand(EsqlBaseParser.GrokCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#metadata}. + * Visit a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitMetadata(EsqlBaseParser.MetadataContext ctx); + T visitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#metricsCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#commandOptions}. * @param ctx the parse tree * @return the visitor result */ - T visitMetricsCommand(EsqlBaseParser.MetricsCommandContext ctx); + T visitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#evalCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#commandOption}. * @param ctx the parse tree * @return the visitor result */ - T visitEvalCommand(EsqlBaseParser.EvalCommandContext ctx); + T visitCommandOption(EsqlBaseParser.CommandOptionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#statsCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#explainCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitStatsCommand(EsqlBaseParser.StatsCommandContext ctx); + T visitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#aggFields}. + * Visit a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitAggFields(EsqlBaseParser.AggFieldsContext ctx); + T visitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#aggField}. + * Visit a parse tree produced by the {@code showInfo} + * labeled alternative in {@link EsqlBaseParser#showCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitAggField(EsqlBaseParser.AggFieldContext ctx); + T visitShowInfo(EsqlBaseParser.ShowInfoContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedName}. + * Visit a parse tree produced by {@link EsqlBaseParser#enrichCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitQualifiedName(EsqlBaseParser.QualifiedNameContext ctx); + T visitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePattern}. + * Visit a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. * @param ctx the parse tree * @return the visitor result */ - T visitQualifiedNamePattern(EsqlBaseParser.QualifiedNamePatternContext ctx); + T visitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#qualifiedNamePatterns}. + * Visit a parse tree produced by {@link EsqlBaseParser#lookupCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitQualifiedNamePatterns(EsqlBaseParser.QualifiedNamePatternsContext ctx); + T visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#identifier}. + * Visit a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitIdentifier(EsqlBaseParser.IdentifierContext ctx); + T visitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#identifierPattern}. + * Visit a parse tree produced by {@link EsqlBaseParser#changePointCommand}. * @param ctx the parse tree * @return the visitor result */ - T visitIdentifierPattern(EsqlBaseParser.IdentifierPatternContext ctx); + T visitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); /** - * Visit a parse tree produced by the {@code nullLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code matchExpression} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitNullLiteral(EsqlBaseParser.NullLiteralContext ctx); + T visitMatchExpression(EsqlBaseParser.MatchExpressionContext ctx); /** - * Visit a parse tree produced by the {@code qualifiedIntegerLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code logicalNot} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx); + T visitLogicalNot(EsqlBaseParser.LogicalNotContext ctx); /** - * Visit a parse tree produced by the {@code decimalLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code booleanDefault} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx); + T visitBooleanDefault(EsqlBaseParser.BooleanDefaultContext ctx); /** - * Visit a parse tree produced by the {@code integerLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code isNull} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx); + T visitIsNull(EsqlBaseParser.IsNullContext ctx); /** - * Visit a parse tree produced by the {@code booleanLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code regexExpression} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx); + T visitRegexExpression(EsqlBaseParser.RegexExpressionContext ctx); /** - * Visit a parse tree produced by the {@code inputParameter} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code logicalIn} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitInputParameter(EsqlBaseParser.InputParameterContext ctx); + T visitLogicalIn(EsqlBaseParser.LogicalInContext ctx); /** - * Visit a parse tree produced by the {@code stringLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code logicalBinary} + * labeled alternative in {@link EsqlBaseParser#booleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitStringLiteral(EsqlBaseParser.StringLiteralContext ctx); + T visitLogicalBinary(EsqlBaseParser.LogicalBinaryContext ctx); /** - * Visit a parse tree produced by the {@code numericArrayLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by {@link EsqlBaseParser#regexBooleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx); + T visitRegexBooleanExpression(EsqlBaseParser.RegexBooleanExpressionContext ctx); /** - * Visit a parse tree produced by the {@code booleanArrayLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by {@link EsqlBaseParser#matchBooleanExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx); + T visitMatchBooleanExpression(EsqlBaseParser.MatchBooleanExpressionContext ctx); /** - * Visit a parse tree produced by the {@code stringArrayLiteral} - * labeled alternative in {@link EsqlBaseParser#constant}. + * Visit a parse tree produced by the {@code valueExpressionDefault} + * labeled alternative in {@link EsqlBaseParser#valueExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx); + T visitValueExpressionDefault(EsqlBaseParser.ValueExpressionDefaultContext ctx); /** - * Visit a parse tree produced by the {@code inputParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. + * Visit a parse tree produced by the {@code comparison} + * labeled alternative in {@link EsqlBaseParser#valueExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitInputParam(EsqlBaseParser.InputParamContext ctx); + T visitComparison(EsqlBaseParser.ComparisonContext ctx); /** - * Visit a parse tree produced by the {@code inputNamedOrPositionalParam} - * labeled alternative in {@link EsqlBaseParser#parameter}. + * Visit a parse tree produced by the {@code operatorExpressionDefault} + * labeled alternative in {@link EsqlBaseParser#operatorExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitInputNamedOrPositionalParam(EsqlBaseParser.InputNamedOrPositionalParamContext ctx); + T visitOperatorExpressionDefault(EsqlBaseParser.OperatorExpressionDefaultContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#identifierOrParameter}. + * Visit a parse tree produced by the {@code arithmeticBinary} + * labeled alternative in {@link EsqlBaseParser#operatorExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitIdentifierOrParameter(EsqlBaseParser.IdentifierOrParameterContext ctx); + T visitArithmeticBinary(EsqlBaseParser.ArithmeticBinaryContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#limitCommand}. + * Visit a parse tree produced by the {@code arithmeticUnary} + * labeled alternative in {@link EsqlBaseParser#operatorExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitLimitCommand(EsqlBaseParser.LimitCommandContext ctx); + T visitArithmeticUnary(EsqlBaseParser.ArithmeticUnaryContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#sortCommand}. + * Visit a parse tree produced by the {@code dereference} + * labeled alternative in {@link EsqlBaseParser#primaryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitSortCommand(EsqlBaseParser.SortCommandContext ctx); + T visitDereference(EsqlBaseParser.DereferenceContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#orderExpression}. + * Visit a parse tree produced by the {@code inlineCast} + * labeled alternative in {@link EsqlBaseParser#primaryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitOrderExpression(EsqlBaseParser.OrderExpressionContext ctx); + T visitInlineCast(EsqlBaseParser.InlineCastContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#keepCommand}. + * Visit a parse tree produced by the {@code constantDefault} + * labeled alternative in {@link EsqlBaseParser#primaryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitKeepCommand(EsqlBaseParser.KeepCommandContext ctx); + T visitConstantDefault(EsqlBaseParser.ConstantDefaultContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#dropCommand}. + * Visit a parse tree produced by the {@code parenthesizedExpression} + * labeled alternative in {@link EsqlBaseParser#primaryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitDropCommand(EsqlBaseParser.DropCommandContext ctx); + T visitParenthesizedExpression(EsqlBaseParser.ParenthesizedExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#renameCommand}. + * Visit a parse tree produced by the {@code function} + * labeled alternative in {@link EsqlBaseParser#primaryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitRenameCommand(EsqlBaseParser.RenameCommandContext ctx); + T visitFunction(EsqlBaseParser.FunctionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#renameClause}. + * Visit a parse tree produced by {@link EsqlBaseParser#functionExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitRenameClause(EsqlBaseParser.RenameClauseContext ctx); + T visitFunctionExpression(EsqlBaseParser.FunctionExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#dissectCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#functionName}. * @param ctx the parse tree * @return the visitor result */ - T visitDissectCommand(EsqlBaseParser.DissectCommandContext ctx); + T visitFunctionName(EsqlBaseParser.FunctionNameContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#grokCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#mapExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitGrokCommand(EsqlBaseParser.GrokCommandContext ctx); + T visitMapExpression(EsqlBaseParser.MapExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#mvExpandCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#entryExpression}. * @param ctx the parse tree * @return the visitor result */ - T visitMvExpandCommand(EsqlBaseParser.MvExpandCommandContext ctx); + T visitEntryExpression(EsqlBaseParser.EntryExpressionContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#commandOptions}. + * Visit a parse tree produced by the {@code nullLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitCommandOptions(EsqlBaseParser.CommandOptionsContext ctx); + T visitNullLiteral(EsqlBaseParser.NullLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#commandOption}. + * Visit a parse tree produced by the {@code qualifiedIntegerLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitCommandOption(EsqlBaseParser.CommandOptionContext ctx); + T visitQualifiedIntegerLiteral(EsqlBaseParser.QualifiedIntegerLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#booleanValue}. + * Visit a parse tree produced by the {@code decimalLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitBooleanValue(EsqlBaseParser.BooleanValueContext ctx); + T visitDecimalLiteral(EsqlBaseParser.DecimalLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#numericValue}. + * Visit a parse tree produced by the {@code integerLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitNumericValue(EsqlBaseParser.NumericValueContext ctx); + T visitIntegerLiteral(EsqlBaseParser.IntegerLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#decimalValue}. + * Visit a parse tree produced by the {@code booleanLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitDecimalValue(EsqlBaseParser.DecimalValueContext ctx); + T visitBooleanLiteral(EsqlBaseParser.BooleanLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#integerValue}. + * Visit a parse tree produced by the {@code inputParameter} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitIntegerValue(EsqlBaseParser.IntegerValueContext ctx); + T visitInputParameter(EsqlBaseParser.InputParameterContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#string}. + * Visit a parse tree produced by the {@code stringLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitString(EsqlBaseParser.StringContext ctx); + T visitStringLiteral(EsqlBaseParser.StringLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#comparisonOperator}. + * Visit a parse tree produced by the {@code numericArrayLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx); + T visitNumericArrayLiteral(EsqlBaseParser.NumericArrayLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#explainCommand}. + * Visit a parse tree produced by the {@code booleanArrayLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitExplainCommand(EsqlBaseParser.ExplainCommandContext ctx); + T visitBooleanArrayLiteral(EsqlBaseParser.BooleanArrayLiteralContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#subqueryExpression}. + * Visit a parse tree produced by the {@code stringArrayLiteral} + * labeled alternative in {@link EsqlBaseParser#constant}. * @param ctx the parse tree * @return the visitor result */ - T visitSubqueryExpression(EsqlBaseParser.SubqueryExpressionContext ctx); + T visitStringArrayLiteral(EsqlBaseParser.StringArrayLiteralContext ctx); /** - * Visit a parse tree produced by the {@code showInfo} - * labeled alternative in {@link EsqlBaseParser#showCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#booleanValue}. * @param ctx the parse tree * @return the visitor result */ - T visitShowInfo(EsqlBaseParser.ShowInfoContext ctx); + T visitBooleanValue(EsqlBaseParser.BooleanValueContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#enrichCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#numericValue}. * @param ctx the parse tree * @return the visitor result */ - T visitEnrichCommand(EsqlBaseParser.EnrichCommandContext ctx); + T visitNumericValue(EsqlBaseParser.NumericValueContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#enrichWithClause}. + * Visit a parse tree produced by {@link EsqlBaseParser#decimalValue}. * @param ctx the parse tree * @return the visitor result */ - T visitEnrichWithClause(EsqlBaseParser.EnrichWithClauseContext ctx); + T visitDecimalValue(EsqlBaseParser.DecimalValueContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#lookupCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#integerValue}. * @param ctx the parse tree * @return the visitor result */ - T visitLookupCommand(EsqlBaseParser.LookupCommandContext ctx); + T visitIntegerValue(EsqlBaseParser.IntegerValueContext ctx); /** - * Visit a parse tree produced by {@link EsqlBaseParser#inlinestatsCommand}. + * Visit a parse tree produced by {@link EsqlBaseParser#string}. * @param ctx the parse tree * @return the visitor result */ - T visitInlinestatsCommand(EsqlBaseParser.InlinestatsCommandContext ctx); + T visitString(EsqlBaseParser.StringContext ctx); + /** + * Visit a parse tree produced by {@link EsqlBaseParser#comparisonOperator}. + * @param ctx the parse tree + * @return the visitor result + */ + T visitComparisonOperator(EsqlBaseParser.ComparisonOperatorContext ctx); /** * Visit a parse tree produced by {@link EsqlBaseParser#joinCommand}. * @param ctx the parse tree @@ -591,10 +597,4 @@ public interface EsqlBaseParserVisitor extends ParseTreeVisitor { * @return the visitor result */ T visitJoinPredicate(EsqlBaseParser.JoinPredicateContext ctx); - /** - * Visit a parse tree produced by {@link EsqlBaseParser#changePointCommand}. - * @param ctx the parse tree - * @return the visitor result - */ - T visitChangePointCommand(EsqlBaseParser.ChangePointCommandContext ctx); }