@hamelin.sh/compiler 0.2.9-prerelease.20251024T161808 → 0.2.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/iife.js +45704 -0
- package/dist/main.d.ts +69 -2850
- package/dist/main.js +25560 -26172
- package/package.json +9 -3
package/dist/main.d.ts
CHANGED
|
@@ -1,15 +1,12 @@
|
|
|
1
|
-
import * as antlr from 'antlr4ng';
|
|
2
|
-
import { AbstractParseTreeVisitor, Token, ParseTreeListener, TerminalNode, ErrorNode, ParserRuleContext } from 'antlr4ng';
|
|
3
|
-
|
|
4
1
|
/* tslint:disable */
|
|
5
2
|
/* eslint-disable */
|
|
6
|
-
type CompileQueryResult = { Ok: QueryTranslation } | { Err: ContextualTranslationErrors };
|
|
7
|
-
|
|
8
3
|
type QueryDatasetsResult = { Ok: string[] } | { Err: ContextualTranslationErrors };
|
|
9
4
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
type CompileQueryResult = { Ok: QueryTranslation } | { Err: ContextualTranslationErrors };
|
|
6
|
+
|
|
7
|
+
interface ContextualCompletion {
|
|
8
|
+
pretty: string;
|
|
9
|
+
completion: Completion;
|
|
13
10
|
}
|
|
14
11
|
|
|
15
12
|
interface ContextualResult {
|
|
@@ -19,13 +16,6 @@ interface ContextualResult {
|
|
|
19
16
|
translation: QueryTranslation | undefined;
|
|
20
17
|
}
|
|
21
18
|
|
|
22
|
-
interface ContextualCompletion {
|
|
23
|
-
pretty: string;
|
|
24
|
-
completion: Completion;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
type CompletionItemKind = "Text" | "Variable" | "Function" | "Command" | "Keyword";
|
|
28
|
-
|
|
29
19
|
interface CompletionItem {
|
|
30
20
|
/**
|
|
31
21
|
* What to show
|
|
@@ -54,44 +44,44 @@ interface CompletionItem {
|
|
|
54
44
|
section: string | undefined;
|
|
55
45
|
}
|
|
56
46
|
|
|
57
|
-
interface Completion {
|
|
58
|
-
at: { start: number; end: number };
|
|
59
|
-
filter: boolean | undefined;
|
|
60
|
-
items: CompletionItem[];
|
|
61
|
-
}
|
|
62
|
-
|
|
63
47
|
interface Translation {
|
|
64
48
|
sql: string;
|
|
65
49
|
columns: Column[];
|
|
66
50
|
}
|
|
67
51
|
|
|
68
|
-
interface DMLTranslation {
|
|
69
|
-
translation: Translation;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
52
|
interface QueryTranslation {
|
|
73
53
|
translation: Translation;
|
|
74
54
|
}
|
|
75
55
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
errors: ContextualTranslationError[];
|
|
56
|
+
interface Completion {
|
|
57
|
+
at: { start: number; end: number };
|
|
58
|
+
filter: boolean | undefined;
|
|
59
|
+
items: CompletionItem[];
|
|
81
60
|
}
|
|
82
61
|
|
|
83
|
-
type
|
|
62
|
+
type CompletionItemKind = "Text" | "Variable" | "Function" | "Command" | "Keyword";
|
|
84
63
|
|
|
85
64
|
interface Context {
|
|
86
65
|
interval: { start: number; end: number };
|
|
87
66
|
message: string;
|
|
88
67
|
}
|
|
89
68
|
|
|
69
|
+
type Stage = "Translation" | "Parsing" | "SemanticAnalysis";
|
|
70
|
+
|
|
71
|
+
type Level = "Error" | "Warning" | "Info";
|
|
72
|
+
|
|
73
|
+
interface ContextualTranslationErrors {
|
|
74
|
+
hamelin: string;
|
|
75
|
+
errors: ContextualTranslationError[];
|
|
76
|
+
}
|
|
77
|
+
|
|
90
78
|
interface ContextualTranslationError {
|
|
91
79
|
error: TranslationError;
|
|
92
80
|
pretty: string;
|
|
93
81
|
}
|
|
94
82
|
|
|
83
|
+
type LanguageArea = "FunctionCall" | "Operator" | "Deref" | "IndexAccess" | "Parsing";
|
|
84
|
+
|
|
95
85
|
interface TranslationError {
|
|
96
86
|
area: LanguageArea | undefined;
|
|
97
87
|
stage: Stage;
|
|
@@ -101,11 +91,12 @@ interface TranslationError {
|
|
|
101
91
|
source_desc: string | undefined;
|
|
102
92
|
}
|
|
103
93
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
94
|
+
interface FunctionDescription {
|
|
95
|
+
name: string;
|
|
96
|
+
parameters: string;
|
|
97
|
+
}
|
|
107
98
|
|
|
108
|
-
type
|
|
99
|
+
type Catalog = Record<string, Column[]>;
|
|
109
100
|
|
|
110
101
|
type HamelinType = "binary" | "boolean" | "interval" | "calendar_interval" | "int" | "double" | "rows" | "string" | "timestamp" | "unknown" | { decimal: { precision: number; scale: number } } | { array: { element_type: HamelinType } } | { map: { key_type: HamelinType; value_type: HamelinType } } | { tuple: { elements: HamelinType[] } } | "variant" | { range: { of: HamelinType } } | { struct: Column[] };
|
|
111
102
|
|
|
@@ -114,8 +105,6 @@ interface Column {
|
|
|
114
105
|
type: HamelinType;
|
|
115
106
|
}
|
|
116
107
|
|
|
117
|
-
type Catalog = Record<string, Column[]>;
|
|
118
|
-
|
|
119
108
|
declare class CatalogProvider {
|
|
120
109
|
private constructor();
|
|
121
110
|
free(): void;
|
|
@@ -125,2836 +114,66 @@ declare class CatalogProvider {
|
|
|
125
114
|
declare class Compiler {
|
|
126
115
|
free(): void;
|
|
127
116
|
[Symbol.dispose](): void;
|
|
128
|
-
constructor();
|
|
129
|
-
get_function_descriptions(): FunctionDescription[];
|
|
130
|
-
set_catalog_provider(provider: CatalogProvider): void;
|
|
131
|
-
set_time_range(start?: Date | null, end?: Date | null): void;
|
|
132
|
-
set_time_range_expression(expression: string): ContextualTranslationErrors | undefined;
|
|
133
117
|
compile_query(query: string): CompileQueryResult;
|
|
118
|
+
set_time_range(start?: Date | null, end?: Date | null): void;
|
|
134
119
|
compile_query_at(query: string, at?: number | null): ContextualResult;
|
|
120
|
+
set_catalog_provider(provider: CatalogProvider): void;
|
|
135
121
|
get_statement_datasets(query: string): QueryDatasetsResult;
|
|
122
|
+
get_function_descriptions(): FunctionDescription[];
|
|
123
|
+
set_time_range_expression(expression: string): ContextualTranslationErrors | undefined;
|
|
124
|
+
constructor();
|
|
136
125
|
}
|
|
137
126
|
|
|
138
|
-
|
|
127
|
+
declare const compileHamelin: (catalog: Catalog, hamelinInput: string, timeRange?: string) => Promise<CompileQueryResult>;
|
|
128
|
+
declare const createCompiler: (catalog: Catalog) => Promise<Compiler>;
|
|
139
129
|
|
|
140
|
-
interface InitOutput {
|
|
141
|
-
readonly memory: WebAssembly.Memory;
|
|
142
|
-
readonly __wbg_catalogprovider_free: (a: number, b: number) => void;
|
|
143
|
-
readonly catalogprovider_try_from_catalog: (a: any) => [number, number, number];
|
|
144
|
-
readonly __wbg_compiler_free: (a: number, b: number) => void;
|
|
145
|
-
readonly compiler_new: () => number;
|
|
146
|
-
readonly compiler_get_function_descriptions: (a: number) => [number, number];
|
|
147
|
-
readonly compiler_set_catalog_provider: (a: number, b: number) => void;
|
|
148
|
-
readonly compiler_set_time_range: (a: number, b: number, c: number) => void;
|
|
149
|
-
readonly compiler_set_time_range_expression: (a: number, b: number, c: number) => any;
|
|
150
|
-
readonly compiler_compile_query: (a: number, b: number, c: number) => any;
|
|
151
|
-
readonly compiler_compile_query_at: (a: number, b: number, c: number, d: number) => any;
|
|
152
|
-
readonly compiler_get_statement_datasets: (a: number, b: number, c: number) => any;
|
|
153
|
-
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
154
|
-
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
155
|
-
readonly __wbindgen_exn_store: (a: number) => void;
|
|
156
|
-
readonly __externref_table_alloc: () => number;
|
|
157
|
-
readonly __wbindgen_export_4: WebAssembly.Table;
|
|
158
|
-
readonly __externref_table_dealloc: (a: number) => void;
|
|
159
|
-
readonly __externref_drop_slice: (a: number, b: number) => void;
|
|
160
|
-
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
161
|
-
readonly __wbindgen_start: () => void;
|
|
162
|
-
}
|
|
130
|
+
declare const hamelinGrammar = "grammar Hamelin;\n\nidentifierEOF\n : identifier EOF\n ;\n\nqueryEOF\n : query EOF\n ;\n\ncommandEOF\n : command EOF\n ;\n\nexpressionEOF\n : expression EOF\n ;\n\npipelineEOF\n : pipeline EOF\n ;\n\nsimpleIdentifierEOF\n : simpleIdentifier EOF\n ;\n\nquery\n : (WITH simpleIdentifier ASSIGN pipeline)+ pipeline #withQuery\n | pipeline #standaloneQuery\n | expression #expressionQuery\n ;\n\npipeline\n : command ( PIPE command )* #pipelineAlt\n ;\n\ncommand\n : LET_COMMAND assignment (COMMA assignment)* COMMA? #letCommand\n | WHERE_COMMAND expression #whereCommand\n | SELECT_COMMAND assignmentClause (COMMA assignmentClause)* COMMA? #selectCommand\n | DROP_COMMAND selection (COMMA selection)* COMMA? #dropCommand\n | FROM_COMMAND fromClause (COMMA fromClause)* COMMA? #fromCommand\n | UNION_COMMAND fromClause (COMMA fromClause)* COMMA? #unionCommand\n | LIMIT_COMMAND expression #limitCommand\n | PARSE_COMMAND src=expression? string\n AS? identifier (COMMA identifier)* COMMA? NODROP? #parseCommand\n | WITHIN_COMMAND expression #withinCommand\n | AGG_COMMAND (assignmentClause (COMMA assignmentClause)*)? COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA? #aggCommand\n | SORT BY? sortExpression (COMMA sortExpression)* COMMA? #sortCommand\n | WINDOW_COMMAND assignmentClause (COMMA assignmentClause)* COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA?\n (WITHIN_COMMAND within=expression)? #windowCommand\n | APPEND_COMMAND tableReference (DISTINCT_BY selection (COMMA selection)*)? COMMA? #appendCommand\n | (JOIN_COMMAND | LOOKUP_COMMAND) fromClause (ON on=expression)? #joinCommand\n | EXPLODE_COMMAND assignmentClause #explodeCommand\n | (UNNEST_COMMAND | ROWS_COMMAND) expression #unnestCommand\n | NEST_COMMAND identifier #nestCommand\n | MATCH_COMMAND pattern+\n (WHEN matchDefine (COMMA matchDefine)*)? COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA? #matchCommand\n ;\n\nassignmentClause: assignment | expression;\ngroupClause: assignmentClause;\nassignment: identifier ASSIGN expression;\nmatchDefine: simpleIdentifier ASSIGN expression;\nselection: identifier;\nsortExpression: expression (ASC | DESC)?;\ntableAlias: simpleIdentifier ASSIGN tableReference;\nfromClause: tableAlias | tableReference;\n\nexpression\n // Keep this list in precedence order (important!)\n : operator=(MINUS | PLUS) expression #unaryPrefixOperator\n | expression (SECOND_TRUNC | MINUTE_TRUNC | HOUR_TRUNC | DAY_TRUNC | WEEK_TRUNC |\n MONTH_TRUNC | QUARTER_TRUNC | YEAR_TRUNC) #tsTrunc\n | left=expression operator=DOT right=simpleIdentifier #deref\n | value=expression LBRACKET index=expression RBRACKET #indexAccess\n | left=expression operator=(ASTERISK | SLASH | PERCENT) right=expression #binaryOperator\n | left=expression operator=(PLUS | MINUS) right=expression #binaryOperator\n | operator=RANGE expression #unaryPrefixOperator\n | expression operator=RANGE #unaryPostfixOperator\n | left=expression operator=RANGE right=expression #binaryOperator\n | left=expression operator=AS right=hamelintype #cast\n | left=expression\n operator=(EQ | NEQ | LT | LTE | GT | GTE | IS | ISNOT | IN | NOTIN)\n right=expression #binaryOperator\n | operator=NOT expression #unaryPrefixOperator\n | left=expression operator=AND right=expression #binaryOperator\n | left=expression operator=OR right=expression #binaryOperator\n\n // Complex Literals\n | left=expression operator=COLON right=expression #pairLiteral\n | LCURLY simpleIdentifier COLON expression\n (COMMA simpleIdentifier COLON expression)* COMMA? RCURLY #structLiteral\n | LPARENS ((expression COMMA) |\n (expression COMMA expression (COMMA expression)* COMMA?)) RPARENS #tupleLiteral\n | LBRACKET (expression (COMMA expression)* COMMA?)? RBRACKET #arrayLiteral\n\n // Function Calls\n | functionName=simpleIdentifier\n LPARENS (namedArgument (COMMA namedArgument)* COMMA?)? RPARENS #functionCall\n | functionName=simpleIdentifier LPARENS\n positionalArgument (COMMA positionalArgument)*\n (COMMA namedArgument)* COMMA? RPARENS #functionCall\n\n // Primitive Literals\n | NULL #nullLiteral\n | number #numericLiteral\n | TRUE #booleanLiteral\n | FALSE #booleanLiteral\n | string #stringLiteral\n | BINARY_LITERAL #binaryLiteral\n | RANGE #unboundRangeLiteral\n | (NANOSECOND_INTERVAL | MICROSECOND_INTERVAL | MILLISECOND_INTERVAL |\n SECOND_INTERVAL | MINUTE_INTERVAL | HOUR_INTERVAL | DAY_INTERVAL |\n WEEK_INTERVAL | MONTH_INTERVAL | QUARTER_INTERVAL | YEAR_INTERVAL) #intervalLiteral\n | ROWS_LITERAL #rowsLiteral\n | (SECOND_TRUNC | MINUTE_TRUNC | HOUR_TRUNC | DAY_TRUNC | WEEK_TRUNC |\n MONTH_TRUNC | QUARTER_TRUNC | YEAR_TRUNC) #tsTruncTimestampLiteral\n\n // Environment references\n | columnReference #columnReferenceAlt\n\n // Keep this at the bottom to use it the mechanism that query authors have to specify precedence.\n | LPARENS expression RPARENS #parenthesizedExpression\n ;\n\nhamelintype\n : simpleIdentifier LPARENS hamelintype (COMMA hamelintype)* COMMA? RPARENS #parameterizedType\n | simpleIdentifier LPARENS INTEGER_VALUE (COMMA INTEGER_VALUE)* COMMA? RPARENS #typeWithArguments\n | LCURLY simpleIdentifier COLON hamelintype\n (COMMA simpleIdentifier COLON hamelintype)* COMMA? RCURLY #structType\n | LPARENS hamelintype (COMMA hamelintype )* COMMA? RPARENS #tupleType\n | simpleIdentifier #simpleType\n ;\n\npattern\n : fromClause quantifier? #quantified\n | LPARENS pattern+ RPARENS quantifier #nested\n ;\n\nquantifier\n : ASTERISK #AnyNumber\n | PLUS #AtLeastOne\n | QUESTIONMARK #ZeroOrOne\n | LCURLY INTEGER_VALUE RCURLY #Exactly\n ;\n\ncolumnReference\n : simpleIdentifier\n ;\n\ntableReference\n : identifier\n ;\n\nidentifier\n : simpleIdentifier\n | simpleIdentifier (DOT simpleIdentifier)+\n ;\n\nsimpleIdentifier\n : IDENTIFIER #unquotedIdentifier\n | BACKQUOTED_IDENTIFIER #backQuotedIdentifier\n ;\n\nstring\n : SINGLE_QUOTED_STRING #basicSingleQuotedStringLiteral\n | DOUBLE_QUOTED_STRING #basicDoubleQuotedStringLiteral\n | value=SINGLE_QUOTED_UNICODE_STRING (UESCAPE uesc=SINGLE_QUOTED_STRING)? #unicodeSingleQuotedStringLiteral\n | value=DOUBLE_QUOTED_UNICODE_STRING (UESCAPE uesc=DOUBLE_QUOTED_STRING)? #unicodeDoubleQuotedStringLiteral\n ;\n\nnumber\n : value=DECIMAL_VALUE #decimalLiteral\n | value=DOUBLE_VALUE #scientificLiteral\n | value=INTEGER_VALUE #integerLiteral\n ;\n\npositionalArgument\n : expression\n ;\n\nnamedArgument\n : simpleIdentifier ASSIGN expression\n ;\n\n//\n// COMMANDS\n//\n\nLET_COMMAND: 'LET' | 'let';\nWHERE_COMMAND: 'WHERE' | 'where';\nSELECT_COMMAND: 'SELECT' | 'select';\nDROP_COMMAND: 'DROP' | 'drop';\nFROM_COMMAND: 'FROM' | 'from';\nUNION_COMMAND: 'UNION' | 'union';\nLIMIT_COMMAND: 'LIMIT' | 'limit';\nPARSE_COMMAND: 'PARSE' | 'parse';\nWITHIN_COMMAND: 'WITHIN' | 'within';\nAGG_COMMAND: 'AGG' | 'agg';\nWINDOW_COMMAND: 'WINDOW' | 'window';\nAPPEND_COMMAND: 'APPEND' | 'append';\nJOIN_COMMAND: 'JOIN' | 'join';\nLOOKUP_COMMAND: 'LOOKUP' | 'lookup';\nEXPLODE_COMMAND: 'EXPLODE' | 'explode';\nUNNEST_COMMAND: 'UNNEST' | 'unnest';\nNEST_COMMAND: 'NEST' | 'nest';\nROWS_COMMAND: 'ROWS' | 'rows';\nMATCH_COMMAND: 'MATCH' | 'match';\n\nAS: 'AS' | 'as';\nNODROP: 'NODROP' | 'nodrop';\n\n//\n// Operators\n//\n\nPLUS: '+';\nMINUS: '-';\nASTERISK: '*';\nSLASH: '/';\nPERCENT: '%';\nLCURLY: '{';\nRCURLY: '}';\nCOLON: ':';\nQUESTIONMARK: '?';\n\nEQ: '==';\nNEQ: '!=';\nLT: '<';\nLTE: '<=';\nGT: '>';\nGTE: '>=';\nRANGE: '..';\n\nASSIGN: '=';\n\n//\n// Keywords\n//\n\nAND: 'AND' | 'and';\nFALSE: 'FALSE' | 'false';\nIS: 'IS' | 'is';\nNOT: 'NOT' | 'not';\nISNOT: 'IS NOT' | 'is not';\nIN: 'IN' | 'in';\nNOTIN: 'NOT IN' | 'not in';\nNULL: 'NULL' | 'null';\nOR: 'OR' | 'or';\nTRUE: 'TRUE' | 'true';\nUESCAPE: 'UESCAPE' | 'uescape';\nWITH: 'WITH' | 'with';\nBY: 'BY' | 'by';\nSORT: 'SORT' | 'sort';\nASC: 'ASC' | 'asc';\nDESC: 'DESC' | 'desc';\nDISTINCT_BY: 'DISTINCT BY' | 'distinct by';\nON: 'ON' | 'on';\nWHEN: 'WHEN' | 'when';\n\n//\n// Symbols\n//\n\nCOMMA: ',';\nPIPE: '|';\nLPARENS: '(';\nRPARENS: ')';\nDOT: '.';\nLBRACKET: '[';\nRBRACKET: ']';\n\n//\n// Literals\n//\n\nSINGLE_QUOTED_STRING\n : '\\'' ( ~'\\'' | '\\'\\'')* '\\''\n ;\nDOUBLE_QUOTED_STRING\n : '\"' ( ~'\"' | '\"\"')* '\"'\n ;\n\nSINGLE_QUOTED_UNICODE_STRING\n : 'U&\\'' ( ~'\\'' | '\\'\\'')* '\\'' // Unicode string with default escape character: U&'Hello winter \\2603 !'\n ;\n\nDOUBLE_QUOTED_UNICODE_STRING\n : 'U&\"' ( ~'\"' | '\"\"')* '\"' // Unicode string with custom escape character: U&'Hello winter #2603 !' UESCAPE '#'\n ;\n\n// Note: we allow any character inside the binary literal and validate\n// its a correct literal when the AST is being constructed. This\n// allows us to provide more meaningful error messages to the user\nBINARY_LITERAL\n : 'x\\'' (~'\\'')* '\\''\n ;\n\nNANOSECOND_INTERVAL\n : DECIMAL_INTEGER 'ns'\n ;\n\nMICROSECOND_INTERVAL\n : DECIMAL_INTEGER 'us'\n ;\n\nMILLISECOND_INTERVAL\n : DECIMAL_INTEGER 'ms'\n ;\n\nSECOND_INTERVAL\n : DECIMAL_INTEGER ('s' | 'sec' | 'secs' | 'second' | 'seconds')\n ;\n\nMINUTE_INTERVAL\n : DECIMAL_INTEGER ('m' | 'min' | 'mins' | 'minute' | 'minutes')\n ;\n\nHOUR_INTERVAL\n : DECIMAL_INTEGER ('h' | 'hr' | 'hrs' | 'hour' | 'hours')\n ;\n\nDAY_INTERVAL\n : DECIMAL_INTEGER ('d' | 'day' | 'days')\n ;\n\nWEEK_INTERVAL\n : DECIMAL_INTEGER ('w' | 'week' | 'weeks')\n ;\n\nMONTH_INTERVAL\n : DECIMAL_INTEGER ('mon' | 'month' | 'months')\n ;\n\nQUARTER_INTERVAL\n : DECIMAL_INTEGER ('q' | 'qtr' | 'qtrs' | 'quarter' | 'quarters')\n ;\n\nYEAR_INTERVAL\n : DECIMAL_INTEGER ('y' | 'yr' | 'yrs' | 'year' | 'years')\n ;\n\nROWS_LITERAL\n : DECIMAL_INTEGER ('r' | 'row' | 'rows')\n ;\n\nSECOND_TRUNC\n : '@' ('s' | 'sec' | 'secs' | 'second' | 'seconds')\n ;\n\nMINUTE_TRUNC\n : '@' ('m' | 'min' | 'mins' | 'minute' | 'minutes')\n ;\n\nHOUR_TRUNC\n : '@' ('h' | 'hr' | 'hrs' | 'hour' | 'hours')\n ;\n\nDAY_TRUNC\n : '@' ('d' | 'day' | 'days')\n ;\n\nWEEK_TRUNC\n : '@' ('w' | 'week' | 'weeks')\n ;\n\nMONTH_TRUNC\n : '@' ('mon' | 'month' | 'months')\n ;\n\nQUARTER_TRUNC\n : '@' ('q' | 'qtr' | 'qtrs' | 'quarter' | 'quarters')\n ;\n\nYEAR_TRUNC\n : '@' ('y' | 'yr' | 'yrs' | 'year' | 'years')\n ;\n\nINTEGER_VALUE\n : DECIMAL_INTEGER\n | HEXADECIMAL_INTEGER\n | OCTAL_INTEGER\n | BINARY_INTEGER\n ;\n\nDECIMAL_VALUE\n : DECIMAL_INTEGER '.' DECIMAL_INTEGER\n | '.' DECIMAL_INTEGER\n ;\n\nDOUBLE_VALUE\n : DIGIT+ ('.' DIGIT*)? EXPONENT\n | '.' DIGIT+ EXPONENT\n ;\n\nIDENTIFIER\n : [a-zA-Z_][a-zA-Z_0-9]*\n ;\n\nBACKQUOTED_IDENTIFIER\n : '`' ( ~'`' | '``' )* '`'\n ;\n\nfragment DECIMAL_INTEGER\n : DIGIT ('_'? DIGIT)*\n ;\n\nfragment HEXADECIMAL_INTEGER\n : '0x' ('_'? (DIGIT | [A-F]))+\n ;\n\nfragment OCTAL_INTEGER\n : '0o' ('_'? [0-7])+\n ;\n\nfragment BINARY_INTEGER\n : '0b' ('_'? [01])+\n ;\n\nfragment EXPONENT\n : 'e' [+-]? DIGIT+\n ;\n\nfragment DIGIT\n : [0-9]\n ;\n\n//\n// Comments and whitespace\n//\n\nSIMPLE_COMMENT\n : '//' ~[\\r\\n]* '\\r'? '\\n'? -> channel(HIDDEN)\n ;\n\nBRACKETED_COMMENT\n : '/*' .*? '*/' -> channel(HIDDEN)\n ;\n\nWS\n : [ \\r\\n\\t]+ -> skip\n ;\n";
|
|
163
131
|
|
|
164
|
-
type
|
|
132
|
+
type QuerySort = {
|
|
133
|
+
column: string;
|
|
134
|
+
direction: "asc" | "desc" | null;
|
|
135
|
+
};
|
|
165
136
|
/**
|
|
166
|
-
*
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
170
|
-
*
|
|
171
|
-
* @returns {InitOutput}
|
|
172
|
-
*/
|
|
173
|
-
declare function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
137
|
+
* Returns the top level sorting information from the provided Hamelin query.
|
|
138
|
+
*/
|
|
139
|
+
declare const getSorts: (hamelinQuery: string) => QuerySort[];
|
|
174
140
|
|
|
175
|
-
|
|
176
|
-
|
|
141
|
+
type QueryAggregation = {
|
|
142
|
+
columns: string[];
|
|
143
|
+
by: string[];
|
|
144
|
+
sort: QuerySort[];
|
|
145
|
+
};
|
|
146
|
+
declare const getAggregations: (query: string) => QueryAggregation[];
|
|
177
147
|
|
|
178
|
-
declare
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
static readonly SELECT_COMMAND = 3;
|
|
182
|
-
static readonly DROP_COMMAND = 4;
|
|
183
|
-
static readonly FROM_COMMAND = 5;
|
|
184
|
-
static readonly UNION_COMMAND = 6;
|
|
185
|
-
static readonly LIMIT_COMMAND = 7;
|
|
186
|
-
static readonly PARSE_COMMAND = 8;
|
|
187
|
-
static readonly WITHIN_COMMAND = 9;
|
|
188
|
-
static readonly AGG_COMMAND = 10;
|
|
189
|
-
static readonly WINDOW_COMMAND = 11;
|
|
190
|
-
static readonly APPEND_COMMAND = 12;
|
|
191
|
-
static readonly JOIN_COMMAND = 13;
|
|
192
|
-
static readonly LOOKUP_COMMAND = 14;
|
|
193
|
-
static readonly EXPLODE_COMMAND = 15;
|
|
194
|
-
static readonly UNNEST_COMMAND = 16;
|
|
195
|
-
static readonly NEST_COMMAND = 17;
|
|
196
|
-
static readonly ROWS_COMMAND = 18;
|
|
197
|
-
static readonly MATCH_COMMAND = 19;
|
|
198
|
-
static readonly AS = 20;
|
|
199
|
-
static readonly NODROP = 21;
|
|
200
|
-
static readonly PLUS = 22;
|
|
201
|
-
static readonly MINUS = 23;
|
|
202
|
-
static readonly ASTERISK = 24;
|
|
203
|
-
static readonly SLASH = 25;
|
|
204
|
-
static readonly PERCENT = 26;
|
|
205
|
-
static readonly LCURLY = 27;
|
|
206
|
-
static readonly RCURLY = 28;
|
|
207
|
-
static readonly COLON = 29;
|
|
208
|
-
static readonly QUESTIONMARK = 30;
|
|
209
|
-
static readonly EQ = 31;
|
|
210
|
-
static readonly NEQ = 32;
|
|
211
|
-
static readonly LT = 33;
|
|
212
|
-
static readonly LTE = 34;
|
|
213
|
-
static readonly GT = 35;
|
|
214
|
-
static readonly GTE = 36;
|
|
215
|
-
static readonly RANGE = 37;
|
|
216
|
-
static readonly ASSIGN = 38;
|
|
217
|
-
static readonly AND = 39;
|
|
218
|
-
static readonly FALSE = 40;
|
|
219
|
-
static readonly IS = 41;
|
|
220
|
-
static readonly NOT = 42;
|
|
221
|
-
static readonly ISNOT = 43;
|
|
222
|
-
static readonly IN = 44;
|
|
223
|
-
static readonly NOTIN = 45;
|
|
224
|
-
static readonly NULL = 46;
|
|
225
|
-
static readonly OR = 47;
|
|
226
|
-
static readonly TRUE = 48;
|
|
227
|
-
static readonly UESCAPE = 49;
|
|
228
|
-
static readonly WITH = 50;
|
|
229
|
-
static readonly BY = 51;
|
|
230
|
-
static readonly SORT = 52;
|
|
231
|
-
static readonly ASC = 53;
|
|
232
|
-
static readonly DESC = 54;
|
|
233
|
-
static readonly DISTINCT_BY = 55;
|
|
234
|
-
static readonly ON = 56;
|
|
235
|
-
static readonly WHEN = 57;
|
|
236
|
-
static readonly COMMA = 58;
|
|
237
|
-
static readonly PIPE = 59;
|
|
238
|
-
static readonly LPARENS = 60;
|
|
239
|
-
static readonly RPARENS = 61;
|
|
240
|
-
static readonly DOT = 62;
|
|
241
|
-
static readonly LBRACKET = 63;
|
|
242
|
-
static readonly RBRACKET = 64;
|
|
243
|
-
static readonly SINGLE_QUOTED_STRING = 65;
|
|
244
|
-
static readonly DOUBLE_QUOTED_STRING = 66;
|
|
245
|
-
static readonly SINGLE_QUOTED_UNICODE_STRING = 67;
|
|
246
|
-
static readonly DOUBLE_QUOTED_UNICODE_STRING = 68;
|
|
247
|
-
static readonly BINARY_LITERAL = 69;
|
|
248
|
-
static readonly NANOSECOND_INTERVAL = 70;
|
|
249
|
-
static readonly MICROSECOND_INTERVAL = 71;
|
|
250
|
-
static readonly MILLISECOND_INTERVAL = 72;
|
|
251
|
-
static readonly SECOND_INTERVAL = 73;
|
|
252
|
-
static readonly MINUTE_INTERVAL = 74;
|
|
253
|
-
static readonly HOUR_INTERVAL = 75;
|
|
254
|
-
static readonly DAY_INTERVAL = 76;
|
|
255
|
-
static readonly WEEK_INTERVAL = 77;
|
|
256
|
-
static readonly MONTH_INTERVAL = 78;
|
|
257
|
-
static readonly QUARTER_INTERVAL = 79;
|
|
258
|
-
static readonly YEAR_INTERVAL = 80;
|
|
259
|
-
static readonly ROWS_LITERAL = 81;
|
|
260
|
-
static readonly SECOND_TRUNC = 82;
|
|
261
|
-
static readonly MINUTE_TRUNC = 83;
|
|
262
|
-
static readonly HOUR_TRUNC = 84;
|
|
263
|
-
static readonly DAY_TRUNC = 85;
|
|
264
|
-
static readonly WEEK_TRUNC = 86;
|
|
265
|
-
static readonly MONTH_TRUNC = 87;
|
|
266
|
-
static readonly QUARTER_TRUNC = 88;
|
|
267
|
-
static readonly YEAR_TRUNC = 89;
|
|
268
|
-
static readonly INTEGER_VALUE = 90;
|
|
269
|
-
static readonly DECIMAL_VALUE = 91;
|
|
270
|
-
static readonly DOUBLE_VALUE = 92;
|
|
271
|
-
static readonly IDENTIFIER = 93;
|
|
272
|
-
static readonly BACKQUOTED_IDENTIFIER = 94;
|
|
273
|
-
static readonly SIMPLE_COMMENT = 95;
|
|
274
|
-
static readonly BRACKETED_COMMENT = 96;
|
|
275
|
-
static readonly WS = 97;
|
|
276
|
-
static readonly channelNames: string[];
|
|
277
|
-
static readonly literalNames: (string | null)[];
|
|
278
|
-
static readonly symbolicNames: (string | null)[];
|
|
279
|
-
static readonly modeNames: string[];
|
|
280
|
-
static readonly ruleNames: string[];
|
|
281
|
-
constructor(input: antlr.CharStream);
|
|
282
|
-
get grammarFileName(): string;
|
|
283
|
-
get literalNames(): (string | null)[];
|
|
284
|
-
get symbolicNames(): (string | null)[];
|
|
285
|
-
get ruleNames(): string[];
|
|
286
|
-
get serializedATN(): number[];
|
|
287
|
-
get channelNames(): string[];
|
|
288
|
-
get modeNames(): string[];
|
|
289
|
-
static readonly _serializedATN: number[];
|
|
290
|
-
private static __ATN;
|
|
291
|
-
static get _ATN(): antlr.ATN;
|
|
292
|
-
private static readonly vocabulary;
|
|
293
|
-
get vocabulary(): antlr.Vocabulary;
|
|
294
|
-
private static readonly decisionsToDFA;
|
|
295
|
-
}
|
|
148
|
+
declare const getDatasetsFromQuery: (catalog: Catalog, hamelinInput: string) => Promise<QueryDatasetsResult>;
|
|
149
|
+
|
|
150
|
+
declare const getFunctionDescriptions: () => Promise<FunctionDescription[]>;
|
|
296
151
|
|
|
297
152
|
/**
|
|
298
|
-
*
|
|
299
|
-
* by `HamelinParser`.
|
|
300
|
-
*
|
|
301
|
-
* @param <Result> The return type of the visit operation. Use `void` for
|
|
302
|
-
* operations with no return type.
|
|
153
|
+
* Returns the top level limit information from the provided Hamelin query.
|
|
303
154
|
*/
|
|
304
|
-
declare
|
|
305
|
-
/**
|
|
306
|
-
* Visit a parse tree produced by `HamelinParser.identifierEOF`.
|
|
307
|
-
* @param ctx the parse tree
|
|
308
|
-
* @return the visitor result
|
|
309
|
-
*/
|
|
310
|
-
visitIdentifierEOF?: (ctx: IdentifierEOFContext) => Result;
|
|
311
|
-
/**
|
|
312
|
-
* Visit a parse tree produced by `HamelinParser.queryEOF`.
|
|
313
|
-
* @param ctx the parse tree
|
|
314
|
-
* @return the visitor result
|
|
315
|
-
*/
|
|
316
|
-
visitQueryEOF?: (ctx: QueryEOFContext) => Result;
|
|
317
|
-
/**
|
|
318
|
-
* Visit a parse tree produced by `HamelinParser.commandEOF`.
|
|
319
|
-
* @param ctx the parse tree
|
|
320
|
-
* @return the visitor result
|
|
321
|
-
*/
|
|
322
|
-
visitCommandEOF?: (ctx: CommandEOFContext) => Result;
|
|
323
|
-
/**
|
|
324
|
-
* Visit a parse tree produced by `HamelinParser.expressionEOF`.
|
|
325
|
-
* @param ctx the parse tree
|
|
326
|
-
* @return the visitor result
|
|
327
|
-
*/
|
|
328
|
-
visitExpressionEOF?: (ctx: ExpressionEOFContext) => Result;
|
|
329
|
-
/**
|
|
330
|
-
* Visit a parse tree produced by `HamelinParser.simpleIdentifierEOF`.
|
|
331
|
-
* @param ctx the parse tree
|
|
332
|
-
* @return the visitor result
|
|
333
|
-
*/
|
|
334
|
-
visitSimpleIdentifierEOF?: (ctx: SimpleIdentifierEOFContext) => Result;
|
|
335
|
-
/**
|
|
336
|
-
* Visit a parse tree produced by the `withQuery`
|
|
337
|
-
* labeled alternative in `HamelinParser.query`.
|
|
338
|
-
* @param ctx the parse tree
|
|
339
|
-
* @return the visitor result
|
|
340
|
-
*/
|
|
341
|
-
visitWithQuery?: (ctx: WithQueryContext) => Result;
|
|
342
|
-
/**
|
|
343
|
-
* Visit a parse tree produced by the `standaloneQuery`
|
|
344
|
-
* labeled alternative in `HamelinParser.query`.
|
|
345
|
-
* @param ctx the parse tree
|
|
346
|
-
* @return the visitor result
|
|
347
|
-
*/
|
|
348
|
-
visitStandaloneQuery?: (ctx: StandaloneQueryContext) => Result;
|
|
349
|
-
/**
|
|
350
|
-
* Visit a parse tree produced by the `expressionQuery`
|
|
351
|
-
* labeled alternative in `HamelinParser.query`.
|
|
352
|
-
* @param ctx the parse tree
|
|
353
|
-
* @return the visitor result
|
|
354
|
-
*/
|
|
355
|
-
visitExpressionQuery?: (ctx: ExpressionQueryContext) => Result;
|
|
356
|
-
/**
|
|
357
|
-
* Visit a parse tree produced by the `pipelineAlt`
|
|
358
|
-
* labeled alternative in `HamelinParser.pipeline`.
|
|
359
|
-
* @param ctx the parse tree
|
|
360
|
-
* @return the visitor result
|
|
361
|
-
*/
|
|
362
|
-
visitPipelineAlt?: (ctx: PipelineAltContext) => Result;
|
|
363
|
-
/**
|
|
364
|
-
* Visit a parse tree produced by the `letCommand`
|
|
365
|
-
* labeled alternative in `HamelinParser.command`.
|
|
366
|
-
* @param ctx the parse tree
|
|
367
|
-
* @return the visitor result
|
|
368
|
-
*/
|
|
369
|
-
visitLetCommand?: (ctx: LetCommandContext) => Result;
|
|
370
|
-
/**
|
|
371
|
-
* Visit a parse tree produced by the `whereCommand`
|
|
372
|
-
* labeled alternative in `HamelinParser.command`.
|
|
373
|
-
* @param ctx the parse tree
|
|
374
|
-
* @return the visitor result
|
|
375
|
-
*/
|
|
376
|
-
visitWhereCommand?: (ctx: WhereCommandContext) => Result;
|
|
377
|
-
/**
|
|
378
|
-
* Visit a parse tree produced by the `selectCommand`
|
|
379
|
-
* labeled alternative in `HamelinParser.command`.
|
|
380
|
-
* @param ctx the parse tree
|
|
381
|
-
* @return the visitor result
|
|
382
|
-
*/
|
|
383
|
-
visitSelectCommand?: (ctx: SelectCommandContext) => Result;
|
|
384
|
-
/**
|
|
385
|
-
* Visit a parse tree produced by the `dropCommand`
|
|
386
|
-
* labeled alternative in `HamelinParser.command`.
|
|
387
|
-
* @param ctx the parse tree
|
|
388
|
-
* @return the visitor result
|
|
389
|
-
*/
|
|
390
|
-
visitDropCommand?: (ctx: DropCommandContext) => Result;
|
|
391
|
-
/**
|
|
392
|
-
* Visit a parse tree produced by the `fromCommand`
|
|
393
|
-
* labeled alternative in `HamelinParser.command`.
|
|
394
|
-
* @param ctx the parse tree
|
|
395
|
-
* @return the visitor result
|
|
396
|
-
*/
|
|
397
|
-
visitFromCommand?: (ctx: FromCommandContext) => Result;
|
|
398
|
-
/**
|
|
399
|
-
* Visit a parse tree produced by the `unionCommand`
|
|
400
|
-
* labeled alternative in `HamelinParser.command`.
|
|
401
|
-
* @param ctx the parse tree
|
|
402
|
-
* @return the visitor result
|
|
403
|
-
*/
|
|
404
|
-
visitUnionCommand?: (ctx: UnionCommandContext) => Result;
|
|
405
|
-
/**
|
|
406
|
-
* Visit a parse tree produced by the `limitCommand`
|
|
407
|
-
* labeled alternative in `HamelinParser.command`.
|
|
408
|
-
* @param ctx the parse tree
|
|
409
|
-
* @return the visitor result
|
|
410
|
-
*/
|
|
411
|
-
visitLimitCommand?: (ctx: LimitCommandContext) => Result;
|
|
412
|
-
/**
|
|
413
|
-
* Visit a parse tree produced by the `parseCommand`
|
|
414
|
-
* labeled alternative in `HamelinParser.command`.
|
|
415
|
-
* @param ctx the parse tree
|
|
416
|
-
* @return the visitor result
|
|
417
|
-
*/
|
|
418
|
-
visitParseCommand?: (ctx: ParseCommandContext) => Result;
|
|
419
|
-
/**
|
|
420
|
-
* Visit a parse tree produced by the `withinCommand`
|
|
421
|
-
* labeled alternative in `HamelinParser.command`.
|
|
422
|
-
* @param ctx the parse tree
|
|
423
|
-
* @return the visitor result
|
|
424
|
-
*/
|
|
425
|
-
visitWithinCommand?: (ctx: WithinCommandContext) => Result;
|
|
426
|
-
/**
|
|
427
|
-
* Visit a parse tree produced by the `aggCommand`
|
|
428
|
-
* labeled alternative in `HamelinParser.command`.
|
|
429
|
-
* @param ctx the parse tree
|
|
430
|
-
* @return the visitor result
|
|
431
|
-
*/
|
|
432
|
-
visitAggCommand?: (ctx: AggCommandContext) => Result;
|
|
433
|
-
/**
|
|
434
|
-
* Visit a parse tree produced by the `sortCommand`
|
|
435
|
-
* labeled alternative in `HamelinParser.command`.
|
|
436
|
-
* @param ctx the parse tree
|
|
437
|
-
* @return the visitor result
|
|
438
|
-
*/
|
|
439
|
-
visitSortCommand?: (ctx: SortCommandContext) => Result;
|
|
440
|
-
/**
|
|
441
|
-
* Visit a parse tree produced by the `windowCommand`
|
|
442
|
-
* labeled alternative in `HamelinParser.command`.
|
|
443
|
-
* @param ctx the parse tree
|
|
444
|
-
* @return the visitor result
|
|
445
|
-
*/
|
|
446
|
-
visitWindowCommand?: (ctx: WindowCommandContext) => Result;
|
|
447
|
-
/**
|
|
448
|
-
* Visit a parse tree produced by the `appendCommand`
|
|
449
|
-
* labeled alternative in `HamelinParser.command`.
|
|
450
|
-
* @param ctx the parse tree
|
|
451
|
-
* @return the visitor result
|
|
452
|
-
*/
|
|
453
|
-
visitAppendCommand?: (ctx: AppendCommandContext) => Result;
|
|
454
|
-
/**
|
|
455
|
-
* Visit a parse tree produced by the `joinCommand`
|
|
456
|
-
* labeled alternative in `HamelinParser.command`.
|
|
457
|
-
* @param ctx the parse tree
|
|
458
|
-
* @return the visitor result
|
|
459
|
-
*/
|
|
460
|
-
visitJoinCommand?: (ctx: JoinCommandContext) => Result;
|
|
461
|
-
/**
|
|
462
|
-
* Visit a parse tree produced by the `explodeCommand`
|
|
463
|
-
* labeled alternative in `HamelinParser.command`.
|
|
464
|
-
* @param ctx the parse tree
|
|
465
|
-
* @return the visitor result
|
|
466
|
-
*/
|
|
467
|
-
visitExplodeCommand?: (ctx: ExplodeCommandContext) => Result;
|
|
468
|
-
/**
|
|
469
|
-
* Visit a parse tree produced by the `unnestCommand`
|
|
470
|
-
* labeled alternative in `HamelinParser.command`.
|
|
471
|
-
* @param ctx the parse tree
|
|
472
|
-
* @return the visitor result
|
|
473
|
-
*/
|
|
474
|
-
visitUnnestCommand?: (ctx: UnnestCommandContext) => Result;
|
|
475
|
-
/**
|
|
476
|
-
* Visit a parse tree produced by the `nestCommand`
|
|
477
|
-
* labeled alternative in `HamelinParser.command`.
|
|
478
|
-
* @param ctx the parse tree
|
|
479
|
-
* @return the visitor result
|
|
480
|
-
*/
|
|
481
|
-
visitNestCommand?: (ctx: NestCommandContext) => Result;
|
|
482
|
-
/**
|
|
483
|
-
* Visit a parse tree produced by the `matchCommand`
|
|
484
|
-
* labeled alternative in `HamelinParser.command`.
|
|
485
|
-
* @param ctx the parse tree
|
|
486
|
-
* @return the visitor result
|
|
487
|
-
*/
|
|
488
|
-
visitMatchCommand?: (ctx: MatchCommandContext) => Result;
|
|
489
|
-
/**
|
|
490
|
-
* Visit a parse tree produced by `HamelinParser.assignmentClause`.
|
|
491
|
-
* @param ctx the parse tree
|
|
492
|
-
* @return the visitor result
|
|
493
|
-
*/
|
|
494
|
-
visitAssignmentClause?: (ctx: AssignmentClauseContext) => Result;
|
|
495
|
-
/**
|
|
496
|
-
* Visit a parse tree produced by `HamelinParser.groupClause`.
|
|
497
|
-
* @param ctx the parse tree
|
|
498
|
-
* @return the visitor result
|
|
499
|
-
*/
|
|
500
|
-
visitGroupClause?: (ctx: GroupClauseContext) => Result;
|
|
501
|
-
/**
|
|
502
|
-
* Visit a parse tree produced by `HamelinParser.assignment`.
|
|
503
|
-
* @param ctx the parse tree
|
|
504
|
-
* @return the visitor result
|
|
505
|
-
*/
|
|
506
|
-
visitAssignment?: (ctx: AssignmentContext) => Result;
|
|
507
|
-
/**
|
|
508
|
-
* Visit a parse tree produced by `HamelinParser.matchDefine`.
|
|
509
|
-
* @param ctx the parse tree
|
|
510
|
-
* @return the visitor result
|
|
511
|
-
*/
|
|
512
|
-
visitMatchDefine?: (ctx: MatchDefineContext) => Result;
|
|
513
|
-
/**
|
|
514
|
-
* Visit a parse tree produced by `HamelinParser.selection`.
|
|
515
|
-
* @param ctx the parse tree
|
|
516
|
-
* @return the visitor result
|
|
517
|
-
*/
|
|
518
|
-
visitSelection?: (ctx: SelectionContext) => Result;
|
|
519
|
-
/**
|
|
520
|
-
* Visit a parse tree produced by `HamelinParser.sortExpression`.
|
|
521
|
-
* @param ctx the parse tree
|
|
522
|
-
* @return the visitor result
|
|
523
|
-
*/
|
|
524
|
-
visitSortExpression?: (ctx: SortExpressionContext) => Result;
|
|
525
|
-
/**
|
|
526
|
-
* Visit a parse tree produced by `HamelinParser.tableAlias`.
|
|
527
|
-
* @param ctx the parse tree
|
|
528
|
-
* @return the visitor result
|
|
529
|
-
*/
|
|
530
|
-
visitTableAlias?: (ctx: TableAliasContext) => Result;
|
|
531
|
-
/**
|
|
532
|
-
* Visit a parse tree produced by `HamelinParser.fromClause`.
|
|
533
|
-
* @param ctx the parse tree
|
|
534
|
-
* @return the visitor result
|
|
535
|
-
*/
|
|
536
|
-
visitFromClause?: (ctx: FromClauseContext) => Result;
|
|
537
|
-
/**
|
|
538
|
-
* Visit a parse tree produced by the `structLiteral`
|
|
539
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
540
|
-
* @param ctx the parse tree
|
|
541
|
-
* @return the visitor result
|
|
542
|
-
*/
|
|
543
|
-
visitStructLiteral?: (ctx: StructLiteralContext) => Result;
|
|
544
|
-
/**
|
|
545
|
-
* Visit a parse tree produced by the `columnReferenceAlt`
|
|
546
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
547
|
-
* @param ctx the parse tree
|
|
548
|
-
* @return the visitor result
|
|
549
|
-
*/
|
|
550
|
-
visitColumnReferenceAlt?: (ctx: ColumnReferenceAltContext) => Result;
|
|
551
|
-
/**
|
|
552
|
-
* Visit a parse tree produced by the `deref`
|
|
553
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
554
|
-
* @param ctx the parse tree
|
|
555
|
-
* @return the visitor result
|
|
556
|
-
*/
|
|
557
|
-
visitDeref?: (ctx: DerefContext) => Result;
|
|
558
|
-
/**
|
|
559
|
-
* Visit a parse tree produced by the `nullLiteral`
|
|
560
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
561
|
-
* @param ctx the parse tree
|
|
562
|
-
* @return the visitor result
|
|
563
|
-
*/
|
|
564
|
-
visitNullLiteral?: (ctx: NullLiteralContext) => Result;
|
|
565
|
-
/**
|
|
566
|
-
* Visit a parse tree produced by the `arrayLiteral`
|
|
567
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
568
|
-
* @param ctx the parse tree
|
|
569
|
-
* @return the visitor result
|
|
570
|
-
*/
|
|
571
|
-
visitArrayLiteral?: (ctx: ArrayLiteralContext) => Result;
|
|
572
|
-
/**
|
|
573
|
-
* Visit a parse tree produced by the `pairLiteral`
|
|
574
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
575
|
-
* @param ctx the parse tree
|
|
576
|
-
* @return the visitor result
|
|
577
|
-
*/
|
|
578
|
-
visitPairLiteral?: (ctx: PairLiteralContext) => Result;
|
|
579
|
-
/**
|
|
580
|
-
* Visit a parse tree produced by the `tsTrunc`
|
|
581
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
582
|
-
* @param ctx the parse tree
|
|
583
|
-
* @return the visitor result
|
|
584
|
-
*/
|
|
585
|
-
visitTsTrunc?: (ctx: TsTruncContext) => Result;
|
|
586
|
-
/**
|
|
587
|
-
* Visit a parse tree produced by the `rowsLiteral`
|
|
588
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
589
|
-
* @param ctx the parse tree
|
|
590
|
-
* @return the visitor result
|
|
591
|
-
*/
|
|
592
|
-
visitRowsLiteral?: (ctx: RowsLiteralContext) => Result;
|
|
593
|
-
/**
|
|
594
|
-
* Visit a parse tree produced by the `tsTruncTimestampLiteral`
|
|
595
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
596
|
-
* @param ctx the parse tree
|
|
597
|
-
* @return the visitor result
|
|
598
|
-
*/
|
|
599
|
-
visitTsTruncTimestampLiteral?: (ctx: TsTruncTimestampLiteralContext) => Result;
|
|
600
|
-
/**
|
|
601
|
-
* Visit a parse tree produced by the `unaryPrefixOperator`
|
|
602
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
603
|
-
* @param ctx the parse tree
|
|
604
|
-
* @return the visitor result
|
|
605
|
-
*/
|
|
606
|
-
visitUnaryPrefixOperator?: (ctx: UnaryPrefixOperatorContext) => Result;
|
|
607
|
-
/**
|
|
608
|
-
* Visit a parse tree produced by the `binaryLiteral`
|
|
609
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
610
|
-
* @param ctx the parse tree
|
|
611
|
-
* @return the visitor result
|
|
612
|
-
*/
|
|
613
|
-
visitBinaryLiteral?: (ctx: BinaryLiteralContext) => Result;
|
|
614
|
-
/**
|
|
615
|
-
* Visit a parse tree produced by the `indexAccess`
|
|
616
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
617
|
-
* @param ctx the parse tree
|
|
618
|
-
* @return the visitor result
|
|
619
|
-
*/
|
|
620
|
-
visitIndexAccess?: (ctx: IndexAccessContext) => Result;
|
|
621
|
-
/**
|
|
622
|
-
* Visit a parse tree produced by the `cast`
|
|
623
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
624
|
-
* @param ctx the parse tree
|
|
625
|
-
* @return the visitor result
|
|
626
|
-
*/
|
|
627
|
-
visitCast?: (ctx: CastContext) => Result;
|
|
628
|
-
/**
|
|
629
|
-
* Visit a parse tree produced by the `unaryPostfixOperator`
|
|
630
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
631
|
-
* @param ctx the parse tree
|
|
632
|
-
* @return the visitor result
|
|
633
|
-
*/
|
|
634
|
-
visitUnaryPostfixOperator?: (ctx: UnaryPostfixOperatorContext) => Result;
|
|
635
|
-
/**
|
|
636
|
-
* Visit a parse tree produced by the `tupleLiteral`
|
|
637
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
638
|
-
* @param ctx the parse tree
|
|
639
|
-
* @return the visitor result
|
|
640
|
-
*/
|
|
641
|
-
visitTupleLiteral?: (ctx: TupleLiteralContext) => Result;
|
|
642
|
-
/**
|
|
643
|
-
* Visit a parse tree produced by the `parenthesizedExpression`
|
|
644
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
645
|
-
* @param ctx the parse tree
|
|
646
|
-
* @return the visitor result
|
|
647
|
-
*/
|
|
648
|
-
visitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => Result;
|
|
649
|
-
/**
|
|
650
|
-
* Visit a parse tree produced by the `stringLiteral`
|
|
651
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
652
|
-
* @param ctx the parse tree
|
|
653
|
-
* @return the visitor result
|
|
654
|
-
*/
|
|
655
|
-
visitStringLiteral?: (ctx: StringLiteralContext) => Result;
|
|
656
|
-
/**
|
|
657
|
-
* Visit a parse tree produced by the `binaryOperator`
|
|
658
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
659
|
-
* @param ctx the parse tree
|
|
660
|
-
* @return the visitor result
|
|
661
|
-
*/
|
|
662
|
-
visitBinaryOperator?: (ctx: BinaryOperatorContext) => Result;
|
|
663
|
-
/**
|
|
664
|
-
* Visit a parse tree produced by the `functionCall`
|
|
665
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
666
|
-
* @param ctx the parse tree
|
|
667
|
-
* @return the visitor result
|
|
668
|
-
*/
|
|
669
|
-
visitFunctionCall?: (ctx: FunctionCallContext) => Result;
|
|
670
|
-
/**
|
|
671
|
-
* Visit a parse tree produced by the `unboundRangeLiteral`
|
|
672
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
673
|
-
* @param ctx the parse tree
|
|
674
|
-
* @return the visitor result
|
|
675
|
-
*/
|
|
676
|
-
visitUnboundRangeLiteral?: (ctx: UnboundRangeLiteralContext) => Result;
|
|
677
|
-
/**
|
|
678
|
-
* Visit a parse tree produced by the `numericLiteral`
|
|
679
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
680
|
-
* @param ctx the parse tree
|
|
681
|
-
* @return the visitor result
|
|
682
|
-
*/
|
|
683
|
-
visitNumericLiteral?: (ctx: NumericLiteralContext) => Result;
|
|
684
|
-
/**
|
|
685
|
-
* Visit a parse tree produced by the `booleanLiteral`
|
|
686
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
687
|
-
* @param ctx the parse tree
|
|
688
|
-
* @return the visitor result
|
|
689
|
-
*/
|
|
690
|
-
visitBooleanLiteral?: (ctx: BooleanLiteralContext) => Result;
|
|
691
|
-
/**
|
|
692
|
-
* Visit a parse tree produced by the `intervalLiteral`
|
|
693
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
694
|
-
* @param ctx the parse tree
|
|
695
|
-
* @return the visitor result
|
|
696
|
-
*/
|
|
697
|
-
visitIntervalLiteral?: (ctx: IntervalLiteralContext) => Result;
|
|
698
|
-
/**
|
|
699
|
-
* Visit a parse tree produced by the `parameterizedType`
|
|
700
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
701
|
-
* @param ctx the parse tree
|
|
702
|
-
* @return the visitor result
|
|
703
|
-
*/
|
|
704
|
-
visitParameterizedType?: (ctx: ParameterizedTypeContext) => Result;
|
|
705
|
-
/**
|
|
706
|
-
* Visit a parse tree produced by the `typeWithArguments`
|
|
707
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
708
|
-
* @param ctx the parse tree
|
|
709
|
-
* @return the visitor result
|
|
710
|
-
*/
|
|
711
|
-
visitTypeWithArguments?: (ctx: TypeWithArgumentsContext) => Result;
|
|
712
|
-
/**
|
|
713
|
-
* Visit a parse tree produced by the `structType`
|
|
714
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
715
|
-
* @param ctx the parse tree
|
|
716
|
-
* @return the visitor result
|
|
717
|
-
*/
|
|
718
|
-
visitStructType?: (ctx: StructTypeContext) => Result;
|
|
719
|
-
/**
|
|
720
|
-
* Visit a parse tree produced by the `tupleType`
|
|
721
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
722
|
-
* @param ctx the parse tree
|
|
723
|
-
* @return the visitor result
|
|
724
|
-
*/
|
|
725
|
-
visitTupleType?: (ctx: TupleTypeContext) => Result;
|
|
726
|
-
/**
|
|
727
|
-
* Visit a parse tree produced by the `simpleType`
|
|
728
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
729
|
-
* @param ctx the parse tree
|
|
730
|
-
* @return the visitor result
|
|
731
|
-
*/
|
|
732
|
-
visitSimpleType?: (ctx: SimpleTypeContext) => Result;
|
|
733
|
-
/**
|
|
734
|
-
* Visit a parse tree produced by the `quantified`
|
|
735
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
736
|
-
* @param ctx the parse tree
|
|
737
|
-
* @return the visitor result
|
|
738
|
-
*/
|
|
739
|
-
visitQuantified?: (ctx: QuantifiedContext) => Result;
|
|
740
|
-
/**
|
|
741
|
-
* Visit a parse tree produced by the `nested`
|
|
742
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
743
|
-
* @param ctx the parse tree
|
|
744
|
-
* @return the visitor result
|
|
745
|
-
*/
|
|
746
|
-
visitNested?: (ctx: NestedContext) => Result;
|
|
747
|
-
/**
|
|
748
|
-
* Visit a parse tree produced by the `AnyNumber`
|
|
749
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
750
|
-
* @param ctx the parse tree
|
|
751
|
-
* @return the visitor result
|
|
752
|
-
*/
|
|
753
|
-
visitAnyNumber?: (ctx: AnyNumberContext) => Result;
|
|
754
|
-
/**
|
|
755
|
-
* Visit a parse tree produced by the `AtLeastOne`
|
|
756
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
757
|
-
* @param ctx the parse tree
|
|
758
|
-
* @return the visitor result
|
|
759
|
-
*/
|
|
760
|
-
visitAtLeastOne?: (ctx: AtLeastOneContext) => Result;
|
|
761
|
-
/**
|
|
762
|
-
* Visit a parse tree produced by the `ZeroOrOne`
|
|
763
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
764
|
-
* @param ctx the parse tree
|
|
765
|
-
* @return the visitor result
|
|
766
|
-
*/
|
|
767
|
-
visitZeroOrOne?: (ctx: ZeroOrOneContext) => Result;
|
|
768
|
-
/**
|
|
769
|
-
* Visit a parse tree produced by the `Exactly`
|
|
770
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
771
|
-
* @param ctx the parse tree
|
|
772
|
-
* @return the visitor result
|
|
773
|
-
*/
|
|
774
|
-
visitExactly?: (ctx: ExactlyContext) => Result;
|
|
775
|
-
/**
|
|
776
|
-
* Visit a parse tree produced by `HamelinParser.columnReference`.
|
|
777
|
-
* @param ctx the parse tree
|
|
778
|
-
* @return the visitor result
|
|
779
|
-
*/
|
|
780
|
-
visitColumnReference?: (ctx: ColumnReferenceContext) => Result;
|
|
781
|
-
/**
|
|
782
|
-
* Visit a parse tree produced by `HamelinParser.tableReference`.
|
|
783
|
-
* @param ctx the parse tree
|
|
784
|
-
* @return the visitor result
|
|
785
|
-
*/
|
|
786
|
-
visitTableReference?: (ctx: TableReferenceContext) => Result;
|
|
787
|
-
/**
|
|
788
|
-
* Visit a parse tree produced by `HamelinParser.identifier`.
|
|
789
|
-
* @param ctx the parse tree
|
|
790
|
-
* @return the visitor result
|
|
791
|
-
*/
|
|
792
|
-
visitIdentifier?: (ctx: IdentifierContext) => Result;
|
|
793
|
-
/**
|
|
794
|
-
* Visit a parse tree produced by the `unquotedIdentifier`
|
|
795
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
796
|
-
* @param ctx the parse tree
|
|
797
|
-
* @return the visitor result
|
|
798
|
-
*/
|
|
799
|
-
visitUnquotedIdentifier?: (ctx: UnquotedIdentifierContext) => Result;
|
|
800
|
-
/**
|
|
801
|
-
* Visit a parse tree produced by the `backQuotedIdentifier`
|
|
802
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
803
|
-
* @param ctx the parse tree
|
|
804
|
-
* @return the visitor result
|
|
805
|
-
*/
|
|
806
|
-
visitBackQuotedIdentifier?: (ctx: BackQuotedIdentifierContext) => Result;
|
|
807
|
-
/**
|
|
808
|
-
* Visit a parse tree produced by the `basicSingleQuotedStringLiteral`
|
|
809
|
-
* labeled alternative in `HamelinParser.string`.
|
|
810
|
-
* @param ctx the parse tree
|
|
811
|
-
* @return the visitor result
|
|
812
|
-
*/
|
|
813
|
-
visitBasicSingleQuotedStringLiteral?: (ctx: BasicSingleQuotedStringLiteralContext) => Result;
|
|
814
|
-
/**
|
|
815
|
-
* Visit a parse tree produced by the `basicDoubleQuotedStringLiteral`
|
|
816
|
-
* labeled alternative in `HamelinParser.string`.
|
|
817
|
-
* @param ctx the parse tree
|
|
818
|
-
* @return the visitor result
|
|
819
|
-
*/
|
|
820
|
-
visitBasicDoubleQuotedStringLiteral?: (ctx: BasicDoubleQuotedStringLiteralContext) => Result;
|
|
821
|
-
/**
|
|
822
|
-
* Visit a parse tree produced by the `unicodeSingleQuotedStringLiteral`
|
|
823
|
-
* labeled alternative in `HamelinParser.string`.
|
|
824
|
-
* @param ctx the parse tree
|
|
825
|
-
* @return the visitor result
|
|
826
|
-
*/
|
|
827
|
-
visitUnicodeSingleQuotedStringLiteral?: (ctx: UnicodeSingleQuotedStringLiteralContext) => Result;
|
|
828
|
-
/**
|
|
829
|
-
* Visit a parse tree produced by the `unicodeDoubleQuotedStringLiteral`
|
|
830
|
-
* labeled alternative in `HamelinParser.string`.
|
|
831
|
-
* @param ctx the parse tree
|
|
832
|
-
* @return the visitor result
|
|
833
|
-
*/
|
|
834
|
-
visitUnicodeDoubleQuotedStringLiteral?: (ctx: UnicodeDoubleQuotedStringLiteralContext) => Result;
|
|
835
|
-
/**
|
|
836
|
-
* Visit a parse tree produced by the `decimalLiteral`
|
|
837
|
-
* labeled alternative in `HamelinParser.number`.
|
|
838
|
-
* @param ctx the parse tree
|
|
839
|
-
* @return the visitor result
|
|
840
|
-
*/
|
|
841
|
-
visitDecimalLiteral?: (ctx: DecimalLiteralContext) => Result;
|
|
842
|
-
/**
|
|
843
|
-
* Visit a parse tree produced by the `scientificLiteral`
|
|
844
|
-
* labeled alternative in `HamelinParser.number`.
|
|
845
|
-
* @param ctx the parse tree
|
|
846
|
-
* @return the visitor result
|
|
847
|
-
*/
|
|
848
|
-
visitScientificLiteral?: (ctx: ScientificLiteralContext) => Result;
|
|
849
|
-
/**
|
|
850
|
-
* Visit a parse tree produced by the `integerLiteral`
|
|
851
|
-
* labeled alternative in `HamelinParser.number`.
|
|
852
|
-
* @param ctx the parse tree
|
|
853
|
-
* @return the visitor result
|
|
854
|
-
*/
|
|
855
|
-
visitIntegerLiteral?: (ctx: IntegerLiteralContext) => Result;
|
|
856
|
-
/**
|
|
857
|
-
* Visit a parse tree produced by `HamelinParser.positionalArgument`.
|
|
858
|
-
* @param ctx the parse tree
|
|
859
|
-
* @return the visitor result
|
|
860
|
-
*/
|
|
861
|
-
visitPositionalArgument?: (ctx: PositionalArgumentContext) => Result;
|
|
862
|
-
/**
|
|
863
|
-
* Visit a parse tree produced by `HamelinParser.namedArgument`.
|
|
864
|
-
* @param ctx the parse tree
|
|
865
|
-
* @return the visitor result
|
|
866
|
-
*/
|
|
867
|
-
visitNamedArgument?: (ctx: NamedArgumentContext) => Result;
|
|
868
|
-
}
|
|
155
|
+
declare const getLimits: (hamelinQuery: string) => number[];
|
|
869
156
|
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
static readonly WHERE_COMMAND = 2;
|
|
873
|
-
static readonly SELECT_COMMAND = 3;
|
|
874
|
-
static readonly DROP_COMMAND = 4;
|
|
875
|
-
static readonly FROM_COMMAND = 5;
|
|
876
|
-
static readonly UNION_COMMAND = 6;
|
|
877
|
-
static readonly LIMIT_COMMAND = 7;
|
|
878
|
-
static readonly PARSE_COMMAND = 8;
|
|
879
|
-
static readonly WITHIN_COMMAND = 9;
|
|
880
|
-
static readonly AGG_COMMAND = 10;
|
|
881
|
-
static readonly WINDOW_COMMAND = 11;
|
|
882
|
-
static readonly APPEND_COMMAND = 12;
|
|
883
|
-
static readonly JOIN_COMMAND = 13;
|
|
884
|
-
static readonly LOOKUP_COMMAND = 14;
|
|
885
|
-
static readonly EXPLODE_COMMAND = 15;
|
|
886
|
-
static readonly UNNEST_COMMAND = 16;
|
|
887
|
-
static readonly NEST_COMMAND = 17;
|
|
888
|
-
static readonly ROWS_COMMAND = 18;
|
|
889
|
-
static readonly MATCH_COMMAND = 19;
|
|
890
|
-
static readonly AS = 20;
|
|
891
|
-
static readonly NODROP = 21;
|
|
892
|
-
static readonly PLUS = 22;
|
|
893
|
-
static readonly MINUS = 23;
|
|
894
|
-
static readonly ASTERISK = 24;
|
|
895
|
-
static readonly SLASH = 25;
|
|
896
|
-
static readonly PERCENT = 26;
|
|
897
|
-
static readonly LCURLY = 27;
|
|
898
|
-
static readonly RCURLY = 28;
|
|
899
|
-
static readonly COLON = 29;
|
|
900
|
-
static readonly QUESTIONMARK = 30;
|
|
901
|
-
static readonly EQ = 31;
|
|
902
|
-
static readonly NEQ = 32;
|
|
903
|
-
static readonly LT = 33;
|
|
904
|
-
static readonly LTE = 34;
|
|
905
|
-
static readonly GT = 35;
|
|
906
|
-
static readonly GTE = 36;
|
|
907
|
-
static readonly RANGE = 37;
|
|
908
|
-
static readonly ASSIGN = 38;
|
|
909
|
-
static readonly AND = 39;
|
|
910
|
-
static readonly FALSE = 40;
|
|
911
|
-
static readonly IS = 41;
|
|
912
|
-
static readonly NOT = 42;
|
|
913
|
-
static readonly ISNOT = 43;
|
|
914
|
-
static readonly IN = 44;
|
|
915
|
-
static readonly NOTIN = 45;
|
|
916
|
-
static readonly NULL = 46;
|
|
917
|
-
static readonly OR = 47;
|
|
918
|
-
static readonly TRUE = 48;
|
|
919
|
-
static readonly UESCAPE = 49;
|
|
920
|
-
static readonly WITH = 50;
|
|
921
|
-
static readonly BY = 51;
|
|
922
|
-
static readonly SORT = 52;
|
|
923
|
-
static readonly ASC = 53;
|
|
924
|
-
static readonly DESC = 54;
|
|
925
|
-
static readonly DISTINCT_BY = 55;
|
|
926
|
-
static readonly ON = 56;
|
|
927
|
-
static readonly WHEN = 57;
|
|
928
|
-
static readonly COMMA = 58;
|
|
929
|
-
static readonly PIPE = 59;
|
|
930
|
-
static readonly LPARENS = 60;
|
|
931
|
-
static readonly RPARENS = 61;
|
|
932
|
-
static readonly DOT = 62;
|
|
933
|
-
static readonly LBRACKET = 63;
|
|
934
|
-
static readonly RBRACKET = 64;
|
|
935
|
-
static readonly SINGLE_QUOTED_STRING = 65;
|
|
936
|
-
static readonly DOUBLE_QUOTED_STRING = 66;
|
|
937
|
-
static readonly SINGLE_QUOTED_UNICODE_STRING = 67;
|
|
938
|
-
static readonly DOUBLE_QUOTED_UNICODE_STRING = 68;
|
|
939
|
-
static readonly BINARY_LITERAL = 69;
|
|
940
|
-
static readonly NANOSECOND_INTERVAL = 70;
|
|
941
|
-
static readonly MICROSECOND_INTERVAL = 71;
|
|
942
|
-
static readonly MILLISECOND_INTERVAL = 72;
|
|
943
|
-
static readonly SECOND_INTERVAL = 73;
|
|
944
|
-
static readonly MINUTE_INTERVAL = 74;
|
|
945
|
-
static readonly HOUR_INTERVAL = 75;
|
|
946
|
-
static readonly DAY_INTERVAL = 76;
|
|
947
|
-
static readonly WEEK_INTERVAL = 77;
|
|
948
|
-
static readonly MONTH_INTERVAL = 78;
|
|
949
|
-
static readonly QUARTER_INTERVAL = 79;
|
|
950
|
-
static readonly YEAR_INTERVAL = 80;
|
|
951
|
-
static readonly ROWS_LITERAL = 81;
|
|
952
|
-
static readonly SECOND_TRUNC = 82;
|
|
953
|
-
static readonly MINUTE_TRUNC = 83;
|
|
954
|
-
static readonly HOUR_TRUNC = 84;
|
|
955
|
-
static readonly DAY_TRUNC = 85;
|
|
956
|
-
static readonly WEEK_TRUNC = 86;
|
|
957
|
-
static readonly MONTH_TRUNC = 87;
|
|
958
|
-
static readonly QUARTER_TRUNC = 88;
|
|
959
|
-
static readonly YEAR_TRUNC = 89;
|
|
960
|
-
static readonly INTEGER_VALUE = 90;
|
|
961
|
-
static readonly DECIMAL_VALUE = 91;
|
|
962
|
-
static readonly DOUBLE_VALUE = 92;
|
|
963
|
-
static readonly IDENTIFIER = 93;
|
|
964
|
-
static readonly BACKQUOTED_IDENTIFIER = 94;
|
|
965
|
-
static readonly SIMPLE_COMMENT = 95;
|
|
966
|
-
static readonly BRACKETED_COMMENT = 96;
|
|
967
|
-
static readonly WS = 97;
|
|
968
|
-
static readonly RULE_identifierEOF = 0;
|
|
969
|
-
static readonly RULE_queryEOF = 1;
|
|
970
|
-
static readonly RULE_commandEOF = 2;
|
|
971
|
-
static readonly RULE_expressionEOF = 3;
|
|
972
|
-
static readonly RULE_simpleIdentifierEOF = 4;
|
|
973
|
-
static readonly RULE_query = 5;
|
|
974
|
-
static readonly RULE_pipeline = 6;
|
|
975
|
-
static readonly RULE_command = 7;
|
|
976
|
-
static readonly RULE_assignmentClause = 8;
|
|
977
|
-
static readonly RULE_groupClause = 9;
|
|
978
|
-
static readonly RULE_assignment = 10;
|
|
979
|
-
static readonly RULE_matchDefine = 11;
|
|
980
|
-
static readonly RULE_selection = 12;
|
|
981
|
-
static readonly RULE_sortExpression = 13;
|
|
982
|
-
static readonly RULE_tableAlias = 14;
|
|
983
|
-
static readonly RULE_fromClause = 15;
|
|
984
|
-
static readonly RULE_expression = 16;
|
|
985
|
-
static readonly RULE_hamelintype = 17;
|
|
986
|
-
static readonly RULE_pattern = 18;
|
|
987
|
-
static readonly RULE_quantifier = 19;
|
|
988
|
-
static readonly RULE_columnReference = 20;
|
|
989
|
-
static readonly RULE_tableReference = 21;
|
|
990
|
-
static readonly RULE_identifier = 22;
|
|
991
|
-
static readonly RULE_simpleIdentifier = 23;
|
|
992
|
-
static readonly RULE_string = 24;
|
|
993
|
-
static readonly RULE_number = 25;
|
|
994
|
-
static readonly RULE_positionalArgument = 26;
|
|
995
|
-
static readonly RULE_namedArgument = 27;
|
|
996
|
-
static readonly literalNames: (string | null)[];
|
|
997
|
-
static readonly symbolicNames: (string | null)[];
|
|
998
|
-
static readonly ruleNames: string[];
|
|
999
|
-
get grammarFileName(): string;
|
|
1000
|
-
get literalNames(): (string | null)[];
|
|
1001
|
-
get symbolicNames(): (string | null)[];
|
|
1002
|
-
get ruleNames(): string[];
|
|
1003
|
-
get serializedATN(): number[];
|
|
1004
|
-
protected createFailedPredicateException(predicate?: string, message?: string): antlr.FailedPredicateException;
|
|
1005
|
-
constructor(input: antlr.TokenStream);
|
|
1006
|
-
identifierEOF(): IdentifierEOFContext;
|
|
1007
|
-
queryEOF(): QueryEOFContext;
|
|
1008
|
-
commandEOF(): CommandEOFContext;
|
|
1009
|
-
expressionEOF(): ExpressionEOFContext;
|
|
1010
|
-
simpleIdentifierEOF(): SimpleIdentifierEOFContext;
|
|
1011
|
-
query(): QueryContext;
|
|
1012
|
-
pipeline(): PipelineContext;
|
|
1013
|
-
command(): CommandContext;
|
|
1014
|
-
assignmentClause(): AssignmentClauseContext;
|
|
1015
|
-
groupClause(): GroupClauseContext;
|
|
1016
|
-
assignment(): AssignmentContext;
|
|
1017
|
-
matchDefine(): MatchDefineContext;
|
|
1018
|
-
selection(): SelectionContext;
|
|
1019
|
-
sortExpression(): SortExpressionContext;
|
|
1020
|
-
tableAlias(): TableAliasContext;
|
|
1021
|
-
fromClause(): FromClauseContext;
|
|
1022
|
-
expression(): ExpressionContext;
|
|
1023
|
-
expression(_p: number): ExpressionContext;
|
|
1024
|
-
hamelintype(): HamelintypeContext;
|
|
1025
|
-
pattern(): PatternContext;
|
|
1026
|
-
quantifier(): QuantifierContext;
|
|
1027
|
-
columnReference(): ColumnReferenceContext;
|
|
1028
|
-
tableReference(): TableReferenceContext;
|
|
1029
|
-
identifier(): IdentifierContext;
|
|
1030
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1031
|
-
string_(): StringContext;
|
|
1032
|
-
number_(): NumberContext;
|
|
1033
|
-
positionalArgument(): PositionalArgumentContext;
|
|
1034
|
-
namedArgument(): NamedArgumentContext;
|
|
1035
|
-
sempred(localContext: antlr.ParserRuleContext | null, ruleIndex: number, predIndex: number): boolean;
|
|
1036
|
-
private expression_sempred;
|
|
1037
|
-
static readonly _serializedATN: number[];
|
|
1038
|
-
private static __ATN;
|
|
1039
|
-
static get _ATN(): antlr.ATN;
|
|
1040
|
-
private static readonly vocabulary;
|
|
1041
|
-
get vocabulary(): antlr.Vocabulary;
|
|
1042
|
-
private static readonly decisionsToDFA;
|
|
1043
|
-
}
|
|
1044
|
-
declare class IdentifierEOFContext extends antlr.ParserRuleContext {
|
|
1045
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1046
|
-
identifier(): IdentifierContext;
|
|
1047
|
-
EOF(): antlr.TerminalNode;
|
|
1048
|
-
get ruleIndex(): number;
|
|
1049
|
-
enterRule(listener: HamelinListener): void;
|
|
1050
|
-
exitRule(listener: HamelinListener): void;
|
|
1051
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1052
|
-
}
|
|
1053
|
-
declare class QueryEOFContext extends antlr.ParserRuleContext {
|
|
1054
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1055
|
-
query(): QueryContext;
|
|
1056
|
-
EOF(): antlr.TerminalNode;
|
|
1057
|
-
get ruleIndex(): number;
|
|
1058
|
-
enterRule(listener: HamelinListener): void;
|
|
1059
|
-
exitRule(listener: HamelinListener): void;
|
|
1060
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1061
|
-
}
|
|
1062
|
-
declare class CommandEOFContext extends antlr.ParserRuleContext {
|
|
1063
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1064
|
-
command(): CommandContext;
|
|
1065
|
-
EOF(): antlr.TerminalNode;
|
|
1066
|
-
get ruleIndex(): number;
|
|
1067
|
-
enterRule(listener: HamelinListener): void;
|
|
1068
|
-
exitRule(listener: HamelinListener): void;
|
|
1069
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1070
|
-
}
|
|
1071
|
-
declare class ExpressionEOFContext extends antlr.ParserRuleContext {
|
|
1072
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1073
|
-
expression(): ExpressionContext;
|
|
1074
|
-
EOF(): antlr.TerminalNode;
|
|
1075
|
-
get ruleIndex(): number;
|
|
1076
|
-
enterRule(listener: HamelinListener): void;
|
|
1077
|
-
exitRule(listener: HamelinListener): void;
|
|
1078
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1079
|
-
}
|
|
1080
|
-
declare class SimpleIdentifierEOFContext extends antlr.ParserRuleContext {
|
|
1081
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1082
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1083
|
-
EOF(): antlr.TerminalNode;
|
|
1084
|
-
get ruleIndex(): number;
|
|
1085
|
-
enterRule(listener: HamelinListener): void;
|
|
1086
|
-
exitRule(listener: HamelinListener): void;
|
|
1087
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1088
|
-
}
|
|
1089
|
-
declare class QueryContext extends antlr.ParserRuleContext {
|
|
1090
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1091
|
-
get ruleIndex(): number;
|
|
1092
|
-
copyFrom(ctx: QueryContext): void;
|
|
1093
|
-
}
|
|
1094
|
-
declare class WithQueryContext extends QueryContext {
|
|
1095
|
-
constructor(ctx: QueryContext);
|
|
1096
|
-
pipeline(): PipelineContext[];
|
|
1097
|
-
pipeline(i: number): PipelineContext | null;
|
|
1098
|
-
WITH(): antlr.TerminalNode[];
|
|
1099
|
-
WITH(i: number): antlr.TerminalNode | null;
|
|
1100
|
-
simpleIdentifier(): SimpleIdentifierContext[];
|
|
1101
|
-
simpleIdentifier(i: number): SimpleIdentifierContext | null;
|
|
1102
|
-
ASSIGN(): antlr.TerminalNode[];
|
|
1103
|
-
ASSIGN(i: number): antlr.TerminalNode | null;
|
|
1104
|
-
enterRule(listener: HamelinListener): void;
|
|
1105
|
-
exitRule(listener: HamelinListener): void;
|
|
1106
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1107
|
-
}
|
|
1108
|
-
declare class StandaloneQueryContext extends QueryContext {
|
|
1109
|
-
constructor(ctx: QueryContext);
|
|
1110
|
-
pipeline(): PipelineContext;
|
|
1111
|
-
enterRule(listener: HamelinListener): void;
|
|
1112
|
-
exitRule(listener: HamelinListener): void;
|
|
1113
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1114
|
-
}
|
|
1115
|
-
declare class ExpressionQueryContext extends QueryContext {
|
|
1116
|
-
constructor(ctx: QueryContext);
|
|
1117
|
-
expression(): ExpressionContext;
|
|
1118
|
-
enterRule(listener: HamelinListener): void;
|
|
1119
|
-
exitRule(listener: HamelinListener): void;
|
|
1120
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1121
|
-
}
|
|
1122
|
-
declare class PipelineContext extends antlr.ParserRuleContext {
|
|
1123
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1124
|
-
get ruleIndex(): number;
|
|
1125
|
-
copyFrom(ctx: PipelineContext): void;
|
|
1126
|
-
}
|
|
1127
|
-
declare class PipelineAltContext extends PipelineContext {
|
|
1128
|
-
constructor(ctx: PipelineContext);
|
|
1129
|
-
command(): CommandContext[];
|
|
1130
|
-
command(i: number): CommandContext | null;
|
|
1131
|
-
PIPE(): antlr.TerminalNode[];
|
|
1132
|
-
PIPE(i: number): antlr.TerminalNode | null;
|
|
1133
|
-
enterRule(listener: HamelinListener): void;
|
|
1134
|
-
exitRule(listener: HamelinListener): void;
|
|
1135
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1136
|
-
}
|
|
1137
|
-
declare class CommandContext extends antlr.ParserRuleContext {
|
|
1138
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1139
|
-
get ruleIndex(): number;
|
|
1140
|
-
copyFrom(ctx: CommandContext): void;
|
|
1141
|
-
}
|
|
1142
|
-
declare class WhereCommandContext extends CommandContext {
|
|
1143
|
-
constructor(ctx: CommandContext);
|
|
1144
|
-
WHERE_COMMAND(): antlr.TerminalNode;
|
|
1145
|
-
expression(): ExpressionContext;
|
|
1146
|
-
enterRule(listener: HamelinListener): void;
|
|
1147
|
-
exitRule(listener: HamelinListener): void;
|
|
1148
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1149
|
-
}
|
|
1150
|
-
declare class UnnestCommandContext extends CommandContext {
|
|
1151
|
-
constructor(ctx: CommandContext);
|
|
1152
|
-
expression(): ExpressionContext;
|
|
1153
|
-
UNNEST_COMMAND(): antlr.TerminalNode | null;
|
|
1154
|
-
ROWS_COMMAND(): antlr.TerminalNode | null;
|
|
1155
|
-
enterRule(listener: HamelinListener): void;
|
|
1156
|
-
exitRule(listener: HamelinListener): void;
|
|
1157
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1158
|
-
}
|
|
1159
|
-
declare class DropCommandContext extends CommandContext {
|
|
1160
|
-
constructor(ctx: CommandContext);
|
|
1161
|
-
DROP_COMMAND(): antlr.TerminalNode;
|
|
1162
|
-
selection(): SelectionContext[];
|
|
1163
|
-
selection(i: number): SelectionContext | null;
|
|
1164
|
-
COMMA(): antlr.TerminalNode[];
|
|
1165
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1166
|
-
enterRule(listener: HamelinListener): void;
|
|
1167
|
-
exitRule(listener: HamelinListener): void;
|
|
1168
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1169
|
-
}
|
|
1170
|
-
declare class MatchCommandContext extends CommandContext {
|
|
1171
|
-
_within?: ExpressionContext;
|
|
1172
|
-
constructor(ctx: CommandContext);
|
|
1173
|
-
MATCH_COMMAND(): antlr.TerminalNode;
|
|
1174
|
-
pattern(): PatternContext[];
|
|
1175
|
-
pattern(i: number): PatternContext | null;
|
|
1176
|
-
WITHIN_COMMAND(): antlr.TerminalNode | null;
|
|
1177
|
-
WHEN(): antlr.TerminalNode | null;
|
|
1178
|
-
matchDefine(): MatchDefineContext[];
|
|
1179
|
-
matchDefine(i: number): MatchDefineContext | null;
|
|
1180
|
-
COMMA(): antlr.TerminalNode[];
|
|
1181
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1182
|
-
BY(): antlr.TerminalNode[];
|
|
1183
|
-
BY(i: number): antlr.TerminalNode | null;
|
|
1184
|
-
groupClause(): GroupClauseContext[];
|
|
1185
|
-
groupClause(i: number): GroupClauseContext | null;
|
|
1186
|
-
SORT(): antlr.TerminalNode | null;
|
|
1187
|
-
sortExpression(): SortExpressionContext[];
|
|
1188
|
-
sortExpression(i: number): SortExpressionContext | null;
|
|
1189
|
-
expression(): ExpressionContext | null;
|
|
1190
|
-
enterRule(listener: HamelinListener): void;
|
|
1191
|
-
exitRule(listener: HamelinListener): void;
|
|
1192
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1193
|
-
}
|
|
1194
|
-
declare class SelectCommandContext extends CommandContext {
|
|
1195
|
-
constructor(ctx: CommandContext);
|
|
1196
|
-
SELECT_COMMAND(): antlr.TerminalNode;
|
|
1197
|
-
assignmentClause(): AssignmentClauseContext[];
|
|
1198
|
-
assignmentClause(i: number): AssignmentClauseContext | null;
|
|
1199
|
-
COMMA(): antlr.TerminalNode[];
|
|
1200
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1201
|
-
enterRule(listener: HamelinListener): void;
|
|
1202
|
-
exitRule(listener: HamelinListener): void;
|
|
1203
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1204
|
-
}
|
|
1205
|
-
declare class WindowCommandContext extends CommandContext {
|
|
1206
|
-
_within?: ExpressionContext;
|
|
1207
|
-
constructor(ctx: CommandContext);
|
|
1208
|
-
WINDOW_COMMAND(): antlr.TerminalNode;
|
|
1209
|
-
assignmentClause(): AssignmentClauseContext[];
|
|
1210
|
-
assignmentClause(i: number): AssignmentClauseContext | null;
|
|
1211
|
-
COMMA(): antlr.TerminalNode[];
|
|
1212
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1213
|
-
BY(): antlr.TerminalNode[];
|
|
1214
|
-
BY(i: number): antlr.TerminalNode | null;
|
|
1215
|
-
groupClause(): GroupClauseContext[];
|
|
1216
|
-
groupClause(i: number): GroupClauseContext | null;
|
|
1217
|
-
SORT(): antlr.TerminalNode | null;
|
|
1218
|
-
sortExpression(): SortExpressionContext[];
|
|
1219
|
-
sortExpression(i: number): SortExpressionContext | null;
|
|
1220
|
-
WITHIN_COMMAND(): antlr.TerminalNode | null;
|
|
1221
|
-
expression(): ExpressionContext | null;
|
|
1222
|
-
enterRule(listener: HamelinListener): void;
|
|
1223
|
-
exitRule(listener: HamelinListener): void;
|
|
1224
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1225
|
-
}
|
|
1226
|
-
declare class LimitCommandContext extends CommandContext {
|
|
1227
|
-
constructor(ctx: CommandContext);
|
|
1228
|
-
LIMIT_COMMAND(): antlr.TerminalNode;
|
|
1229
|
-
expression(): ExpressionContext;
|
|
1230
|
-
enterRule(listener: HamelinListener): void;
|
|
1231
|
-
exitRule(listener: HamelinListener): void;
|
|
1232
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1233
|
-
}
|
|
1234
|
-
declare class WithinCommandContext extends CommandContext {
|
|
1235
|
-
constructor(ctx: CommandContext);
|
|
1236
|
-
WITHIN_COMMAND(): antlr.TerminalNode;
|
|
1237
|
-
expression(): ExpressionContext;
|
|
1238
|
-
enterRule(listener: HamelinListener): void;
|
|
1239
|
-
exitRule(listener: HamelinListener): void;
|
|
1240
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1241
|
-
}
|
|
1242
|
-
declare class ExplodeCommandContext extends CommandContext {
|
|
1243
|
-
constructor(ctx: CommandContext);
|
|
1244
|
-
EXPLODE_COMMAND(): antlr.TerminalNode;
|
|
1245
|
-
assignmentClause(): AssignmentClauseContext;
|
|
1246
|
-
enterRule(listener: HamelinListener): void;
|
|
1247
|
-
exitRule(listener: HamelinListener): void;
|
|
1248
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1249
|
-
}
|
|
1250
|
-
declare class AppendCommandContext extends CommandContext {
|
|
1251
|
-
constructor(ctx: CommandContext);
|
|
1252
|
-
APPEND_COMMAND(): antlr.TerminalNode;
|
|
1253
|
-
tableReference(): TableReferenceContext;
|
|
1254
|
-
DISTINCT_BY(): antlr.TerminalNode | null;
|
|
1255
|
-
selection(): SelectionContext[];
|
|
1256
|
-
selection(i: number): SelectionContext | null;
|
|
1257
|
-
COMMA(): antlr.TerminalNode[];
|
|
1258
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1259
|
-
enterRule(listener: HamelinListener): void;
|
|
1260
|
-
exitRule(listener: HamelinListener): void;
|
|
1261
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1262
|
-
}
|
|
1263
|
-
declare class NestCommandContext extends CommandContext {
|
|
1264
|
-
constructor(ctx: CommandContext);
|
|
1265
|
-
NEST_COMMAND(): antlr.TerminalNode;
|
|
1266
|
-
identifier(): IdentifierContext;
|
|
1267
|
-
enterRule(listener: HamelinListener): void;
|
|
1268
|
-
exitRule(listener: HamelinListener): void;
|
|
1269
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1270
|
-
}
|
|
1271
|
-
declare class LetCommandContext extends CommandContext {
|
|
1272
|
-
constructor(ctx: CommandContext);
|
|
1273
|
-
LET_COMMAND(): antlr.TerminalNode;
|
|
1274
|
-
assignment(): AssignmentContext[];
|
|
1275
|
-
assignment(i: number): AssignmentContext | null;
|
|
1276
|
-
COMMA(): antlr.TerminalNode[];
|
|
1277
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1278
|
-
enterRule(listener: HamelinListener): void;
|
|
1279
|
-
exitRule(listener: HamelinListener): void;
|
|
1280
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1281
|
-
}
|
|
1282
|
-
declare class SortCommandContext extends CommandContext {
|
|
1283
|
-
constructor(ctx: CommandContext);
|
|
1284
|
-
SORT(): antlr.TerminalNode;
|
|
1285
|
-
sortExpression(): SortExpressionContext[];
|
|
1286
|
-
sortExpression(i: number): SortExpressionContext | null;
|
|
1287
|
-
BY(): antlr.TerminalNode | null;
|
|
1288
|
-
COMMA(): antlr.TerminalNode[];
|
|
1289
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1290
|
-
enterRule(listener: HamelinListener): void;
|
|
1291
|
-
exitRule(listener: HamelinListener): void;
|
|
1292
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1293
|
-
}
|
|
1294
|
-
declare class JoinCommandContext extends CommandContext {
|
|
1295
|
-
_on?: ExpressionContext;
|
|
1296
|
-
constructor(ctx: CommandContext);
|
|
1297
|
-
fromClause(): FromClauseContext;
|
|
1298
|
-
JOIN_COMMAND(): antlr.TerminalNode | null;
|
|
1299
|
-
LOOKUP_COMMAND(): antlr.TerminalNode | null;
|
|
1300
|
-
ON(): antlr.TerminalNode | null;
|
|
1301
|
-
expression(): ExpressionContext | null;
|
|
1302
|
-
enterRule(listener: HamelinListener): void;
|
|
1303
|
-
exitRule(listener: HamelinListener): void;
|
|
1304
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1305
|
-
}
|
|
1306
|
-
declare class UnionCommandContext extends CommandContext {
|
|
1307
|
-
constructor(ctx: CommandContext);
|
|
1308
|
-
UNION_COMMAND(): antlr.TerminalNode;
|
|
1309
|
-
fromClause(): FromClauseContext[];
|
|
1310
|
-
fromClause(i: number): FromClauseContext | null;
|
|
1311
|
-
COMMA(): antlr.TerminalNode[];
|
|
1312
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1313
|
-
enterRule(listener: HamelinListener): void;
|
|
1314
|
-
exitRule(listener: HamelinListener): void;
|
|
1315
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1316
|
-
}
|
|
1317
|
-
declare class AggCommandContext extends CommandContext {
|
|
1318
|
-
constructor(ctx: CommandContext);
|
|
1319
|
-
AGG_COMMAND(): antlr.TerminalNode;
|
|
1320
|
-
assignmentClause(): AssignmentClauseContext[];
|
|
1321
|
-
assignmentClause(i: number): AssignmentClauseContext | null;
|
|
1322
|
-
COMMA(): antlr.TerminalNode[];
|
|
1323
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1324
|
-
BY(): antlr.TerminalNode[];
|
|
1325
|
-
BY(i: number): antlr.TerminalNode | null;
|
|
1326
|
-
groupClause(): GroupClauseContext[];
|
|
1327
|
-
groupClause(i: number): GroupClauseContext | null;
|
|
1328
|
-
SORT(): antlr.TerminalNode | null;
|
|
1329
|
-
sortExpression(): SortExpressionContext[];
|
|
1330
|
-
sortExpression(i: number): SortExpressionContext | null;
|
|
1331
|
-
enterRule(listener: HamelinListener): void;
|
|
1332
|
-
exitRule(listener: HamelinListener): void;
|
|
1333
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1334
|
-
}
|
|
1335
|
-
declare class FromCommandContext extends CommandContext {
|
|
1336
|
-
constructor(ctx: CommandContext);
|
|
1337
|
-
FROM_COMMAND(): antlr.TerminalNode;
|
|
1338
|
-
fromClause(): FromClauseContext[];
|
|
1339
|
-
fromClause(i: number): FromClauseContext | null;
|
|
1340
|
-
COMMA(): antlr.TerminalNode[];
|
|
1341
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1342
|
-
enterRule(listener: HamelinListener): void;
|
|
1343
|
-
exitRule(listener: HamelinListener): void;
|
|
1344
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1345
|
-
}
|
|
1346
|
-
declare class ParseCommandContext extends CommandContext {
|
|
1347
|
-
_src?: ExpressionContext;
|
|
1348
|
-
constructor(ctx: CommandContext);
|
|
1349
|
-
PARSE_COMMAND(): antlr.TerminalNode;
|
|
1350
|
-
string(): StringContext;
|
|
1351
|
-
identifier(): IdentifierContext[];
|
|
1352
|
-
identifier(i: number): IdentifierContext | null;
|
|
1353
|
-
AS(): antlr.TerminalNode | null;
|
|
1354
|
-
COMMA(): antlr.TerminalNode[];
|
|
1355
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1356
|
-
NODROP(): antlr.TerminalNode | null;
|
|
1357
|
-
expression(): ExpressionContext | null;
|
|
1358
|
-
enterRule(listener: HamelinListener): void;
|
|
1359
|
-
exitRule(listener: HamelinListener): void;
|
|
1360
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1361
|
-
}
|
|
1362
|
-
declare class AssignmentClauseContext extends antlr.ParserRuleContext {
|
|
1363
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1364
|
-
assignment(): AssignmentContext | null;
|
|
1365
|
-
expression(): ExpressionContext | null;
|
|
1366
|
-
get ruleIndex(): number;
|
|
1367
|
-
enterRule(listener: HamelinListener): void;
|
|
1368
|
-
exitRule(listener: HamelinListener): void;
|
|
1369
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1370
|
-
}
|
|
1371
|
-
declare class GroupClauseContext extends antlr.ParserRuleContext {
|
|
1372
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1373
|
-
assignmentClause(): AssignmentClauseContext;
|
|
1374
|
-
get ruleIndex(): number;
|
|
1375
|
-
enterRule(listener: HamelinListener): void;
|
|
1376
|
-
exitRule(listener: HamelinListener): void;
|
|
1377
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1378
|
-
}
|
|
1379
|
-
declare class AssignmentContext extends antlr.ParserRuleContext {
|
|
1380
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1381
|
-
identifier(): IdentifierContext;
|
|
1382
|
-
ASSIGN(): antlr.TerminalNode;
|
|
1383
|
-
expression(): ExpressionContext;
|
|
1384
|
-
get ruleIndex(): number;
|
|
1385
|
-
enterRule(listener: HamelinListener): void;
|
|
1386
|
-
exitRule(listener: HamelinListener): void;
|
|
1387
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1388
|
-
}
|
|
1389
|
-
declare class MatchDefineContext extends antlr.ParserRuleContext {
|
|
1390
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1391
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1392
|
-
ASSIGN(): antlr.TerminalNode;
|
|
1393
|
-
expression(): ExpressionContext;
|
|
1394
|
-
get ruleIndex(): number;
|
|
1395
|
-
enterRule(listener: HamelinListener): void;
|
|
1396
|
-
exitRule(listener: HamelinListener): void;
|
|
1397
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1398
|
-
}
|
|
1399
|
-
declare class SelectionContext extends antlr.ParserRuleContext {
|
|
1400
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1401
|
-
identifier(): IdentifierContext;
|
|
1402
|
-
get ruleIndex(): number;
|
|
1403
|
-
enterRule(listener: HamelinListener): void;
|
|
1404
|
-
exitRule(listener: HamelinListener): void;
|
|
1405
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1406
|
-
}
|
|
1407
|
-
declare class SortExpressionContext extends antlr.ParserRuleContext {
|
|
1408
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1409
|
-
expression(): ExpressionContext;
|
|
1410
|
-
ASC(): antlr.TerminalNode | null;
|
|
1411
|
-
DESC(): antlr.TerminalNode | null;
|
|
1412
|
-
get ruleIndex(): number;
|
|
1413
|
-
enterRule(listener: HamelinListener): void;
|
|
1414
|
-
exitRule(listener: HamelinListener): void;
|
|
1415
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1416
|
-
}
|
|
1417
|
-
declare class TableAliasContext extends antlr.ParserRuleContext {
|
|
1418
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1419
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1420
|
-
ASSIGN(): antlr.TerminalNode;
|
|
1421
|
-
tableReference(): TableReferenceContext;
|
|
1422
|
-
get ruleIndex(): number;
|
|
1423
|
-
enterRule(listener: HamelinListener): void;
|
|
1424
|
-
exitRule(listener: HamelinListener): void;
|
|
1425
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1426
|
-
}
|
|
1427
|
-
declare class FromClauseContext extends antlr.ParserRuleContext {
|
|
1428
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1429
|
-
tableAlias(): TableAliasContext | null;
|
|
1430
|
-
tableReference(): TableReferenceContext | null;
|
|
1431
|
-
get ruleIndex(): number;
|
|
1432
|
-
enterRule(listener: HamelinListener): void;
|
|
1433
|
-
exitRule(listener: HamelinListener): void;
|
|
1434
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1435
|
-
}
|
|
1436
|
-
declare class ExpressionContext extends antlr.ParserRuleContext {
|
|
1437
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1438
|
-
get ruleIndex(): number;
|
|
1439
|
-
copyFrom(ctx: ExpressionContext): void;
|
|
1440
|
-
}
|
|
1441
|
-
declare class StructLiteralContext extends ExpressionContext {
|
|
1442
|
-
constructor(ctx: ExpressionContext);
|
|
1443
|
-
LCURLY(): antlr.TerminalNode;
|
|
1444
|
-
simpleIdentifier(): SimpleIdentifierContext[];
|
|
1445
|
-
simpleIdentifier(i: number): SimpleIdentifierContext | null;
|
|
1446
|
-
COLON(): antlr.TerminalNode[];
|
|
1447
|
-
COLON(i: number): antlr.TerminalNode | null;
|
|
1448
|
-
expression(): ExpressionContext[];
|
|
1449
|
-
expression(i: number): ExpressionContext | null;
|
|
1450
|
-
RCURLY(): antlr.TerminalNode;
|
|
1451
|
-
COMMA(): antlr.TerminalNode[];
|
|
1452
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1453
|
-
enterRule(listener: HamelinListener): void;
|
|
1454
|
-
exitRule(listener: HamelinListener): void;
|
|
1455
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1456
|
-
}
|
|
1457
|
-
declare class ColumnReferenceAltContext extends ExpressionContext {
|
|
1458
|
-
constructor(ctx: ExpressionContext);
|
|
1459
|
-
columnReference(): ColumnReferenceContext;
|
|
1460
|
-
enterRule(listener: HamelinListener): void;
|
|
1461
|
-
exitRule(listener: HamelinListener): void;
|
|
1462
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1463
|
-
}
|
|
1464
|
-
declare class DerefContext extends ExpressionContext {
|
|
1465
|
-
_left?: ExpressionContext;
|
|
1466
|
-
_operator?: Token | null;
|
|
1467
|
-
_right?: SimpleIdentifierContext;
|
|
1468
|
-
constructor(ctx: ExpressionContext);
|
|
1469
|
-
expression(): ExpressionContext;
|
|
1470
|
-
DOT(): antlr.TerminalNode;
|
|
1471
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1472
|
-
enterRule(listener: HamelinListener): void;
|
|
1473
|
-
exitRule(listener: HamelinListener): void;
|
|
1474
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1475
|
-
}
|
|
1476
|
-
declare class NullLiteralContext extends ExpressionContext {
|
|
1477
|
-
constructor(ctx: ExpressionContext);
|
|
1478
|
-
NULL(): antlr.TerminalNode;
|
|
1479
|
-
enterRule(listener: HamelinListener): void;
|
|
1480
|
-
exitRule(listener: HamelinListener): void;
|
|
1481
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1482
|
-
}
|
|
1483
|
-
declare class ArrayLiteralContext extends ExpressionContext {
|
|
1484
|
-
constructor(ctx: ExpressionContext);
|
|
1485
|
-
LBRACKET(): antlr.TerminalNode;
|
|
1486
|
-
RBRACKET(): antlr.TerminalNode;
|
|
1487
|
-
expression(): ExpressionContext[];
|
|
1488
|
-
expression(i: number): ExpressionContext | null;
|
|
1489
|
-
COMMA(): antlr.TerminalNode[];
|
|
1490
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1491
|
-
enterRule(listener: HamelinListener): void;
|
|
1492
|
-
exitRule(listener: HamelinListener): void;
|
|
1493
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1494
|
-
}
|
|
1495
|
-
declare class PairLiteralContext extends ExpressionContext {
|
|
1496
|
-
_left?: ExpressionContext;
|
|
1497
|
-
_operator?: Token | null;
|
|
1498
|
-
_right?: ExpressionContext;
|
|
1499
|
-
constructor(ctx: ExpressionContext);
|
|
1500
|
-
expression(): ExpressionContext[];
|
|
1501
|
-
expression(i: number): ExpressionContext | null;
|
|
1502
|
-
COLON(): antlr.TerminalNode;
|
|
1503
|
-
enterRule(listener: HamelinListener): void;
|
|
1504
|
-
exitRule(listener: HamelinListener): void;
|
|
1505
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1506
|
-
}
|
|
1507
|
-
declare class TsTruncContext extends ExpressionContext {
|
|
1508
|
-
constructor(ctx: ExpressionContext);
|
|
1509
|
-
expression(): ExpressionContext;
|
|
1510
|
-
SECOND_TRUNC(): antlr.TerminalNode | null;
|
|
1511
|
-
MINUTE_TRUNC(): antlr.TerminalNode | null;
|
|
1512
|
-
HOUR_TRUNC(): antlr.TerminalNode | null;
|
|
1513
|
-
DAY_TRUNC(): antlr.TerminalNode | null;
|
|
1514
|
-
WEEK_TRUNC(): antlr.TerminalNode | null;
|
|
1515
|
-
MONTH_TRUNC(): antlr.TerminalNode | null;
|
|
1516
|
-
QUARTER_TRUNC(): antlr.TerminalNode | null;
|
|
1517
|
-
YEAR_TRUNC(): antlr.TerminalNode | null;
|
|
1518
|
-
enterRule(listener: HamelinListener): void;
|
|
1519
|
-
exitRule(listener: HamelinListener): void;
|
|
1520
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1521
|
-
}
|
|
1522
|
-
declare class RowsLiteralContext extends ExpressionContext {
|
|
1523
|
-
constructor(ctx: ExpressionContext);
|
|
1524
|
-
ROWS_LITERAL(): antlr.TerminalNode;
|
|
1525
|
-
enterRule(listener: HamelinListener): void;
|
|
1526
|
-
exitRule(listener: HamelinListener): void;
|
|
1527
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1528
|
-
}
|
|
1529
|
-
declare class TsTruncTimestampLiteralContext extends ExpressionContext {
|
|
1530
|
-
constructor(ctx: ExpressionContext);
|
|
1531
|
-
SECOND_TRUNC(): antlr.TerminalNode | null;
|
|
1532
|
-
MINUTE_TRUNC(): antlr.TerminalNode | null;
|
|
1533
|
-
HOUR_TRUNC(): antlr.TerminalNode | null;
|
|
1534
|
-
DAY_TRUNC(): antlr.TerminalNode | null;
|
|
1535
|
-
WEEK_TRUNC(): antlr.TerminalNode | null;
|
|
1536
|
-
MONTH_TRUNC(): antlr.TerminalNode | null;
|
|
1537
|
-
QUARTER_TRUNC(): antlr.TerminalNode | null;
|
|
1538
|
-
YEAR_TRUNC(): antlr.TerminalNode | null;
|
|
1539
|
-
enterRule(listener: HamelinListener): void;
|
|
1540
|
-
exitRule(listener: HamelinListener): void;
|
|
1541
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1542
|
-
}
|
|
1543
|
-
declare class UnaryPrefixOperatorContext extends ExpressionContext {
|
|
1544
|
-
_operator?: Token | null;
|
|
1545
|
-
constructor(ctx: ExpressionContext);
|
|
1546
|
-
expression(): ExpressionContext;
|
|
1547
|
-
MINUS(): antlr.TerminalNode | null;
|
|
1548
|
-
PLUS(): antlr.TerminalNode | null;
|
|
1549
|
-
RANGE(): antlr.TerminalNode | null;
|
|
1550
|
-
NOT(): antlr.TerminalNode | null;
|
|
1551
|
-
enterRule(listener: HamelinListener): void;
|
|
1552
|
-
exitRule(listener: HamelinListener): void;
|
|
1553
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1554
|
-
}
|
|
1555
|
-
declare class BinaryLiteralContext extends ExpressionContext {
|
|
1556
|
-
constructor(ctx: ExpressionContext);
|
|
1557
|
-
BINARY_LITERAL(): antlr.TerminalNode;
|
|
1558
|
-
enterRule(listener: HamelinListener): void;
|
|
1559
|
-
exitRule(listener: HamelinListener): void;
|
|
1560
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1561
|
-
}
|
|
1562
|
-
declare class IndexAccessContext extends ExpressionContext {
|
|
1563
|
-
_value?: ExpressionContext;
|
|
1564
|
-
_index?: ExpressionContext;
|
|
1565
|
-
constructor(ctx: ExpressionContext);
|
|
1566
|
-
LBRACKET(): antlr.TerminalNode;
|
|
1567
|
-
RBRACKET(): antlr.TerminalNode;
|
|
1568
|
-
expression(): ExpressionContext[];
|
|
1569
|
-
expression(i: number): ExpressionContext | null;
|
|
1570
|
-
enterRule(listener: HamelinListener): void;
|
|
1571
|
-
exitRule(listener: HamelinListener): void;
|
|
1572
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1573
|
-
}
|
|
1574
|
-
declare class CastContext extends ExpressionContext {
|
|
1575
|
-
_left?: ExpressionContext;
|
|
1576
|
-
_operator?: Token | null;
|
|
1577
|
-
_right?: HamelintypeContext;
|
|
1578
|
-
constructor(ctx: ExpressionContext);
|
|
1579
|
-
expression(): ExpressionContext;
|
|
1580
|
-
AS(): antlr.TerminalNode;
|
|
1581
|
-
hamelintype(): HamelintypeContext;
|
|
1582
|
-
enterRule(listener: HamelinListener): void;
|
|
1583
|
-
exitRule(listener: HamelinListener): void;
|
|
1584
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1585
|
-
}
|
|
1586
|
-
declare class UnaryPostfixOperatorContext extends ExpressionContext {
|
|
1587
|
-
_operator?: Token | null;
|
|
1588
|
-
constructor(ctx: ExpressionContext);
|
|
1589
|
-
expression(): ExpressionContext;
|
|
1590
|
-
RANGE(): antlr.TerminalNode;
|
|
1591
|
-
enterRule(listener: HamelinListener): void;
|
|
1592
|
-
exitRule(listener: HamelinListener): void;
|
|
1593
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1594
|
-
}
|
|
1595
|
-
declare class TupleLiteralContext extends ExpressionContext {
|
|
1596
|
-
constructor(ctx: ExpressionContext);
|
|
1597
|
-
LPARENS(): antlr.TerminalNode;
|
|
1598
|
-
RPARENS(): antlr.TerminalNode;
|
|
1599
|
-
expression(): ExpressionContext[];
|
|
1600
|
-
expression(i: number): ExpressionContext | null;
|
|
1601
|
-
COMMA(): antlr.TerminalNode[];
|
|
1602
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1603
|
-
enterRule(listener: HamelinListener): void;
|
|
1604
|
-
exitRule(listener: HamelinListener): void;
|
|
1605
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1606
|
-
}
|
|
1607
|
-
declare class ParenthesizedExpressionContext extends ExpressionContext {
|
|
1608
|
-
constructor(ctx: ExpressionContext);
|
|
1609
|
-
LPARENS(): antlr.TerminalNode;
|
|
1610
|
-
expression(): ExpressionContext;
|
|
1611
|
-
RPARENS(): antlr.TerminalNode;
|
|
1612
|
-
enterRule(listener: HamelinListener): void;
|
|
1613
|
-
exitRule(listener: HamelinListener): void;
|
|
1614
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1615
|
-
}
|
|
1616
|
-
declare class StringLiteralContext extends ExpressionContext {
|
|
1617
|
-
constructor(ctx: ExpressionContext);
|
|
1618
|
-
string(): StringContext;
|
|
1619
|
-
enterRule(listener: HamelinListener): void;
|
|
1620
|
-
exitRule(listener: HamelinListener): void;
|
|
1621
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1622
|
-
}
|
|
1623
|
-
declare class BinaryOperatorContext extends ExpressionContext {
|
|
1624
|
-
_left?: ExpressionContext;
|
|
1625
|
-
_operator?: Token | null;
|
|
1626
|
-
_right?: ExpressionContext;
|
|
1627
|
-
constructor(ctx: ExpressionContext);
|
|
1628
|
-
expression(): ExpressionContext[];
|
|
1629
|
-
expression(i: number): ExpressionContext | null;
|
|
1630
|
-
ASTERISK(): antlr.TerminalNode | null;
|
|
1631
|
-
SLASH(): antlr.TerminalNode | null;
|
|
1632
|
-
PERCENT(): antlr.TerminalNode | null;
|
|
1633
|
-
PLUS(): antlr.TerminalNode | null;
|
|
1634
|
-
MINUS(): antlr.TerminalNode | null;
|
|
1635
|
-
RANGE(): antlr.TerminalNode | null;
|
|
1636
|
-
EQ(): antlr.TerminalNode | null;
|
|
1637
|
-
NEQ(): antlr.TerminalNode | null;
|
|
1638
|
-
LT(): antlr.TerminalNode | null;
|
|
1639
|
-
LTE(): antlr.TerminalNode | null;
|
|
1640
|
-
GT(): antlr.TerminalNode | null;
|
|
1641
|
-
GTE(): antlr.TerminalNode | null;
|
|
1642
|
-
IS(): antlr.TerminalNode | null;
|
|
1643
|
-
ISNOT(): antlr.TerminalNode | null;
|
|
1644
|
-
IN(): antlr.TerminalNode | null;
|
|
1645
|
-
NOTIN(): antlr.TerminalNode | null;
|
|
1646
|
-
AND(): antlr.TerminalNode | null;
|
|
1647
|
-
OR(): antlr.TerminalNode | null;
|
|
1648
|
-
enterRule(listener: HamelinListener): void;
|
|
1649
|
-
exitRule(listener: HamelinListener): void;
|
|
1650
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1651
|
-
}
|
|
1652
|
-
declare class FunctionCallContext extends ExpressionContext {
|
|
1653
|
-
_functionName?: SimpleIdentifierContext;
|
|
1654
|
-
constructor(ctx: ExpressionContext);
|
|
1655
|
-
LPARENS(): antlr.TerminalNode;
|
|
1656
|
-
RPARENS(): antlr.TerminalNode;
|
|
1657
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1658
|
-
namedArgument(): NamedArgumentContext[];
|
|
1659
|
-
namedArgument(i: number): NamedArgumentContext | null;
|
|
1660
|
-
COMMA(): antlr.TerminalNode[];
|
|
1661
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1662
|
-
positionalArgument(): PositionalArgumentContext[];
|
|
1663
|
-
positionalArgument(i: number): PositionalArgumentContext | null;
|
|
1664
|
-
enterRule(listener: HamelinListener): void;
|
|
1665
|
-
exitRule(listener: HamelinListener): void;
|
|
1666
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1667
|
-
}
|
|
1668
|
-
declare class UnboundRangeLiteralContext extends ExpressionContext {
|
|
1669
|
-
constructor(ctx: ExpressionContext);
|
|
1670
|
-
RANGE(): antlr.TerminalNode;
|
|
1671
|
-
enterRule(listener: HamelinListener): void;
|
|
1672
|
-
exitRule(listener: HamelinListener): void;
|
|
1673
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1674
|
-
}
|
|
1675
|
-
declare class NumericLiteralContext extends ExpressionContext {
|
|
1676
|
-
constructor(ctx: ExpressionContext);
|
|
1677
|
-
number(): NumberContext;
|
|
1678
|
-
enterRule(listener: HamelinListener): void;
|
|
1679
|
-
exitRule(listener: HamelinListener): void;
|
|
1680
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1681
|
-
}
|
|
1682
|
-
declare class BooleanLiteralContext extends ExpressionContext {
|
|
1683
|
-
constructor(ctx: ExpressionContext);
|
|
1684
|
-
TRUE(): antlr.TerminalNode | null;
|
|
1685
|
-
FALSE(): antlr.TerminalNode | null;
|
|
1686
|
-
enterRule(listener: HamelinListener): void;
|
|
1687
|
-
exitRule(listener: HamelinListener): void;
|
|
1688
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1689
|
-
}
|
|
1690
|
-
declare class IntervalLiteralContext extends ExpressionContext {
|
|
1691
|
-
constructor(ctx: ExpressionContext);
|
|
1692
|
-
NANOSECOND_INTERVAL(): antlr.TerminalNode | null;
|
|
1693
|
-
MICROSECOND_INTERVAL(): antlr.TerminalNode | null;
|
|
1694
|
-
MILLISECOND_INTERVAL(): antlr.TerminalNode | null;
|
|
1695
|
-
SECOND_INTERVAL(): antlr.TerminalNode | null;
|
|
1696
|
-
MINUTE_INTERVAL(): antlr.TerminalNode | null;
|
|
1697
|
-
HOUR_INTERVAL(): antlr.TerminalNode | null;
|
|
1698
|
-
DAY_INTERVAL(): antlr.TerminalNode | null;
|
|
1699
|
-
WEEK_INTERVAL(): antlr.TerminalNode | null;
|
|
1700
|
-
MONTH_INTERVAL(): antlr.TerminalNode | null;
|
|
1701
|
-
QUARTER_INTERVAL(): antlr.TerminalNode | null;
|
|
1702
|
-
YEAR_INTERVAL(): antlr.TerminalNode | null;
|
|
1703
|
-
enterRule(listener: HamelinListener): void;
|
|
1704
|
-
exitRule(listener: HamelinListener): void;
|
|
1705
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1706
|
-
}
|
|
1707
|
-
declare class HamelintypeContext extends antlr.ParserRuleContext {
|
|
1708
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1709
|
-
get ruleIndex(): number;
|
|
1710
|
-
copyFrom(ctx: HamelintypeContext): void;
|
|
1711
|
-
}
|
|
1712
|
-
declare class SimpleTypeContext extends HamelintypeContext {
|
|
1713
|
-
constructor(ctx: HamelintypeContext);
|
|
1714
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1715
|
-
enterRule(listener: HamelinListener): void;
|
|
1716
|
-
exitRule(listener: HamelinListener): void;
|
|
1717
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1718
|
-
}
|
|
1719
|
-
declare class TypeWithArgumentsContext extends HamelintypeContext {
|
|
1720
|
-
constructor(ctx: HamelintypeContext);
|
|
1721
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1722
|
-
LPARENS(): antlr.TerminalNode;
|
|
1723
|
-
INTEGER_VALUE(): antlr.TerminalNode[];
|
|
1724
|
-
INTEGER_VALUE(i: number): antlr.TerminalNode | null;
|
|
1725
|
-
RPARENS(): antlr.TerminalNode;
|
|
1726
|
-
COMMA(): antlr.TerminalNode[];
|
|
1727
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1728
|
-
enterRule(listener: HamelinListener): void;
|
|
1729
|
-
exitRule(listener: HamelinListener): void;
|
|
1730
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1731
|
-
}
|
|
1732
|
-
declare class StructTypeContext extends HamelintypeContext {
|
|
1733
|
-
constructor(ctx: HamelintypeContext);
|
|
1734
|
-
LCURLY(): antlr.TerminalNode;
|
|
1735
|
-
simpleIdentifier(): SimpleIdentifierContext[];
|
|
1736
|
-
simpleIdentifier(i: number): SimpleIdentifierContext | null;
|
|
1737
|
-
COLON(): antlr.TerminalNode[];
|
|
1738
|
-
COLON(i: number): antlr.TerminalNode | null;
|
|
1739
|
-
hamelintype(): HamelintypeContext[];
|
|
1740
|
-
hamelintype(i: number): HamelintypeContext | null;
|
|
1741
|
-
RCURLY(): antlr.TerminalNode;
|
|
1742
|
-
COMMA(): antlr.TerminalNode[];
|
|
1743
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1744
|
-
enterRule(listener: HamelinListener): void;
|
|
1745
|
-
exitRule(listener: HamelinListener): void;
|
|
1746
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1747
|
-
}
|
|
1748
|
-
declare class TupleTypeContext extends HamelintypeContext {
|
|
1749
|
-
constructor(ctx: HamelintypeContext);
|
|
1750
|
-
LPARENS(): antlr.TerminalNode;
|
|
1751
|
-
hamelintype(): HamelintypeContext[];
|
|
1752
|
-
hamelintype(i: number): HamelintypeContext | null;
|
|
1753
|
-
RPARENS(): antlr.TerminalNode;
|
|
1754
|
-
COMMA(): antlr.TerminalNode[];
|
|
1755
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1756
|
-
enterRule(listener: HamelinListener): void;
|
|
1757
|
-
exitRule(listener: HamelinListener): void;
|
|
1758
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1759
|
-
}
|
|
1760
|
-
declare class ParameterizedTypeContext extends HamelintypeContext {
|
|
1761
|
-
constructor(ctx: HamelintypeContext);
|
|
1762
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1763
|
-
LPARENS(): antlr.TerminalNode;
|
|
1764
|
-
hamelintype(): HamelintypeContext[];
|
|
1765
|
-
hamelintype(i: number): HamelintypeContext | null;
|
|
1766
|
-
RPARENS(): antlr.TerminalNode;
|
|
1767
|
-
COMMA(): antlr.TerminalNode[];
|
|
1768
|
-
COMMA(i: number): antlr.TerminalNode | null;
|
|
1769
|
-
enterRule(listener: HamelinListener): void;
|
|
1770
|
-
exitRule(listener: HamelinListener): void;
|
|
1771
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1772
|
-
}
|
|
1773
|
-
declare class PatternContext extends antlr.ParserRuleContext {
|
|
1774
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1775
|
-
get ruleIndex(): number;
|
|
1776
|
-
copyFrom(ctx: PatternContext): void;
|
|
1777
|
-
}
|
|
1778
|
-
declare class QuantifiedContext extends PatternContext {
|
|
1779
|
-
constructor(ctx: PatternContext);
|
|
1780
|
-
fromClause(): FromClauseContext;
|
|
1781
|
-
quantifier(): QuantifierContext | null;
|
|
1782
|
-
enterRule(listener: HamelinListener): void;
|
|
1783
|
-
exitRule(listener: HamelinListener): void;
|
|
1784
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1785
|
-
}
|
|
1786
|
-
declare class NestedContext extends PatternContext {
|
|
1787
|
-
constructor(ctx: PatternContext);
|
|
1788
|
-
LPARENS(): antlr.TerminalNode;
|
|
1789
|
-
RPARENS(): antlr.TerminalNode;
|
|
1790
|
-
quantifier(): QuantifierContext;
|
|
1791
|
-
pattern(): PatternContext[];
|
|
1792
|
-
pattern(i: number): PatternContext | null;
|
|
1793
|
-
enterRule(listener: HamelinListener): void;
|
|
1794
|
-
exitRule(listener: HamelinListener): void;
|
|
1795
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1796
|
-
}
|
|
1797
|
-
declare class QuantifierContext extends antlr.ParserRuleContext {
|
|
1798
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1799
|
-
get ruleIndex(): number;
|
|
1800
|
-
copyFrom(ctx: QuantifierContext): void;
|
|
1801
|
-
}
|
|
1802
|
-
declare class AnyNumberContext extends QuantifierContext {
|
|
1803
|
-
constructor(ctx: QuantifierContext);
|
|
1804
|
-
ASTERISK(): antlr.TerminalNode;
|
|
1805
|
-
enterRule(listener: HamelinListener): void;
|
|
1806
|
-
exitRule(listener: HamelinListener): void;
|
|
1807
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1808
|
-
}
|
|
1809
|
-
declare class ExactlyContext extends QuantifierContext {
|
|
1810
|
-
constructor(ctx: QuantifierContext);
|
|
1811
|
-
LCURLY(): antlr.TerminalNode;
|
|
1812
|
-
INTEGER_VALUE(): antlr.TerminalNode;
|
|
1813
|
-
RCURLY(): antlr.TerminalNode;
|
|
1814
|
-
enterRule(listener: HamelinListener): void;
|
|
1815
|
-
exitRule(listener: HamelinListener): void;
|
|
1816
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1817
|
-
}
|
|
1818
|
-
declare class AtLeastOneContext extends QuantifierContext {
|
|
1819
|
-
constructor(ctx: QuantifierContext);
|
|
1820
|
-
PLUS(): antlr.TerminalNode;
|
|
1821
|
-
enterRule(listener: HamelinListener): void;
|
|
1822
|
-
exitRule(listener: HamelinListener): void;
|
|
1823
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1824
|
-
}
|
|
1825
|
-
declare class ZeroOrOneContext extends QuantifierContext {
|
|
1826
|
-
constructor(ctx: QuantifierContext);
|
|
1827
|
-
QUESTIONMARK(): antlr.TerminalNode;
|
|
1828
|
-
enterRule(listener: HamelinListener): void;
|
|
1829
|
-
exitRule(listener: HamelinListener): void;
|
|
1830
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1831
|
-
}
|
|
1832
|
-
declare class ColumnReferenceContext extends antlr.ParserRuleContext {
|
|
1833
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1834
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1835
|
-
get ruleIndex(): number;
|
|
1836
|
-
enterRule(listener: HamelinListener): void;
|
|
1837
|
-
exitRule(listener: HamelinListener): void;
|
|
1838
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1839
|
-
}
|
|
1840
|
-
declare class TableReferenceContext extends antlr.ParserRuleContext {
|
|
1841
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1842
|
-
identifier(): IdentifierContext;
|
|
1843
|
-
get ruleIndex(): number;
|
|
1844
|
-
enterRule(listener: HamelinListener): void;
|
|
1845
|
-
exitRule(listener: HamelinListener): void;
|
|
1846
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1847
|
-
}
|
|
1848
|
-
declare class IdentifierContext extends antlr.ParserRuleContext {
|
|
1849
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1850
|
-
simpleIdentifier(): SimpleIdentifierContext[];
|
|
1851
|
-
simpleIdentifier(i: number): SimpleIdentifierContext | null;
|
|
1852
|
-
DOT(): antlr.TerminalNode[];
|
|
1853
|
-
DOT(i: number): antlr.TerminalNode | null;
|
|
1854
|
-
get ruleIndex(): number;
|
|
1855
|
-
enterRule(listener: HamelinListener): void;
|
|
1856
|
-
exitRule(listener: HamelinListener): void;
|
|
1857
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1858
|
-
}
|
|
1859
|
-
declare class SimpleIdentifierContext extends antlr.ParserRuleContext {
|
|
1860
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1861
|
-
get ruleIndex(): number;
|
|
1862
|
-
copyFrom(ctx: SimpleIdentifierContext): void;
|
|
1863
|
-
}
|
|
1864
|
-
declare class BackQuotedIdentifierContext extends SimpleIdentifierContext {
|
|
1865
|
-
constructor(ctx: SimpleIdentifierContext);
|
|
1866
|
-
BACKQUOTED_IDENTIFIER(): antlr.TerminalNode;
|
|
1867
|
-
enterRule(listener: HamelinListener): void;
|
|
1868
|
-
exitRule(listener: HamelinListener): void;
|
|
1869
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1870
|
-
}
|
|
1871
|
-
declare class UnquotedIdentifierContext extends SimpleIdentifierContext {
|
|
1872
|
-
constructor(ctx: SimpleIdentifierContext);
|
|
1873
|
-
IDENTIFIER(): antlr.TerminalNode;
|
|
1874
|
-
enterRule(listener: HamelinListener): void;
|
|
1875
|
-
exitRule(listener: HamelinListener): void;
|
|
1876
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1877
|
-
}
|
|
1878
|
-
declare class StringContext extends antlr.ParserRuleContext {
|
|
1879
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1880
|
-
get ruleIndex(): number;
|
|
1881
|
-
copyFrom(ctx: StringContext): void;
|
|
1882
|
-
}
|
|
1883
|
-
declare class BasicDoubleQuotedStringLiteralContext extends StringContext {
|
|
1884
|
-
constructor(ctx: StringContext);
|
|
1885
|
-
DOUBLE_QUOTED_STRING(): antlr.TerminalNode;
|
|
1886
|
-
enterRule(listener: HamelinListener): void;
|
|
1887
|
-
exitRule(listener: HamelinListener): void;
|
|
1888
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1889
|
-
}
|
|
1890
|
-
declare class UnicodeSingleQuotedStringLiteralContext extends StringContext {
|
|
1891
|
-
_value?: Token | null;
|
|
1892
|
-
_uesc?: Token | null;
|
|
1893
|
-
constructor(ctx: StringContext);
|
|
1894
|
-
SINGLE_QUOTED_UNICODE_STRING(): antlr.TerminalNode;
|
|
1895
|
-
UESCAPE(): antlr.TerminalNode | null;
|
|
1896
|
-
SINGLE_QUOTED_STRING(): antlr.TerminalNode | null;
|
|
1897
|
-
enterRule(listener: HamelinListener): void;
|
|
1898
|
-
exitRule(listener: HamelinListener): void;
|
|
1899
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1900
|
-
}
|
|
1901
|
-
declare class BasicSingleQuotedStringLiteralContext extends StringContext {
|
|
1902
|
-
constructor(ctx: StringContext);
|
|
1903
|
-
SINGLE_QUOTED_STRING(): antlr.TerminalNode;
|
|
1904
|
-
enterRule(listener: HamelinListener): void;
|
|
1905
|
-
exitRule(listener: HamelinListener): void;
|
|
1906
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1907
|
-
}
|
|
1908
|
-
declare class UnicodeDoubleQuotedStringLiteralContext extends StringContext {
|
|
1909
|
-
_value?: Token | null;
|
|
1910
|
-
_uesc?: Token | null;
|
|
1911
|
-
constructor(ctx: StringContext);
|
|
1912
|
-
DOUBLE_QUOTED_UNICODE_STRING(): antlr.TerminalNode;
|
|
1913
|
-
UESCAPE(): antlr.TerminalNode | null;
|
|
1914
|
-
DOUBLE_QUOTED_STRING(): antlr.TerminalNode | null;
|
|
1915
|
-
enterRule(listener: HamelinListener): void;
|
|
1916
|
-
exitRule(listener: HamelinListener): void;
|
|
1917
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1918
|
-
}
|
|
1919
|
-
declare class NumberContext extends antlr.ParserRuleContext {
|
|
1920
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1921
|
-
get ruleIndex(): number;
|
|
1922
|
-
copyFrom(ctx: NumberContext): void;
|
|
1923
|
-
}
|
|
1924
|
-
declare class DecimalLiteralContext extends NumberContext {
|
|
1925
|
-
_value?: Token | null;
|
|
1926
|
-
constructor(ctx: NumberContext);
|
|
1927
|
-
DECIMAL_VALUE(): antlr.TerminalNode;
|
|
1928
|
-
enterRule(listener: HamelinListener): void;
|
|
1929
|
-
exitRule(listener: HamelinListener): void;
|
|
1930
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1931
|
-
}
|
|
1932
|
-
declare class ScientificLiteralContext extends NumberContext {
|
|
1933
|
-
_value?: Token | null;
|
|
1934
|
-
constructor(ctx: NumberContext);
|
|
1935
|
-
DOUBLE_VALUE(): antlr.TerminalNode;
|
|
1936
|
-
enterRule(listener: HamelinListener): void;
|
|
1937
|
-
exitRule(listener: HamelinListener): void;
|
|
1938
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1939
|
-
}
|
|
1940
|
-
declare class IntegerLiteralContext extends NumberContext {
|
|
1941
|
-
_value?: Token | null;
|
|
1942
|
-
constructor(ctx: NumberContext);
|
|
1943
|
-
INTEGER_VALUE(): antlr.TerminalNode;
|
|
1944
|
-
enterRule(listener: HamelinListener): void;
|
|
1945
|
-
exitRule(listener: HamelinListener): void;
|
|
1946
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1947
|
-
}
|
|
1948
|
-
declare class PositionalArgumentContext extends antlr.ParserRuleContext {
|
|
1949
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1950
|
-
expression(): ExpressionContext;
|
|
1951
|
-
get ruleIndex(): number;
|
|
1952
|
-
enterRule(listener: HamelinListener): void;
|
|
1953
|
-
exitRule(listener: HamelinListener): void;
|
|
1954
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1955
|
-
}
|
|
1956
|
-
declare class NamedArgumentContext extends antlr.ParserRuleContext {
|
|
1957
|
-
constructor(parent: antlr.ParserRuleContext | null, invokingState: number);
|
|
1958
|
-
simpleIdentifier(): SimpleIdentifierContext;
|
|
1959
|
-
ASSIGN(): antlr.TerminalNode;
|
|
1960
|
-
expression(): ExpressionContext;
|
|
1961
|
-
get ruleIndex(): number;
|
|
1962
|
-
enterRule(listener: HamelinListener): void;
|
|
1963
|
-
exitRule(listener: HamelinListener): void;
|
|
1964
|
-
accept<Result>(visitor: HamelinVisitor<Result>): Result | null;
|
|
1965
|
-
}
|
|
157
|
+
type FieldNames = string[] | null;
|
|
158
|
+
declare const getSelectedFields: (query: string) => FieldNames;
|
|
1966
159
|
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
/**
|
|
1973
|
-
* Enter a parse tree produced by `HamelinParser.identifierEOF`.
|
|
1974
|
-
* @param ctx the parse tree
|
|
1975
|
-
*/
|
|
1976
|
-
enterIdentifierEOF?: (ctx: IdentifierEOFContext) => void;
|
|
1977
|
-
/**
|
|
1978
|
-
* Exit a parse tree produced by `HamelinParser.identifierEOF`.
|
|
1979
|
-
* @param ctx the parse tree
|
|
1980
|
-
*/
|
|
1981
|
-
exitIdentifierEOF?: (ctx: IdentifierEOFContext) => void;
|
|
1982
|
-
/**
|
|
1983
|
-
* Enter a parse tree produced by `HamelinParser.queryEOF`.
|
|
1984
|
-
* @param ctx the parse tree
|
|
1985
|
-
*/
|
|
1986
|
-
enterQueryEOF?: (ctx: QueryEOFContext) => void;
|
|
1987
|
-
/**
|
|
1988
|
-
* Exit a parse tree produced by `HamelinParser.queryEOF`.
|
|
1989
|
-
* @param ctx the parse tree
|
|
1990
|
-
*/
|
|
1991
|
-
exitQueryEOF?: (ctx: QueryEOFContext) => void;
|
|
1992
|
-
/**
|
|
1993
|
-
* Enter a parse tree produced by `HamelinParser.commandEOF`.
|
|
1994
|
-
* @param ctx the parse tree
|
|
1995
|
-
*/
|
|
1996
|
-
enterCommandEOF?: (ctx: CommandEOFContext) => void;
|
|
1997
|
-
/**
|
|
1998
|
-
* Exit a parse tree produced by `HamelinParser.commandEOF`.
|
|
1999
|
-
* @param ctx the parse tree
|
|
2000
|
-
*/
|
|
2001
|
-
exitCommandEOF?: (ctx: CommandEOFContext) => void;
|
|
2002
|
-
/**
|
|
2003
|
-
* Enter a parse tree produced by `HamelinParser.expressionEOF`.
|
|
2004
|
-
* @param ctx the parse tree
|
|
2005
|
-
*/
|
|
2006
|
-
enterExpressionEOF?: (ctx: ExpressionEOFContext) => void;
|
|
2007
|
-
/**
|
|
2008
|
-
* Exit a parse tree produced by `HamelinParser.expressionEOF`.
|
|
2009
|
-
* @param ctx the parse tree
|
|
2010
|
-
*/
|
|
2011
|
-
exitExpressionEOF?: (ctx: ExpressionEOFContext) => void;
|
|
2012
|
-
/**
|
|
2013
|
-
* Enter a parse tree produced by `HamelinParser.simpleIdentifierEOF`.
|
|
2014
|
-
* @param ctx the parse tree
|
|
2015
|
-
*/
|
|
2016
|
-
enterSimpleIdentifierEOF?: (ctx: SimpleIdentifierEOFContext) => void;
|
|
2017
|
-
/**
|
|
2018
|
-
* Exit a parse tree produced by `HamelinParser.simpleIdentifierEOF`.
|
|
2019
|
-
* @param ctx the parse tree
|
|
2020
|
-
*/
|
|
2021
|
-
exitSimpleIdentifierEOF?: (ctx: SimpleIdentifierEOFContext) => void;
|
|
2022
|
-
/**
|
|
2023
|
-
* Enter a parse tree produced by the `withQuery`
|
|
2024
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2025
|
-
* @param ctx the parse tree
|
|
2026
|
-
*/
|
|
2027
|
-
enterWithQuery?: (ctx: WithQueryContext) => void;
|
|
2028
|
-
/**
|
|
2029
|
-
* Exit a parse tree produced by the `withQuery`
|
|
2030
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2031
|
-
* @param ctx the parse tree
|
|
2032
|
-
*/
|
|
2033
|
-
exitWithQuery?: (ctx: WithQueryContext) => void;
|
|
2034
|
-
/**
|
|
2035
|
-
* Enter a parse tree produced by the `standaloneQuery`
|
|
2036
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2037
|
-
* @param ctx the parse tree
|
|
2038
|
-
*/
|
|
2039
|
-
enterStandaloneQuery?: (ctx: StandaloneQueryContext) => void;
|
|
2040
|
-
/**
|
|
2041
|
-
* Exit a parse tree produced by the `standaloneQuery`
|
|
2042
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2043
|
-
* @param ctx the parse tree
|
|
2044
|
-
*/
|
|
2045
|
-
exitStandaloneQuery?: (ctx: StandaloneQueryContext) => void;
|
|
2046
|
-
/**
|
|
2047
|
-
* Enter a parse tree produced by the `expressionQuery`
|
|
2048
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2049
|
-
* @param ctx the parse tree
|
|
2050
|
-
*/
|
|
2051
|
-
enterExpressionQuery?: (ctx: ExpressionQueryContext) => void;
|
|
2052
|
-
/**
|
|
2053
|
-
* Exit a parse tree produced by the `expressionQuery`
|
|
2054
|
-
* labeled alternative in `HamelinParser.query`.
|
|
2055
|
-
* @param ctx the parse tree
|
|
2056
|
-
*/
|
|
2057
|
-
exitExpressionQuery?: (ctx: ExpressionQueryContext) => void;
|
|
2058
|
-
/**
|
|
2059
|
-
* Enter a parse tree produced by the `pipelineAlt`
|
|
2060
|
-
* labeled alternative in `HamelinParser.pipeline`.
|
|
2061
|
-
* @param ctx the parse tree
|
|
2062
|
-
*/
|
|
2063
|
-
enterPipelineAlt?: (ctx: PipelineAltContext) => void;
|
|
2064
|
-
/**
|
|
2065
|
-
* Exit a parse tree produced by the `pipelineAlt`
|
|
2066
|
-
* labeled alternative in `HamelinParser.pipeline`.
|
|
2067
|
-
* @param ctx the parse tree
|
|
2068
|
-
*/
|
|
2069
|
-
exitPipelineAlt?: (ctx: PipelineAltContext) => void;
|
|
2070
|
-
/**
|
|
2071
|
-
* Enter a parse tree produced by the `letCommand`
|
|
2072
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2073
|
-
* @param ctx the parse tree
|
|
2074
|
-
*/
|
|
2075
|
-
enterLetCommand?: (ctx: LetCommandContext) => void;
|
|
2076
|
-
/**
|
|
2077
|
-
* Exit a parse tree produced by the `letCommand`
|
|
2078
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2079
|
-
* @param ctx the parse tree
|
|
2080
|
-
*/
|
|
2081
|
-
exitLetCommand?: (ctx: LetCommandContext) => void;
|
|
2082
|
-
/**
|
|
2083
|
-
* Enter a parse tree produced by the `whereCommand`
|
|
2084
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2085
|
-
* @param ctx the parse tree
|
|
2086
|
-
*/
|
|
2087
|
-
enterWhereCommand?: (ctx: WhereCommandContext) => void;
|
|
2088
|
-
/**
|
|
2089
|
-
* Exit a parse tree produced by the `whereCommand`
|
|
2090
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2091
|
-
* @param ctx the parse tree
|
|
2092
|
-
*/
|
|
2093
|
-
exitWhereCommand?: (ctx: WhereCommandContext) => void;
|
|
2094
|
-
/**
|
|
2095
|
-
* Enter a parse tree produced by the `selectCommand`
|
|
2096
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2097
|
-
* @param ctx the parse tree
|
|
2098
|
-
*/
|
|
2099
|
-
enterSelectCommand?: (ctx: SelectCommandContext) => void;
|
|
2100
|
-
/**
|
|
2101
|
-
* Exit a parse tree produced by the `selectCommand`
|
|
2102
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2103
|
-
* @param ctx the parse tree
|
|
2104
|
-
*/
|
|
2105
|
-
exitSelectCommand?: (ctx: SelectCommandContext) => void;
|
|
2106
|
-
/**
|
|
2107
|
-
* Enter a parse tree produced by the `dropCommand`
|
|
2108
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2109
|
-
* @param ctx the parse tree
|
|
2110
|
-
*/
|
|
2111
|
-
enterDropCommand?: (ctx: DropCommandContext) => void;
|
|
2112
|
-
/**
|
|
2113
|
-
* Exit a parse tree produced by the `dropCommand`
|
|
2114
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2115
|
-
* @param ctx the parse tree
|
|
2116
|
-
*/
|
|
2117
|
-
exitDropCommand?: (ctx: DropCommandContext) => void;
|
|
2118
|
-
/**
|
|
2119
|
-
* Enter a parse tree produced by the `fromCommand`
|
|
2120
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2121
|
-
* @param ctx the parse tree
|
|
2122
|
-
*/
|
|
2123
|
-
enterFromCommand?: (ctx: FromCommandContext) => void;
|
|
2124
|
-
/**
|
|
2125
|
-
* Exit a parse tree produced by the `fromCommand`
|
|
2126
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2127
|
-
* @param ctx the parse tree
|
|
2128
|
-
*/
|
|
2129
|
-
exitFromCommand?: (ctx: FromCommandContext) => void;
|
|
2130
|
-
/**
|
|
2131
|
-
* Enter a parse tree produced by the `unionCommand`
|
|
2132
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2133
|
-
* @param ctx the parse tree
|
|
2134
|
-
*/
|
|
2135
|
-
enterUnionCommand?: (ctx: UnionCommandContext) => void;
|
|
2136
|
-
/**
|
|
2137
|
-
* Exit a parse tree produced by the `unionCommand`
|
|
2138
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2139
|
-
* @param ctx the parse tree
|
|
2140
|
-
*/
|
|
2141
|
-
exitUnionCommand?: (ctx: UnionCommandContext) => void;
|
|
2142
|
-
/**
|
|
2143
|
-
* Enter a parse tree produced by the `limitCommand`
|
|
2144
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2145
|
-
* @param ctx the parse tree
|
|
2146
|
-
*/
|
|
2147
|
-
enterLimitCommand?: (ctx: LimitCommandContext) => void;
|
|
2148
|
-
/**
|
|
2149
|
-
* Exit a parse tree produced by the `limitCommand`
|
|
2150
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2151
|
-
* @param ctx the parse tree
|
|
2152
|
-
*/
|
|
2153
|
-
exitLimitCommand?: (ctx: LimitCommandContext) => void;
|
|
2154
|
-
/**
|
|
2155
|
-
* Enter a parse tree produced by the `parseCommand`
|
|
2156
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2157
|
-
* @param ctx the parse tree
|
|
2158
|
-
*/
|
|
2159
|
-
enterParseCommand?: (ctx: ParseCommandContext) => void;
|
|
2160
|
-
/**
|
|
2161
|
-
* Exit a parse tree produced by the `parseCommand`
|
|
2162
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2163
|
-
* @param ctx the parse tree
|
|
2164
|
-
*/
|
|
2165
|
-
exitParseCommand?: (ctx: ParseCommandContext) => void;
|
|
2166
|
-
/**
|
|
2167
|
-
* Enter a parse tree produced by the `withinCommand`
|
|
2168
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2169
|
-
* @param ctx the parse tree
|
|
2170
|
-
*/
|
|
2171
|
-
enterWithinCommand?: (ctx: WithinCommandContext) => void;
|
|
2172
|
-
/**
|
|
2173
|
-
* Exit a parse tree produced by the `withinCommand`
|
|
2174
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2175
|
-
* @param ctx the parse tree
|
|
2176
|
-
*/
|
|
2177
|
-
exitWithinCommand?: (ctx: WithinCommandContext) => void;
|
|
2178
|
-
/**
|
|
2179
|
-
* Enter a parse tree produced by the `aggCommand`
|
|
2180
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2181
|
-
* @param ctx the parse tree
|
|
2182
|
-
*/
|
|
2183
|
-
enterAggCommand?: (ctx: AggCommandContext) => void;
|
|
2184
|
-
/**
|
|
2185
|
-
* Exit a parse tree produced by the `aggCommand`
|
|
2186
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2187
|
-
* @param ctx the parse tree
|
|
2188
|
-
*/
|
|
2189
|
-
exitAggCommand?: (ctx: AggCommandContext) => void;
|
|
2190
|
-
/**
|
|
2191
|
-
* Enter a parse tree produced by the `sortCommand`
|
|
2192
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2193
|
-
* @param ctx the parse tree
|
|
2194
|
-
*/
|
|
2195
|
-
enterSortCommand?: (ctx: SortCommandContext) => void;
|
|
2196
|
-
/**
|
|
2197
|
-
* Exit a parse tree produced by the `sortCommand`
|
|
2198
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2199
|
-
* @param ctx the parse tree
|
|
2200
|
-
*/
|
|
2201
|
-
exitSortCommand?: (ctx: SortCommandContext) => void;
|
|
2202
|
-
/**
|
|
2203
|
-
* Enter a parse tree produced by the `windowCommand`
|
|
2204
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2205
|
-
* @param ctx the parse tree
|
|
2206
|
-
*/
|
|
2207
|
-
enterWindowCommand?: (ctx: WindowCommandContext) => void;
|
|
2208
|
-
/**
|
|
2209
|
-
* Exit a parse tree produced by the `windowCommand`
|
|
2210
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2211
|
-
* @param ctx the parse tree
|
|
2212
|
-
*/
|
|
2213
|
-
exitWindowCommand?: (ctx: WindowCommandContext) => void;
|
|
2214
|
-
/**
|
|
2215
|
-
* Enter a parse tree produced by the `appendCommand`
|
|
2216
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2217
|
-
* @param ctx the parse tree
|
|
2218
|
-
*/
|
|
2219
|
-
enterAppendCommand?: (ctx: AppendCommandContext) => void;
|
|
2220
|
-
/**
|
|
2221
|
-
* Exit a parse tree produced by the `appendCommand`
|
|
2222
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2223
|
-
* @param ctx the parse tree
|
|
2224
|
-
*/
|
|
2225
|
-
exitAppendCommand?: (ctx: AppendCommandContext) => void;
|
|
2226
|
-
/**
|
|
2227
|
-
* Enter a parse tree produced by the `joinCommand`
|
|
2228
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2229
|
-
* @param ctx the parse tree
|
|
2230
|
-
*/
|
|
2231
|
-
enterJoinCommand?: (ctx: JoinCommandContext) => void;
|
|
2232
|
-
/**
|
|
2233
|
-
* Exit a parse tree produced by the `joinCommand`
|
|
2234
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2235
|
-
* @param ctx the parse tree
|
|
2236
|
-
*/
|
|
2237
|
-
exitJoinCommand?: (ctx: JoinCommandContext) => void;
|
|
2238
|
-
/**
|
|
2239
|
-
* Enter a parse tree produced by the `explodeCommand`
|
|
2240
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2241
|
-
* @param ctx the parse tree
|
|
2242
|
-
*/
|
|
2243
|
-
enterExplodeCommand?: (ctx: ExplodeCommandContext) => void;
|
|
2244
|
-
/**
|
|
2245
|
-
* Exit a parse tree produced by the `explodeCommand`
|
|
2246
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2247
|
-
* @param ctx the parse tree
|
|
2248
|
-
*/
|
|
2249
|
-
exitExplodeCommand?: (ctx: ExplodeCommandContext) => void;
|
|
2250
|
-
/**
|
|
2251
|
-
* Enter a parse tree produced by the `unnestCommand`
|
|
2252
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2253
|
-
* @param ctx the parse tree
|
|
2254
|
-
*/
|
|
2255
|
-
enterUnnestCommand?: (ctx: UnnestCommandContext) => void;
|
|
2256
|
-
/**
|
|
2257
|
-
* Exit a parse tree produced by the `unnestCommand`
|
|
2258
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2259
|
-
* @param ctx the parse tree
|
|
2260
|
-
*/
|
|
2261
|
-
exitUnnestCommand?: (ctx: UnnestCommandContext) => void;
|
|
2262
|
-
/**
|
|
2263
|
-
* Enter a parse tree produced by the `nestCommand`
|
|
2264
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2265
|
-
* @param ctx the parse tree
|
|
2266
|
-
*/
|
|
2267
|
-
enterNestCommand?: (ctx: NestCommandContext) => void;
|
|
2268
|
-
/**
|
|
2269
|
-
* Exit a parse tree produced by the `nestCommand`
|
|
2270
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2271
|
-
* @param ctx the parse tree
|
|
2272
|
-
*/
|
|
2273
|
-
exitNestCommand?: (ctx: NestCommandContext) => void;
|
|
2274
|
-
/**
|
|
2275
|
-
* Enter a parse tree produced by the `matchCommand`
|
|
2276
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2277
|
-
* @param ctx the parse tree
|
|
2278
|
-
*/
|
|
2279
|
-
enterMatchCommand?: (ctx: MatchCommandContext) => void;
|
|
2280
|
-
/**
|
|
2281
|
-
* Exit a parse tree produced by the `matchCommand`
|
|
2282
|
-
* labeled alternative in `HamelinParser.command`.
|
|
2283
|
-
* @param ctx the parse tree
|
|
2284
|
-
*/
|
|
2285
|
-
exitMatchCommand?: (ctx: MatchCommandContext) => void;
|
|
2286
|
-
/**
|
|
2287
|
-
* Enter a parse tree produced by `HamelinParser.assignmentClause`.
|
|
2288
|
-
* @param ctx the parse tree
|
|
2289
|
-
*/
|
|
2290
|
-
enterAssignmentClause?: (ctx: AssignmentClauseContext) => void;
|
|
2291
|
-
/**
|
|
2292
|
-
* Exit a parse tree produced by `HamelinParser.assignmentClause`.
|
|
2293
|
-
* @param ctx the parse tree
|
|
2294
|
-
*/
|
|
2295
|
-
exitAssignmentClause?: (ctx: AssignmentClauseContext) => void;
|
|
2296
|
-
/**
|
|
2297
|
-
* Enter a parse tree produced by `HamelinParser.groupClause`.
|
|
2298
|
-
* @param ctx the parse tree
|
|
2299
|
-
*/
|
|
2300
|
-
enterGroupClause?: (ctx: GroupClauseContext) => void;
|
|
2301
|
-
/**
|
|
2302
|
-
* Exit a parse tree produced by `HamelinParser.groupClause`.
|
|
2303
|
-
* @param ctx the parse tree
|
|
2304
|
-
*/
|
|
2305
|
-
exitGroupClause?: (ctx: GroupClauseContext) => void;
|
|
2306
|
-
/**
|
|
2307
|
-
* Enter a parse tree produced by `HamelinParser.assignment`.
|
|
2308
|
-
* @param ctx the parse tree
|
|
2309
|
-
*/
|
|
2310
|
-
enterAssignment?: (ctx: AssignmentContext) => void;
|
|
2311
|
-
/**
|
|
2312
|
-
* Exit a parse tree produced by `HamelinParser.assignment`.
|
|
2313
|
-
* @param ctx the parse tree
|
|
2314
|
-
*/
|
|
2315
|
-
exitAssignment?: (ctx: AssignmentContext) => void;
|
|
2316
|
-
/**
|
|
2317
|
-
* Enter a parse tree produced by `HamelinParser.matchDefine`.
|
|
2318
|
-
* @param ctx the parse tree
|
|
2319
|
-
*/
|
|
2320
|
-
enterMatchDefine?: (ctx: MatchDefineContext) => void;
|
|
2321
|
-
/**
|
|
2322
|
-
* Exit a parse tree produced by `HamelinParser.matchDefine`.
|
|
2323
|
-
* @param ctx the parse tree
|
|
2324
|
-
*/
|
|
2325
|
-
exitMatchDefine?: (ctx: MatchDefineContext) => void;
|
|
2326
|
-
/**
|
|
2327
|
-
* Enter a parse tree produced by `HamelinParser.selection`.
|
|
2328
|
-
* @param ctx the parse tree
|
|
2329
|
-
*/
|
|
2330
|
-
enterSelection?: (ctx: SelectionContext) => void;
|
|
2331
|
-
/**
|
|
2332
|
-
* Exit a parse tree produced by `HamelinParser.selection`.
|
|
2333
|
-
* @param ctx the parse tree
|
|
2334
|
-
*/
|
|
2335
|
-
exitSelection?: (ctx: SelectionContext) => void;
|
|
2336
|
-
/**
|
|
2337
|
-
* Enter a parse tree produced by `HamelinParser.sortExpression`.
|
|
2338
|
-
* @param ctx the parse tree
|
|
2339
|
-
*/
|
|
2340
|
-
enterSortExpression?: (ctx: SortExpressionContext) => void;
|
|
2341
|
-
/**
|
|
2342
|
-
* Exit a parse tree produced by `HamelinParser.sortExpression`.
|
|
2343
|
-
* @param ctx the parse tree
|
|
2344
|
-
*/
|
|
2345
|
-
exitSortExpression?: (ctx: SortExpressionContext) => void;
|
|
2346
|
-
/**
|
|
2347
|
-
* Enter a parse tree produced by `HamelinParser.tableAlias`.
|
|
2348
|
-
* @param ctx the parse tree
|
|
2349
|
-
*/
|
|
2350
|
-
enterTableAlias?: (ctx: TableAliasContext) => void;
|
|
2351
|
-
/**
|
|
2352
|
-
* Exit a parse tree produced by `HamelinParser.tableAlias`.
|
|
2353
|
-
* @param ctx the parse tree
|
|
2354
|
-
*/
|
|
2355
|
-
exitTableAlias?: (ctx: TableAliasContext) => void;
|
|
2356
|
-
/**
|
|
2357
|
-
* Enter a parse tree produced by `HamelinParser.fromClause`.
|
|
2358
|
-
* @param ctx the parse tree
|
|
2359
|
-
*/
|
|
2360
|
-
enterFromClause?: (ctx: FromClauseContext) => void;
|
|
2361
|
-
/**
|
|
2362
|
-
* Exit a parse tree produced by `HamelinParser.fromClause`.
|
|
2363
|
-
* @param ctx the parse tree
|
|
2364
|
-
*/
|
|
2365
|
-
exitFromClause?: (ctx: FromClauseContext) => void;
|
|
2366
|
-
/**
|
|
2367
|
-
* Enter a parse tree produced by the `structLiteral`
|
|
2368
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2369
|
-
* @param ctx the parse tree
|
|
2370
|
-
*/
|
|
2371
|
-
enterStructLiteral?: (ctx: StructLiteralContext) => void;
|
|
2372
|
-
/**
|
|
2373
|
-
* Exit a parse tree produced by the `structLiteral`
|
|
2374
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2375
|
-
* @param ctx the parse tree
|
|
2376
|
-
*/
|
|
2377
|
-
exitStructLiteral?: (ctx: StructLiteralContext) => void;
|
|
2378
|
-
/**
|
|
2379
|
-
* Enter a parse tree produced by the `columnReferenceAlt`
|
|
2380
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2381
|
-
* @param ctx the parse tree
|
|
2382
|
-
*/
|
|
2383
|
-
enterColumnReferenceAlt?: (ctx: ColumnReferenceAltContext) => void;
|
|
2384
|
-
/**
|
|
2385
|
-
* Exit a parse tree produced by the `columnReferenceAlt`
|
|
2386
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2387
|
-
* @param ctx the parse tree
|
|
2388
|
-
*/
|
|
2389
|
-
exitColumnReferenceAlt?: (ctx: ColumnReferenceAltContext) => void;
|
|
2390
|
-
/**
|
|
2391
|
-
* Enter a parse tree produced by the `deref`
|
|
2392
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2393
|
-
* @param ctx the parse tree
|
|
2394
|
-
*/
|
|
2395
|
-
enterDeref?: (ctx: DerefContext) => void;
|
|
2396
|
-
/**
|
|
2397
|
-
* Exit a parse tree produced by the `deref`
|
|
2398
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2399
|
-
* @param ctx the parse tree
|
|
2400
|
-
*/
|
|
2401
|
-
exitDeref?: (ctx: DerefContext) => void;
|
|
2402
|
-
/**
|
|
2403
|
-
* Enter a parse tree produced by the `nullLiteral`
|
|
2404
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2405
|
-
* @param ctx the parse tree
|
|
2406
|
-
*/
|
|
2407
|
-
enterNullLiteral?: (ctx: NullLiteralContext) => void;
|
|
2408
|
-
/**
|
|
2409
|
-
* Exit a parse tree produced by the `nullLiteral`
|
|
2410
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2411
|
-
* @param ctx the parse tree
|
|
2412
|
-
*/
|
|
2413
|
-
exitNullLiteral?: (ctx: NullLiteralContext) => void;
|
|
2414
|
-
/**
|
|
2415
|
-
* Enter a parse tree produced by the `arrayLiteral`
|
|
2416
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2417
|
-
* @param ctx the parse tree
|
|
2418
|
-
*/
|
|
2419
|
-
enterArrayLiteral?: (ctx: ArrayLiteralContext) => void;
|
|
2420
|
-
/**
|
|
2421
|
-
* Exit a parse tree produced by the `arrayLiteral`
|
|
2422
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2423
|
-
* @param ctx the parse tree
|
|
2424
|
-
*/
|
|
2425
|
-
exitArrayLiteral?: (ctx: ArrayLiteralContext) => void;
|
|
2426
|
-
/**
|
|
2427
|
-
* Enter a parse tree produced by the `pairLiteral`
|
|
2428
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2429
|
-
* @param ctx the parse tree
|
|
2430
|
-
*/
|
|
2431
|
-
enterPairLiteral?: (ctx: PairLiteralContext) => void;
|
|
2432
|
-
/**
|
|
2433
|
-
* Exit a parse tree produced by the `pairLiteral`
|
|
2434
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2435
|
-
* @param ctx the parse tree
|
|
2436
|
-
*/
|
|
2437
|
-
exitPairLiteral?: (ctx: PairLiteralContext) => void;
|
|
2438
|
-
/**
|
|
2439
|
-
* Enter a parse tree produced by the `tsTrunc`
|
|
2440
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2441
|
-
* @param ctx the parse tree
|
|
2442
|
-
*/
|
|
2443
|
-
enterTsTrunc?: (ctx: TsTruncContext) => void;
|
|
2444
|
-
/**
|
|
2445
|
-
* Exit a parse tree produced by the `tsTrunc`
|
|
2446
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2447
|
-
* @param ctx the parse tree
|
|
2448
|
-
*/
|
|
2449
|
-
exitTsTrunc?: (ctx: TsTruncContext) => void;
|
|
2450
|
-
/**
|
|
2451
|
-
* Enter a parse tree produced by the `rowsLiteral`
|
|
2452
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2453
|
-
* @param ctx the parse tree
|
|
2454
|
-
*/
|
|
2455
|
-
enterRowsLiteral?: (ctx: RowsLiteralContext) => void;
|
|
2456
|
-
/**
|
|
2457
|
-
* Exit a parse tree produced by the `rowsLiteral`
|
|
2458
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2459
|
-
* @param ctx the parse tree
|
|
2460
|
-
*/
|
|
2461
|
-
exitRowsLiteral?: (ctx: RowsLiteralContext) => void;
|
|
2462
|
-
/**
|
|
2463
|
-
* Enter a parse tree produced by the `tsTruncTimestampLiteral`
|
|
2464
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2465
|
-
* @param ctx the parse tree
|
|
2466
|
-
*/
|
|
2467
|
-
enterTsTruncTimestampLiteral?: (ctx: TsTruncTimestampLiteralContext) => void;
|
|
2468
|
-
/**
|
|
2469
|
-
* Exit a parse tree produced by the `tsTruncTimestampLiteral`
|
|
2470
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2471
|
-
* @param ctx the parse tree
|
|
2472
|
-
*/
|
|
2473
|
-
exitTsTruncTimestampLiteral?: (ctx: TsTruncTimestampLiteralContext) => void;
|
|
2474
|
-
/**
|
|
2475
|
-
* Enter a parse tree produced by the `unaryPrefixOperator`
|
|
2476
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2477
|
-
* @param ctx the parse tree
|
|
2478
|
-
*/
|
|
2479
|
-
enterUnaryPrefixOperator?: (ctx: UnaryPrefixOperatorContext) => void;
|
|
2480
|
-
/**
|
|
2481
|
-
* Exit a parse tree produced by the `unaryPrefixOperator`
|
|
2482
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2483
|
-
* @param ctx the parse tree
|
|
2484
|
-
*/
|
|
2485
|
-
exitUnaryPrefixOperator?: (ctx: UnaryPrefixOperatorContext) => void;
|
|
2486
|
-
/**
|
|
2487
|
-
* Enter a parse tree produced by the `binaryLiteral`
|
|
2488
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2489
|
-
* @param ctx the parse tree
|
|
2490
|
-
*/
|
|
2491
|
-
enterBinaryLiteral?: (ctx: BinaryLiteralContext) => void;
|
|
2492
|
-
/**
|
|
2493
|
-
* Exit a parse tree produced by the `binaryLiteral`
|
|
2494
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2495
|
-
* @param ctx the parse tree
|
|
2496
|
-
*/
|
|
2497
|
-
exitBinaryLiteral?: (ctx: BinaryLiteralContext) => void;
|
|
2498
|
-
/**
|
|
2499
|
-
* Enter a parse tree produced by the `indexAccess`
|
|
2500
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2501
|
-
* @param ctx the parse tree
|
|
2502
|
-
*/
|
|
2503
|
-
enterIndexAccess?: (ctx: IndexAccessContext) => void;
|
|
2504
|
-
/**
|
|
2505
|
-
* Exit a parse tree produced by the `indexAccess`
|
|
2506
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2507
|
-
* @param ctx the parse tree
|
|
2508
|
-
*/
|
|
2509
|
-
exitIndexAccess?: (ctx: IndexAccessContext) => void;
|
|
2510
|
-
/**
|
|
2511
|
-
* Enter a parse tree produced by the `cast`
|
|
2512
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2513
|
-
* @param ctx the parse tree
|
|
2514
|
-
*/
|
|
2515
|
-
enterCast?: (ctx: CastContext) => void;
|
|
2516
|
-
/**
|
|
2517
|
-
* Exit a parse tree produced by the `cast`
|
|
2518
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2519
|
-
* @param ctx the parse tree
|
|
2520
|
-
*/
|
|
2521
|
-
exitCast?: (ctx: CastContext) => void;
|
|
2522
|
-
/**
|
|
2523
|
-
* Enter a parse tree produced by the `unaryPostfixOperator`
|
|
2524
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2525
|
-
* @param ctx the parse tree
|
|
2526
|
-
*/
|
|
2527
|
-
enterUnaryPostfixOperator?: (ctx: UnaryPostfixOperatorContext) => void;
|
|
2528
|
-
/**
|
|
2529
|
-
* Exit a parse tree produced by the `unaryPostfixOperator`
|
|
2530
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2531
|
-
* @param ctx the parse tree
|
|
2532
|
-
*/
|
|
2533
|
-
exitUnaryPostfixOperator?: (ctx: UnaryPostfixOperatorContext) => void;
|
|
2534
|
-
/**
|
|
2535
|
-
* Enter a parse tree produced by the `tupleLiteral`
|
|
2536
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2537
|
-
* @param ctx the parse tree
|
|
2538
|
-
*/
|
|
2539
|
-
enterTupleLiteral?: (ctx: TupleLiteralContext) => void;
|
|
2540
|
-
/**
|
|
2541
|
-
* Exit a parse tree produced by the `tupleLiteral`
|
|
2542
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2543
|
-
* @param ctx the parse tree
|
|
2544
|
-
*/
|
|
2545
|
-
exitTupleLiteral?: (ctx: TupleLiteralContext) => void;
|
|
2546
|
-
/**
|
|
2547
|
-
* Enter a parse tree produced by the `parenthesizedExpression`
|
|
2548
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2549
|
-
* @param ctx the parse tree
|
|
2550
|
-
*/
|
|
2551
|
-
enterParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => void;
|
|
2552
|
-
/**
|
|
2553
|
-
* Exit a parse tree produced by the `parenthesizedExpression`
|
|
2554
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2555
|
-
* @param ctx the parse tree
|
|
2556
|
-
*/
|
|
2557
|
-
exitParenthesizedExpression?: (ctx: ParenthesizedExpressionContext) => void;
|
|
2558
|
-
/**
|
|
2559
|
-
* Enter a parse tree produced by the `stringLiteral`
|
|
2560
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2561
|
-
* @param ctx the parse tree
|
|
2562
|
-
*/
|
|
2563
|
-
enterStringLiteral?: (ctx: StringLiteralContext) => void;
|
|
2564
|
-
/**
|
|
2565
|
-
* Exit a parse tree produced by the `stringLiteral`
|
|
2566
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2567
|
-
* @param ctx the parse tree
|
|
2568
|
-
*/
|
|
2569
|
-
exitStringLiteral?: (ctx: StringLiteralContext) => void;
|
|
2570
|
-
/**
|
|
2571
|
-
* Enter a parse tree produced by the `binaryOperator`
|
|
2572
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2573
|
-
* @param ctx the parse tree
|
|
2574
|
-
*/
|
|
2575
|
-
enterBinaryOperator?: (ctx: BinaryOperatorContext) => void;
|
|
2576
|
-
/**
|
|
2577
|
-
* Exit a parse tree produced by the `binaryOperator`
|
|
2578
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2579
|
-
* @param ctx the parse tree
|
|
2580
|
-
*/
|
|
2581
|
-
exitBinaryOperator?: (ctx: BinaryOperatorContext) => void;
|
|
2582
|
-
/**
|
|
2583
|
-
* Enter a parse tree produced by the `functionCall`
|
|
2584
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2585
|
-
* @param ctx the parse tree
|
|
2586
|
-
*/
|
|
2587
|
-
enterFunctionCall?: (ctx: FunctionCallContext) => void;
|
|
2588
|
-
/**
|
|
2589
|
-
* Exit a parse tree produced by the `functionCall`
|
|
2590
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2591
|
-
* @param ctx the parse tree
|
|
2592
|
-
*/
|
|
2593
|
-
exitFunctionCall?: (ctx: FunctionCallContext) => void;
|
|
2594
|
-
/**
|
|
2595
|
-
* Enter a parse tree produced by the `unboundRangeLiteral`
|
|
2596
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2597
|
-
* @param ctx the parse tree
|
|
2598
|
-
*/
|
|
2599
|
-
enterUnboundRangeLiteral?: (ctx: UnboundRangeLiteralContext) => void;
|
|
2600
|
-
/**
|
|
2601
|
-
* Exit a parse tree produced by the `unboundRangeLiteral`
|
|
2602
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2603
|
-
* @param ctx the parse tree
|
|
2604
|
-
*/
|
|
2605
|
-
exitUnboundRangeLiteral?: (ctx: UnboundRangeLiteralContext) => void;
|
|
2606
|
-
/**
|
|
2607
|
-
* Enter a parse tree produced by the `numericLiteral`
|
|
2608
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2609
|
-
* @param ctx the parse tree
|
|
2610
|
-
*/
|
|
2611
|
-
enterNumericLiteral?: (ctx: NumericLiteralContext) => void;
|
|
2612
|
-
/**
|
|
2613
|
-
* Exit a parse tree produced by the `numericLiteral`
|
|
2614
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2615
|
-
* @param ctx the parse tree
|
|
2616
|
-
*/
|
|
2617
|
-
exitNumericLiteral?: (ctx: NumericLiteralContext) => void;
|
|
2618
|
-
/**
|
|
2619
|
-
* Enter a parse tree produced by the `booleanLiteral`
|
|
2620
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2621
|
-
* @param ctx the parse tree
|
|
2622
|
-
*/
|
|
2623
|
-
enterBooleanLiteral?: (ctx: BooleanLiteralContext) => void;
|
|
2624
|
-
/**
|
|
2625
|
-
* Exit a parse tree produced by the `booleanLiteral`
|
|
2626
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2627
|
-
* @param ctx the parse tree
|
|
2628
|
-
*/
|
|
2629
|
-
exitBooleanLiteral?: (ctx: BooleanLiteralContext) => void;
|
|
2630
|
-
/**
|
|
2631
|
-
* Enter a parse tree produced by the `intervalLiteral`
|
|
2632
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2633
|
-
* @param ctx the parse tree
|
|
2634
|
-
*/
|
|
2635
|
-
enterIntervalLiteral?: (ctx: IntervalLiteralContext) => void;
|
|
2636
|
-
/**
|
|
2637
|
-
* Exit a parse tree produced by the `intervalLiteral`
|
|
2638
|
-
* labeled alternative in `HamelinParser.expression`.
|
|
2639
|
-
* @param ctx the parse tree
|
|
2640
|
-
*/
|
|
2641
|
-
exitIntervalLiteral?: (ctx: IntervalLiteralContext) => void;
|
|
2642
|
-
/**
|
|
2643
|
-
* Enter a parse tree produced by the `parameterizedType`
|
|
2644
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2645
|
-
* @param ctx the parse tree
|
|
2646
|
-
*/
|
|
2647
|
-
enterParameterizedType?: (ctx: ParameterizedTypeContext) => void;
|
|
2648
|
-
/**
|
|
2649
|
-
* Exit a parse tree produced by the `parameterizedType`
|
|
2650
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2651
|
-
* @param ctx the parse tree
|
|
2652
|
-
*/
|
|
2653
|
-
exitParameterizedType?: (ctx: ParameterizedTypeContext) => void;
|
|
2654
|
-
/**
|
|
2655
|
-
* Enter a parse tree produced by the `typeWithArguments`
|
|
2656
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2657
|
-
* @param ctx the parse tree
|
|
2658
|
-
*/
|
|
2659
|
-
enterTypeWithArguments?: (ctx: TypeWithArgumentsContext) => void;
|
|
2660
|
-
/**
|
|
2661
|
-
* Exit a parse tree produced by the `typeWithArguments`
|
|
2662
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2663
|
-
* @param ctx the parse tree
|
|
2664
|
-
*/
|
|
2665
|
-
exitTypeWithArguments?: (ctx: TypeWithArgumentsContext) => void;
|
|
2666
|
-
/**
|
|
2667
|
-
* Enter a parse tree produced by the `structType`
|
|
2668
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2669
|
-
* @param ctx the parse tree
|
|
2670
|
-
*/
|
|
2671
|
-
enterStructType?: (ctx: StructTypeContext) => void;
|
|
2672
|
-
/**
|
|
2673
|
-
* Exit a parse tree produced by the `structType`
|
|
2674
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2675
|
-
* @param ctx the parse tree
|
|
2676
|
-
*/
|
|
2677
|
-
exitStructType?: (ctx: StructTypeContext) => void;
|
|
2678
|
-
/**
|
|
2679
|
-
* Enter a parse tree produced by the `tupleType`
|
|
2680
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2681
|
-
* @param ctx the parse tree
|
|
2682
|
-
*/
|
|
2683
|
-
enterTupleType?: (ctx: TupleTypeContext) => void;
|
|
2684
|
-
/**
|
|
2685
|
-
* Exit a parse tree produced by the `tupleType`
|
|
2686
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2687
|
-
* @param ctx the parse tree
|
|
2688
|
-
*/
|
|
2689
|
-
exitTupleType?: (ctx: TupleTypeContext) => void;
|
|
2690
|
-
/**
|
|
2691
|
-
* Enter a parse tree produced by the `simpleType`
|
|
2692
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2693
|
-
* @param ctx the parse tree
|
|
2694
|
-
*/
|
|
2695
|
-
enterSimpleType?: (ctx: SimpleTypeContext) => void;
|
|
2696
|
-
/**
|
|
2697
|
-
* Exit a parse tree produced by the `simpleType`
|
|
2698
|
-
* labeled alternative in `HamelinParser.hamelintype`.
|
|
2699
|
-
* @param ctx the parse tree
|
|
2700
|
-
*/
|
|
2701
|
-
exitSimpleType?: (ctx: SimpleTypeContext) => void;
|
|
2702
|
-
/**
|
|
2703
|
-
* Enter a parse tree produced by the `quantified`
|
|
2704
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
2705
|
-
* @param ctx the parse tree
|
|
2706
|
-
*/
|
|
2707
|
-
enterQuantified?: (ctx: QuantifiedContext) => void;
|
|
2708
|
-
/**
|
|
2709
|
-
* Exit a parse tree produced by the `quantified`
|
|
2710
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
2711
|
-
* @param ctx the parse tree
|
|
2712
|
-
*/
|
|
2713
|
-
exitQuantified?: (ctx: QuantifiedContext) => void;
|
|
2714
|
-
/**
|
|
2715
|
-
* Enter a parse tree produced by the `nested`
|
|
2716
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
2717
|
-
* @param ctx the parse tree
|
|
2718
|
-
*/
|
|
2719
|
-
enterNested?: (ctx: NestedContext) => void;
|
|
2720
|
-
/**
|
|
2721
|
-
* Exit a parse tree produced by the `nested`
|
|
2722
|
-
* labeled alternative in `HamelinParser.pattern`.
|
|
2723
|
-
* @param ctx the parse tree
|
|
2724
|
-
*/
|
|
2725
|
-
exitNested?: (ctx: NestedContext) => void;
|
|
2726
|
-
/**
|
|
2727
|
-
* Enter a parse tree produced by the `AnyNumber`
|
|
2728
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2729
|
-
* @param ctx the parse tree
|
|
2730
|
-
*/
|
|
2731
|
-
enterAnyNumber?: (ctx: AnyNumberContext) => void;
|
|
2732
|
-
/**
|
|
2733
|
-
* Exit a parse tree produced by the `AnyNumber`
|
|
2734
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2735
|
-
* @param ctx the parse tree
|
|
2736
|
-
*/
|
|
2737
|
-
exitAnyNumber?: (ctx: AnyNumberContext) => void;
|
|
2738
|
-
/**
|
|
2739
|
-
* Enter a parse tree produced by the `AtLeastOne`
|
|
2740
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2741
|
-
* @param ctx the parse tree
|
|
2742
|
-
*/
|
|
2743
|
-
enterAtLeastOne?: (ctx: AtLeastOneContext) => void;
|
|
2744
|
-
/**
|
|
2745
|
-
* Exit a parse tree produced by the `AtLeastOne`
|
|
2746
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2747
|
-
* @param ctx the parse tree
|
|
2748
|
-
*/
|
|
2749
|
-
exitAtLeastOne?: (ctx: AtLeastOneContext) => void;
|
|
2750
|
-
/**
|
|
2751
|
-
* Enter a parse tree produced by the `ZeroOrOne`
|
|
2752
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2753
|
-
* @param ctx the parse tree
|
|
2754
|
-
*/
|
|
2755
|
-
enterZeroOrOne?: (ctx: ZeroOrOneContext) => void;
|
|
2756
|
-
/**
|
|
2757
|
-
* Exit a parse tree produced by the `ZeroOrOne`
|
|
2758
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2759
|
-
* @param ctx the parse tree
|
|
2760
|
-
*/
|
|
2761
|
-
exitZeroOrOne?: (ctx: ZeroOrOneContext) => void;
|
|
2762
|
-
/**
|
|
2763
|
-
* Enter a parse tree produced by the `Exactly`
|
|
2764
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2765
|
-
* @param ctx the parse tree
|
|
2766
|
-
*/
|
|
2767
|
-
enterExactly?: (ctx: ExactlyContext) => void;
|
|
2768
|
-
/**
|
|
2769
|
-
* Exit a parse tree produced by the `Exactly`
|
|
2770
|
-
* labeled alternative in `HamelinParser.quantifier`.
|
|
2771
|
-
* @param ctx the parse tree
|
|
2772
|
-
*/
|
|
2773
|
-
exitExactly?: (ctx: ExactlyContext) => void;
|
|
2774
|
-
/**
|
|
2775
|
-
* Enter a parse tree produced by `HamelinParser.columnReference`.
|
|
2776
|
-
* @param ctx the parse tree
|
|
2777
|
-
*/
|
|
2778
|
-
enterColumnReference?: (ctx: ColumnReferenceContext) => void;
|
|
2779
|
-
/**
|
|
2780
|
-
* Exit a parse tree produced by `HamelinParser.columnReference`.
|
|
2781
|
-
* @param ctx the parse tree
|
|
2782
|
-
*/
|
|
2783
|
-
exitColumnReference?: (ctx: ColumnReferenceContext) => void;
|
|
2784
|
-
/**
|
|
2785
|
-
* Enter a parse tree produced by `HamelinParser.tableReference`.
|
|
2786
|
-
* @param ctx the parse tree
|
|
2787
|
-
*/
|
|
2788
|
-
enterTableReference?: (ctx: TableReferenceContext) => void;
|
|
2789
|
-
/**
|
|
2790
|
-
* Exit a parse tree produced by `HamelinParser.tableReference`.
|
|
2791
|
-
* @param ctx the parse tree
|
|
2792
|
-
*/
|
|
2793
|
-
exitTableReference?: (ctx: TableReferenceContext) => void;
|
|
2794
|
-
/**
|
|
2795
|
-
* Enter a parse tree produced by `HamelinParser.identifier`.
|
|
2796
|
-
* @param ctx the parse tree
|
|
2797
|
-
*/
|
|
2798
|
-
enterIdentifier?: (ctx: IdentifierContext) => void;
|
|
2799
|
-
/**
|
|
2800
|
-
* Exit a parse tree produced by `HamelinParser.identifier`.
|
|
2801
|
-
* @param ctx the parse tree
|
|
2802
|
-
*/
|
|
2803
|
-
exitIdentifier?: (ctx: IdentifierContext) => void;
|
|
2804
|
-
/**
|
|
2805
|
-
* Enter a parse tree produced by the `unquotedIdentifier`
|
|
2806
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
2807
|
-
* @param ctx the parse tree
|
|
2808
|
-
*/
|
|
2809
|
-
enterUnquotedIdentifier?: (ctx: UnquotedIdentifierContext) => void;
|
|
2810
|
-
/**
|
|
2811
|
-
* Exit a parse tree produced by the `unquotedIdentifier`
|
|
2812
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
2813
|
-
* @param ctx the parse tree
|
|
2814
|
-
*/
|
|
2815
|
-
exitUnquotedIdentifier?: (ctx: UnquotedIdentifierContext) => void;
|
|
2816
|
-
/**
|
|
2817
|
-
* Enter a parse tree produced by the `backQuotedIdentifier`
|
|
2818
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
2819
|
-
* @param ctx the parse tree
|
|
2820
|
-
*/
|
|
2821
|
-
enterBackQuotedIdentifier?: (ctx: BackQuotedIdentifierContext) => void;
|
|
2822
|
-
/**
|
|
2823
|
-
* Exit a parse tree produced by the `backQuotedIdentifier`
|
|
2824
|
-
* labeled alternative in `HamelinParser.simpleIdentifier`.
|
|
2825
|
-
* @param ctx the parse tree
|
|
2826
|
-
*/
|
|
2827
|
-
exitBackQuotedIdentifier?: (ctx: BackQuotedIdentifierContext) => void;
|
|
2828
|
-
/**
|
|
2829
|
-
* Enter a parse tree produced by the `basicSingleQuotedStringLiteral`
|
|
2830
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2831
|
-
* @param ctx the parse tree
|
|
2832
|
-
*/
|
|
2833
|
-
enterBasicSingleQuotedStringLiteral?: (ctx: BasicSingleQuotedStringLiteralContext) => void;
|
|
2834
|
-
/**
|
|
2835
|
-
* Exit a parse tree produced by the `basicSingleQuotedStringLiteral`
|
|
2836
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2837
|
-
* @param ctx the parse tree
|
|
2838
|
-
*/
|
|
2839
|
-
exitBasicSingleQuotedStringLiteral?: (ctx: BasicSingleQuotedStringLiteralContext) => void;
|
|
2840
|
-
/**
|
|
2841
|
-
* Enter a parse tree produced by the `basicDoubleQuotedStringLiteral`
|
|
2842
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2843
|
-
* @param ctx the parse tree
|
|
2844
|
-
*/
|
|
2845
|
-
enterBasicDoubleQuotedStringLiteral?: (ctx: BasicDoubleQuotedStringLiteralContext) => void;
|
|
2846
|
-
/**
|
|
2847
|
-
* Exit a parse tree produced by the `basicDoubleQuotedStringLiteral`
|
|
2848
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2849
|
-
* @param ctx the parse tree
|
|
2850
|
-
*/
|
|
2851
|
-
exitBasicDoubleQuotedStringLiteral?: (ctx: BasicDoubleQuotedStringLiteralContext) => void;
|
|
2852
|
-
/**
|
|
2853
|
-
* Enter a parse tree produced by the `unicodeSingleQuotedStringLiteral`
|
|
2854
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2855
|
-
* @param ctx the parse tree
|
|
2856
|
-
*/
|
|
2857
|
-
enterUnicodeSingleQuotedStringLiteral?: (ctx: UnicodeSingleQuotedStringLiteralContext) => void;
|
|
2858
|
-
/**
|
|
2859
|
-
* Exit a parse tree produced by the `unicodeSingleQuotedStringLiteral`
|
|
2860
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2861
|
-
* @param ctx the parse tree
|
|
2862
|
-
*/
|
|
2863
|
-
exitUnicodeSingleQuotedStringLiteral?: (ctx: UnicodeSingleQuotedStringLiteralContext) => void;
|
|
2864
|
-
/**
|
|
2865
|
-
* Enter a parse tree produced by the `unicodeDoubleQuotedStringLiteral`
|
|
2866
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2867
|
-
* @param ctx the parse tree
|
|
2868
|
-
*/
|
|
2869
|
-
enterUnicodeDoubleQuotedStringLiteral?: (ctx: UnicodeDoubleQuotedStringLiteralContext) => void;
|
|
2870
|
-
/**
|
|
2871
|
-
* Exit a parse tree produced by the `unicodeDoubleQuotedStringLiteral`
|
|
2872
|
-
* labeled alternative in `HamelinParser.string`.
|
|
2873
|
-
* @param ctx the parse tree
|
|
2874
|
-
*/
|
|
2875
|
-
exitUnicodeDoubleQuotedStringLiteral?: (ctx: UnicodeDoubleQuotedStringLiteralContext) => void;
|
|
2876
|
-
/**
|
|
2877
|
-
* Enter a parse tree produced by the `decimalLiteral`
|
|
2878
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2879
|
-
* @param ctx the parse tree
|
|
2880
|
-
*/
|
|
2881
|
-
enterDecimalLiteral?: (ctx: DecimalLiteralContext) => void;
|
|
2882
|
-
/**
|
|
2883
|
-
* Exit a parse tree produced by the `decimalLiteral`
|
|
2884
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2885
|
-
* @param ctx the parse tree
|
|
2886
|
-
*/
|
|
2887
|
-
exitDecimalLiteral?: (ctx: DecimalLiteralContext) => void;
|
|
2888
|
-
/**
|
|
2889
|
-
* Enter a parse tree produced by the `scientificLiteral`
|
|
2890
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2891
|
-
* @param ctx the parse tree
|
|
2892
|
-
*/
|
|
2893
|
-
enterScientificLiteral?: (ctx: ScientificLiteralContext) => void;
|
|
2894
|
-
/**
|
|
2895
|
-
* Exit a parse tree produced by the `scientificLiteral`
|
|
2896
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2897
|
-
* @param ctx the parse tree
|
|
2898
|
-
*/
|
|
2899
|
-
exitScientificLiteral?: (ctx: ScientificLiteralContext) => void;
|
|
2900
|
-
/**
|
|
2901
|
-
* Enter a parse tree produced by the `integerLiteral`
|
|
2902
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2903
|
-
* @param ctx the parse tree
|
|
2904
|
-
*/
|
|
2905
|
-
enterIntegerLiteral?: (ctx: IntegerLiteralContext) => void;
|
|
2906
|
-
/**
|
|
2907
|
-
* Exit a parse tree produced by the `integerLiteral`
|
|
2908
|
-
* labeled alternative in `HamelinParser.number`.
|
|
2909
|
-
* @param ctx the parse tree
|
|
2910
|
-
*/
|
|
2911
|
-
exitIntegerLiteral?: (ctx: IntegerLiteralContext) => void;
|
|
2912
|
-
/**
|
|
2913
|
-
* Enter a parse tree produced by `HamelinParser.positionalArgument`.
|
|
2914
|
-
* @param ctx the parse tree
|
|
2915
|
-
*/
|
|
2916
|
-
enterPositionalArgument?: (ctx: PositionalArgumentContext) => void;
|
|
2917
|
-
/**
|
|
2918
|
-
* Exit a parse tree produced by `HamelinParser.positionalArgument`.
|
|
2919
|
-
* @param ctx the parse tree
|
|
2920
|
-
*/
|
|
2921
|
-
exitPositionalArgument?: (ctx: PositionalArgumentContext) => void;
|
|
2922
|
-
/**
|
|
2923
|
-
* Enter a parse tree produced by `HamelinParser.namedArgument`.
|
|
2924
|
-
* @param ctx the parse tree
|
|
2925
|
-
*/
|
|
2926
|
-
enterNamedArgument?: (ctx: NamedArgumentContext) => void;
|
|
2927
|
-
/**
|
|
2928
|
-
* Exit a parse tree produced by `HamelinParser.namedArgument`.
|
|
2929
|
-
* @param ctx the parse tree
|
|
2930
|
-
*/
|
|
2931
|
-
exitNamedArgument?: (ctx: NamedArgumentContext) => void;
|
|
2932
|
-
visitTerminal(node: TerminalNode): void;
|
|
2933
|
-
visitErrorNode(node: ErrorNode): void;
|
|
2934
|
-
enterEveryRule(node: ParserRuleContext): void;
|
|
2935
|
-
exitEveryRule(node: ParserRuleContext): void;
|
|
2936
|
-
}
|
|
2937
|
-
|
|
2938
|
-
declare const hamelinGrammar = "grammar Hamelin;\n\nidentifierEOF\n : identifier EOF\n ;\n\nqueryEOF\n : query EOF\n ;\n\ncommandEOF\n : command EOF\n ;\n\nexpressionEOF\n : expression EOF\n ;\n\nsimpleIdentifierEOF\n : simpleIdentifier EOF\n ;\n\nquery\n : (WITH simpleIdentifier ASSIGN pipeline)+ pipeline #withQuery\n | pipeline #standaloneQuery\n | expression #expressionQuery\n ;\n\npipeline\n : command ( PIPE command )* #pipelineAlt\n ;\n\ncommand\n : LET_COMMAND assignment (COMMA assignment)* COMMA? #letCommand\n | WHERE_COMMAND expression #whereCommand\n | SELECT_COMMAND assignmentClause (COMMA assignmentClause)* COMMA? #selectCommand\n | DROP_COMMAND selection (COMMA selection)* COMMA? #dropCommand\n | FROM_COMMAND fromClause (COMMA fromClause)* COMMA? #fromCommand\n | UNION_COMMAND fromClause (COMMA fromClause)* COMMA? #unionCommand\n | LIMIT_COMMAND expression #limitCommand\n | PARSE_COMMAND src=expression? string\n AS? identifier (COMMA identifier)* COMMA? NODROP? #parseCommand\n | WITHIN_COMMAND expression #withinCommand\n | AGG_COMMAND (assignmentClause (COMMA assignmentClause)*)? COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA? #aggCommand\n | SORT BY? sortExpression (COMMA sortExpression)* COMMA? #sortCommand\n | WINDOW_COMMAND assignmentClause (COMMA assignmentClause)* COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA?\n (WITHIN_COMMAND within=expression)? #windowCommand\n | APPEND_COMMAND tableReference (DISTINCT_BY selection (COMMA selection)*)? COMMA? #appendCommand\n | (JOIN_COMMAND | LOOKUP_COMMAND) fromClause (ON on=expression)? #joinCommand\n | EXPLODE_COMMAND assignmentClause #explodeCommand\n | (UNNEST_COMMAND | ROWS_COMMAND) expression #unnestCommand\n | NEST_COMMAND identifier #nestCommand\n | MATCH_COMMAND pattern+\n (WITHIN_COMMAND within=expression)?\n (WHEN matchDefine (COMMA matchDefine)*)? COMMA?\n (BY groupClause (COMMA groupClause)*)? COMMA?\n (SORT BY? sortExpression (COMMA sortExpression)*)? COMMA? #matchCommand\n ;\n\nassignmentClause: assignment | expression;\ngroupClause: assignmentClause;\nassignment: identifier ASSIGN expression;\nmatchDefine: simpleIdentifier ASSIGN expression;\nselection: identifier;\nsortExpression: expression (ASC | DESC)?;\ntableAlias: simpleIdentifier ASSIGN tableReference;\nfromClause: tableAlias | tableReference;\n\nexpression\n // Keep this list in precedence order (important!)\n : operator=(MINUS | PLUS) expression #unaryPrefixOperator\n | expression (SECOND_TRUNC | MINUTE_TRUNC | HOUR_TRUNC | DAY_TRUNC | WEEK_TRUNC |\n MONTH_TRUNC | QUARTER_TRUNC | YEAR_TRUNC) #tsTrunc\n | left=expression operator=DOT right=simpleIdentifier #deref\n | value=expression LBRACKET index=expression RBRACKET #indexAccess\n | left=expression operator=(ASTERISK | SLASH | PERCENT) right=expression #binaryOperator\n | left=expression operator=(PLUS | MINUS) right=expression #binaryOperator\n | operator=RANGE expression #unaryPrefixOperator\n | expression operator=RANGE #unaryPostfixOperator\n | left=expression operator=RANGE right=expression #binaryOperator\n | left=expression operator=AS right=hamelintype #cast\n | left=expression\n operator=(EQ | NEQ | LT | LTE | GT | GTE | IS | ISNOT | IN | NOTIN)\n right=expression #binaryOperator\n | operator=NOT expression #unaryPrefixOperator\n | left=expression operator=AND right=expression #binaryOperator\n | left=expression operator=OR right=expression #binaryOperator\n\n // Complex Literals\n | left=expression operator=COLON right=expression #pairLiteral\n | LCURLY simpleIdentifier COLON expression\n (COMMA simpleIdentifier COLON expression)* COMMA? RCURLY #structLiteral\n | LPARENS ((expression COMMA) |\n (expression COMMA expression (COMMA expression)* COMMA?)) RPARENS #tupleLiteral\n | LBRACKET (expression (COMMA expression)* COMMA?)? RBRACKET #arrayLiteral\n\n // Function Calls\n | functionName=simpleIdentifier\n LPARENS (namedArgument (COMMA namedArgument)* COMMA?)? RPARENS #functionCall\n | functionName=simpleIdentifier LPARENS\n positionalArgument (COMMA positionalArgument)*\n (COMMA namedArgument)* COMMA? RPARENS #functionCall\n\n // Primitive Literals\n | NULL #nullLiteral\n | number #numericLiteral\n | TRUE #booleanLiteral\n | FALSE #booleanLiteral\n | string #stringLiteral\n | BINARY_LITERAL #binaryLiteral\n | RANGE #unboundRangeLiteral\n | (NANOSECOND_INTERVAL | MICROSECOND_INTERVAL | MILLISECOND_INTERVAL |\n SECOND_INTERVAL | MINUTE_INTERVAL | HOUR_INTERVAL | DAY_INTERVAL |\n WEEK_INTERVAL | MONTH_INTERVAL | QUARTER_INTERVAL | YEAR_INTERVAL) #intervalLiteral\n | ROWS_LITERAL #rowsLiteral\n | (SECOND_TRUNC | MINUTE_TRUNC | HOUR_TRUNC | DAY_TRUNC | WEEK_TRUNC |\n MONTH_TRUNC | QUARTER_TRUNC | YEAR_TRUNC) #tsTruncTimestampLiteral\n\n // Environment references\n | columnReference #columnReferenceAlt\n\n // Keep this at the bottom to use it the mechanism that query authors have to specify precedence.\n | LPARENS expression RPARENS #parenthesizedExpression\n ;\n\nhamelintype\n : simpleIdentifier LPARENS hamelintype (COMMA hamelintype)* COMMA? RPARENS #parameterizedType\n | simpleIdentifier LPARENS INTEGER_VALUE (COMMA INTEGER_VALUE)* COMMA? RPARENS #typeWithArguments\n | LCURLY simpleIdentifier COLON hamelintype\n (COMMA simpleIdentifier COLON hamelintype)* COMMA? RCURLY #structType\n | LPARENS hamelintype (COMMA hamelintype )* COMMA? RPARENS #tupleType\n | simpleIdentifier #simpleType\n ;\n\npattern\n : fromClause quantifier? #quantified\n | LPARENS pattern+ RPARENS quantifier #nested\n ;\n\nquantifier\n : ASTERISK #AnyNumber\n | PLUS #AtLeastOne\n | QUESTIONMARK #ZeroOrOne\n | LCURLY INTEGER_VALUE RCURLY #Exactly\n ;\n\ncolumnReference\n : simpleIdentifier\n ;\n\ntableReference\n : identifier\n ;\n\nidentifier\n : simpleIdentifier\n | simpleIdentifier (DOT simpleIdentifier)+\n ;\n\nsimpleIdentifier\n : IDENTIFIER #unquotedIdentifier\n | BACKQUOTED_IDENTIFIER #backQuotedIdentifier\n ;\n\nstring\n : SINGLE_QUOTED_STRING #basicSingleQuotedStringLiteral\n | DOUBLE_QUOTED_STRING #basicDoubleQuotedStringLiteral\n | value=SINGLE_QUOTED_UNICODE_STRING (UESCAPE uesc=SINGLE_QUOTED_STRING)? #unicodeSingleQuotedStringLiteral\n | value=DOUBLE_QUOTED_UNICODE_STRING (UESCAPE uesc=DOUBLE_QUOTED_STRING)? #unicodeDoubleQuotedStringLiteral\n ;\n\nnumber\n : value=DECIMAL_VALUE #decimalLiteral\n | value=DOUBLE_VALUE #scientificLiteral\n | value=INTEGER_VALUE #integerLiteral\n ;\n\npositionalArgument\n : expression\n ;\n\nnamedArgument\n : simpleIdentifier ASSIGN expression\n ;\n\n//\n// COMMANDS\n//\n\nLET_COMMAND: 'LET' | 'let';\nWHERE_COMMAND: 'WHERE' | 'where';\nSELECT_COMMAND: 'SELECT' | 'select';\nDROP_COMMAND: 'DROP' | 'drop';\nFROM_COMMAND: 'FROM' | 'from';\nUNION_COMMAND: 'UNION' | 'union';\nLIMIT_COMMAND: 'LIMIT' | 'limit';\nPARSE_COMMAND: 'PARSE' | 'parse';\nWITHIN_COMMAND: 'WITHIN' | 'within';\nAGG_COMMAND: 'AGG' | 'agg';\nWINDOW_COMMAND: 'WINDOW' | 'window';\nAPPEND_COMMAND: 'APPEND' | 'append';\nJOIN_COMMAND: 'JOIN' | 'join';\nLOOKUP_COMMAND: 'LOOKUP' | 'lookup';\nEXPLODE_COMMAND: 'EXPLODE' | 'explode';\nUNNEST_COMMAND: 'UNNEST' | 'unnest';\nNEST_COMMAND: 'NEST' | 'nest';\nROWS_COMMAND: 'ROWS' | 'rows';\nMATCH_COMMAND: 'MATCH' | 'match';\n\nAS: 'AS' | 'as';\nNODROP: 'NODROP' | 'nodrop';\n\n//\n// Operators\n//\n\nPLUS: '+';\nMINUS: '-';\nASTERISK: '*';\nSLASH: '/';\nPERCENT: '%';\nLCURLY: '{';\nRCURLY: '}';\nCOLON: ':';\nQUESTIONMARK: '?';\n\nEQ: '==';\nNEQ: '!=';\nLT: '<';\nLTE: '<=';\nGT: '>';\nGTE: '>=';\nRANGE: '..';\n\nASSIGN: '=';\n\n//\n// Keywords\n//\n\nAND: 'AND' | 'and';\nFALSE: 'FALSE' | 'false';\nIS: 'IS' | 'is';\nNOT: 'NOT' | 'not';\nISNOT: 'IS NOT' | 'is not';\nIN: 'IN' | 'in';\nNOTIN: 'NOT IN' | 'not in';\nNULL: 'NULL' | 'null';\nOR: 'OR' | 'or';\nTRUE: 'TRUE' | 'true';\nUESCAPE: 'UESCAPE' | 'uescape';\nWITH: 'WITH' | 'with';\nBY: 'BY' | 'by';\nSORT: 'SORT' | 'sort';\nASC: 'ASC' | 'asc';\nDESC: 'DESC' | 'desc';\nDISTINCT_BY: 'DISTINCT BY' | 'distinct by';\nON: 'ON' | 'on';\nWHEN: 'WHEN' | 'when';\n\n//\n// Symbols\n//\n\nCOMMA: ',';\nPIPE: '|';\nLPARENS: '(';\nRPARENS: ')';\nDOT: '.';\nLBRACKET: '[';\nRBRACKET: ']';\n\n//\n// Literals\n//\n\nSINGLE_QUOTED_STRING\n : '\\'' ( ~'\\'' | '\\'\\'')* '\\''\n ;\nDOUBLE_QUOTED_STRING\n : '\"' ( ~'\"' | '\"\"')* '\"'\n ;\n\nSINGLE_QUOTED_UNICODE_STRING\n : 'U&\\'' ( ~'\\'' | '\\'\\'')* '\\'' // Unicode string with default escape character: U&'Hello winter \\2603 !'\n ;\n\nDOUBLE_QUOTED_UNICODE_STRING\n : 'U&\"' ( ~'\"' | '\"\"')* '\"' // Unicode string with custom escape character: U&'Hello winter #2603 !' UESCAPE '#'\n ;\n\n// Note: we allow any character inside the binary literal and validate\n// its a correct literal when the AST is being constructed. This\n// allows us to provide more meaningful error messages to the user\nBINARY_LITERAL\n : 'x\\'' (~'\\'')* '\\''\n ;\n\nNANOSECOND_INTERVAL\n : DECIMAL_INTEGER 'ns'\n ;\n\nMICROSECOND_INTERVAL\n : DECIMAL_INTEGER 'us'\n ;\n\nMILLISECOND_INTERVAL\n : DECIMAL_INTEGER 'ms'\n ;\n\nSECOND_INTERVAL\n : DECIMAL_INTEGER ('s' | 'sec' | 'secs' | 'second' | 'seconds')\n ;\n\nMINUTE_INTERVAL\n : DECIMAL_INTEGER ('m' | 'min' | 'mins' | 'minute' | 'minutes')\n ;\n\nHOUR_INTERVAL\n : DECIMAL_INTEGER ('h' | 'hr' | 'hrs' | 'hour' | 'hours')\n ;\n\nDAY_INTERVAL\n : DECIMAL_INTEGER ('d' | 'day' | 'days')\n ;\n\nWEEK_INTERVAL\n : DECIMAL_INTEGER ('w' | 'week' | 'weeks')\n ;\n\nMONTH_INTERVAL\n : DECIMAL_INTEGER ('mon' | 'month' | 'months')\n ;\n\nQUARTER_INTERVAL\n : DECIMAL_INTEGER ('q' | 'qtr' | 'qtrs' | 'quarter' | 'quarters')\n ;\n\nYEAR_INTERVAL\n : DECIMAL_INTEGER ('y' | 'yr' | 'yrs' | 'year' | 'years')\n ;\n\nROWS_LITERAL\n : DECIMAL_INTEGER ('r' | 'row' | 'rows')\n ;\n\nSECOND_TRUNC\n : '@' ('s' | 'sec' | 'secs' | 'second' | 'seconds')\n ;\n\nMINUTE_TRUNC\n : '@' ('m' | 'min' | 'mins' | 'minute' | 'minutes')\n ;\n\nHOUR_TRUNC\n : '@' ('h' | 'hr' | 'hrs' | 'hour' | 'hours')\n ;\n\nDAY_TRUNC\n : '@' ('d' | 'day' | 'days')\n ;\n\nWEEK_TRUNC\n : '@' ('w' | 'week' | 'weeks')\n ;\n\nMONTH_TRUNC\n : '@' ('mon' | 'month' | 'months')\n ;\n\nQUARTER_TRUNC\n : '@' ('q' | 'qtr' | 'qtrs' | 'quarter' | 'quarters')\n ;\n\nYEAR_TRUNC\n : '@' ('y' | 'yr' | 'yrs' | 'year' | 'years')\n ;\n\nINTEGER_VALUE\n : DECIMAL_INTEGER\n | HEXADECIMAL_INTEGER\n | OCTAL_INTEGER\n | BINARY_INTEGER\n ;\n\nDECIMAL_VALUE\n : DECIMAL_INTEGER '.' DECIMAL_INTEGER\n | '.' DECIMAL_INTEGER\n ;\n\nDOUBLE_VALUE\n : DIGIT+ ('.' DIGIT*)? EXPONENT\n | '.' DIGIT+ EXPONENT\n ;\n\nIDENTIFIER\n : [a-zA-Z_][a-zA-Z_0-9]*\n ;\n\nBACKQUOTED_IDENTIFIER\n : '`' ( ~'`' | '``' )* '`'\n ;\n\nfragment DECIMAL_INTEGER\n : DIGIT ('_'? DIGIT)*\n ;\n\nfragment HEXADECIMAL_INTEGER\n : '0x' ('_'? (DIGIT | [A-F]))+\n ;\n\nfragment OCTAL_INTEGER\n : '0o' ('_'? [0-7])+\n ;\n\nfragment BINARY_INTEGER\n : '0b' ('_'? [01])+\n ;\n\nfragment EXPONENT\n : 'e' [+-]? DIGIT+\n ;\n\nfragment DIGIT\n : [0-9]\n ;\n\n//\n// Comments and whitespace\n//\n\nSIMPLE_COMMENT\n : '//' ~[\\r\\n]* '\\r'? '\\n'? -> channel(HIDDEN)\n ;\n\nBRACKETED_COMMENT\n : '/*' .*? '*/' -> channel(HIDDEN)\n ;\n\nWS\n : [ \\r\\n\\t]+ -> skip\n ;\n";
|
|
2939
|
-
|
|
2940
|
-
declare const getDatasetsFromQuery: (catalog: Catalog, hamelinInput: string) => Promise<QueryDatasetsResult>;
|
|
160
|
+
declare function parseTokenValueClass(stream: {
|
|
161
|
+
string: string;
|
|
162
|
+
pos: number;
|
|
163
|
+
match: (text: string) => boolean | unknown[] | null;
|
|
164
|
+
}, functions: FunctionDescription[]): string | null;
|
|
2941
165
|
|
|
2942
|
-
declare const
|
|
2943
|
-
|
|
2944
|
-
/**
|
|
2945
|
-
* Returns the top level limit information from the provided Hamelin query.
|
|
2946
|
-
*/
|
|
2947
|
-
declare const getLimits: (hamelinQuery: string) => number[];
|
|
166
|
+
declare const sampleCatalog: Catalog;
|
|
2948
167
|
|
|
2949
|
-
type QuerySort = {
|
|
2950
|
-
column: string;
|
|
2951
|
-
direction: "asc" | "desc" | null;
|
|
2952
|
-
};
|
|
2953
168
|
/**
|
|
2954
|
-
*
|
|
169
|
+
* Invokes Antlr4-c3 to collect completion candidates for a given input string
|
|
170
|
+
* at a specific position.
|
|
171
|
+
*
|
|
172
|
+
* @param input The input string to analyze.
|
|
173
|
+
* @param pos Request completion at this index in the input string,
|
|
174
|
+
* @returns A collection of candidates or undefined if no candidates are found
|
|
175
|
+
* or the position is invalid.
|
|
2955
176
|
*/
|
|
2956
|
-
declare
|
|
2957
|
-
|
|
2958
|
-
declare const sampleCatalog: Catalog;
|
|
177
|
+
declare function getSyntaxCompletions(input: string, pos: number): Completion | null;
|
|
2959
178
|
|
|
2960
|
-
export {
|
|
179
|
+
export { type Catalog, type Column, type Completion, type CompletionItem, type ContextualResult, type ContextualTranslationError, type ContextualTranslationErrors, type FunctionDescription, type HamelinType, type QuerySort, type QueryTranslation, type Translation, type TranslationError, compileHamelin, createCompiler, getAggregations, getDatasetsFromQuery, getFunctionDescriptions, getLimits, getSelectedFields, getSorts, getSyntaxCompletions, hamelinGrammar, parseTokenValueClass, sampleCatalog };
|