@hamelin.sh/compiler 0.1.28-prerelease.20250520T020543 → 0.1.29-prerelease.20250521T042027

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