@malloydata/malloy 0.0.56-dev230710182711 → 0.0.56-dev230710205111

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.
@@ -1,11 +1,6 @@
1
1
  import { ParseTreeListener } from "antlr4ts/tree/ParseTreeListener";
2
2
  import { Use_top_level_query_defsContext } from "./MalloyParser";
3
3
  import { AnonymousQueryContext } from "./MalloyParser";
4
- import { NamedSourceContext } from "./MalloyParser";
5
- import { TableSourceContext } from "./MalloyParser";
6
- import { QuerySourceContext } from "./MalloyParser";
7
- import { SQLSourceNameContext } from "./MalloyParser";
8
- import { SQLSourceContext } from "./MalloyParser";
9
4
  import { LiteralTimestampContext } from "./MalloyParser";
10
5
  import { LiteralHourContext } from "./MalloyParser";
11
6
  import { LiteralDayContext } from "./MalloyParser";
@@ -22,6 +17,8 @@ import { ExprRegexContext } from "./MalloyParser";
22
17
  import { ExprNowContext } from "./MalloyParser";
23
18
  import { TableFunctionContext } from "./MalloyParser";
24
19
  import { TableMethodContext } from "./MalloyParser";
20
+ import { BareExtendedSource_stubContext } from "./MalloyParser";
21
+ import { ExtendedQueryContext } from "./MalloyParser";
25
22
  import { NestExistingContext } from "./MalloyParser";
26
23
  import { NestDefContext } from "./MalloyParser";
27
24
  import { ExprFieldPathContext } from "./MalloyParser";
@@ -51,10 +48,10 @@ import { ExprAggFuncContext } from "./MalloyParser";
51
48
  import { ExprFuncContext } from "./MalloyParser";
52
49
  import { ExprPickContext } from "./MalloyParser";
53
50
  import { ExprUngroupContext } from "./MalloyParser";
54
- import { RunStatementDefContext } from "./MalloyParser";
55
- import { RunStatementRefContext } from "./MalloyParser";
56
- import { ExploreArrowQueryContext } from "./MalloyParser";
57
- import { ArrowQueryContext } from "./MalloyParser";
51
+ import { QueryByNameContext } from "./MalloyParser";
52
+ import { QueryByTurtleNameContext } from "./MalloyParser";
53
+ import { NormalQueryContext } from "./MalloyParser";
54
+ import { QueryFromSQLSourceContext } from "./MalloyParser";
58
55
  import { DefJoinOneContext } from "./MalloyParser";
59
56
  import { DefJoinManyContext } from "./MalloyParser";
60
57
  import { DefJoinCrossContext } from "./MalloyParser";
@@ -72,6 +69,13 @@ import { DefExploreAnnotationContext } from "./MalloyParser";
72
69
  import { DefIgnoreModel_stubContext } from "./MalloyParser";
73
70
  import { FilterByShortcutContext } from "./MalloyParser";
74
71
  import { FilterByWhereContext } from "./MalloyParser";
72
+ import { QueryFromSourceContext } from "./MalloyParser";
73
+ import { RefinedQueryContext } from "./MalloyParser";
74
+ import { SourceFromNamedModelEntryContext } from "./MalloyParser";
75
+ import { TableSourceContext } from "./MalloyParser";
76
+ import { QuerySourceContext } from "./MalloyParser";
77
+ import { SQLSourceNameContext } from "./MalloyParser";
78
+ import { SQLSource_stubContext } from "./MalloyParser";
75
79
  import { JoinWithContext } from "./MalloyParser";
76
80
  import { JoinOnContext } from "./MalloyParser";
77
81
  import { MalloyDocumentContext } from "./MalloyParser";
@@ -95,7 +99,14 @@ import { IgnoredModelAnnotationsContext } from "./MalloyParser";
95
99
  import { TopLevelQueryDefsContext } from "./MalloyParser";
96
100
  import { TopLevelQueryDefContext } from "./MalloyParser";
97
101
  import { RefineOperatorContext } from "./MalloyParser";
102
+ import { QueryRefinementContext } from "./MalloyParser";
103
+ import { SourceExtensionContext } from "./MalloyParser";
98
104
  import { QueryContext } from "./MalloyParser";
105
+ import { UnrefinableQueryContext } from "./MalloyParser";
106
+ import { RefinableQueryContext } from "./MalloyParser";
107
+ import { UnextendableSourceContext } from "./MalloyParser";
108
+ import { ExtendableSourceContext } from "./MalloyParser";
109
+ import { SqlSourceContext } from "./MalloyParser";
99
110
  import { PipelineFromNameContext } from "./MalloyParser";
100
111
  import { FirstSegmentContext } from "./MalloyParser";
101
112
  import { PipeElementContext } from "./MalloyParser";
@@ -108,7 +119,6 @@ import { QueryNameContext } from "./MalloyParser";
108
119
  import { SourcePropertyListContext } from "./MalloyParser";
109
120
  import { SourceDefinitionContext } from "./MalloyParser";
110
121
  import { ExploreContext } from "./MalloyParser";
111
- import { ExploreSourceContext } from "./MalloyParser";
112
122
  import { SourceNameDefContext } from "./MalloyParser";
113
123
  import { SourceIDContext } from "./MalloyParser";
114
124
  import { ExplorePropertiesContext } from "./MalloyParser";
@@ -221,66 +231,6 @@ export interface MalloyParserListener extends ParseTreeListener {
221
231
  * @param ctx the parse tree
222
232
  */
223
233
  exitAnonymousQuery?: (ctx: AnonymousQueryContext) => void;
224
- /**
225
- * Enter a parse tree produced by the `NamedSource`
226
- * labeled alternative in `MalloyParser.exploreSource`.
227
- * @param ctx the parse tree
228
- */
229
- enterNamedSource?: (ctx: NamedSourceContext) => void;
230
- /**
231
- * Exit a parse tree produced by the `NamedSource`
232
- * labeled alternative in `MalloyParser.exploreSource`.
233
- * @param ctx the parse tree
234
- */
235
- exitNamedSource?: (ctx: NamedSourceContext) => void;
236
- /**
237
- * Enter a parse tree produced by the `TableSource`
238
- * labeled alternative in `MalloyParser.exploreSource`.
239
- * @param ctx the parse tree
240
- */
241
- enterTableSource?: (ctx: TableSourceContext) => void;
242
- /**
243
- * Exit a parse tree produced by the `TableSource`
244
- * labeled alternative in `MalloyParser.exploreSource`.
245
- * @param ctx the parse tree
246
- */
247
- exitTableSource?: (ctx: TableSourceContext) => void;
248
- /**
249
- * Enter a parse tree produced by the `QuerySource`
250
- * labeled alternative in `MalloyParser.exploreSource`.
251
- * @param ctx the parse tree
252
- */
253
- enterQuerySource?: (ctx: QuerySourceContext) => void;
254
- /**
255
- * Exit a parse tree produced by the `QuerySource`
256
- * labeled alternative in `MalloyParser.exploreSource`.
257
- * @param ctx the parse tree
258
- */
259
- exitQuerySource?: (ctx: QuerySourceContext) => void;
260
- /**
261
- * Enter a parse tree produced by the `SQLSourceName`
262
- * labeled alternative in `MalloyParser.exploreSource`.
263
- * @param ctx the parse tree
264
- */
265
- enterSQLSourceName?: (ctx: SQLSourceNameContext) => void;
266
- /**
267
- * Exit a parse tree produced by the `SQLSourceName`
268
- * labeled alternative in `MalloyParser.exploreSource`.
269
- * @param ctx the parse tree
270
- */
271
- exitSQLSourceName?: (ctx: SQLSourceNameContext) => void;
272
- /**
273
- * Enter a parse tree produced by the `SQLSource`
274
- * labeled alternative in `MalloyParser.exploreSource`.
275
- * @param ctx the parse tree
276
- */
277
- enterSQLSource?: (ctx: SQLSourceContext) => void;
278
- /**
279
- * Exit a parse tree produced by the `SQLSource`
280
- * labeled alternative in `MalloyParser.exploreSource`.
281
- * @param ctx the parse tree
282
- */
283
- exitSQLSource?: (ctx: SQLSourceContext) => void;
284
234
  /**
285
235
  * Enter a parse tree produced by the `literalTimestamp`
286
236
  * labeled alternative in `MalloyParser.dateLiteral`.
@@ -473,6 +423,30 @@ export interface MalloyParserListener extends ParseTreeListener {
473
423
  * @param ctx the parse tree
474
424
  */
475
425
  exitTableMethod?: (ctx: TableMethodContext) => void;
426
+ /**
427
+ * Enter a parse tree produced by the `BareExtendedSource_stub`
428
+ * labeled alternative in `MalloyParser.explore`.
429
+ * @param ctx the parse tree
430
+ */
431
+ enterBareExtendedSource_stub?: (ctx: BareExtendedSource_stubContext) => void;
432
+ /**
433
+ * Exit a parse tree produced by the `BareExtendedSource_stub`
434
+ * labeled alternative in `MalloyParser.explore`.
435
+ * @param ctx the parse tree
436
+ */
437
+ exitBareExtendedSource_stub?: (ctx: BareExtendedSource_stubContext) => void;
438
+ /**
439
+ * Enter a parse tree produced by the `ExtendedQuery`
440
+ * labeled alternative in `MalloyParser.explore`.
441
+ * @param ctx the parse tree
442
+ */
443
+ enterExtendedQuery?: (ctx: ExtendedQueryContext) => void;
444
+ /**
445
+ * Exit a parse tree produced by the `ExtendedQuery`
446
+ * labeled alternative in `MalloyParser.explore`.
447
+ * @param ctx the parse tree
448
+ */
449
+ exitExtendedQuery?: (ctx: ExtendedQueryContext) => void;
476
450
  /**
477
451
  * Enter a parse tree produced by the `nestExisting`
478
452
  * labeled alternative in `MalloyParser.nestEntry`.
@@ -822,53 +796,53 @@ export interface MalloyParserListener extends ParseTreeListener {
822
796
  */
823
797
  exitExprUngroup?: (ctx: ExprUngroupContext) => void;
824
798
  /**
825
- * Enter a parse tree produced by the `runStatementDef`
826
- * labeled alternative in `MalloyParser.runStatement`.
799
+ * Enter a parse tree produced by the `QueryByName`
800
+ * labeled alternative in `MalloyParser.refinableQuery`.
827
801
  * @param ctx the parse tree
828
802
  */
829
- enterRunStatementDef?: (ctx: RunStatementDefContext) => void;
803
+ enterQueryByName?: (ctx: QueryByNameContext) => void;
830
804
  /**
831
- * Exit a parse tree produced by the `runStatementDef`
832
- * labeled alternative in `MalloyParser.runStatement`.
805
+ * Exit a parse tree produced by the `QueryByName`
806
+ * labeled alternative in `MalloyParser.refinableQuery`.
833
807
  * @param ctx the parse tree
834
808
  */
835
- exitRunStatementDef?: (ctx: RunStatementDefContext) => void;
809
+ exitQueryByName?: (ctx: QueryByNameContext) => void;
836
810
  /**
837
- * Enter a parse tree produced by the `runStatementRef`
838
- * labeled alternative in `MalloyParser.runStatement`.
811
+ * Enter a parse tree produced by the `QueryByTurtleName`
812
+ * labeled alternative in `MalloyParser.refinableQuery`.
839
813
  * @param ctx the parse tree
840
814
  */
841
- enterRunStatementRef?: (ctx: RunStatementRefContext) => void;
815
+ enterQueryByTurtleName?: (ctx: QueryByTurtleNameContext) => void;
842
816
  /**
843
- * Exit a parse tree produced by the `runStatementRef`
844
- * labeled alternative in `MalloyParser.runStatement`.
817
+ * Exit a parse tree produced by the `QueryByTurtleName`
818
+ * labeled alternative in `MalloyParser.refinableQuery`.
845
819
  * @param ctx the parse tree
846
820
  */
847
- exitRunStatementRef?: (ctx: RunStatementRefContext) => void;
821
+ exitQueryByTurtleName?: (ctx: QueryByTurtleNameContext) => void;
848
822
  /**
849
- * Enter a parse tree produced by the `exploreArrowQuery`
823
+ * Enter a parse tree produced by the `NormalQuery`
850
824
  * labeled alternative in `MalloyParser.query`.
851
825
  * @param ctx the parse tree
852
826
  */
853
- enterExploreArrowQuery?: (ctx: ExploreArrowQueryContext) => void;
827
+ enterNormalQuery?: (ctx: NormalQueryContext) => void;
854
828
  /**
855
- * Exit a parse tree produced by the `exploreArrowQuery`
829
+ * Exit a parse tree produced by the `NormalQuery`
856
830
  * labeled alternative in `MalloyParser.query`.
857
831
  * @param ctx the parse tree
858
832
  */
859
- exitExploreArrowQuery?: (ctx: ExploreArrowQueryContext) => void;
833
+ exitNormalQuery?: (ctx: NormalQueryContext) => void;
860
834
  /**
861
- * Enter a parse tree produced by the `arrowQuery`
835
+ * Enter a parse tree produced by the `QueryFromSQLSource`
862
836
  * labeled alternative in `MalloyParser.query`.
863
837
  * @param ctx the parse tree
864
838
  */
865
- enterArrowQuery?: (ctx: ArrowQueryContext) => void;
839
+ enterQueryFromSQLSource?: (ctx: QueryFromSQLSourceContext) => void;
866
840
  /**
867
- * Exit a parse tree produced by the `arrowQuery`
841
+ * Exit a parse tree produced by the `QueryFromSQLSource`
868
842
  * labeled alternative in `MalloyParser.query`.
869
843
  * @param ctx the parse tree
870
844
  */
871
- exitArrowQuery?: (ctx: ArrowQueryContext) => void;
845
+ exitQueryFromSQLSource?: (ctx: QueryFromSQLSourceContext) => void;
872
846
  /**
873
847
  * Enter a parse tree produced by the `defJoinOne`
874
848
  * labeled alternative in `MalloyParser.joinStatement`.
@@ -1073,6 +1047,90 @@ export interface MalloyParserListener extends ParseTreeListener {
1073
1047
  * @param ctx the parse tree
1074
1048
  */
1075
1049
  exitFilterByWhere?: (ctx: FilterByWhereContext) => void;
1050
+ /**
1051
+ * Enter a parse tree produced by the `QueryFromSource`
1052
+ * labeled alternative in `MalloyParser.unrefinableQuery`.
1053
+ * @param ctx the parse tree
1054
+ */
1055
+ enterQueryFromSource?: (ctx: QueryFromSourceContext) => void;
1056
+ /**
1057
+ * Exit a parse tree produced by the `QueryFromSource`
1058
+ * labeled alternative in `MalloyParser.unrefinableQuery`.
1059
+ * @param ctx the parse tree
1060
+ */
1061
+ exitQueryFromSource?: (ctx: QueryFromSourceContext) => void;
1062
+ /**
1063
+ * Enter a parse tree produced by the `RefinedQuery`
1064
+ * labeled alternative in `MalloyParser.unrefinableQuery`.
1065
+ * @param ctx the parse tree
1066
+ */
1067
+ enterRefinedQuery?: (ctx: RefinedQueryContext) => void;
1068
+ /**
1069
+ * Exit a parse tree produced by the `RefinedQuery`
1070
+ * labeled alternative in `MalloyParser.unrefinableQuery`.
1071
+ * @param ctx the parse tree
1072
+ */
1073
+ exitRefinedQuery?: (ctx: RefinedQueryContext) => void;
1074
+ /**
1075
+ * Enter a parse tree produced by the `SourceFromNamedModelEntry`
1076
+ * labeled alternative in `MalloyParser.extendableSource`.
1077
+ * @param ctx the parse tree
1078
+ */
1079
+ enterSourceFromNamedModelEntry?: (ctx: SourceFromNamedModelEntryContext) => void;
1080
+ /**
1081
+ * Exit a parse tree produced by the `SourceFromNamedModelEntry`
1082
+ * labeled alternative in `MalloyParser.extendableSource`.
1083
+ * @param ctx the parse tree
1084
+ */
1085
+ exitSourceFromNamedModelEntry?: (ctx: SourceFromNamedModelEntryContext) => void;
1086
+ /**
1087
+ * Enter a parse tree produced by the `TableSource`
1088
+ * labeled alternative in `MalloyParser.extendableSource`.
1089
+ * @param ctx the parse tree
1090
+ */
1091
+ enterTableSource?: (ctx: TableSourceContext) => void;
1092
+ /**
1093
+ * Exit a parse tree produced by the `TableSource`
1094
+ * labeled alternative in `MalloyParser.extendableSource`.
1095
+ * @param ctx the parse tree
1096
+ */
1097
+ exitTableSource?: (ctx: TableSourceContext) => void;
1098
+ /**
1099
+ * Enter a parse tree produced by the `QuerySource`
1100
+ * labeled alternative in `MalloyParser.extendableSource`.
1101
+ * @param ctx the parse tree
1102
+ */
1103
+ enterQuerySource?: (ctx: QuerySourceContext) => void;
1104
+ /**
1105
+ * Exit a parse tree produced by the `QuerySource`
1106
+ * labeled alternative in `MalloyParser.extendableSource`.
1107
+ * @param ctx the parse tree
1108
+ */
1109
+ exitQuerySource?: (ctx: QuerySourceContext) => void;
1110
+ /**
1111
+ * Enter a parse tree produced by the `SQLSourceName`
1112
+ * labeled alternative in `MalloyParser.extendableSource`.
1113
+ * @param ctx the parse tree
1114
+ */
1115
+ enterSQLSourceName?: (ctx: SQLSourceNameContext) => void;
1116
+ /**
1117
+ * Exit a parse tree produced by the `SQLSourceName`
1118
+ * labeled alternative in `MalloyParser.extendableSource`.
1119
+ * @param ctx the parse tree
1120
+ */
1121
+ exitSQLSourceName?: (ctx: SQLSourceNameContext) => void;
1122
+ /**
1123
+ * Enter a parse tree produced by the `SQLSource_stub`
1124
+ * labeled alternative in `MalloyParser.extendableSource`.
1125
+ * @param ctx the parse tree
1126
+ */
1127
+ enterSQLSource_stub?: (ctx: SQLSource_stubContext) => void;
1128
+ /**
1129
+ * Exit a parse tree produced by the `SQLSource_stub`
1130
+ * labeled alternative in `MalloyParser.extendableSource`.
1131
+ * @param ctx the parse tree
1132
+ */
1133
+ exitSQLSource_stub?: (ctx: SQLSource_stubContext) => void;
1076
1134
  /**
1077
1135
  * Enter a parse tree produced by the `joinWith`
1078
1136
  * labeled alternative in `MalloyParser.joinDef`.
@@ -1307,6 +1365,26 @@ export interface MalloyParserListener extends ParseTreeListener {
1307
1365
  * @param ctx the parse tree
1308
1366
  */
1309
1367
  exitRefineOperator?: (ctx: RefineOperatorContext) => void;
1368
+ /**
1369
+ * Enter a parse tree produced by `MalloyParser.queryRefinement`.
1370
+ * @param ctx the parse tree
1371
+ */
1372
+ enterQueryRefinement?: (ctx: QueryRefinementContext) => void;
1373
+ /**
1374
+ * Exit a parse tree produced by `MalloyParser.queryRefinement`.
1375
+ * @param ctx the parse tree
1376
+ */
1377
+ exitQueryRefinement?: (ctx: QueryRefinementContext) => void;
1378
+ /**
1379
+ * Enter a parse tree produced by `MalloyParser.sourceExtension`.
1380
+ * @param ctx the parse tree
1381
+ */
1382
+ enterSourceExtension?: (ctx: SourceExtensionContext) => void;
1383
+ /**
1384
+ * Exit a parse tree produced by `MalloyParser.sourceExtension`.
1385
+ * @param ctx the parse tree
1386
+ */
1387
+ exitSourceExtension?: (ctx: SourceExtensionContext) => void;
1310
1388
  /**
1311
1389
  * Enter a parse tree produced by `MalloyParser.query`.
1312
1390
  * @param ctx the parse tree
@@ -1317,6 +1395,56 @@ export interface MalloyParserListener extends ParseTreeListener {
1317
1395
  * @param ctx the parse tree
1318
1396
  */
1319
1397
  exitQuery?: (ctx: QueryContext) => void;
1398
+ /**
1399
+ * Enter a parse tree produced by `MalloyParser.unrefinableQuery`.
1400
+ * @param ctx the parse tree
1401
+ */
1402
+ enterUnrefinableQuery?: (ctx: UnrefinableQueryContext) => void;
1403
+ /**
1404
+ * Exit a parse tree produced by `MalloyParser.unrefinableQuery`.
1405
+ * @param ctx the parse tree
1406
+ */
1407
+ exitUnrefinableQuery?: (ctx: UnrefinableQueryContext) => void;
1408
+ /**
1409
+ * Enter a parse tree produced by `MalloyParser.refinableQuery`.
1410
+ * @param ctx the parse tree
1411
+ */
1412
+ enterRefinableQuery?: (ctx: RefinableQueryContext) => void;
1413
+ /**
1414
+ * Exit a parse tree produced by `MalloyParser.refinableQuery`.
1415
+ * @param ctx the parse tree
1416
+ */
1417
+ exitRefinableQuery?: (ctx: RefinableQueryContext) => void;
1418
+ /**
1419
+ * Enter a parse tree produced by `MalloyParser.unextendableSource`.
1420
+ * @param ctx the parse tree
1421
+ */
1422
+ enterUnextendableSource?: (ctx: UnextendableSourceContext) => void;
1423
+ /**
1424
+ * Exit a parse tree produced by `MalloyParser.unextendableSource`.
1425
+ * @param ctx the parse tree
1426
+ */
1427
+ exitUnextendableSource?: (ctx: UnextendableSourceContext) => void;
1428
+ /**
1429
+ * Enter a parse tree produced by `MalloyParser.extendableSource`.
1430
+ * @param ctx the parse tree
1431
+ */
1432
+ enterExtendableSource?: (ctx: ExtendableSourceContext) => void;
1433
+ /**
1434
+ * Exit a parse tree produced by `MalloyParser.extendableSource`.
1435
+ * @param ctx the parse tree
1436
+ */
1437
+ exitExtendableSource?: (ctx: ExtendableSourceContext) => void;
1438
+ /**
1439
+ * Enter a parse tree produced by `MalloyParser.sqlSource`.
1440
+ * @param ctx the parse tree
1441
+ */
1442
+ enterSqlSource?: (ctx: SqlSourceContext) => void;
1443
+ /**
1444
+ * Exit a parse tree produced by `MalloyParser.sqlSource`.
1445
+ * @param ctx the parse tree
1446
+ */
1447
+ exitSqlSource?: (ctx: SqlSourceContext) => void;
1320
1448
  /**
1321
1449
  * Enter a parse tree produced by `MalloyParser.pipelineFromName`.
1322
1450
  * @param ctx the parse tree
@@ -1437,16 +1565,6 @@ export interface MalloyParserListener extends ParseTreeListener {
1437
1565
  * @param ctx the parse tree
1438
1566
  */
1439
1567
  exitExplore?: (ctx: ExploreContext) => void;
1440
- /**
1441
- * Enter a parse tree produced by `MalloyParser.exploreSource`.
1442
- * @param ctx the parse tree
1443
- */
1444
- enterExploreSource?: (ctx: ExploreSourceContext) => void;
1445
- /**
1446
- * Exit a parse tree produced by `MalloyParser.exploreSource`.
1447
- * @param ctx the parse tree
1448
- */
1449
- exitExploreSource?: (ctx: ExploreSourceContext) => void;
1450
1568
  /**
1451
1569
  * Enter a parse tree produced by `MalloyParser.sourceNameDef`.
1452
1570
  * @param ctx the parse tree