@malloydata/malloy 0.0.203 → 0.0.204-dev241028160704
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/lib/Malloy/MalloyParser.d.ts +158 -148
- package/dist/lang/lib/Malloy/MalloyParser.js +2442 -2316
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +11 -0
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +7 -0
- package/dist/lang/test/parse.spec.js +3 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -165,145 +165,146 @@ export declare class MalloyParser extends Parser {
|
|
|
165
165
|
static readonly OPEN_CODE = 154;
|
|
166
166
|
static readonly SQL_END = 155;
|
|
167
167
|
static readonly RULE_malloyDocument = 0;
|
|
168
|
-
static readonly
|
|
169
|
-
static readonly
|
|
170
|
-
static readonly
|
|
171
|
-
static readonly
|
|
172
|
-
static readonly
|
|
173
|
-
static readonly
|
|
174
|
-
static readonly
|
|
175
|
-
static readonly
|
|
176
|
-
static readonly
|
|
177
|
-
static readonly
|
|
178
|
-
static readonly
|
|
179
|
-
static readonly
|
|
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
|
|
277
|
-
static readonly
|
|
278
|
-
static readonly
|
|
279
|
-
static readonly
|
|
280
|
-
static readonly
|
|
281
|
-
static readonly
|
|
282
|
-
static readonly
|
|
283
|
-
static readonly
|
|
284
|
-
static readonly
|
|
285
|
-
static readonly
|
|
286
|
-
static readonly
|
|
287
|
-
static readonly
|
|
288
|
-
static readonly
|
|
289
|
-
static readonly
|
|
290
|
-
static readonly
|
|
291
|
-
static readonly
|
|
292
|
-
static readonly
|
|
293
|
-
static readonly
|
|
294
|
-
static readonly
|
|
295
|
-
static readonly
|
|
296
|
-
static readonly
|
|
297
|
-
static readonly
|
|
298
|
-
static readonly
|
|
299
|
-
static readonly
|
|
300
|
-
static readonly
|
|
301
|
-
static readonly
|
|
302
|
-
static readonly
|
|
303
|
-
static readonly
|
|
304
|
-
static readonly
|
|
305
|
-
static readonly
|
|
306
|
-
static readonly
|
|
168
|
+
static readonly RULE_closeCurly = 1;
|
|
169
|
+
static readonly RULE_malloyStatement = 2;
|
|
170
|
+
static readonly RULE_defineSourceStatement = 3;
|
|
171
|
+
static readonly RULE_defineQuery = 4;
|
|
172
|
+
static readonly RULE_topLevelAnonQueryDef = 5;
|
|
173
|
+
static readonly RULE_tags = 6;
|
|
174
|
+
static readonly RULE_isDefine = 7;
|
|
175
|
+
static readonly RULE_runStatement = 8;
|
|
176
|
+
static readonly RULE_sqlString = 9;
|
|
177
|
+
static readonly RULE_sqlInterpolation = 10;
|
|
178
|
+
static readonly RULE_importStatement = 11;
|
|
179
|
+
static readonly RULE_importSelect = 12;
|
|
180
|
+
static readonly RULE_importItem = 13;
|
|
181
|
+
static readonly RULE_importURL = 14;
|
|
182
|
+
static readonly RULE_docAnnotations = 15;
|
|
183
|
+
static readonly RULE_ignoredObjectAnnotations = 16;
|
|
184
|
+
static readonly RULE_ignoredModelAnnotations = 17;
|
|
185
|
+
static readonly RULE_topLevelQueryDefs = 18;
|
|
186
|
+
static readonly RULE_topLevelQueryDef = 19;
|
|
187
|
+
static readonly RULE_refineOperator = 20;
|
|
188
|
+
static readonly RULE_turtleName = 21;
|
|
189
|
+
static readonly RULE_sqlSource = 22;
|
|
190
|
+
static readonly RULE_exploreTable = 23;
|
|
191
|
+
static readonly RULE_connectionId = 24;
|
|
192
|
+
static readonly RULE_queryProperties = 25;
|
|
193
|
+
static readonly RULE_filterShortcut = 26;
|
|
194
|
+
static readonly RULE_queryName = 27;
|
|
195
|
+
static readonly RULE_sourcePropertyList = 28;
|
|
196
|
+
static readonly RULE_sourceDefinition = 29;
|
|
197
|
+
static readonly RULE_sqExplore = 30;
|
|
198
|
+
static readonly RULE_sourceParameters = 31;
|
|
199
|
+
static readonly RULE_sourceParameter = 32;
|
|
200
|
+
static readonly RULE_parameterNameDef = 33;
|
|
201
|
+
static readonly RULE_sourceNameDef = 34;
|
|
202
|
+
static readonly RULE_exploreProperties = 35;
|
|
203
|
+
static readonly RULE_exploreStatement = 36;
|
|
204
|
+
static readonly RULE_defMeasures = 37;
|
|
205
|
+
static readonly RULE_defDimensions = 38;
|
|
206
|
+
static readonly RULE_renameList = 39;
|
|
207
|
+
static readonly RULE_exploreRenameDef = 40;
|
|
208
|
+
static readonly RULE_defList = 41;
|
|
209
|
+
static readonly RULE_fieldDef = 42;
|
|
210
|
+
static readonly RULE_fieldNameDef = 43;
|
|
211
|
+
static readonly RULE_joinNameDef = 44;
|
|
212
|
+
static readonly RULE_declareStatement = 45;
|
|
213
|
+
static readonly RULE_joinStatement = 46;
|
|
214
|
+
static readonly RULE_queryExtend = 47;
|
|
215
|
+
static readonly RULE_modEither = 48;
|
|
216
|
+
static readonly RULE_sourceArguments = 49;
|
|
217
|
+
static readonly RULE_argumentId = 50;
|
|
218
|
+
static readonly RULE_sourceArgument = 51;
|
|
219
|
+
static readonly RULE_sqExpr = 52;
|
|
220
|
+
static readonly RULE_segExpr = 53;
|
|
221
|
+
static readonly RULE_vExpr = 54;
|
|
222
|
+
static readonly RULE_queryExtendStatement = 55;
|
|
223
|
+
static readonly RULE_queryExtendStatementList = 56;
|
|
224
|
+
static readonly RULE_joinList = 57;
|
|
225
|
+
static readonly RULE_isExplore = 58;
|
|
226
|
+
static readonly RULE_matrixOperation = 59;
|
|
227
|
+
static readonly RULE_joinFrom = 60;
|
|
228
|
+
static readonly RULE_joinDef = 61;
|
|
229
|
+
static readonly RULE_joinExpression = 62;
|
|
230
|
+
static readonly RULE_filterStatement = 63;
|
|
231
|
+
static readonly RULE_fieldProperties = 64;
|
|
232
|
+
static readonly RULE_aggregateOrdering = 65;
|
|
233
|
+
static readonly RULE_aggregateOrderBySpec = 66;
|
|
234
|
+
static readonly RULE_aggregateOrderByStatement = 67;
|
|
235
|
+
static readonly RULE_fieldPropertyLimitStatement = 68;
|
|
236
|
+
static readonly RULE_fieldPropertyStatement = 69;
|
|
237
|
+
static readonly RULE_filterClauseList = 70;
|
|
238
|
+
static readonly RULE_whereStatement = 71;
|
|
239
|
+
static readonly RULE_havingStatement = 72;
|
|
240
|
+
static readonly RULE_subQueryDefList = 73;
|
|
241
|
+
static readonly RULE_exploreQueryNameDef = 74;
|
|
242
|
+
static readonly RULE_exploreQueryDef = 75;
|
|
243
|
+
static readonly RULE_queryStatement = 76;
|
|
244
|
+
static readonly RULE_queryJoinStatement = 77;
|
|
245
|
+
static readonly RULE_groupByStatement = 78;
|
|
246
|
+
static readonly RULE_queryFieldList = 79;
|
|
247
|
+
static readonly RULE_queryFieldEntry = 80;
|
|
248
|
+
static readonly RULE_nestStatement = 81;
|
|
249
|
+
static readonly RULE_nestedQueryList = 82;
|
|
250
|
+
static readonly RULE_nestEntry = 83;
|
|
251
|
+
static readonly RULE_aggregateStatement = 84;
|
|
252
|
+
static readonly RULE_calculateStatement = 85;
|
|
253
|
+
static readonly RULE_projectStatement = 86;
|
|
254
|
+
static readonly RULE_partitionByStatement = 87;
|
|
255
|
+
static readonly RULE_orderByStatement = 88;
|
|
256
|
+
static readonly RULE_ordering = 89;
|
|
257
|
+
static readonly RULE_orderBySpec = 90;
|
|
258
|
+
static readonly RULE_limitStatement = 91;
|
|
259
|
+
static readonly RULE_bySpec = 92;
|
|
260
|
+
static readonly RULE_topStatement = 93;
|
|
261
|
+
static readonly RULE_indexElement = 94;
|
|
262
|
+
static readonly RULE_indexFields = 95;
|
|
263
|
+
static readonly RULE_indexStatement = 96;
|
|
264
|
+
static readonly RULE_sampleStatement = 97;
|
|
265
|
+
static readonly RULE_timezoneStatement = 98;
|
|
266
|
+
static readonly RULE_queryAnnotation = 99;
|
|
267
|
+
static readonly RULE_sampleSpec = 100;
|
|
268
|
+
static readonly RULE_aggregate = 101;
|
|
269
|
+
static readonly RULE_malloyType = 102;
|
|
270
|
+
static readonly RULE_compareOp = 103;
|
|
271
|
+
static readonly RULE_string = 104;
|
|
272
|
+
static readonly RULE_shortString = 105;
|
|
273
|
+
static readonly RULE_numericLiteral = 106;
|
|
274
|
+
static readonly RULE_literal = 107;
|
|
275
|
+
static readonly RULE_dateLiteral = 108;
|
|
276
|
+
static readonly RULE_tablePath = 109;
|
|
277
|
+
static readonly RULE_tableURI = 110;
|
|
278
|
+
static readonly RULE_id = 111;
|
|
279
|
+
static readonly RULE_timeframe = 112;
|
|
280
|
+
static readonly RULE_ungroup = 113;
|
|
281
|
+
static readonly RULE_malloyOrSQLType = 114;
|
|
282
|
+
static readonly RULE_fieldExpr = 115;
|
|
283
|
+
static readonly RULE_partialAllowedFieldExpr = 116;
|
|
284
|
+
static readonly RULE_fieldExprList = 117;
|
|
285
|
+
static readonly RULE_pickStatement = 118;
|
|
286
|
+
static readonly RULE_pick = 119;
|
|
287
|
+
static readonly RULE_caseStatement = 120;
|
|
288
|
+
static readonly RULE_caseWhen = 121;
|
|
289
|
+
static readonly RULE_recordKey = 122;
|
|
290
|
+
static readonly RULE_recordElement = 123;
|
|
291
|
+
static readonly RULE_argumentList = 124;
|
|
292
|
+
static readonly RULE_fieldNameList = 125;
|
|
293
|
+
static readonly RULE_fieldCollection = 126;
|
|
294
|
+
static readonly RULE_collectionWildCard = 127;
|
|
295
|
+
static readonly RULE_starQualified = 128;
|
|
296
|
+
static readonly RULE_taggedRef = 129;
|
|
297
|
+
static readonly RULE_refExpr = 130;
|
|
298
|
+
static readonly RULE_collectionMember = 131;
|
|
299
|
+
static readonly RULE_fieldPath = 132;
|
|
300
|
+
static readonly RULE_joinName = 133;
|
|
301
|
+
static readonly RULE_fieldName = 134;
|
|
302
|
+
static readonly RULE_sqlExploreNameRef = 135;
|
|
303
|
+
static readonly RULE_nameSQLBlock = 136;
|
|
304
|
+
static readonly RULE_connectionName = 137;
|
|
305
|
+
static readonly RULE_debugExpr = 138;
|
|
306
|
+
static readonly RULE_debugPartial = 139;
|
|
307
|
+
static readonly RULE_experimentalStatementForTesting = 140;
|
|
307
308
|
static readonly ruleNames: string[];
|
|
308
309
|
private static readonly _LITERAL_NAMES;
|
|
309
310
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -315,6 +316,7 @@ export declare class MalloyParser extends Parser {
|
|
|
315
316
|
protected createFailedPredicateException(predicate?: string, message?: string): FailedPredicateException;
|
|
316
317
|
constructor(input: TokenStream);
|
|
317
318
|
malloyDocument(): MalloyDocumentContext;
|
|
319
|
+
closeCurly(): CloseCurlyContext;
|
|
318
320
|
malloyStatement(): MalloyStatementContext;
|
|
319
321
|
defineSourceStatement(): DefineSourceStatementContext;
|
|
320
322
|
defineQuery(): DefineQueryContext;
|
|
@@ -481,6 +483,14 @@ export declare class MalloyDocumentContext extends ParserRuleContext {
|
|
|
481
483
|
exitRule(listener: MalloyParserListener): void;
|
|
482
484
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
483
485
|
}
|
|
486
|
+
export declare class CloseCurlyContext extends ParserRuleContext {
|
|
487
|
+
CCURLY(): TerminalNode | undefined;
|
|
488
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
489
|
+
get ruleIndex(): number;
|
|
490
|
+
enterRule(listener: MalloyParserListener): void;
|
|
491
|
+
exitRule(listener: MalloyParserListener): void;
|
|
492
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
493
|
+
}
|
|
484
494
|
export declare class MalloyStatementContext extends ParserRuleContext {
|
|
485
495
|
defineSourceStatement(): DefineSourceStatementContext | undefined;
|
|
486
496
|
defineQuery(): DefineQueryContext | undefined;
|
|
@@ -580,7 +590,7 @@ export declare class SqlStringContext extends ParserRuleContext {
|
|
|
580
590
|
export declare class SqlInterpolationContext extends ParserRuleContext {
|
|
581
591
|
OPEN_CODE(): TerminalNode;
|
|
582
592
|
sqExpr(): SqExprContext;
|
|
583
|
-
|
|
593
|
+
closeCurly(): CloseCurlyContext | undefined;
|
|
584
594
|
CLOSE_CODE(): TerminalNode | undefined;
|
|
585
595
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
586
596
|
get ruleIndex(): number;
|
|
@@ -602,7 +612,7 @@ export declare class ImportSelectContext extends ParserRuleContext {
|
|
|
602
612
|
OCURLY(): TerminalNode;
|
|
603
613
|
importItem(): ImportItemContext[];
|
|
604
614
|
importItem(i: number): ImportItemContext;
|
|
605
|
-
|
|
615
|
+
closeCurly(): CloseCurlyContext;
|
|
606
616
|
FROM(): TerminalNode;
|
|
607
617
|
COMMA(): TerminalNode[];
|
|
608
618
|
COMMA(i: number): TerminalNode;
|
|
@@ -749,7 +759,7 @@ export declare class ConnectionIdContext extends ParserRuleContext {
|
|
|
749
759
|
export declare class QueryPropertiesContext extends ParserRuleContext {
|
|
750
760
|
filterShortcut(): FilterShortcutContext | undefined;
|
|
751
761
|
OCURLY(): TerminalNode | undefined;
|
|
752
|
-
|
|
762
|
+
closeCurly(): CloseCurlyContext | undefined;
|
|
753
763
|
queryStatement(): QueryStatementContext[];
|
|
754
764
|
queryStatement(i: number): QueryStatementContext;
|
|
755
765
|
SEMI(): TerminalNode[];
|
|
@@ -764,7 +774,7 @@ export declare class FilterShortcutContext extends ParserRuleContext {
|
|
|
764
774
|
OCURLY(): TerminalNode;
|
|
765
775
|
QMARK(): TerminalNode;
|
|
766
776
|
fieldExpr(): FieldExprContext;
|
|
767
|
-
|
|
777
|
+
closeCurly(): CloseCurlyContext;
|
|
768
778
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
769
779
|
get ruleIndex(): number;
|
|
770
780
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -853,7 +863,7 @@ export declare class SourceNameDefContext extends ParserRuleContext {
|
|
|
853
863
|
}
|
|
854
864
|
export declare class ExplorePropertiesContext extends ParserRuleContext {
|
|
855
865
|
OCURLY(): TerminalNode | undefined;
|
|
856
|
-
|
|
866
|
+
closeCurly(): CloseCurlyContext | undefined;
|
|
857
867
|
exploreStatement(): ExploreStatementContext[];
|
|
858
868
|
exploreStatement(i: number): ExploreStatementContext;
|
|
859
869
|
SEMI(): TerminalNode[];
|
|
@@ -1269,7 +1279,7 @@ export declare class QueryExtendStatementContext extends ParserRuleContext {
|
|
|
1269
1279
|
}
|
|
1270
1280
|
export declare class QueryExtendStatementListContext extends ParserRuleContext {
|
|
1271
1281
|
OCURLY(): TerminalNode;
|
|
1272
|
-
|
|
1282
|
+
closeCurly(): CloseCurlyContext;
|
|
1273
1283
|
queryExtendStatement(): QueryExtendStatementContext[];
|
|
1274
1284
|
queryExtendStatement(i: number): QueryExtendStatementContext;
|
|
1275
1285
|
SEMI(): TerminalNode[];
|
|
@@ -1373,7 +1383,7 @@ export declare class FilterStatementContext extends ParserRuleContext {
|
|
|
1373
1383
|
}
|
|
1374
1384
|
export declare class FieldPropertiesContext extends ParserRuleContext {
|
|
1375
1385
|
OCURLY(): TerminalNode;
|
|
1376
|
-
|
|
1386
|
+
closeCurly(): CloseCurlyContext;
|
|
1377
1387
|
fieldPropertyStatement(): FieldPropertyStatementContext[];
|
|
1378
1388
|
fieldPropertyStatement(i: number): FieldPropertyStatementContext;
|
|
1379
1389
|
SEMI(): TerminalNode[];
|
|
@@ -2032,7 +2042,7 @@ export declare class ExprLiteralRecordContext extends FieldExprContext {
|
|
|
2032
2042
|
OCURLY(): TerminalNode;
|
|
2033
2043
|
recordElement(): RecordElementContext[];
|
|
2034
2044
|
recordElement(i: number): RecordElementContext;
|
|
2035
|
-
|
|
2045
|
+
closeCurly(): CloseCurlyContext;
|
|
2036
2046
|
COMMA(): TerminalNode[];
|
|
2037
2047
|
COMMA(i: number): TerminalNode;
|
|
2038
2048
|
constructor(ctx: FieldExprContext);
|
|
@@ -2478,7 +2488,7 @@ export declare class CollectionWildCardContext extends ParserRuleContext {
|
|
|
2478
2488
|
}
|
|
2479
2489
|
export declare class StarQualifiedContext extends ParserRuleContext {
|
|
2480
2490
|
OCURLY(): TerminalNode;
|
|
2481
|
-
|
|
2491
|
+
closeCurly(): CloseCurlyContext;
|
|
2482
2492
|
COMMA(): TerminalNode[];
|
|
2483
2493
|
COMMA(i: number): TerminalNode;
|
|
2484
2494
|
EXCEPT(): TerminalNode[];
|