@malloydata/malloy 0.0.2 → 0.0.3

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 (46) hide show
  1. package/README.md +12 -11
  2. package/dist/dialect/duckdb.d.ts +1 -1
  3. package/dist/dialect/duckdb.js +35 -37
  4. package/dist/dialect/postgres.d.ts +1 -1
  5. package/dist/dialect/postgres.js +15 -8
  6. package/dist/dialect/standardsql.js +1 -0
  7. package/dist/index.d.ts +4 -4
  8. package/dist/index.js +2 -2
  9. package/dist/lang/ast/apply-expr.js +2 -2
  10. package/dist/lang/ast/ast-expr.js +2 -12
  11. package/dist/lang/ast/ast-main.d.ts +2 -2
  12. package/dist/lang/ast/ast-main.js +2 -1
  13. package/dist/lang/field-space.d.ts +9 -7
  14. package/dist/lang/field-space.js +10 -8
  15. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +108 -106
  16. package/dist/lang/lib/Malloy/MalloyLexer.js +1019 -1006
  17. package/dist/lang/lib/Malloy/MalloyParser.d.ts +581 -590
  18. package/dist/lang/lib/Malloy/MalloyParser.js +1141 -1202
  19. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +2015 -0
  20. package/dist/lang/lib/Malloy/MalloyParserListener.js +4 -0
  21. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +1269 -0
  22. package/dist/lang/lib/Malloy/MalloyParserVisitor.js +4 -0
  23. package/dist/lang/parse-to-ast.d.ts +3 -4
  24. package/dist/lang/parse-to-ast.js +1 -1
  25. package/dist/lang/parse-tree-walkers/document-completion-walker.js +2 -0
  26. package/dist/lang/parse-tree-walkers/explore-query-walker.d.ts +2 -2
  27. package/dist/lang/test/field-symbols.spec.js +2 -2
  28. package/dist/lang/test/parse.spec.js +15 -0
  29. package/dist/lang/test/test-translator.js +1 -1
  30. package/dist/malloy.d.ts +1 -1
  31. package/dist/malloy.js +11 -5
  32. package/dist/md5.d.ts +1 -0
  33. package/dist/md5.js +30 -0
  34. package/dist/model/malloy_query.js +4 -6
  35. package/dist/model/malloy_types.d.ts +3 -1
  36. package/package.json +9 -14
  37. package/dist/dialect/dialect-map.d.ts +0 -3
  38. package/dist/dialect/dialect-map.js +0 -33
  39. package/dist/model/malloy-query.d.ts +0 -313
  40. package/dist/model/malloy-query.js +0 -2603
  41. package/dist/model/malloy-types.d.ts +0 -404
  42. package/dist/model/malloy-types.js +0 -242
  43. package/dist/model/sql-block.d.ts +0 -11
  44. package/dist/model/sql-block.js +0 -38
  45. package/dist/runtime-types.d.ts +0 -116
  46. package/dist/runtime-types.js +0 -40
@@ -0,0 +1,1269 @@
1
+ import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
2
+ import { ExprPartialCompareContext } from "./MalloyParser";
3
+ import { ExprNotPartialContext } from "./MalloyParser";
4
+ import { NameMemberContext } from "./MalloyParser";
5
+ import { WildMemberContext } from "./MalloyParser";
6
+ import { NewMemberContext } from "./MalloyParser";
7
+ import { NamedQueries_stubContext } from "./MalloyParser";
8
+ import { AnonymousQueryContext } from "./MalloyParser";
9
+ import { NamedSourceContext } from "./MalloyParser";
10
+ import { TableSourceContext } from "./MalloyParser";
11
+ import { QuerySourceContext } from "./MalloyParser";
12
+ import { SQLSourceContext } from "./MalloyParser";
13
+ import { LiteralTimestampContext } from "./MalloyParser";
14
+ import { LiteralDayContext } from "./MalloyParser";
15
+ import { LiteralWeekContext } from "./MalloyParser";
16
+ import { LiteralMonthContext } from "./MalloyParser";
17
+ import { LiteralQuarterContext } from "./MalloyParser";
18
+ import { LiteralYearContext } from "./MalloyParser";
19
+ import { ExprStringContext } from "./MalloyParser";
20
+ import { ExprNumberContext } from "./MalloyParser";
21
+ import { ExprTimeContext } from "./MalloyParser";
22
+ import { ExprNULLContext } from "./MalloyParser";
23
+ import { ExprBoolContext } from "./MalloyParser";
24
+ import { ExprRegexContext } from "./MalloyParser";
25
+ import { ExprNowContext } from "./MalloyParser";
26
+ import { QueryFieldRefContext } from "./MalloyParser";
27
+ import { QueryFieldDefContext } from "./MalloyParser";
28
+ import { NestExistingContext } from "./MalloyParser";
29
+ import { NestDefContext } from "./MalloyParser";
30
+ import { ExprFieldPathContext } from "./MalloyParser";
31
+ import { ExprFilterContext } from "./MalloyParser";
32
+ import { ExprLiteralContext } from "./MalloyParser";
33
+ import { ExprMinusContext } from "./MalloyParser";
34
+ import { ExprDurationContext } from "./MalloyParser";
35
+ import { ExprTimeTruncContext } from "./MalloyParser";
36
+ import { ExprSafeCastContext } from "./MalloyParser";
37
+ import { ExprMulDivContext } from "./MalloyParser";
38
+ import { ExprAddSubContext } from "./MalloyParser";
39
+ import { ExprRangeContext } from "./MalloyParser";
40
+ import { ExprForRangeContext } from "./MalloyParser";
41
+ import { ExprLogicalTreeContext } from "./MalloyParser";
42
+ import { ExprCompareContext } from "./MalloyParser";
43
+ import { ExprApplyContext } from "./MalloyParser";
44
+ import { ExprNotContext } from "./MalloyParser";
45
+ import { ExprLogicalContext } from "./MalloyParser";
46
+ import { ExprCastContext } from "./MalloyParser";
47
+ import { ExprCountDisinctContext } from "./MalloyParser";
48
+ import { ExprAggregateContext } from "./MalloyParser";
49
+ import { ExprExprContext } from "./MalloyParser";
50
+ import { ExprFuncContext } from "./MalloyParser";
51
+ import { ExprPickContext } from "./MalloyParser";
52
+ import { ExprUngroupContext } from "./MalloyParser";
53
+ import { ExploreArrowQueryContext } from "./MalloyParser";
54
+ import { ArrowQueryContext } from "./MalloyParser";
55
+ import { DefJoinOneContext } from "./MalloyParser";
56
+ import { DefJoinManyContext } from "./MalloyParser";
57
+ import { DefJoinCrossContext } from "./MalloyParser";
58
+ import { DefExploreDimensionContext } from "./MalloyParser";
59
+ import { DefExploreMeasureContext } from "./MalloyParser";
60
+ import { DefDeclare_stubContext } from "./MalloyParser";
61
+ import { DefJoin_stubContext } from "./MalloyParser";
62
+ import { DefExploreWhereContext } from "./MalloyParser";
63
+ import { DefExplorePrimaryKeyContext } from "./MalloyParser";
64
+ import { DefExploreRenameContext } from "./MalloyParser";
65
+ import { DefExploreEditFieldContext } from "./MalloyParser";
66
+ import { DefExploreQueryContext } from "./MalloyParser";
67
+ import { FilterByShortcutContext } from "./MalloyParser";
68
+ import { FilterByWhereContext } from "./MalloyParser";
69
+ import { JoinWithContext } from "./MalloyParser";
70
+ import { JoinOnContext } from "./MalloyParser";
71
+ import { MalloyDocumentContext } from "./MalloyParser";
72
+ import { MalloyStatementContext } from "./MalloyParser";
73
+ import { DefineExploreStatementContext } from "./MalloyParser";
74
+ import { ExploreKeywordContext } from "./MalloyParser";
75
+ import { DefineQueryContext } from "./MalloyParser";
76
+ import { TopLevelAnonQueryDefContext } from "./MalloyParser";
77
+ import { DefineSQLStatementContext } from "./MalloyParser";
78
+ import { SqlStatementDefContext } from "./MalloyParser";
79
+ import { ImportStatementContext } from "./MalloyParser";
80
+ import { ImportURLContext } from "./MalloyParser";
81
+ import { TopLevelQueryDefsContext } from "./MalloyParser";
82
+ import { TopLevelQueryDefContext } from "./MalloyParser";
83
+ import { RefineOperatorContext } from "./MalloyParser";
84
+ import { QueryContext } from "./MalloyParser";
85
+ import { PipelineFromNameContext } from "./MalloyParser";
86
+ import { FirstSegmentContext } from "./MalloyParser";
87
+ import { PipeElementContext } from "./MalloyParser";
88
+ import { ExploreTableContext } from "./MalloyParser";
89
+ import { QueryPropertiesContext } from "./MalloyParser";
90
+ import { FilterShortcutContext } from "./MalloyParser";
91
+ import { ExploreQueryNameContext } from "./MalloyParser";
92
+ import { QueryNameContext } from "./MalloyParser";
93
+ import { ExploreDefinitionListContext } from "./MalloyParser";
94
+ import { ExploreDefinitionContext } from "./MalloyParser";
95
+ import { ExploreContext } from "./MalloyParser";
96
+ import { ExploreSourceContext } from "./MalloyParser";
97
+ import { ExploreNameDefContext } from "./MalloyParser";
98
+ import { ExploreNameContext } from "./MalloyParser";
99
+ import { ExplorePropertiesContext } from "./MalloyParser";
100
+ import { ExploreStatementContext } from "./MalloyParser";
101
+ import { RenameListContext } from "./MalloyParser";
102
+ import { ExploreRenameDefContext } from "./MalloyParser";
103
+ import { DimensionDefListContext } from "./MalloyParser";
104
+ import { MeasureDefListContext } from "./MalloyParser";
105
+ import { FieldDefContext } from "./MalloyParser";
106
+ import { FieldNameDefContext } from "./MalloyParser";
107
+ import { JoinNameDefContext } from "./MalloyParser";
108
+ import { MeasureDefContext } from "./MalloyParser";
109
+ import { DeclareStatementContext } from "./MalloyParser";
110
+ import { JoinStatementContext } from "./MalloyParser";
111
+ import { JoinListContext } from "./MalloyParser";
112
+ import { JoinDefContext } from "./MalloyParser";
113
+ import { JoinExpressionContext } from "./MalloyParser";
114
+ import { FilterStatementContext } from "./MalloyParser";
115
+ import { FilteredByContext } from "./MalloyParser";
116
+ import { FilterClauseListContext } from "./MalloyParser";
117
+ import { WhereStatementContext } from "./MalloyParser";
118
+ import { HavingStatementContext } from "./MalloyParser";
119
+ import { SubQueryDefListContext } from "./MalloyParser";
120
+ import { ExploreQueryNameDefContext } from "./MalloyParser";
121
+ import { ExploreQueryDefContext } from "./MalloyParser";
122
+ import { QueryStatementContext } from "./MalloyParser";
123
+ import { GroupByStatementContext } from "./MalloyParser";
124
+ import { QueryFieldListContext } from "./MalloyParser";
125
+ import { DimensionDefContext } from "./MalloyParser";
126
+ import { QueryFieldEntryContext } from "./MalloyParser";
127
+ import { NestStatementContext } from "./MalloyParser";
128
+ import { NestedQueryListContext } from "./MalloyParser";
129
+ import { NestEntryContext } from "./MalloyParser";
130
+ import { AggregateStatementContext } from "./MalloyParser";
131
+ import { ProjectStatementContext } from "./MalloyParser";
132
+ import { OrderByStatementContext } from "./MalloyParser";
133
+ import { OrderingContext } from "./MalloyParser";
134
+ import { OrderBySpecContext } from "./MalloyParser";
135
+ import { LimitStatementContext } from "./MalloyParser";
136
+ import { BySpecContext } from "./MalloyParser";
137
+ import { TopStatementContext } from "./MalloyParser";
138
+ import { IndexElementContext } from "./MalloyParser";
139
+ import { IndexFieldsContext } from "./MalloyParser";
140
+ import { IndexStatementContext } from "./MalloyParser";
141
+ import { SampleStatementContext } from "./MalloyParser";
142
+ import { SampleSpecContext } from "./MalloyParser";
143
+ import { AggregateContext } from "./MalloyParser";
144
+ import { MalloyTypeContext } from "./MalloyParser";
145
+ import { CompareOpContext } from "./MalloyParser";
146
+ import { LiteralContext } from "./MalloyParser";
147
+ import { DateLiteralContext } from "./MalloyParser";
148
+ import { TableNameContext } from "./MalloyParser";
149
+ import { IdContext } from "./MalloyParser";
150
+ import { TimeframeContext } from "./MalloyParser";
151
+ import { UngroupContext } from "./MalloyParser";
152
+ import { FieldExprContext } from "./MalloyParser";
153
+ import { PartialAllowedFieldExprContext } from "./MalloyParser";
154
+ import { PickStatementContext } from "./MalloyParser";
155
+ import { PickContext } from "./MalloyParser";
156
+ import { ArgumentListContext } from "./MalloyParser";
157
+ import { FieldNameListContext } from "./MalloyParser";
158
+ import { FieldCollectionContext } from "./MalloyParser";
159
+ import { CollectionMemberContext } from "./MalloyParser";
160
+ import { FieldPathContext } from "./MalloyParser";
161
+ import { JoinNameContext } from "./MalloyParser";
162
+ import { FieldNameContext } from "./MalloyParser";
163
+ import { JustExprContext } from "./MalloyParser";
164
+ import { JsonContext } from "./MalloyParser";
165
+ import { JsonValueContext } from "./MalloyParser";
166
+ import { JsonObjectContext } from "./MalloyParser";
167
+ import { JsonPropertyContext } from "./MalloyParser";
168
+ import { JsonArrayContext } from "./MalloyParser";
169
+ import { SqlExploreNameRefContext } from "./MalloyParser";
170
+ import { SqlCommandNameDefContext } from "./MalloyParser";
171
+ import { ConnectionNameContext } from "./MalloyParser";
172
+ /**
173
+ * This interface defines a complete generic visitor for a parse tree produced
174
+ * by `MalloyParser`.
175
+ *
176
+ * @param <Result> The return type of the visit operation. Use `void` for
177
+ * operations with no return type.
178
+ */
179
+ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
180
+ /**
181
+ * Visit a parse tree produced by the `exprPartialCompare`
182
+ * labeled alternative in `MalloyParser.partialAllowedFieldExpr`.
183
+ * @param ctx the parse tree
184
+ * @return the visitor result
185
+ */
186
+ visitExprPartialCompare?: (ctx: ExprPartialCompareContext) => Result;
187
+ /**
188
+ * Visit a parse tree produced by the `exprNotPartial`
189
+ * labeled alternative in `MalloyParser.partialAllowedFieldExpr`.
190
+ * @param ctx the parse tree
191
+ * @return the visitor result
192
+ */
193
+ visitExprNotPartial?: (ctx: ExprNotPartialContext) => Result;
194
+ /**
195
+ * Visit a parse tree produced by the `nameMember`
196
+ * labeled alternative in `MalloyParser.collectionMember`.
197
+ * @param ctx the parse tree
198
+ * @return the visitor result
199
+ */
200
+ visitNameMember?: (ctx: NameMemberContext) => Result;
201
+ /**
202
+ * Visit a parse tree produced by the `wildMember`
203
+ * labeled alternative in `MalloyParser.collectionMember`.
204
+ * @param ctx the parse tree
205
+ * @return the visitor result
206
+ */
207
+ visitWildMember?: (ctx: WildMemberContext) => Result;
208
+ /**
209
+ * Visit a parse tree produced by the `newMember`
210
+ * labeled alternative in `MalloyParser.collectionMember`.
211
+ * @param ctx the parse tree
212
+ * @return the visitor result
213
+ */
214
+ visitNewMember?: (ctx: NewMemberContext) => Result;
215
+ /**
216
+ * Visit a parse tree produced by the `namedQueries_stub`
217
+ * labeled alternative in `MalloyParser.defineQuery`.
218
+ * @param ctx the parse tree
219
+ * @return the visitor result
220
+ */
221
+ visitNamedQueries_stub?: (ctx: NamedQueries_stubContext) => Result;
222
+ /**
223
+ * Visit a parse tree produced by the `anonymousQuery`
224
+ * labeled alternative in `MalloyParser.defineQuery`.
225
+ * @param ctx the parse tree
226
+ * @return the visitor result
227
+ */
228
+ visitAnonymousQuery?: (ctx: AnonymousQueryContext) => Result;
229
+ /**
230
+ * Visit a parse tree produced by the `NamedSource`
231
+ * labeled alternative in `MalloyParser.exploreSource`.
232
+ * @param ctx the parse tree
233
+ * @return the visitor result
234
+ */
235
+ visitNamedSource?: (ctx: NamedSourceContext) => Result;
236
+ /**
237
+ * Visit a parse tree produced by the `TableSource`
238
+ * labeled alternative in `MalloyParser.exploreSource`.
239
+ * @param ctx the parse tree
240
+ * @return the visitor result
241
+ */
242
+ visitTableSource?: (ctx: TableSourceContext) => Result;
243
+ /**
244
+ * Visit a parse tree produced by the `QuerySource`
245
+ * labeled alternative in `MalloyParser.exploreSource`.
246
+ * @param ctx the parse tree
247
+ * @return the visitor result
248
+ */
249
+ visitQuerySource?: (ctx: QuerySourceContext) => Result;
250
+ /**
251
+ * Visit a parse tree produced by the `SQLSource`
252
+ * labeled alternative in `MalloyParser.exploreSource`.
253
+ * @param ctx the parse tree
254
+ * @return the visitor result
255
+ */
256
+ visitSQLSource?: (ctx: SQLSourceContext) => Result;
257
+ /**
258
+ * Visit a parse tree produced by the `literalTimestamp`
259
+ * labeled alternative in `MalloyParser.dateLiteral`.
260
+ * @param ctx the parse tree
261
+ * @return the visitor result
262
+ */
263
+ visitLiteralTimestamp?: (ctx: LiteralTimestampContext) => Result;
264
+ /**
265
+ * Visit a parse tree produced by the `literalDay`
266
+ * labeled alternative in `MalloyParser.dateLiteral`.
267
+ * @param ctx the parse tree
268
+ * @return the visitor result
269
+ */
270
+ visitLiteralDay?: (ctx: LiteralDayContext) => Result;
271
+ /**
272
+ * Visit a parse tree produced by the `literalWeek`
273
+ * labeled alternative in `MalloyParser.dateLiteral`.
274
+ * @param ctx the parse tree
275
+ * @return the visitor result
276
+ */
277
+ visitLiteralWeek?: (ctx: LiteralWeekContext) => Result;
278
+ /**
279
+ * Visit a parse tree produced by the `literalMonth`
280
+ * labeled alternative in `MalloyParser.dateLiteral`.
281
+ * @param ctx the parse tree
282
+ * @return the visitor result
283
+ */
284
+ visitLiteralMonth?: (ctx: LiteralMonthContext) => Result;
285
+ /**
286
+ * Visit a parse tree produced by the `literalQuarter`
287
+ * labeled alternative in `MalloyParser.dateLiteral`.
288
+ * @param ctx the parse tree
289
+ * @return the visitor result
290
+ */
291
+ visitLiteralQuarter?: (ctx: LiteralQuarterContext) => Result;
292
+ /**
293
+ * Visit a parse tree produced by the `literalYear`
294
+ * labeled alternative in `MalloyParser.dateLiteral`.
295
+ * @param ctx the parse tree
296
+ * @return the visitor result
297
+ */
298
+ visitLiteralYear?: (ctx: LiteralYearContext) => Result;
299
+ /**
300
+ * Visit a parse tree produced by the `exprString`
301
+ * labeled alternative in `MalloyParser.literal`.
302
+ * @param ctx the parse tree
303
+ * @return the visitor result
304
+ */
305
+ visitExprString?: (ctx: ExprStringContext) => Result;
306
+ /**
307
+ * Visit a parse tree produced by the `exprNumber`
308
+ * labeled alternative in `MalloyParser.literal`.
309
+ * @param ctx the parse tree
310
+ * @return the visitor result
311
+ */
312
+ visitExprNumber?: (ctx: ExprNumberContext) => Result;
313
+ /**
314
+ * Visit a parse tree produced by the `exprTime`
315
+ * labeled alternative in `MalloyParser.literal`.
316
+ * @param ctx the parse tree
317
+ * @return the visitor result
318
+ */
319
+ visitExprTime?: (ctx: ExprTimeContext) => Result;
320
+ /**
321
+ * Visit a parse tree produced by the `exprNULL`
322
+ * labeled alternative in `MalloyParser.literal`.
323
+ * @param ctx the parse tree
324
+ * @return the visitor result
325
+ */
326
+ visitExprNULL?: (ctx: ExprNULLContext) => Result;
327
+ /**
328
+ * Visit a parse tree produced by the `exprBool`
329
+ * labeled alternative in `MalloyParser.literal`.
330
+ * @param ctx the parse tree
331
+ * @return the visitor result
332
+ */
333
+ visitExprBool?: (ctx: ExprBoolContext) => Result;
334
+ /**
335
+ * Visit a parse tree produced by the `exprRegex`
336
+ * labeled alternative in `MalloyParser.literal`.
337
+ * @param ctx the parse tree
338
+ * @return the visitor result
339
+ */
340
+ visitExprRegex?: (ctx: ExprRegexContext) => Result;
341
+ /**
342
+ * Visit a parse tree produced by the `exprNow`
343
+ * labeled alternative in `MalloyParser.literal`.
344
+ * @param ctx the parse tree
345
+ * @return the visitor result
346
+ */
347
+ visitExprNow?: (ctx: ExprNowContext) => Result;
348
+ /**
349
+ * Visit a parse tree produced by the `queryFieldRef`
350
+ * labeled alternative in `MalloyParser.queryFieldEntry`.
351
+ * @param ctx the parse tree
352
+ * @return the visitor result
353
+ */
354
+ visitQueryFieldRef?: (ctx: QueryFieldRefContext) => Result;
355
+ /**
356
+ * Visit a parse tree produced by the `queryFieldDef`
357
+ * labeled alternative in `MalloyParser.queryFieldEntry`.
358
+ * @param ctx the parse tree
359
+ * @return the visitor result
360
+ */
361
+ visitQueryFieldDef?: (ctx: QueryFieldDefContext) => Result;
362
+ /**
363
+ * Visit a parse tree produced by the `nestExisting`
364
+ * labeled alternative in `MalloyParser.nestEntry`.
365
+ * @param ctx the parse tree
366
+ * @return the visitor result
367
+ */
368
+ visitNestExisting?: (ctx: NestExistingContext) => Result;
369
+ /**
370
+ * Visit a parse tree produced by the `nestDef`
371
+ * labeled alternative in `MalloyParser.nestEntry`.
372
+ * @param ctx the parse tree
373
+ * @return the visitor result
374
+ */
375
+ visitNestDef?: (ctx: NestDefContext) => Result;
376
+ /**
377
+ * Visit a parse tree produced by the `exprFieldPath`
378
+ * labeled alternative in `MalloyParser.fieldExpr`.
379
+ * @param ctx the parse tree
380
+ * @return the visitor result
381
+ */
382
+ visitExprFieldPath?: (ctx: ExprFieldPathContext) => Result;
383
+ /**
384
+ * Visit a parse tree produced by the `exprFilter`
385
+ * labeled alternative in `MalloyParser.fieldExpr`.
386
+ * @param ctx the parse tree
387
+ * @return the visitor result
388
+ */
389
+ visitExprFilter?: (ctx: ExprFilterContext) => Result;
390
+ /**
391
+ * Visit a parse tree produced by the `exprLiteral`
392
+ * labeled alternative in `MalloyParser.fieldExpr`.
393
+ * @param ctx the parse tree
394
+ * @return the visitor result
395
+ */
396
+ visitExprLiteral?: (ctx: ExprLiteralContext) => Result;
397
+ /**
398
+ * Visit a parse tree produced by the `exprMinus`
399
+ * labeled alternative in `MalloyParser.fieldExpr`.
400
+ * @param ctx the parse tree
401
+ * @return the visitor result
402
+ */
403
+ visitExprMinus?: (ctx: ExprMinusContext) => Result;
404
+ /**
405
+ * Visit a parse tree produced by the `exprDuration`
406
+ * labeled alternative in `MalloyParser.fieldExpr`.
407
+ * @param ctx the parse tree
408
+ * @return the visitor result
409
+ */
410
+ visitExprDuration?: (ctx: ExprDurationContext) => Result;
411
+ /**
412
+ * Visit a parse tree produced by the `exprTimeTrunc`
413
+ * labeled alternative in `MalloyParser.fieldExpr`.
414
+ * @param ctx the parse tree
415
+ * @return the visitor result
416
+ */
417
+ visitExprTimeTrunc?: (ctx: ExprTimeTruncContext) => Result;
418
+ /**
419
+ * Visit a parse tree produced by the `exprSafeCast`
420
+ * labeled alternative in `MalloyParser.fieldExpr`.
421
+ * @param ctx the parse tree
422
+ * @return the visitor result
423
+ */
424
+ visitExprSafeCast?: (ctx: ExprSafeCastContext) => Result;
425
+ /**
426
+ * Visit a parse tree produced by the `exprMulDiv`
427
+ * labeled alternative in `MalloyParser.fieldExpr`.
428
+ * @param ctx the parse tree
429
+ * @return the visitor result
430
+ */
431
+ visitExprMulDiv?: (ctx: ExprMulDivContext) => Result;
432
+ /**
433
+ * Visit a parse tree produced by the `exprAddSub`
434
+ * labeled alternative in `MalloyParser.fieldExpr`.
435
+ * @param ctx the parse tree
436
+ * @return the visitor result
437
+ */
438
+ visitExprAddSub?: (ctx: ExprAddSubContext) => Result;
439
+ /**
440
+ * Visit a parse tree produced by the `exprRange`
441
+ * labeled alternative in `MalloyParser.fieldExpr`.
442
+ * @param ctx the parse tree
443
+ * @return the visitor result
444
+ */
445
+ visitExprRange?: (ctx: ExprRangeContext) => Result;
446
+ /**
447
+ * Visit a parse tree produced by the `exprForRange`
448
+ * labeled alternative in `MalloyParser.fieldExpr`.
449
+ * @param ctx the parse tree
450
+ * @return the visitor result
451
+ */
452
+ visitExprForRange?: (ctx: ExprForRangeContext) => Result;
453
+ /**
454
+ * Visit a parse tree produced by the `exprLogicalTree`
455
+ * labeled alternative in `MalloyParser.fieldExpr`.
456
+ * @param ctx the parse tree
457
+ * @return the visitor result
458
+ */
459
+ visitExprLogicalTree?: (ctx: ExprLogicalTreeContext) => Result;
460
+ /**
461
+ * Visit a parse tree produced by the `exprCompare`
462
+ * labeled alternative in `MalloyParser.fieldExpr`.
463
+ * @param ctx the parse tree
464
+ * @return the visitor result
465
+ */
466
+ visitExprCompare?: (ctx: ExprCompareContext) => Result;
467
+ /**
468
+ * Visit a parse tree produced by the `exprApply`
469
+ * labeled alternative in `MalloyParser.fieldExpr`.
470
+ * @param ctx the parse tree
471
+ * @return the visitor result
472
+ */
473
+ visitExprApply?: (ctx: ExprApplyContext) => Result;
474
+ /**
475
+ * Visit a parse tree produced by the `exprNot`
476
+ * labeled alternative in `MalloyParser.fieldExpr`.
477
+ * @param ctx the parse tree
478
+ * @return the visitor result
479
+ */
480
+ visitExprNot?: (ctx: ExprNotContext) => Result;
481
+ /**
482
+ * Visit a parse tree produced by the `exprLogical`
483
+ * labeled alternative in `MalloyParser.fieldExpr`.
484
+ * @param ctx the parse tree
485
+ * @return the visitor result
486
+ */
487
+ visitExprLogical?: (ctx: ExprLogicalContext) => Result;
488
+ /**
489
+ * Visit a parse tree produced by the `exprCast`
490
+ * labeled alternative in `MalloyParser.fieldExpr`.
491
+ * @param ctx the parse tree
492
+ * @return the visitor result
493
+ */
494
+ visitExprCast?: (ctx: ExprCastContext) => Result;
495
+ /**
496
+ * Visit a parse tree produced by the `exprCountDisinct`
497
+ * labeled alternative in `MalloyParser.fieldExpr`.
498
+ * @param ctx the parse tree
499
+ * @return the visitor result
500
+ */
501
+ visitExprCountDisinct?: (ctx: ExprCountDisinctContext) => Result;
502
+ /**
503
+ * Visit a parse tree produced by the `exprAggregate`
504
+ * labeled alternative in `MalloyParser.fieldExpr`.
505
+ * @param ctx the parse tree
506
+ * @return the visitor result
507
+ */
508
+ visitExprAggregate?: (ctx: ExprAggregateContext) => Result;
509
+ /**
510
+ * Visit a parse tree produced by the `exprExpr`
511
+ * labeled alternative in `MalloyParser.fieldExpr`.
512
+ * @param ctx the parse tree
513
+ * @return the visitor result
514
+ */
515
+ visitExprExpr?: (ctx: ExprExprContext) => Result;
516
+ /**
517
+ * Visit a parse tree produced by the `exprFunc`
518
+ * labeled alternative in `MalloyParser.fieldExpr`.
519
+ * @param ctx the parse tree
520
+ * @return the visitor result
521
+ */
522
+ visitExprFunc?: (ctx: ExprFuncContext) => Result;
523
+ /**
524
+ * Visit a parse tree produced by the `exprPick`
525
+ * labeled alternative in `MalloyParser.fieldExpr`.
526
+ * @param ctx the parse tree
527
+ * @return the visitor result
528
+ */
529
+ visitExprPick?: (ctx: ExprPickContext) => Result;
530
+ /**
531
+ * Visit a parse tree produced by the `exprUngroup`
532
+ * labeled alternative in `MalloyParser.fieldExpr`.
533
+ * @param ctx the parse tree
534
+ * @return the visitor result
535
+ */
536
+ visitExprUngroup?: (ctx: ExprUngroupContext) => Result;
537
+ /**
538
+ * Visit a parse tree produced by the `exploreArrowQuery`
539
+ * labeled alternative in `MalloyParser.query`.
540
+ * @param ctx the parse tree
541
+ * @return the visitor result
542
+ */
543
+ visitExploreArrowQuery?: (ctx: ExploreArrowQueryContext) => Result;
544
+ /**
545
+ * Visit a parse tree produced by the `arrowQuery`
546
+ * labeled alternative in `MalloyParser.query`.
547
+ * @param ctx the parse tree
548
+ * @return the visitor result
549
+ */
550
+ visitArrowQuery?: (ctx: ArrowQueryContext) => Result;
551
+ /**
552
+ * Visit a parse tree produced by the `defJoinOne`
553
+ * labeled alternative in `MalloyParser.joinStatement`.
554
+ * @param ctx the parse tree
555
+ * @return the visitor result
556
+ */
557
+ visitDefJoinOne?: (ctx: DefJoinOneContext) => Result;
558
+ /**
559
+ * Visit a parse tree produced by the `defJoinMany`
560
+ * labeled alternative in `MalloyParser.joinStatement`.
561
+ * @param ctx the parse tree
562
+ * @return the visitor result
563
+ */
564
+ visitDefJoinMany?: (ctx: DefJoinManyContext) => Result;
565
+ /**
566
+ * Visit a parse tree produced by the `defJoinCross`
567
+ * labeled alternative in `MalloyParser.joinStatement`.
568
+ * @param ctx the parse tree
569
+ * @return the visitor result
570
+ */
571
+ visitDefJoinCross?: (ctx: DefJoinCrossContext) => Result;
572
+ /**
573
+ * Visit a parse tree produced by the `defExploreDimension`
574
+ * labeled alternative in `MalloyParser.exploreStatement`.
575
+ * @param ctx the parse tree
576
+ * @return the visitor result
577
+ */
578
+ visitDefExploreDimension?: (ctx: DefExploreDimensionContext) => Result;
579
+ /**
580
+ * Visit a parse tree produced by the `defExploreMeasure`
581
+ * labeled alternative in `MalloyParser.exploreStatement`.
582
+ * @param ctx the parse tree
583
+ * @return the visitor result
584
+ */
585
+ visitDefExploreMeasure?: (ctx: DefExploreMeasureContext) => Result;
586
+ /**
587
+ * Visit a parse tree produced by the `defDeclare_stub`
588
+ * labeled alternative in `MalloyParser.exploreStatement`.
589
+ * @param ctx the parse tree
590
+ * @return the visitor result
591
+ */
592
+ visitDefDeclare_stub?: (ctx: DefDeclare_stubContext) => Result;
593
+ /**
594
+ * Visit a parse tree produced by the `defJoin_stub`
595
+ * labeled alternative in `MalloyParser.exploreStatement`.
596
+ * @param ctx the parse tree
597
+ * @return the visitor result
598
+ */
599
+ visitDefJoin_stub?: (ctx: DefJoin_stubContext) => Result;
600
+ /**
601
+ * Visit a parse tree produced by the `defExploreWhere`
602
+ * labeled alternative in `MalloyParser.exploreStatement`.
603
+ * @param ctx the parse tree
604
+ * @return the visitor result
605
+ */
606
+ visitDefExploreWhere?: (ctx: DefExploreWhereContext) => Result;
607
+ /**
608
+ * Visit a parse tree produced by the `defExplorePrimaryKey`
609
+ * labeled alternative in `MalloyParser.exploreStatement`.
610
+ * @param ctx the parse tree
611
+ * @return the visitor result
612
+ */
613
+ visitDefExplorePrimaryKey?: (ctx: DefExplorePrimaryKeyContext) => Result;
614
+ /**
615
+ * Visit a parse tree produced by the `defExploreRename`
616
+ * labeled alternative in `MalloyParser.exploreStatement`.
617
+ * @param ctx the parse tree
618
+ * @return the visitor result
619
+ */
620
+ visitDefExploreRename?: (ctx: DefExploreRenameContext) => Result;
621
+ /**
622
+ * Visit a parse tree produced by the `defExploreEditField`
623
+ * labeled alternative in `MalloyParser.exploreStatement`.
624
+ * @param ctx the parse tree
625
+ * @return the visitor result
626
+ */
627
+ visitDefExploreEditField?: (ctx: DefExploreEditFieldContext) => Result;
628
+ /**
629
+ * Visit a parse tree produced by the `defExploreQuery`
630
+ * labeled alternative in `MalloyParser.exploreStatement`.
631
+ * @param ctx the parse tree
632
+ * @return the visitor result
633
+ */
634
+ visitDefExploreQuery?: (ctx: DefExploreQueryContext) => Result;
635
+ /**
636
+ * Visit a parse tree produced by the `filterByShortcut`
637
+ * labeled alternative in `MalloyParser.filteredBy`.
638
+ * @param ctx the parse tree
639
+ * @return the visitor result
640
+ */
641
+ visitFilterByShortcut?: (ctx: FilterByShortcutContext) => Result;
642
+ /**
643
+ * Visit a parse tree produced by the `filterByWhere`
644
+ * labeled alternative in `MalloyParser.filteredBy`.
645
+ * @param ctx the parse tree
646
+ * @return the visitor result
647
+ */
648
+ visitFilterByWhere?: (ctx: FilterByWhereContext) => Result;
649
+ /**
650
+ * Visit a parse tree produced by the `joinWith`
651
+ * labeled alternative in `MalloyParser.joinDef`.
652
+ * @param ctx the parse tree
653
+ * @return the visitor result
654
+ */
655
+ visitJoinWith?: (ctx: JoinWithContext) => Result;
656
+ /**
657
+ * Visit a parse tree produced by the `joinOn`
658
+ * labeled alternative in `MalloyParser.joinDef`.
659
+ * @param ctx the parse tree
660
+ * @return the visitor result
661
+ */
662
+ visitJoinOn?: (ctx: JoinOnContext) => Result;
663
+ /**
664
+ * Visit a parse tree produced by `MalloyParser.malloyDocument`.
665
+ * @param ctx the parse tree
666
+ * @return the visitor result
667
+ */
668
+ visitMalloyDocument?: (ctx: MalloyDocumentContext) => Result;
669
+ /**
670
+ * Visit a parse tree produced by `MalloyParser.malloyStatement`.
671
+ * @param ctx the parse tree
672
+ * @return the visitor result
673
+ */
674
+ visitMalloyStatement?: (ctx: MalloyStatementContext) => Result;
675
+ /**
676
+ * Visit a parse tree produced by `MalloyParser.defineExploreStatement`.
677
+ * @param ctx the parse tree
678
+ * @return the visitor result
679
+ */
680
+ visitDefineExploreStatement?: (ctx: DefineExploreStatementContext) => Result;
681
+ /**
682
+ * Visit a parse tree produced by `MalloyParser.exploreKeyword`.
683
+ * @param ctx the parse tree
684
+ * @return the visitor result
685
+ */
686
+ visitExploreKeyword?: (ctx: ExploreKeywordContext) => Result;
687
+ /**
688
+ * Visit a parse tree produced by `MalloyParser.defineQuery`.
689
+ * @param ctx the parse tree
690
+ * @return the visitor result
691
+ */
692
+ visitDefineQuery?: (ctx: DefineQueryContext) => Result;
693
+ /**
694
+ * Visit a parse tree produced by `MalloyParser.topLevelAnonQueryDef`.
695
+ * @param ctx the parse tree
696
+ * @return the visitor result
697
+ */
698
+ visitTopLevelAnonQueryDef?: (ctx: TopLevelAnonQueryDefContext) => Result;
699
+ /**
700
+ * Visit a parse tree produced by `MalloyParser.defineSQLStatement`.
701
+ * @param ctx the parse tree
702
+ * @return the visitor result
703
+ */
704
+ visitDefineSQLStatement?: (ctx: DefineSQLStatementContext) => Result;
705
+ /**
706
+ * Visit a parse tree produced by `MalloyParser.sqlStatementDef`.
707
+ * @param ctx the parse tree
708
+ * @return the visitor result
709
+ */
710
+ visitSqlStatementDef?: (ctx: SqlStatementDefContext) => Result;
711
+ /**
712
+ * Visit a parse tree produced by `MalloyParser.importStatement`.
713
+ * @param ctx the parse tree
714
+ * @return the visitor result
715
+ */
716
+ visitImportStatement?: (ctx: ImportStatementContext) => Result;
717
+ /**
718
+ * Visit a parse tree produced by `MalloyParser.importURL`.
719
+ * @param ctx the parse tree
720
+ * @return the visitor result
721
+ */
722
+ visitImportURL?: (ctx: ImportURLContext) => Result;
723
+ /**
724
+ * Visit a parse tree produced by `MalloyParser.topLevelQueryDefs`.
725
+ * @param ctx the parse tree
726
+ * @return the visitor result
727
+ */
728
+ visitTopLevelQueryDefs?: (ctx: TopLevelQueryDefsContext) => Result;
729
+ /**
730
+ * Visit a parse tree produced by `MalloyParser.topLevelQueryDef`.
731
+ * @param ctx the parse tree
732
+ * @return the visitor result
733
+ */
734
+ visitTopLevelQueryDef?: (ctx: TopLevelQueryDefContext) => Result;
735
+ /**
736
+ * Visit a parse tree produced by `MalloyParser.refineOperator`.
737
+ * @param ctx the parse tree
738
+ * @return the visitor result
739
+ */
740
+ visitRefineOperator?: (ctx: RefineOperatorContext) => Result;
741
+ /**
742
+ * Visit a parse tree produced by `MalloyParser.query`.
743
+ * @param ctx the parse tree
744
+ * @return the visitor result
745
+ */
746
+ visitQuery?: (ctx: QueryContext) => Result;
747
+ /**
748
+ * Visit a parse tree produced by `MalloyParser.pipelineFromName`.
749
+ * @param ctx the parse tree
750
+ * @return the visitor result
751
+ */
752
+ visitPipelineFromName?: (ctx: PipelineFromNameContext) => Result;
753
+ /**
754
+ * Visit a parse tree produced by `MalloyParser.firstSegment`.
755
+ * @param ctx the parse tree
756
+ * @return the visitor result
757
+ */
758
+ visitFirstSegment?: (ctx: FirstSegmentContext) => Result;
759
+ /**
760
+ * Visit a parse tree produced by `MalloyParser.pipeElement`.
761
+ * @param ctx the parse tree
762
+ * @return the visitor result
763
+ */
764
+ visitPipeElement?: (ctx: PipeElementContext) => Result;
765
+ /**
766
+ * Visit a parse tree produced by `MalloyParser.exploreTable`.
767
+ * @param ctx the parse tree
768
+ * @return the visitor result
769
+ */
770
+ visitExploreTable?: (ctx: ExploreTableContext) => Result;
771
+ /**
772
+ * Visit a parse tree produced by `MalloyParser.queryProperties`.
773
+ * @param ctx the parse tree
774
+ * @return the visitor result
775
+ */
776
+ visitQueryProperties?: (ctx: QueryPropertiesContext) => Result;
777
+ /**
778
+ * Visit a parse tree produced by `MalloyParser.filterShortcut`.
779
+ * @param ctx the parse tree
780
+ * @return the visitor result
781
+ */
782
+ visitFilterShortcut?: (ctx: FilterShortcutContext) => Result;
783
+ /**
784
+ * Visit a parse tree produced by `MalloyParser.exploreQueryName`.
785
+ * @param ctx the parse tree
786
+ * @return the visitor result
787
+ */
788
+ visitExploreQueryName?: (ctx: ExploreQueryNameContext) => Result;
789
+ /**
790
+ * Visit a parse tree produced by `MalloyParser.queryName`.
791
+ * @param ctx the parse tree
792
+ * @return the visitor result
793
+ */
794
+ visitQueryName?: (ctx: QueryNameContext) => Result;
795
+ /**
796
+ * Visit a parse tree produced by `MalloyParser.exploreDefinitionList`.
797
+ * @param ctx the parse tree
798
+ * @return the visitor result
799
+ */
800
+ visitExploreDefinitionList?: (ctx: ExploreDefinitionListContext) => Result;
801
+ /**
802
+ * Visit a parse tree produced by `MalloyParser.exploreDefinition`.
803
+ * @param ctx the parse tree
804
+ * @return the visitor result
805
+ */
806
+ visitExploreDefinition?: (ctx: ExploreDefinitionContext) => Result;
807
+ /**
808
+ * Visit a parse tree produced by `MalloyParser.explore`.
809
+ * @param ctx the parse tree
810
+ * @return the visitor result
811
+ */
812
+ visitExplore?: (ctx: ExploreContext) => Result;
813
+ /**
814
+ * Visit a parse tree produced by `MalloyParser.exploreSource`.
815
+ * @param ctx the parse tree
816
+ * @return the visitor result
817
+ */
818
+ visitExploreSource?: (ctx: ExploreSourceContext) => Result;
819
+ /**
820
+ * Visit a parse tree produced by `MalloyParser.exploreNameDef`.
821
+ * @param ctx the parse tree
822
+ * @return the visitor result
823
+ */
824
+ visitExploreNameDef?: (ctx: ExploreNameDefContext) => Result;
825
+ /**
826
+ * Visit a parse tree produced by `MalloyParser.exploreName`.
827
+ * @param ctx the parse tree
828
+ * @return the visitor result
829
+ */
830
+ visitExploreName?: (ctx: ExploreNameContext) => Result;
831
+ /**
832
+ * Visit a parse tree produced by `MalloyParser.exploreProperties`.
833
+ * @param ctx the parse tree
834
+ * @return the visitor result
835
+ */
836
+ visitExploreProperties?: (ctx: ExplorePropertiesContext) => Result;
837
+ /**
838
+ * Visit a parse tree produced by `MalloyParser.exploreStatement`.
839
+ * @param ctx the parse tree
840
+ * @return the visitor result
841
+ */
842
+ visitExploreStatement?: (ctx: ExploreStatementContext) => Result;
843
+ /**
844
+ * Visit a parse tree produced by `MalloyParser.renameList`.
845
+ * @param ctx the parse tree
846
+ * @return the visitor result
847
+ */
848
+ visitRenameList?: (ctx: RenameListContext) => Result;
849
+ /**
850
+ * Visit a parse tree produced by `MalloyParser.exploreRenameDef`.
851
+ * @param ctx the parse tree
852
+ * @return the visitor result
853
+ */
854
+ visitExploreRenameDef?: (ctx: ExploreRenameDefContext) => Result;
855
+ /**
856
+ * Visit a parse tree produced by `MalloyParser.dimensionDefList`.
857
+ * @param ctx the parse tree
858
+ * @return the visitor result
859
+ */
860
+ visitDimensionDefList?: (ctx: DimensionDefListContext) => Result;
861
+ /**
862
+ * Visit a parse tree produced by `MalloyParser.measureDefList`.
863
+ * @param ctx the parse tree
864
+ * @return the visitor result
865
+ */
866
+ visitMeasureDefList?: (ctx: MeasureDefListContext) => Result;
867
+ /**
868
+ * Visit a parse tree produced by `MalloyParser.fieldDef`.
869
+ * @param ctx the parse tree
870
+ * @return the visitor result
871
+ */
872
+ visitFieldDef?: (ctx: FieldDefContext) => Result;
873
+ /**
874
+ * Visit a parse tree produced by `MalloyParser.fieldNameDef`.
875
+ * @param ctx the parse tree
876
+ * @return the visitor result
877
+ */
878
+ visitFieldNameDef?: (ctx: FieldNameDefContext) => Result;
879
+ /**
880
+ * Visit a parse tree produced by `MalloyParser.joinNameDef`.
881
+ * @param ctx the parse tree
882
+ * @return the visitor result
883
+ */
884
+ visitJoinNameDef?: (ctx: JoinNameDefContext) => Result;
885
+ /**
886
+ * Visit a parse tree produced by `MalloyParser.measureDef`.
887
+ * @param ctx the parse tree
888
+ * @return the visitor result
889
+ */
890
+ visitMeasureDef?: (ctx: MeasureDefContext) => Result;
891
+ /**
892
+ * Visit a parse tree produced by `MalloyParser.declareStatement`.
893
+ * @param ctx the parse tree
894
+ * @return the visitor result
895
+ */
896
+ visitDeclareStatement?: (ctx: DeclareStatementContext) => Result;
897
+ /**
898
+ * Visit a parse tree produced by `MalloyParser.joinStatement`.
899
+ * @param ctx the parse tree
900
+ * @return the visitor result
901
+ */
902
+ visitJoinStatement?: (ctx: JoinStatementContext) => Result;
903
+ /**
904
+ * Visit a parse tree produced by `MalloyParser.joinList`.
905
+ * @param ctx the parse tree
906
+ * @return the visitor result
907
+ */
908
+ visitJoinList?: (ctx: JoinListContext) => Result;
909
+ /**
910
+ * Visit a parse tree produced by `MalloyParser.joinDef`.
911
+ * @param ctx the parse tree
912
+ * @return the visitor result
913
+ */
914
+ visitJoinDef?: (ctx: JoinDefContext) => Result;
915
+ /**
916
+ * Visit a parse tree produced by `MalloyParser.joinExpression`.
917
+ * @param ctx the parse tree
918
+ * @return the visitor result
919
+ */
920
+ visitJoinExpression?: (ctx: JoinExpressionContext) => Result;
921
+ /**
922
+ * Visit a parse tree produced by `MalloyParser.filterStatement`.
923
+ * @param ctx the parse tree
924
+ * @return the visitor result
925
+ */
926
+ visitFilterStatement?: (ctx: FilterStatementContext) => Result;
927
+ /**
928
+ * Visit a parse tree produced by `MalloyParser.filteredBy`.
929
+ * @param ctx the parse tree
930
+ * @return the visitor result
931
+ */
932
+ visitFilteredBy?: (ctx: FilteredByContext) => Result;
933
+ /**
934
+ * Visit a parse tree produced by `MalloyParser.filterClauseList`.
935
+ * @param ctx the parse tree
936
+ * @return the visitor result
937
+ */
938
+ visitFilterClauseList?: (ctx: FilterClauseListContext) => Result;
939
+ /**
940
+ * Visit a parse tree produced by `MalloyParser.whereStatement`.
941
+ * @param ctx the parse tree
942
+ * @return the visitor result
943
+ */
944
+ visitWhereStatement?: (ctx: WhereStatementContext) => Result;
945
+ /**
946
+ * Visit a parse tree produced by `MalloyParser.havingStatement`.
947
+ * @param ctx the parse tree
948
+ * @return the visitor result
949
+ */
950
+ visitHavingStatement?: (ctx: HavingStatementContext) => Result;
951
+ /**
952
+ * Visit a parse tree produced by `MalloyParser.subQueryDefList`.
953
+ * @param ctx the parse tree
954
+ * @return the visitor result
955
+ */
956
+ visitSubQueryDefList?: (ctx: SubQueryDefListContext) => Result;
957
+ /**
958
+ * Visit a parse tree produced by `MalloyParser.exploreQueryNameDef`.
959
+ * @param ctx the parse tree
960
+ * @return the visitor result
961
+ */
962
+ visitExploreQueryNameDef?: (ctx: ExploreQueryNameDefContext) => Result;
963
+ /**
964
+ * Visit a parse tree produced by `MalloyParser.exploreQueryDef`.
965
+ * @param ctx the parse tree
966
+ * @return the visitor result
967
+ */
968
+ visitExploreQueryDef?: (ctx: ExploreQueryDefContext) => Result;
969
+ /**
970
+ * Visit a parse tree produced by `MalloyParser.queryStatement`.
971
+ * @param ctx the parse tree
972
+ * @return the visitor result
973
+ */
974
+ visitQueryStatement?: (ctx: QueryStatementContext) => Result;
975
+ /**
976
+ * Visit a parse tree produced by `MalloyParser.groupByStatement`.
977
+ * @param ctx the parse tree
978
+ * @return the visitor result
979
+ */
980
+ visitGroupByStatement?: (ctx: GroupByStatementContext) => Result;
981
+ /**
982
+ * Visit a parse tree produced by `MalloyParser.queryFieldList`.
983
+ * @param ctx the parse tree
984
+ * @return the visitor result
985
+ */
986
+ visitQueryFieldList?: (ctx: QueryFieldListContext) => Result;
987
+ /**
988
+ * Visit a parse tree produced by `MalloyParser.dimensionDef`.
989
+ * @param ctx the parse tree
990
+ * @return the visitor result
991
+ */
992
+ visitDimensionDef?: (ctx: DimensionDefContext) => Result;
993
+ /**
994
+ * Visit a parse tree produced by `MalloyParser.queryFieldEntry`.
995
+ * @param ctx the parse tree
996
+ * @return the visitor result
997
+ */
998
+ visitQueryFieldEntry?: (ctx: QueryFieldEntryContext) => Result;
999
+ /**
1000
+ * Visit a parse tree produced by `MalloyParser.nestStatement`.
1001
+ * @param ctx the parse tree
1002
+ * @return the visitor result
1003
+ */
1004
+ visitNestStatement?: (ctx: NestStatementContext) => Result;
1005
+ /**
1006
+ * Visit a parse tree produced by `MalloyParser.nestedQueryList`.
1007
+ * @param ctx the parse tree
1008
+ * @return the visitor result
1009
+ */
1010
+ visitNestedQueryList?: (ctx: NestedQueryListContext) => Result;
1011
+ /**
1012
+ * Visit a parse tree produced by `MalloyParser.nestEntry`.
1013
+ * @param ctx the parse tree
1014
+ * @return the visitor result
1015
+ */
1016
+ visitNestEntry?: (ctx: NestEntryContext) => Result;
1017
+ /**
1018
+ * Visit a parse tree produced by `MalloyParser.aggregateStatement`.
1019
+ * @param ctx the parse tree
1020
+ * @return the visitor result
1021
+ */
1022
+ visitAggregateStatement?: (ctx: AggregateStatementContext) => Result;
1023
+ /**
1024
+ * Visit a parse tree produced by `MalloyParser.projectStatement`.
1025
+ * @param ctx the parse tree
1026
+ * @return the visitor result
1027
+ */
1028
+ visitProjectStatement?: (ctx: ProjectStatementContext) => Result;
1029
+ /**
1030
+ * Visit a parse tree produced by `MalloyParser.orderByStatement`.
1031
+ * @param ctx the parse tree
1032
+ * @return the visitor result
1033
+ */
1034
+ visitOrderByStatement?: (ctx: OrderByStatementContext) => Result;
1035
+ /**
1036
+ * Visit a parse tree produced by `MalloyParser.ordering`.
1037
+ * @param ctx the parse tree
1038
+ * @return the visitor result
1039
+ */
1040
+ visitOrdering?: (ctx: OrderingContext) => Result;
1041
+ /**
1042
+ * Visit a parse tree produced by `MalloyParser.orderBySpec`.
1043
+ * @param ctx the parse tree
1044
+ * @return the visitor result
1045
+ */
1046
+ visitOrderBySpec?: (ctx: OrderBySpecContext) => Result;
1047
+ /**
1048
+ * Visit a parse tree produced by `MalloyParser.limitStatement`.
1049
+ * @param ctx the parse tree
1050
+ * @return the visitor result
1051
+ */
1052
+ visitLimitStatement?: (ctx: LimitStatementContext) => Result;
1053
+ /**
1054
+ * Visit a parse tree produced by `MalloyParser.bySpec`.
1055
+ * @param ctx the parse tree
1056
+ * @return the visitor result
1057
+ */
1058
+ visitBySpec?: (ctx: BySpecContext) => Result;
1059
+ /**
1060
+ * Visit a parse tree produced by `MalloyParser.topStatement`.
1061
+ * @param ctx the parse tree
1062
+ * @return the visitor result
1063
+ */
1064
+ visitTopStatement?: (ctx: TopStatementContext) => Result;
1065
+ /**
1066
+ * Visit a parse tree produced by `MalloyParser.indexElement`.
1067
+ * @param ctx the parse tree
1068
+ * @return the visitor result
1069
+ */
1070
+ visitIndexElement?: (ctx: IndexElementContext) => Result;
1071
+ /**
1072
+ * Visit a parse tree produced by `MalloyParser.indexFields`.
1073
+ * @param ctx the parse tree
1074
+ * @return the visitor result
1075
+ */
1076
+ visitIndexFields?: (ctx: IndexFieldsContext) => Result;
1077
+ /**
1078
+ * Visit a parse tree produced by `MalloyParser.indexStatement`.
1079
+ * @param ctx the parse tree
1080
+ * @return the visitor result
1081
+ */
1082
+ visitIndexStatement?: (ctx: IndexStatementContext) => Result;
1083
+ /**
1084
+ * Visit a parse tree produced by `MalloyParser.sampleStatement`.
1085
+ * @param ctx the parse tree
1086
+ * @return the visitor result
1087
+ */
1088
+ visitSampleStatement?: (ctx: SampleStatementContext) => Result;
1089
+ /**
1090
+ * Visit a parse tree produced by `MalloyParser.sampleSpec`.
1091
+ * @param ctx the parse tree
1092
+ * @return the visitor result
1093
+ */
1094
+ visitSampleSpec?: (ctx: SampleSpecContext) => Result;
1095
+ /**
1096
+ * Visit a parse tree produced by `MalloyParser.aggregate`.
1097
+ * @param ctx the parse tree
1098
+ * @return the visitor result
1099
+ */
1100
+ visitAggregate?: (ctx: AggregateContext) => Result;
1101
+ /**
1102
+ * Visit a parse tree produced by `MalloyParser.malloyType`.
1103
+ * @param ctx the parse tree
1104
+ * @return the visitor result
1105
+ */
1106
+ visitMalloyType?: (ctx: MalloyTypeContext) => Result;
1107
+ /**
1108
+ * Visit a parse tree produced by `MalloyParser.compareOp`.
1109
+ * @param ctx the parse tree
1110
+ * @return the visitor result
1111
+ */
1112
+ visitCompareOp?: (ctx: CompareOpContext) => Result;
1113
+ /**
1114
+ * Visit a parse tree produced by `MalloyParser.literal`.
1115
+ * @param ctx the parse tree
1116
+ * @return the visitor result
1117
+ */
1118
+ visitLiteral?: (ctx: LiteralContext) => Result;
1119
+ /**
1120
+ * Visit a parse tree produced by `MalloyParser.dateLiteral`.
1121
+ * @param ctx the parse tree
1122
+ * @return the visitor result
1123
+ */
1124
+ visitDateLiteral?: (ctx: DateLiteralContext) => Result;
1125
+ /**
1126
+ * Visit a parse tree produced by `MalloyParser.tableName`.
1127
+ * @param ctx the parse tree
1128
+ * @return the visitor result
1129
+ */
1130
+ visitTableName?: (ctx: TableNameContext) => Result;
1131
+ /**
1132
+ * Visit a parse tree produced by `MalloyParser.id`.
1133
+ * @param ctx the parse tree
1134
+ * @return the visitor result
1135
+ */
1136
+ visitId?: (ctx: IdContext) => Result;
1137
+ /**
1138
+ * Visit a parse tree produced by `MalloyParser.timeframe`.
1139
+ * @param ctx the parse tree
1140
+ * @return the visitor result
1141
+ */
1142
+ visitTimeframe?: (ctx: TimeframeContext) => Result;
1143
+ /**
1144
+ * Visit a parse tree produced by `MalloyParser.ungroup`.
1145
+ * @param ctx the parse tree
1146
+ * @return the visitor result
1147
+ */
1148
+ visitUngroup?: (ctx: UngroupContext) => Result;
1149
+ /**
1150
+ * Visit a parse tree produced by `MalloyParser.fieldExpr`.
1151
+ * @param ctx the parse tree
1152
+ * @return the visitor result
1153
+ */
1154
+ visitFieldExpr?: (ctx: FieldExprContext) => Result;
1155
+ /**
1156
+ * Visit a parse tree produced by `MalloyParser.partialAllowedFieldExpr`.
1157
+ * @param ctx the parse tree
1158
+ * @return the visitor result
1159
+ */
1160
+ visitPartialAllowedFieldExpr?: (ctx: PartialAllowedFieldExprContext) => Result;
1161
+ /**
1162
+ * Visit a parse tree produced by `MalloyParser.pickStatement`.
1163
+ * @param ctx the parse tree
1164
+ * @return the visitor result
1165
+ */
1166
+ visitPickStatement?: (ctx: PickStatementContext) => Result;
1167
+ /**
1168
+ * Visit a parse tree produced by `MalloyParser.pick`.
1169
+ * @param ctx the parse tree
1170
+ * @return the visitor result
1171
+ */
1172
+ visitPick?: (ctx: PickContext) => Result;
1173
+ /**
1174
+ * Visit a parse tree produced by `MalloyParser.argumentList`.
1175
+ * @param ctx the parse tree
1176
+ * @return the visitor result
1177
+ */
1178
+ visitArgumentList?: (ctx: ArgumentListContext) => Result;
1179
+ /**
1180
+ * Visit a parse tree produced by `MalloyParser.fieldNameList`.
1181
+ * @param ctx the parse tree
1182
+ * @return the visitor result
1183
+ */
1184
+ visitFieldNameList?: (ctx: FieldNameListContext) => Result;
1185
+ /**
1186
+ * Visit a parse tree produced by `MalloyParser.fieldCollection`.
1187
+ * @param ctx the parse tree
1188
+ * @return the visitor result
1189
+ */
1190
+ visitFieldCollection?: (ctx: FieldCollectionContext) => Result;
1191
+ /**
1192
+ * Visit a parse tree produced by `MalloyParser.collectionMember`.
1193
+ * @param ctx the parse tree
1194
+ * @return the visitor result
1195
+ */
1196
+ visitCollectionMember?: (ctx: CollectionMemberContext) => Result;
1197
+ /**
1198
+ * Visit a parse tree produced by `MalloyParser.fieldPath`.
1199
+ * @param ctx the parse tree
1200
+ * @return the visitor result
1201
+ */
1202
+ visitFieldPath?: (ctx: FieldPathContext) => Result;
1203
+ /**
1204
+ * Visit a parse tree produced by `MalloyParser.joinName`.
1205
+ * @param ctx the parse tree
1206
+ * @return the visitor result
1207
+ */
1208
+ visitJoinName?: (ctx: JoinNameContext) => Result;
1209
+ /**
1210
+ * Visit a parse tree produced by `MalloyParser.fieldName`.
1211
+ * @param ctx the parse tree
1212
+ * @return the visitor result
1213
+ */
1214
+ visitFieldName?: (ctx: FieldNameContext) => Result;
1215
+ /**
1216
+ * Visit a parse tree produced by `MalloyParser.justExpr`.
1217
+ * @param ctx the parse tree
1218
+ * @return the visitor result
1219
+ */
1220
+ visitJustExpr?: (ctx: JustExprContext) => Result;
1221
+ /**
1222
+ * Visit a parse tree produced by `MalloyParser.json`.
1223
+ * @param ctx the parse tree
1224
+ * @return the visitor result
1225
+ */
1226
+ visitJson?: (ctx: JsonContext) => Result;
1227
+ /**
1228
+ * Visit a parse tree produced by `MalloyParser.jsonValue`.
1229
+ * @param ctx the parse tree
1230
+ * @return the visitor result
1231
+ */
1232
+ visitJsonValue?: (ctx: JsonValueContext) => Result;
1233
+ /**
1234
+ * Visit a parse tree produced by `MalloyParser.jsonObject`.
1235
+ * @param ctx the parse tree
1236
+ * @return the visitor result
1237
+ */
1238
+ visitJsonObject?: (ctx: JsonObjectContext) => Result;
1239
+ /**
1240
+ * Visit a parse tree produced by `MalloyParser.jsonProperty`.
1241
+ * @param ctx the parse tree
1242
+ * @return the visitor result
1243
+ */
1244
+ visitJsonProperty?: (ctx: JsonPropertyContext) => Result;
1245
+ /**
1246
+ * Visit a parse tree produced by `MalloyParser.jsonArray`.
1247
+ * @param ctx the parse tree
1248
+ * @return the visitor result
1249
+ */
1250
+ visitJsonArray?: (ctx: JsonArrayContext) => Result;
1251
+ /**
1252
+ * Visit a parse tree produced by `MalloyParser.sqlExploreNameRef`.
1253
+ * @param ctx the parse tree
1254
+ * @return the visitor result
1255
+ */
1256
+ visitSqlExploreNameRef?: (ctx: SqlExploreNameRefContext) => Result;
1257
+ /**
1258
+ * Visit a parse tree produced by `MalloyParser.sqlCommandNameDef`.
1259
+ * @param ctx the parse tree
1260
+ * @return the visitor result
1261
+ */
1262
+ visitSqlCommandNameDef?: (ctx: SqlCommandNameDefContext) => Result;
1263
+ /**
1264
+ * Visit a parse tree produced by `MalloyParser.connectionName`.
1265
+ * @param ctx the parse tree
1266
+ * @return the visitor result
1267
+ */
1268
+ visitConnectionName?: (ctx: ConnectionNameContext) => Result;
1269
+ }