@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.
- 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 +961 -949
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +359 -272
- package/dist/lang/lib/Malloy/MalloyParser.js +4298 -3762
- 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 +116 -60
- 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/tags.d.ts +1 -0
- package/dist/tags.js +10 -3
- package/package.json +1 -1
|
@@ -58,104 +58,106 @@ export declare class MalloyParser extends Parser {
|
|
|
58
58
|
static readonly ELSE = 47;
|
|
59
59
|
static readonly END = 48;
|
|
60
60
|
static readonly EXCLUDE = 49;
|
|
61
|
-
static readonly
|
|
62
|
-
static readonly
|
|
63
|
-
static readonly
|
|
64
|
-
static readonly
|
|
65
|
-
static readonly
|
|
66
|
-
static readonly
|
|
67
|
-
static readonly
|
|
68
|
-
static readonly
|
|
69
|
-
static readonly
|
|
70
|
-
static readonly
|
|
71
|
-
static readonly
|
|
72
|
-
static readonly
|
|
73
|
-
static readonly
|
|
74
|
-
static readonly
|
|
75
|
-
static readonly
|
|
76
|
-
static readonly
|
|
77
|
-
static readonly
|
|
78
|
-
static readonly
|
|
79
|
-
static readonly
|
|
80
|
-
static readonly
|
|
81
|
-
static readonly
|
|
82
|
-
static readonly
|
|
83
|
-
static readonly
|
|
84
|
-
static readonly
|
|
85
|
-
static readonly
|
|
86
|
-
static readonly
|
|
87
|
-
static readonly
|
|
88
|
-
static readonly
|
|
89
|
-
static readonly
|
|
90
|
-
static readonly
|
|
91
|
-
static readonly
|
|
92
|
-
static readonly
|
|
93
|
-
static readonly
|
|
94
|
-
static readonly
|
|
95
|
-
static readonly
|
|
96
|
-
static readonly
|
|
97
|
-
static readonly
|
|
98
|
-
static readonly
|
|
99
|
-
static readonly
|
|
100
|
-
static readonly
|
|
101
|
-
static readonly
|
|
102
|
-
static readonly
|
|
103
|
-
static readonly
|
|
104
|
-
static readonly
|
|
105
|
-
static readonly
|
|
106
|
-
static readonly
|
|
107
|
-
static readonly
|
|
108
|
-
static readonly
|
|
109
|
-
static readonly
|
|
110
|
-
static readonly
|
|
111
|
-
static readonly
|
|
112
|
-
static readonly
|
|
113
|
-
static readonly
|
|
114
|
-
static readonly
|
|
115
|
-
static readonly
|
|
116
|
-
static readonly
|
|
117
|
-
static readonly
|
|
118
|
-
static readonly
|
|
119
|
-
static readonly
|
|
120
|
-
static readonly
|
|
121
|
-
static readonly
|
|
122
|
-
static readonly
|
|
123
|
-
static readonly
|
|
124
|
-
static readonly
|
|
125
|
-
static readonly
|
|
126
|
-
static readonly
|
|
127
|
-
static readonly
|
|
128
|
-
static readonly
|
|
129
|
-
static readonly
|
|
130
|
-
static readonly
|
|
131
|
-
static readonly
|
|
132
|
-
static readonly
|
|
133
|
-
static readonly
|
|
134
|
-
static readonly
|
|
135
|
-
static readonly
|
|
136
|
-
static readonly
|
|
137
|
-
static readonly
|
|
138
|
-
static readonly
|
|
139
|
-
static readonly
|
|
140
|
-
static readonly
|
|
141
|
-
static readonly
|
|
142
|
-
static readonly
|
|
143
|
-
static readonly
|
|
144
|
-
static readonly
|
|
145
|
-
static readonly
|
|
146
|
-
static readonly
|
|
147
|
-
static readonly
|
|
148
|
-
static readonly
|
|
149
|
-
static readonly
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
158
|
-
static readonly
|
|
61
|
+
static readonly EXTEND = 50;
|
|
62
|
+
static readonly FALSE = 51;
|
|
63
|
+
static readonly FOR = 52;
|
|
64
|
+
static readonly FROM = 53;
|
|
65
|
+
static readonly FROM_SQL = 54;
|
|
66
|
+
static readonly HAS = 55;
|
|
67
|
+
static readonly HOUR = 56;
|
|
68
|
+
static readonly IMPORT = 57;
|
|
69
|
+
static readonly IS = 58;
|
|
70
|
+
static readonly JSON = 59;
|
|
71
|
+
static readonly LAST = 60;
|
|
72
|
+
static readonly MAX = 61;
|
|
73
|
+
static readonly MIN = 62;
|
|
74
|
+
static readonly MINUTE = 63;
|
|
75
|
+
static readonly MONTH = 64;
|
|
76
|
+
static readonly NOT = 65;
|
|
77
|
+
static readonly NOW = 66;
|
|
78
|
+
static readonly NULL = 67;
|
|
79
|
+
static readonly NUMBER = 68;
|
|
80
|
+
static readonly ON = 69;
|
|
81
|
+
static readonly OR = 70;
|
|
82
|
+
static readonly PICK = 71;
|
|
83
|
+
static readonly QUARTER = 72;
|
|
84
|
+
static readonly REFINE = 73;
|
|
85
|
+
static readonly SECOND = 74;
|
|
86
|
+
static readonly STRING = 75;
|
|
87
|
+
static readonly SUM = 76;
|
|
88
|
+
static readonly SQL = 77;
|
|
89
|
+
static readonly TABLE = 78;
|
|
90
|
+
static readonly THEN = 79;
|
|
91
|
+
static readonly THIS = 80;
|
|
92
|
+
static readonly TIMESTAMP = 81;
|
|
93
|
+
static readonly TO = 82;
|
|
94
|
+
static readonly TRUE = 83;
|
|
95
|
+
static readonly TURTLE = 84;
|
|
96
|
+
static readonly WEEK = 85;
|
|
97
|
+
static readonly WHEN = 86;
|
|
98
|
+
static readonly WITH = 87;
|
|
99
|
+
static readonly YEAR = 88;
|
|
100
|
+
static readonly UNGROUPED = 89;
|
|
101
|
+
static readonly STRING_ESCAPE = 90;
|
|
102
|
+
static readonly HACKY_REGEX = 91;
|
|
103
|
+
static readonly SQ_STRING = 92;
|
|
104
|
+
static readonly DQ_STRING = 93;
|
|
105
|
+
static readonly BQ_STRING = 94;
|
|
106
|
+
static readonly DOC_ANNOTATION = 95;
|
|
107
|
+
static readonly ANNOTATION = 96;
|
|
108
|
+
static readonly AMPER = 97;
|
|
109
|
+
static readonly ARROW = 98;
|
|
110
|
+
static readonly FAT_ARROW = 99;
|
|
111
|
+
static readonly OPAREN = 100;
|
|
112
|
+
static readonly CPAREN = 101;
|
|
113
|
+
static readonly OBRACK = 102;
|
|
114
|
+
static readonly CBRACK = 103;
|
|
115
|
+
static readonly OCURLY = 104;
|
|
116
|
+
static readonly CCURLY = 105;
|
|
117
|
+
static readonly DOUBLECOLON = 106;
|
|
118
|
+
static readonly TRIPLECOLON = 107;
|
|
119
|
+
static readonly EXCLAM = 108;
|
|
120
|
+
static readonly COLON = 109;
|
|
121
|
+
static readonly COMMA = 110;
|
|
122
|
+
static readonly DOT = 111;
|
|
123
|
+
static readonly LT = 112;
|
|
124
|
+
static readonly GT = 113;
|
|
125
|
+
static readonly EQ = 114;
|
|
126
|
+
static readonly NE = 115;
|
|
127
|
+
static readonly LTE = 116;
|
|
128
|
+
static readonly GTE = 117;
|
|
129
|
+
static readonly PLUS = 118;
|
|
130
|
+
static readonly MINUS = 119;
|
|
131
|
+
static readonly STAR = 120;
|
|
132
|
+
static readonly STARSTAR = 121;
|
|
133
|
+
static readonly SLASH = 122;
|
|
134
|
+
static readonly BAR = 123;
|
|
135
|
+
static readonly SEMI = 124;
|
|
136
|
+
static readonly NOT_MATCH = 125;
|
|
137
|
+
static readonly MATCH = 126;
|
|
138
|
+
static readonly PERCENT = 127;
|
|
139
|
+
static readonly DOUBLE_QMARK = 128;
|
|
140
|
+
static readonly QMARK = 129;
|
|
141
|
+
static readonly LITERAL_TIMESTAMP = 130;
|
|
142
|
+
static readonly LITERAL_HOUR = 131;
|
|
143
|
+
static readonly LITERAL_DAY = 132;
|
|
144
|
+
static readonly LITERAL_QUARTER = 133;
|
|
145
|
+
static readonly LITERAL_MONTH = 134;
|
|
146
|
+
static readonly LITERAL_WEEK = 135;
|
|
147
|
+
static readonly LITERAL_YEAR = 136;
|
|
148
|
+
static readonly IDENTIFIER = 137;
|
|
149
|
+
static readonly PERCENT_LITERAL = 138;
|
|
150
|
+
static readonly INTEGER_LITERAL = 139;
|
|
151
|
+
static readonly NUMERIC_LITERAL = 140;
|
|
152
|
+
static readonly BLOCK_COMMENT = 141;
|
|
153
|
+
static readonly COMMENT_TO_EOL = 142;
|
|
154
|
+
static readonly WHITE_SPACE = 143;
|
|
155
|
+
static readonly SQL_BEGIN = 144;
|
|
156
|
+
static readonly CLOSE_CODE = 145;
|
|
157
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 146;
|
|
158
|
+
static readonly UNEXPECTED_CHAR = 147;
|
|
159
|
+
static readonly OPEN_CODE = 148;
|
|
160
|
+
static readonly SQL_END = 149;
|
|
159
161
|
static readonly RULE_malloyDocument = 0;
|
|
160
162
|
static readonly RULE_malloyStatement = 1;
|
|
161
163
|
static readonly RULE_defineSourceStatement = 2;
|
|
@@ -177,103 +179,109 @@ export declare class MalloyParser extends Parser {
|
|
|
177
179
|
static readonly RULE_topLevelQueryDefs = 18;
|
|
178
180
|
static readonly RULE_topLevelQueryDef = 19;
|
|
179
181
|
static readonly RULE_refineOperator = 20;
|
|
180
|
-
static readonly
|
|
181
|
-
static readonly
|
|
182
|
-
static readonly
|
|
183
|
-
static readonly
|
|
184
|
-
static readonly
|
|
185
|
-
static readonly
|
|
186
|
-
static readonly
|
|
187
|
-
static readonly
|
|
188
|
-
static readonly
|
|
189
|
-
static readonly
|
|
190
|
-
static readonly
|
|
191
|
-
static readonly
|
|
192
|
-
static readonly
|
|
193
|
-
static readonly
|
|
194
|
-
static readonly
|
|
195
|
-
static readonly
|
|
196
|
-
static readonly
|
|
197
|
-
static readonly
|
|
198
|
-
static readonly
|
|
199
|
-
static readonly
|
|
200
|
-
static readonly
|
|
201
|
-
static readonly
|
|
202
|
-
static readonly
|
|
203
|
-
static readonly
|
|
204
|
-
static readonly
|
|
205
|
-
static readonly
|
|
206
|
-
static readonly
|
|
207
|
-
static readonly
|
|
208
|
-
static readonly
|
|
209
|
-
static readonly
|
|
210
|
-
static readonly
|
|
211
|
-
static readonly
|
|
212
|
-
static readonly
|
|
213
|
-
static readonly
|
|
214
|
-
static readonly
|
|
215
|
-
static readonly
|
|
216
|
-
static readonly
|
|
217
|
-
static readonly
|
|
218
|
-
static readonly
|
|
219
|
-
static readonly
|
|
220
|
-
static readonly
|
|
221
|
-
static readonly
|
|
222
|
-
static readonly
|
|
223
|
-
static readonly
|
|
224
|
-
static readonly
|
|
225
|
-
static readonly
|
|
226
|
-
static readonly
|
|
227
|
-
static readonly
|
|
228
|
-
static readonly
|
|
229
|
-
static readonly
|
|
230
|
-
static readonly
|
|
231
|
-
static readonly
|
|
232
|
-
static readonly
|
|
233
|
-
static readonly
|
|
234
|
-
static readonly
|
|
235
|
-
static readonly
|
|
236
|
-
static readonly
|
|
237
|
-
static readonly
|
|
238
|
-
static readonly
|
|
239
|
-
static readonly
|
|
240
|
-
static readonly
|
|
241
|
-
static readonly
|
|
242
|
-
static readonly
|
|
243
|
-
static readonly
|
|
244
|
-
static readonly
|
|
245
|
-
static readonly
|
|
246
|
-
static readonly
|
|
247
|
-
static readonly
|
|
248
|
-
static readonly
|
|
249
|
-
static readonly
|
|
250
|
-
static readonly
|
|
251
|
-
static readonly
|
|
252
|
-
static readonly
|
|
253
|
-
static readonly
|
|
254
|
-
static readonly
|
|
255
|
-
static readonly
|
|
256
|
-
static readonly
|
|
257
|
-
static readonly
|
|
258
|
-
static readonly
|
|
259
|
-
static readonly
|
|
260
|
-
static readonly
|
|
261
|
-
static readonly
|
|
262
|
-
static readonly
|
|
263
|
-
static readonly
|
|
264
|
-
static readonly
|
|
265
|
-
static readonly
|
|
266
|
-
static readonly
|
|
267
|
-
static readonly
|
|
268
|
-
static readonly
|
|
269
|
-
static readonly
|
|
270
|
-
static readonly
|
|
271
|
-
static readonly
|
|
272
|
-
static readonly
|
|
273
|
-
static readonly
|
|
274
|
-
static readonly
|
|
275
|
-
static readonly
|
|
276
|
-
static readonly
|
|
182
|
+
static readonly RULE_queryRefinement = 21;
|
|
183
|
+
static readonly RULE_sourceExtension = 22;
|
|
184
|
+
static readonly RULE_query = 23;
|
|
185
|
+
static readonly RULE_unrefinableQuery = 24;
|
|
186
|
+
static readonly RULE_refinableQuery = 25;
|
|
187
|
+
static readonly RULE_unextendableSource = 26;
|
|
188
|
+
static readonly RULE_extendableSource = 27;
|
|
189
|
+
static readonly RULE_sqlSource = 28;
|
|
190
|
+
static readonly RULE_pipelineFromName = 29;
|
|
191
|
+
static readonly RULE_firstSegment = 30;
|
|
192
|
+
static readonly RULE_pipeElement = 31;
|
|
193
|
+
static readonly RULE_exploreTable = 32;
|
|
194
|
+
static readonly RULE_connectionId = 33;
|
|
195
|
+
static readonly RULE_queryProperties = 34;
|
|
196
|
+
static readonly RULE_filterShortcut = 35;
|
|
197
|
+
static readonly RULE_exploreQueryName = 36;
|
|
198
|
+
static readonly RULE_queryName = 37;
|
|
199
|
+
static readonly RULE_sourcePropertyList = 38;
|
|
200
|
+
static readonly RULE_sourceDefinition = 39;
|
|
201
|
+
static readonly RULE_explore = 40;
|
|
202
|
+
static readonly RULE_sourceNameDef = 41;
|
|
203
|
+
static readonly RULE_sourceID = 42;
|
|
204
|
+
static readonly RULE_exploreProperties = 43;
|
|
205
|
+
static readonly RULE_exploreStatement = 44;
|
|
206
|
+
static readonly RULE_defMeasures = 45;
|
|
207
|
+
static readonly RULE_defDimensions = 46;
|
|
208
|
+
static readonly RULE_renameList = 47;
|
|
209
|
+
static readonly RULE_exploreRenameDef = 48;
|
|
210
|
+
static readonly RULE_defList = 49;
|
|
211
|
+
static readonly RULE_fieldDef = 50;
|
|
212
|
+
static readonly RULE_fieldNameDef = 51;
|
|
213
|
+
static readonly RULE_joinNameDef = 52;
|
|
214
|
+
static readonly RULE_declareStatement = 53;
|
|
215
|
+
static readonly RULE_joinStatement = 54;
|
|
216
|
+
static readonly RULE_queryExtend = 55;
|
|
217
|
+
static readonly RULE_queryExtendStatement = 56;
|
|
218
|
+
static readonly RULE_queryExtendStatementList = 57;
|
|
219
|
+
static readonly RULE_joinList = 58;
|
|
220
|
+
static readonly RULE_isExplore = 59;
|
|
221
|
+
static readonly RULE_joinDef = 60;
|
|
222
|
+
static readonly RULE_joinExpression = 61;
|
|
223
|
+
static readonly RULE_filterStatement = 62;
|
|
224
|
+
static readonly RULE_filteredBy = 63;
|
|
225
|
+
static readonly RULE_filterClauseList = 64;
|
|
226
|
+
static readonly RULE_whereStatement = 65;
|
|
227
|
+
static readonly RULE_havingStatement = 66;
|
|
228
|
+
static readonly RULE_subQueryDefList = 67;
|
|
229
|
+
static readonly RULE_exploreQueryNameDef = 68;
|
|
230
|
+
static readonly RULE_exploreQueryDef = 69;
|
|
231
|
+
static readonly RULE_queryStatement = 70;
|
|
232
|
+
static readonly RULE_queryJoinStatement = 71;
|
|
233
|
+
static readonly RULE_groupByStatement = 72;
|
|
234
|
+
static readonly RULE_queryFieldList = 73;
|
|
235
|
+
static readonly RULE_queryFieldEntry = 74;
|
|
236
|
+
static readonly RULE_nestStatement = 75;
|
|
237
|
+
static readonly RULE_nestedQueryList = 76;
|
|
238
|
+
static readonly RULE_nestEntry = 77;
|
|
239
|
+
static readonly RULE_aggregateStatement = 78;
|
|
240
|
+
static readonly RULE_calculateStatement = 79;
|
|
241
|
+
static readonly RULE_projectStatement = 80;
|
|
242
|
+
static readonly RULE_orderByStatement = 81;
|
|
243
|
+
static readonly RULE_ordering = 82;
|
|
244
|
+
static readonly RULE_orderBySpec = 83;
|
|
245
|
+
static readonly RULE_limitStatement = 84;
|
|
246
|
+
static readonly RULE_bySpec = 85;
|
|
247
|
+
static readonly RULE_topStatement = 86;
|
|
248
|
+
static readonly RULE_indexElement = 87;
|
|
249
|
+
static readonly RULE_indexFields = 88;
|
|
250
|
+
static readonly RULE_indexStatement = 89;
|
|
251
|
+
static readonly RULE_sampleStatement = 90;
|
|
252
|
+
static readonly RULE_timezoneStatement = 91;
|
|
253
|
+
static readonly RULE_queryAnnotation = 92;
|
|
254
|
+
static readonly RULE_sampleSpec = 93;
|
|
255
|
+
static readonly RULE_aggregate = 94;
|
|
256
|
+
static readonly RULE_malloyType = 95;
|
|
257
|
+
static readonly RULE_compareOp = 96;
|
|
258
|
+
static readonly RULE_string = 97;
|
|
259
|
+
static readonly RULE_shortString = 98;
|
|
260
|
+
static readonly RULE_numericLiteral = 99;
|
|
261
|
+
static readonly RULE_literal = 100;
|
|
262
|
+
static readonly RULE_dateLiteral = 101;
|
|
263
|
+
static readonly RULE_tablePath = 102;
|
|
264
|
+
static readonly RULE_tableURI = 103;
|
|
265
|
+
static readonly RULE_id = 104;
|
|
266
|
+
static readonly RULE_timeframe = 105;
|
|
267
|
+
static readonly RULE_ungroup = 106;
|
|
268
|
+
static readonly RULE_fieldExpr = 107;
|
|
269
|
+
static readonly RULE_partialAllowedFieldExpr = 108;
|
|
270
|
+
static readonly RULE_pickStatement = 109;
|
|
271
|
+
static readonly RULE_pick = 110;
|
|
272
|
+
static readonly RULE_argumentList = 111;
|
|
273
|
+
static readonly RULE_fieldNameList = 112;
|
|
274
|
+
static readonly RULE_fieldCollection = 113;
|
|
275
|
+
static readonly RULE_collectionWildCard = 114;
|
|
276
|
+
static readonly RULE_taggedRef = 115;
|
|
277
|
+
static readonly RULE_collectionMember = 116;
|
|
278
|
+
static readonly RULE_fieldPath = 117;
|
|
279
|
+
static readonly RULE_joinName = 118;
|
|
280
|
+
static readonly RULE_fieldName = 119;
|
|
281
|
+
static readonly RULE_justExpr = 120;
|
|
282
|
+
static readonly RULE_sqlExploreNameRef = 121;
|
|
283
|
+
static readonly RULE_nameSQLBlock = 122;
|
|
284
|
+
static readonly RULE_connectionName = 123;
|
|
277
285
|
static readonly ruleNames: string[];
|
|
278
286
|
private static readonly _LITERAL_NAMES;
|
|
279
287
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -305,7 +313,14 @@ export declare class MalloyParser extends Parser {
|
|
|
305
313
|
topLevelQueryDefs(): TopLevelQueryDefsContext;
|
|
306
314
|
topLevelQueryDef(): TopLevelQueryDefContext;
|
|
307
315
|
refineOperator(): RefineOperatorContext;
|
|
316
|
+
queryRefinement(): QueryRefinementContext;
|
|
317
|
+
sourceExtension(): SourceExtensionContext;
|
|
308
318
|
query(): QueryContext;
|
|
319
|
+
unrefinableQuery(): UnrefinableQueryContext;
|
|
320
|
+
refinableQuery(): RefinableQueryContext;
|
|
321
|
+
unextendableSource(): UnextendableSourceContext;
|
|
322
|
+
extendableSource(): ExtendableSourceContext;
|
|
323
|
+
sqlSource(): SqlSourceContext;
|
|
309
324
|
pipelineFromName(): PipelineFromNameContext;
|
|
310
325
|
firstSegment(): FirstSegmentContext;
|
|
311
326
|
pipeElement(): PipeElementContext;
|
|
@@ -318,7 +333,6 @@ export declare class MalloyParser extends Parser {
|
|
|
318
333
|
sourcePropertyList(): SourcePropertyListContext;
|
|
319
334
|
sourceDefinition(): SourceDefinitionContext;
|
|
320
335
|
explore(): ExploreContext;
|
|
321
|
-
exploreSource(): ExploreSourceContext;
|
|
322
336
|
sourceNameDef(): SourceNameDefContext;
|
|
323
337
|
sourceID(): SourceIDContext;
|
|
324
338
|
exploreProperties(): ExplorePropertiesContext;
|
|
@@ -501,26 +515,14 @@ export declare class IsDefineContext extends ParserRuleContext {
|
|
|
501
515
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
502
516
|
}
|
|
503
517
|
export declare class RunStatementContext extends ParserRuleContext {
|
|
504
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
505
|
-
get ruleIndex(): number;
|
|
506
|
-
copyFrom(ctx: RunStatementContext): void;
|
|
507
|
-
}
|
|
508
|
-
export declare class RunStatementDefContext extends RunStatementContext {
|
|
509
518
|
_blockTags: TagsContext;
|
|
510
519
|
_noteTags: TagsContext;
|
|
511
520
|
RUN(): TerminalNode;
|
|
512
521
|
topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
|
|
513
522
|
tags(): TagsContext[];
|
|
514
523
|
tags(i: number): TagsContext;
|
|
515
|
-
constructor(
|
|
516
|
-
|
|
517
|
-
exitRule(listener: MalloyParserListener): void;
|
|
518
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
519
|
-
}
|
|
520
|
-
export declare class RunStatementRefContext extends RunStatementContext {
|
|
521
|
-
RUN(): TerminalNode;
|
|
522
|
-
queryName(): QueryNameContext;
|
|
523
|
-
constructor(ctx: RunStatementContext);
|
|
524
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
525
|
+
get ruleIndex(): number;
|
|
524
526
|
enterRule(listener: MalloyParserListener): void;
|
|
525
527
|
exitRule(listener: MalloyParserListener): void;
|
|
526
528
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
@@ -656,28 +658,156 @@ export declare class RefineOperatorContext extends ParserRuleContext {
|
|
|
656
658
|
exitRule(listener: MalloyParserListener): void;
|
|
657
659
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
658
660
|
}
|
|
661
|
+
export declare class QueryRefinementContext extends ParserRuleContext {
|
|
662
|
+
queryProperties(): QueryPropertiesContext;
|
|
663
|
+
refineOperator(): RefineOperatorContext | undefined;
|
|
664
|
+
REFINE(): TerminalNode | undefined;
|
|
665
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
666
|
+
get ruleIndex(): number;
|
|
667
|
+
enterRule(listener: MalloyParserListener): void;
|
|
668
|
+
exitRule(listener: MalloyParserListener): void;
|
|
669
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
670
|
+
}
|
|
671
|
+
export declare class SourceExtensionContext extends ParserRuleContext {
|
|
672
|
+
exploreProperties(): ExplorePropertiesContext;
|
|
673
|
+
refineOperator(): RefineOperatorContext | undefined;
|
|
674
|
+
EXTEND(): TerminalNode | undefined;
|
|
675
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
676
|
+
get ruleIndex(): number;
|
|
677
|
+
enterRule(listener: MalloyParserListener): void;
|
|
678
|
+
exitRule(listener: MalloyParserListener): void;
|
|
679
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
680
|
+
}
|
|
659
681
|
export declare class QueryContext extends ParserRuleContext {
|
|
660
682
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
661
683
|
get ruleIndex(): number;
|
|
662
684
|
copyFrom(ctx: QueryContext): void;
|
|
663
685
|
}
|
|
664
|
-
export declare class
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
686
|
+
export declare class NormalQueryContext extends QueryContext {
|
|
687
|
+
unrefinableQuery(): UnrefinableQueryContext;
|
|
688
|
+
pipeElement(): PipeElementContext[];
|
|
689
|
+
pipeElement(i: number): PipeElementContext;
|
|
668
690
|
constructor(ctx: QueryContext);
|
|
669
691
|
enterRule(listener: MalloyParserListener): void;
|
|
670
692
|
exitRule(listener: MalloyParserListener): void;
|
|
671
693
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
672
694
|
}
|
|
673
|
-
export declare class
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
695
|
+
export declare class QueryFromSQLSourceContext extends QueryContext {
|
|
696
|
+
sqlSource(): SqlSourceContext;
|
|
697
|
+
constructor(ctx: QueryContext);
|
|
698
|
+
enterRule(listener: MalloyParserListener): void;
|
|
699
|
+
exitRule(listener: MalloyParserListener): void;
|
|
700
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
701
|
+
}
|
|
702
|
+
export declare class UnrefinableQueryContext extends ParserRuleContext {
|
|
703
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
704
|
+
get ruleIndex(): number;
|
|
705
|
+
copyFrom(ctx: UnrefinableQueryContext): void;
|
|
706
|
+
}
|
|
707
|
+
export declare class QueryFromSourceContext extends UnrefinableQueryContext {
|
|
708
|
+
unextendableSource(): UnextendableSourceContext;
|
|
677
709
|
pipeElement(): PipeElementContext[];
|
|
678
710
|
pipeElement(i: number): PipeElementContext;
|
|
679
|
-
|
|
680
|
-
|
|
711
|
+
constructor(ctx: UnrefinableQueryContext);
|
|
712
|
+
enterRule(listener: MalloyParserListener): void;
|
|
713
|
+
exitRule(listener: MalloyParserListener): void;
|
|
714
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
715
|
+
}
|
|
716
|
+
export declare class RefinedQueryContext extends UnrefinableQueryContext {
|
|
717
|
+
refinableQuery(): RefinableQueryContext;
|
|
718
|
+
queryRefinement(): QueryRefinementContext | undefined;
|
|
719
|
+
constructor(ctx: UnrefinableQueryContext);
|
|
720
|
+
enterRule(listener: MalloyParserListener): void;
|
|
721
|
+
exitRule(listener: MalloyParserListener): void;
|
|
722
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
723
|
+
}
|
|
724
|
+
export declare class RefinableQueryContext extends ParserRuleContext {
|
|
725
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
726
|
+
get ruleIndex(): number;
|
|
727
|
+
copyFrom(ctx: RefinableQueryContext): void;
|
|
728
|
+
}
|
|
729
|
+
export declare class QueryByNameContext extends RefinableQueryContext {
|
|
730
|
+
id(): IdContext;
|
|
731
|
+
ARROW(): TerminalNode | undefined;
|
|
732
|
+
constructor(ctx: RefinableQueryContext);
|
|
733
|
+
enterRule(listener: MalloyParserListener): void;
|
|
734
|
+
exitRule(listener: MalloyParserListener): void;
|
|
735
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
736
|
+
}
|
|
737
|
+
export declare class QueryByTurtleNameContext extends RefinableQueryContext {
|
|
738
|
+
unextendableSource(): UnextendableSourceContext;
|
|
739
|
+
ARROW(): TerminalNode;
|
|
740
|
+
id(): IdContext;
|
|
741
|
+
constructor(ctx: RefinableQueryContext);
|
|
742
|
+
enterRule(listener: MalloyParserListener): void;
|
|
743
|
+
exitRule(listener: MalloyParserListener): void;
|
|
744
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
745
|
+
}
|
|
746
|
+
export declare class UnextendableSourceContext extends ParserRuleContext {
|
|
747
|
+
extendableSource(): ExtendableSourceContext;
|
|
748
|
+
sourceExtension(): SourceExtensionContext | undefined;
|
|
749
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
750
|
+
get ruleIndex(): number;
|
|
751
|
+
enterRule(listener: MalloyParserListener): void;
|
|
752
|
+
exitRule(listener: MalloyParserListener): void;
|
|
753
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
754
|
+
}
|
|
755
|
+
export declare class ExtendableSourceContext extends ParserRuleContext {
|
|
756
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
757
|
+
get ruleIndex(): number;
|
|
758
|
+
copyFrom(ctx: ExtendableSourceContext): void;
|
|
759
|
+
}
|
|
760
|
+
export declare class SourceFromNamedModelEntryContext extends ExtendableSourceContext {
|
|
761
|
+
sourceID(): SourceIDContext;
|
|
762
|
+
constructor(ctx: ExtendableSourceContext);
|
|
763
|
+
enterRule(listener: MalloyParserListener): void;
|
|
764
|
+
exitRule(listener: MalloyParserListener): void;
|
|
765
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
766
|
+
}
|
|
767
|
+
export declare class TableSourceContext extends ExtendableSourceContext {
|
|
768
|
+
exploreTable(): ExploreTableContext;
|
|
769
|
+
constructor(ctx: ExtendableSourceContext);
|
|
770
|
+
enterRule(listener: MalloyParserListener): void;
|
|
771
|
+
exitRule(listener: MalloyParserListener): void;
|
|
772
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
773
|
+
}
|
|
774
|
+
export declare class QuerySourceContext extends ExtendableSourceContext {
|
|
775
|
+
FROM(): TerminalNode;
|
|
776
|
+
OPAREN(): TerminalNode;
|
|
777
|
+
query(): QueryContext;
|
|
778
|
+
CPAREN(): TerminalNode;
|
|
779
|
+
constructor(ctx: ExtendableSourceContext);
|
|
780
|
+
enterRule(listener: MalloyParserListener): void;
|
|
781
|
+
exitRule(listener: MalloyParserListener): void;
|
|
782
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
783
|
+
}
|
|
784
|
+
export declare class SQLSourceNameContext extends ExtendableSourceContext {
|
|
785
|
+
FROM_SQL(): TerminalNode;
|
|
786
|
+
OPAREN(): TerminalNode;
|
|
787
|
+
sqlExploreNameRef(): SqlExploreNameRefContext;
|
|
788
|
+
CPAREN(): TerminalNode;
|
|
789
|
+
constructor(ctx: ExtendableSourceContext);
|
|
790
|
+
enterRule(listener: MalloyParserListener): void;
|
|
791
|
+
exitRule(listener: MalloyParserListener): void;
|
|
792
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
793
|
+
}
|
|
794
|
+
export declare class SQLSource_stubContext extends ExtendableSourceContext {
|
|
795
|
+
sqlSource(): SqlSourceContext;
|
|
796
|
+
constructor(ctx: ExtendableSourceContext);
|
|
797
|
+
enterRule(listener: MalloyParserListener): void;
|
|
798
|
+
exitRule(listener: MalloyParserListener): void;
|
|
799
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
800
|
+
}
|
|
801
|
+
export declare class SqlSourceContext extends ParserRuleContext {
|
|
802
|
+
connectionId(): ConnectionIdContext;
|
|
803
|
+
DOT(): TerminalNode;
|
|
804
|
+
SQL(): TerminalNode;
|
|
805
|
+
OPAREN(): TerminalNode;
|
|
806
|
+
CPAREN(): TerminalNode;
|
|
807
|
+
sqlString(): SqlStringContext | undefined;
|
|
808
|
+
shortString(): ShortStringContext | undefined;
|
|
809
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
810
|
+
get ruleIndex(): number;
|
|
681
811
|
enterRule(listener: MalloyParserListener): void;
|
|
682
812
|
exitRule(listener: MalloyParserListener): void;
|
|
683
813
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
@@ -695,7 +825,7 @@ export declare class PipelineFromNameContext extends ParserRuleContext {
|
|
|
695
825
|
export declare class FirstSegmentContext extends ParserRuleContext {
|
|
696
826
|
queryProperties(): QueryPropertiesContext | undefined;
|
|
697
827
|
exploreQueryName(): ExploreQueryNameContext | undefined;
|
|
698
|
-
|
|
828
|
+
queryRefinement(): QueryRefinementContext | undefined;
|
|
699
829
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
700
830
|
get ruleIndex(): number;
|
|
701
831
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -810,63 +940,21 @@ export declare class SourceDefinitionContext extends ParserRuleContext {
|
|
|
810
940
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
811
941
|
}
|
|
812
942
|
export declare class ExploreContext extends ParserRuleContext {
|
|
813
|
-
exploreSource(): ExploreSourceContext;
|
|
814
|
-
exploreProperties(): ExplorePropertiesContext | undefined;
|
|
815
|
-
refineOperator(): RefineOperatorContext | undefined;
|
|
816
|
-
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
817
|
-
get ruleIndex(): number;
|
|
818
|
-
enterRule(listener: MalloyParserListener): void;
|
|
819
|
-
exitRule(listener: MalloyParserListener): void;
|
|
820
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
821
|
-
}
|
|
822
|
-
export declare class ExploreSourceContext extends ParserRuleContext {
|
|
823
943
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
824
944
|
get ruleIndex(): number;
|
|
825
|
-
copyFrom(ctx:
|
|
945
|
+
copyFrom(ctx: ExploreContext): void;
|
|
826
946
|
}
|
|
827
|
-
export declare class
|
|
828
|
-
|
|
829
|
-
constructor(ctx:
|
|
947
|
+
export declare class BareExtendedSource_stubContext extends ExploreContext {
|
|
948
|
+
unextendableSource(): UnextendableSourceContext;
|
|
949
|
+
constructor(ctx: ExploreContext);
|
|
830
950
|
enterRule(listener: MalloyParserListener): void;
|
|
831
951
|
exitRule(listener: MalloyParserListener): void;
|
|
832
952
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
833
953
|
}
|
|
834
|
-
export declare class
|
|
835
|
-
exploreTable(): ExploreTableContext;
|
|
836
|
-
constructor(ctx: ExploreSourceContext);
|
|
837
|
-
enterRule(listener: MalloyParserListener): void;
|
|
838
|
-
exitRule(listener: MalloyParserListener): void;
|
|
839
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
840
|
-
}
|
|
841
|
-
export declare class QuerySourceContext extends ExploreSourceContext {
|
|
842
|
-
FROM(): TerminalNode;
|
|
843
|
-
OPAREN(): TerminalNode;
|
|
954
|
+
export declare class ExtendedQueryContext extends ExploreContext {
|
|
844
955
|
query(): QueryContext;
|
|
845
|
-
|
|
846
|
-
constructor(ctx:
|
|
847
|
-
enterRule(listener: MalloyParserListener): void;
|
|
848
|
-
exitRule(listener: MalloyParserListener): void;
|
|
849
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
850
|
-
}
|
|
851
|
-
export declare class SQLSourceNameContext extends ExploreSourceContext {
|
|
852
|
-
FROM_SQL(): TerminalNode;
|
|
853
|
-
OPAREN(): TerminalNode;
|
|
854
|
-
sqlExploreNameRef(): SqlExploreNameRefContext;
|
|
855
|
-
CPAREN(): TerminalNode;
|
|
856
|
-
constructor(ctx: ExploreSourceContext);
|
|
857
|
-
enterRule(listener: MalloyParserListener): void;
|
|
858
|
-
exitRule(listener: MalloyParserListener): void;
|
|
859
|
-
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
860
|
-
}
|
|
861
|
-
export declare class SQLSourceContext extends ExploreSourceContext {
|
|
862
|
-
connectionId(): ConnectionIdContext;
|
|
863
|
-
DOT(): TerminalNode;
|
|
864
|
-
SQL(): TerminalNode;
|
|
865
|
-
OPAREN(): TerminalNode;
|
|
866
|
-
CPAREN(): TerminalNode;
|
|
867
|
-
sqlString(): SqlStringContext | undefined;
|
|
868
|
-
shortString(): ShortStringContext | undefined;
|
|
869
|
-
constructor(ctx: ExploreSourceContext);
|
|
956
|
+
sourceExtension(): SourceExtensionContext;
|
|
957
|
+
constructor(ctx: ExploreContext);
|
|
870
958
|
enterRule(listener: MalloyParserListener): void;
|
|
871
959
|
exitRule(listener: MalloyParserListener): void;
|
|
872
960
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
@@ -1391,8 +1479,7 @@ export declare class NestEntryContext extends ParserRuleContext {
|
|
|
1391
1479
|
export declare class NestExistingContext extends NestEntryContext {
|
|
1392
1480
|
tags(): TagsContext;
|
|
1393
1481
|
queryName(): QueryNameContext;
|
|
1394
|
-
|
|
1395
|
-
refineOperator(): RefineOperatorContext | undefined;
|
|
1482
|
+
queryRefinement(): QueryRefinementContext | undefined;
|
|
1396
1483
|
constructor(ctx: NestEntryContext);
|
|
1397
1484
|
enterRule(listener: MalloyParserListener): void;
|
|
1398
1485
|
exitRule(listener: MalloyParserListener): void;
|