@malloydata/malloy 0.0.56-dev230710162623 → 0.0.56-dev230710183220
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lang/ast/index.d.ts +1 -0
- package/dist/lang/ast/index.js +1 -0
- package/dist/lang/ast/query-elements/existing-query.d.ts +3 -3
- package/dist/lang/ast/query-elements/existing-query.js +27 -25
- package/dist/lang/ast/query-elements/full-query.js +12 -0
- package/dist/lang/ast/query-elements/run-query.d.ts +3 -12
- package/dist/lang/ast/query-elements/run-query.js +3 -29
- package/dist/lang/ast/sources/named-source-or-query.d.ts +10 -0
- package/dist/lang/ast/sources/named-source-or-query.js +68 -0
- package/dist/lang/ast/sources/named-source.js +4 -4
- package/dist/lang/ast/types/malloy-element.d.ts +2 -0
- package/dist/lang/ast/types/malloy-element.js +13 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +100 -98
- package/dist/lang/lib/Malloy/MalloyLexer.js +1125 -1112
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +361 -273
- package/dist/lang/lib/Malloy/MalloyParser.js +3400 -2852
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +218 -100
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +135 -61
- package/dist/lang/malloy-to-ast.d.ts +17 -8
- package/dist/lang/malloy-to-ast.js +117 -61
- package/dist/lang/parse-malloy.d.ts +2 -0
- package/dist/lang/parse-malloy.js +2 -0
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +1 -10
- package/dist/lang/test/document-symbol-walker.spec.js +1 -1
- package/dist/lang/test/parse.spec.js +267 -18
- package/dist/lang/test/sql-block.spec.js +52 -2
- package/dist/lang/test/strings.spec.js +1 -1
- package/dist/tags.d.ts +1 -0
- package/dist/tags.js +10 -3
- package/package.json +1 -1
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { ParseTreeVisitor } from "antlr4ts/tree/ParseTreeVisitor";
|
|
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 {
|
|
55
|
-
import {
|
|
56
|
-
import {
|
|
57
|
-
import {
|
|
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";
|
|
@@ -214,41 +224,6 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
214
224
|
* @return the visitor result
|
|
215
225
|
*/
|
|
216
226
|
visitAnonymousQuery?: (ctx: AnonymousQueryContext) => Result;
|
|
217
|
-
/**
|
|
218
|
-
* Visit a parse tree produced by the `NamedSource`
|
|
219
|
-
* labeled alternative in `MalloyParser.exploreSource`.
|
|
220
|
-
* @param ctx the parse tree
|
|
221
|
-
* @return the visitor result
|
|
222
|
-
*/
|
|
223
|
-
visitNamedSource?: (ctx: NamedSourceContext) => Result;
|
|
224
|
-
/**
|
|
225
|
-
* Visit a parse tree produced by the `TableSource`
|
|
226
|
-
* labeled alternative in `MalloyParser.exploreSource`.
|
|
227
|
-
* @param ctx the parse tree
|
|
228
|
-
* @return the visitor result
|
|
229
|
-
*/
|
|
230
|
-
visitTableSource?: (ctx: TableSourceContext) => Result;
|
|
231
|
-
/**
|
|
232
|
-
* Visit a parse tree produced by the `QuerySource`
|
|
233
|
-
* labeled alternative in `MalloyParser.exploreSource`.
|
|
234
|
-
* @param ctx the parse tree
|
|
235
|
-
* @return the visitor result
|
|
236
|
-
*/
|
|
237
|
-
visitQuerySource?: (ctx: QuerySourceContext) => Result;
|
|
238
|
-
/**
|
|
239
|
-
* Visit a parse tree produced by the `SQLSourceName`
|
|
240
|
-
* labeled alternative in `MalloyParser.exploreSource`.
|
|
241
|
-
* @param ctx the parse tree
|
|
242
|
-
* @return the visitor result
|
|
243
|
-
*/
|
|
244
|
-
visitSQLSourceName?: (ctx: SQLSourceNameContext) => Result;
|
|
245
|
-
/**
|
|
246
|
-
* Visit a parse tree produced by the `SQLSource`
|
|
247
|
-
* labeled alternative in `MalloyParser.exploreSource`.
|
|
248
|
-
* @param ctx the parse tree
|
|
249
|
-
* @return the visitor result
|
|
250
|
-
*/
|
|
251
|
-
visitSQLSource?: (ctx: SQLSourceContext) => Result;
|
|
252
227
|
/**
|
|
253
228
|
* Visit a parse tree produced by the `literalTimestamp`
|
|
254
229
|
* labeled alternative in `MalloyParser.dateLiteral`.
|
|
@@ -361,6 +336,20 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
361
336
|
* @return the visitor result
|
|
362
337
|
*/
|
|
363
338
|
visitTableMethod?: (ctx: TableMethodContext) => Result;
|
|
339
|
+
/**
|
|
340
|
+
* Visit a parse tree produced by the `BareExtendedSource_stub`
|
|
341
|
+
* labeled alternative in `MalloyParser.explore`.
|
|
342
|
+
* @param ctx the parse tree
|
|
343
|
+
* @return the visitor result
|
|
344
|
+
*/
|
|
345
|
+
visitBareExtendedSource_stub?: (ctx: BareExtendedSource_stubContext) => Result;
|
|
346
|
+
/**
|
|
347
|
+
* Visit a parse tree produced by the `ExtendedQuery`
|
|
348
|
+
* labeled alternative in `MalloyParser.explore`.
|
|
349
|
+
* @param ctx the parse tree
|
|
350
|
+
* @return the visitor result
|
|
351
|
+
*/
|
|
352
|
+
visitExtendedQuery?: (ctx: ExtendedQueryContext) => Result;
|
|
364
353
|
/**
|
|
365
354
|
* Visit a parse tree produced by the `nestExisting`
|
|
366
355
|
* labeled alternative in `MalloyParser.nestEntry`.
|
|
@@ -565,33 +554,33 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
565
554
|
*/
|
|
566
555
|
visitExprUngroup?: (ctx: ExprUngroupContext) => Result;
|
|
567
556
|
/**
|
|
568
|
-
* Visit a parse tree produced by the `
|
|
569
|
-
* labeled alternative in `MalloyParser.
|
|
557
|
+
* Visit a parse tree produced by the `QueryByName`
|
|
558
|
+
* labeled alternative in `MalloyParser.refinableQuery`.
|
|
570
559
|
* @param ctx the parse tree
|
|
571
560
|
* @return the visitor result
|
|
572
561
|
*/
|
|
573
|
-
|
|
562
|
+
visitQueryByName?: (ctx: QueryByNameContext) => Result;
|
|
574
563
|
/**
|
|
575
|
-
* Visit a parse tree produced by the `
|
|
576
|
-
* labeled alternative in `MalloyParser.
|
|
564
|
+
* Visit a parse tree produced by the `QueryByTurtleName`
|
|
565
|
+
* labeled alternative in `MalloyParser.refinableQuery`.
|
|
577
566
|
* @param ctx the parse tree
|
|
578
567
|
* @return the visitor result
|
|
579
568
|
*/
|
|
580
|
-
|
|
569
|
+
visitQueryByTurtleName?: (ctx: QueryByTurtleNameContext) => Result;
|
|
581
570
|
/**
|
|
582
|
-
* Visit a parse tree produced by the `
|
|
571
|
+
* Visit a parse tree produced by the `NormalQuery`
|
|
583
572
|
* labeled alternative in `MalloyParser.query`.
|
|
584
573
|
* @param ctx the parse tree
|
|
585
574
|
* @return the visitor result
|
|
586
575
|
*/
|
|
587
|
-
|
|
576
|
+
visitNormalQuery?: (ctx: NormalQueryContext) => Result;
|
|
588
577
|
/**
|
|
589
|
-
* Visit a parse tree produced by the `
|
|
578
|
+
* Visit a parse tree produced by the `QueryFromSQLSource`
|
|
590
579
|
* labeled alternative in `MalloyParser.query`.
|
|
591
580
|
* @param ctx the parse tree
|
|
592
581
|
* @return the visitor result
|
|
593
582
|
*/
|
|
594
|
-
|
|
583
|
+
visitQueryFromSQLSource?: (ctx: QueryFromSQLSourceContext) => Result;
|
|
595
584
|
/**
|
|
596
585
|
* Visit a parse tree produced by the `defJoinOne`
|
|
597
586
|
* labeled alternative in `MalloyParser.joinStatement`.
|
|
@@ -711,6 +700,55 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
711
700
|
* @return the visitor result
|
|
712
701
|
*/
|
|
713
702
|
visitFilterByWhere?: (ctx: FilterByWhereContext) => Result;
|
|
703
|
+
/**
|
|
704
|
+
* Visit a parse tree produced by the `QueryFromSource`
|
|
705
|
+
* labeled alternative in `MalloyParser.unrefinableQuery`.
|
|
706
|
+
* @param ctx the parse tree
|
|
707
|
+
* @return the visitor result
|
|
708
|
+
*/
|
|
709
|
+
visitQueryFromSource?: (ctx: QueryFromSourceContext) => Result;
|
|
710
|
+
/**
|
|
711
|
+
* Visit a parse tree produced by the `RefinedQuery`
|
|
712
|
+
* labeled alternative in `MalloyParser.unrefinableQuery`.
|
|
713
|
+
* @param ctx the parse tree
|
|
714
|
+
* @return the visitor result
|
|
715
|
+
*/
|
|
716
|
+
visitRefinedQuery?: (ctx: RefinedQueryContext) => Result;
|
|
717
|
+
/**
|
|
718
|
+
* Visit a parse tree produced by the `SourceFromNamedModelEntry`
|
|
719
|
+
* labeled alternative in `MalloyParser.extendableSource`.
|
|
720
|
+
* @param ctx the parse tree
|
|
721
|
+
* @return the visitor result
|
|
722
|
+
*/
|
|
723
|
+
visitSourceFromNamedModelEntry?: (ctx: SourceFromNamedModelEntryContext) => Result;
|
|
724
|
+
/**
|
|
725
|
+
* Visit a parse tree produced by the `TableSource`
|
|
726
|
+
* labeled alternative in `MalloyParser.extendableSource`.
|
|
727
|
+
* @param ctx the parse tree
|
|
728
|
+
* @return the visitor result
|
|
729
|
+
*/
|
|
730
|
+
visitTableSource?: (ctx: TableSourceContext) => Result;
|
|
731
|
+
/**
|
|
732
|
+
* Visit a parse tree produced by the `QuerySource`
|
|
733
|
+
* labeled alternative in `MalloyParser.extendableSource`.
|
|
734
|
+
* @param ctx the parse tree
|
|
735
|
+
* @return the visitor result
|
|
736
|
+
*/
|
|
737
|
+
visitQuerySource?: (ctx: QuerySourceContext) => Result;
|
|
738
|
+
/**
|
|
739
|
+
* Visit a parse tree produced by the `SQLSourceName`
|
|
740
|
+
* labeled alternative in `MalloyParser.extendableSource`.
|
|
741
|
+
* @param ctx the parse tree
|
|
742
|
+
* @return the visitor result
|
|
743
|
+
*/
|
|
744
|
+
visitSQLSourceName?: (ctx: SQLSourceNameContext) => Result;
|
|
745
|
+
/**
|
|
746
|
+
* Visit a parse tree produced by the `SQLSource_stub`
|
|
747
|
+
* labeled alternative in `MalloyParser.extendableSource`.
|
|
748
|
+
* @param ctx the parse tree
|
|
749
|
+
* @return the visitor result
|
|
750
|
+
*/
|
|
751
|
+
visitSQLSource_stub?: (ctx: SQLSource_stubContext) => Result;
|
|
714
752
|
/**
|
|
715
753
|
* Visit a parse tree produced by the `joinWith`
|
|
716
754
|
* labeled alternative in `MalloyParser.joinDef`.
|
|
@@ -851,12 +889,54 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
851
889
|
* @return the visitor result
|
|
852
890
|
*/
|
|
853
891
|
visitRefineOperator?: (ctx: RefineOperatorContext) => Result;
|
|
892
|
+
/**
|
|
893
|
+
* Visit a parse tree produced by `MalloyParser.queryRefinement`.
|
|
894
|
+
* @param ctx the parse tree
|
|
895
|
+
* @return the visitor result
|
|
896
|
+
*/
|
|
897
|
+
visitQueryRefinement?: (ctx: QueryRefinementContext) => Result;
|
|
898
|
+
/**
|
|
899
|
+
* Visit a parse tree produced by `MalloyParser.sourceExtension`.
|
|
900
|
+
* @param ctx the parse tree
|
|
901
|
+
* @return the visitor result
|
|
902
|
+
*/
|
|
903
|
+
visitSourceExtension?: (ctx: SourceExtensionContext) => Result;
|
|
854
904
|
/**
|
|
855
905
|
* Visit a parse tree produced by `MalloyParser.query`.
|
|
856
906
|
* @param ctx the parse tree
|
|
857
907
|
* @return the visitor result
|
|
858
908
|
*/
|
|
859
909
|
visitQuery?: (ctx: QueryContext) => Result;
|
|
910
|
+
/**
|
|
911
|
+
* Visit a parse tree produced by `MalloyParser.unrefinableQuery`.
|
|
912
|
+
* @param ctx the parse tree
|
|
913
|
+
* @return the visitor result
|
|
914
|
+
*/
|
|
915
|
+
visitUnrefinableQuery?: (ctx: UnrefinableQueryContext) => Result;
|
|
916
|
+
/**
|
|
917
|
+
* Visit a parse tree produced by `MalloyParser.refinableQuery`.
|
|
918
|
+
* @param ctx the parse tree
|
|
919
|
+
* @return the visitor result
|
|
920
|
+
*/
|
|
921
|
+
visitRefinableQuery?: (ctx: RefinableQueryContext) => Result;
|
|
922
|
+
/**
|
|
923
|
+
* Visit a parse tree produced by `MalloyParser.unextendableSource`.
|
|
924
|
+
* @param ctx the parse tree
|
|
925
|
+
* @return the visitor result
|
|
926
|
+
*/
|
|
927
|
+
visitUnextendableSource?: (ctx: UnextendableSourceContext) => Result;
|
|
928
|
+
/**
|
|
929
|
+
* Visit a parse tree produced by `MalloyParser.extendableSource`.
|
|
930
|
+
* @param ctx the parse tree
|
|
931
|
+
* @return the visitor result
|
|
932
|
+
*/
|
|
933
|
+
visitExtendableSource?: (ctx: ExtendableSourceContext) => Result;
|
|
934
|
+
/**
|
|
935
|
+
* Visit a parse tree produced by `MalloyParser.sqlSource`.
|
|
936
|
+
* @param ctx the parse tree
|
|
937
|
+
* @return the visitor result
|
|
938
|
+
*/
|
|
939
|
+
visitSqlSource?: (ctx: SqlSourceContext) => Result;
|
|
860
940
|
/**
|
|
861
941
|
* Visit a parse tree produced by `MalloyParser.pipelineFromName`.
|
|
862
942
|
* @param ctx the parse tree
|
|
@@ -929,12 +1009,6 @@ export interface MalloyParserVisitor<Result> extends ParseTreeVisitor<Result> {
|
|
|
929
1009
|
* @return the visitor result
|
|
930
1010
|
*/
|
|
931
1011
|
visitExplore?: (ctx: ExploreContext) => Result;
|
|
932
|
-
/**
|
|
933
|
-
* Visit a parse tree produced by `MalloyParser.exploreSource`.
|
|
934
|
-
* @param ctx the parse tree
|
|
935
|
-
* @return the visitor result
|
|
936
|
-
*/
|
|
937
|
-
visitExploreSource?: (ctx: ExploreSourceContext) => Result;
|
|
938
1012
|
/**
|
|
939
1013
|
* Visit a parse tree produced by `MalloyParser.sourceNameDef`.
|
|
940
1014
|
* @param ctx the parse tree
|
|
@@ -8,6 +8,7 @@ import { LogSeverity, MessageLogger } from './parse-log';
|
|
|
8
8
|
import { MalloyParseRoot } from './parse-malloy';
|
|
9
9
|
import { FieldDeclarationConstructor } from './ast';
|
|
10
10
|
import { HasString, HasID } from './parse-utils';
|
|
11
|
+
import { MalloyTagProperties } from '../tags';
|
|
11
12
|
declare class IgnoredElement extends ast.MalloyElement {
|
|
12
13
|
elementType: string;
|
|
13
14
|
malloySrc: string;
|
|
@@ -20,6 +21,7 @@ declare class IgnoredElement extends ast.MalloyElement {
|
|
|
20
21
|
export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElement> implements MalloyParserVisitor<ast.MalloyElement> {
|
|
21
22
|
readonly parse: MalloyParseRoot;
|
|
22
23
|
readonly msgLog: MessageLogger;
|
|
24
|
+
compilerFlags: MalloyTagProperties;
|
|
23
25
|
constructor(parse: MalloyParseRoot, msgLog: MessageLogger);
|
|
24
26
|
/**
|
|
25
27
|
* Mostly used to flag a case where the grammar and the type system are
|
|
@@ -39,6 +41,7 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
39
41
|
*/
|
|
40
42
|
protected contextError(cx: ParserRuleContext, msg: string, sev?: LogSeverity): void;
|
|
41
43
|
protected only<T extends ast.MalloyElement>(els: ast.MalloyElement[], isGood: (el: ast.MalloyElement) => T | false, desc: string): T[];
|
|
44
|
+
protected m4WarningsEnabled(): boolean;
|
|
42
45
|
protected getNumber(term: ParseTree): number;
|
|
43
46
|
protected getFieldName(cx: HasID): ast.FieldName;
|
|
44
47
|
protected getModelEntryName(cx: HasID): ast.ModelEntryReference;
|
|
@@ -50,8 +53,8 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
50
53
|
protected getFieldExpr(cx: parse.FieldExprContext): ast.ExpressionDef;
|
|
51
54
|
protected getSegments(segments: parse.PipeElementContext[]): ast.QOPDesc[];
|
|
52
55
|
protected getFilterShortcut(cx: parse.FilterShortcutContext): ast.Filter;
|
|
53
|
-
protected getExploreSource(pcx: parse.ExploreSourceContext): ast.Source;
|
|
54
56
|
protected getPlainString(cx: HasString): string;
|
|
57
|
+
protected getSource(pcx: parse.ExploreContext): ast.Source;
|
|
55
58
|
protected makeSqlString(pcx: parse.SqlStringContext, sqlStr: ast.SQLString): void;
|
|
56
59
|
/**
|
|
57
60
|
* Parse a time string into an AST TimeLiteral, if the string fails
|
|
@@ -61,13 +64,22 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
61
64
|
visitMalloyDocument(pcx: parse.MalloyDocumentContext): ast.Document;
|
|
62
65
|
visitDefineSourceStatement(pcx: parse.DefineSourceStatementContext): ast.DefineSourceList;
|
|
63
66
|
visitSourceDefinition(pcx: parse.SourceDefinitionContext): ast.DefineSource;
|
|
64
|
-
|
|
67
|
+
visitQueryFromSQLSource(pcx: parse.QueryFromSQLSourceContext): ast.QueryElement;
|
|
68
|
+
visitQueryFromSource(pcx: parse.QueryFromSourceContext): ast.QueryElement;
|
|
69
|
+
protected getQueryRefinements(pcx: parse.QueryRefinementContext): ast.QOPDesc;
|
|
70
|
+
visitRefinedQuery(pcx: parse.RefinedQueryContext): ast.QueryElement;
|
|
71
|
+
visitQueryByTurtleName(pcx: parse.QueryByTurtleNameContext): ast.QueryElement;
|
|
72
|
+
visitQueryByName(pcx: parse.QueryByNameContext): ast.QueryElement;
|
|
73
|
+
protected getSourceExtensions(pcx: parse.SourceExtensionContext): ast.SourceDesc;
|
|
74
|
+
visitUnextendableSource(pcx: parse.UnextendableSourceContext): ast.Source;
|
|
75
|
+
visitNormalQuery(pcx: parse.NormalQueryContext): ast.QueryElement;
|
|
76
|
+
visitExtendedQuery(pcx: parse.ExtendedQueryContext): ast.RefinedSource;
|
|
65
77
|
visitExploreProperties(pcx: parse.ExplorePropertiesContext): ast.SourceDesc;
|
|
66
78
|
visitTableFunction(pcx: parse.TableFunctionContext): ast.TableSource;
|
|
67
79
|
visitTableMethod(pcx: parse.TableMethodContext): ast.TableSource;
|
|
68
80
|
visitTableSource(pcx: parse.TableSourceContext): ast.TableSource;
|
|
69
81
|
visitSQLSourceName(pcx: parse.SQLSourceNameContext): ast.FromSQLSource;
|
|
70
|
-
|
|
82
|
+
visitSqlSource(pcx: parse.SqlSourceContext): ast.SQLSource;
|
|
71
83
|
visitQuerySource(pcx: parse.QuerySourceContext): ast.Source;
|
|
72
84
|
visitDefJoinMany(pcx: parse.DefJoinManyContext): ast.Joins;
|
|
73
85
|
visitDefJoinOne(pcx: parse.DefJoinOneContext): ast.Joins;
|
|
@@ -119,13 +131,10 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
119
131
|
visitTopStatement(pcx: parse.TopStatementContext): ast.Top;
|
|
120
132
|
visitSourceID(pcx: parse.SourceIDContext): ast.NamedSource;
|
|
121
133
|
protected buildPipelineFromName(pipe: ast.TurtleHeadedPipe, pipeCx: parse.PipelineFromNameContext): void;
|
|
122
|
-
visitExploreArrowQuery(pcx: parse.ExploreArrowQueryContext): ast.FullQuery;
|
|
123
|
-
visitArrowQuery(pcx: parse.ArrowQueryContext): ast.ExistingQuery;
|
|
124
134
|
visitTopLevelQueryDefs(pcx: parse.TopLevelQueryDefsContext): ast.DefineQueryList;
|
|
125
135
|
visitTopLevelQueryDef(pcx: parse.TopLevelQueryDefContext): ast.DefineQuery;
|
|
126
136
|
visitAnonymousQuery(pcx: parse.AnonymousQueryContext): ast.AnonymousQuery;
|
|
127
|
-
|
|
128
|
-
visitRunStatementRef(pcx: parse.RunStatementRefContext): ast.RunQueryRef;
|
|
137
|
+
visitRunStatement(pcx: parse.RunStatementContext): ast.RunQuery;
|
|
129
138
|
visitNestStatement(pcx: parse.NestStatementContext): ast.Nests;
|
|
130
139
|
visitNestedQueryList(pcx: parse.NestedQueryListContext): ast.Nests;
|
|
131
140
|
visitNestExisting(pcx: parse.NestExistingContext): ast.NestedQuery;
|
|
@@ -165,7 +174,7 @@ export declare class MalloyToAST extends AbstractParseTreeVisitor<ast.MalloyElem
|
|
|
165
174
|
visitExprFunc(pcx: parse.ExprFuncContext): ast.ExpressionDef;
|
|
166
175
|
visitExprDuration(pcx: parse.ExprDurationContext): ast.ExprDuration;
|
|
167
176
|
visitPickStatement(pcx: parse.PickStatementContext): ast.Pick;
|
|
168
|
-
|
|
177
|
+
visitSourceFromNamedModelEntry(pcx: parse.SourceFromNamedModelEntryContext): ast.Source;
|
|
169
178
|
visitExprFilter(pcx: parse.ExprFilterContext): ast.ExprFilter;
|
|
170
179
|
visitLiteralTimestamp(pcx: parse.LiteralTimestampContext): ast.ExpressionDef;
|
|
171
180
|
visitLiteralHour(pcx: parse.LiteralHourContext): ast.ExpressionDef;
|