@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.
@@ -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 RULE_malloyStatement = 1;
169
- static readonly RULE_defineSourceStatement = 2;
170
- static readonly RULE_defineQuery = 3;
171
- static readonly RULE_topLevelAnonQueryDef = 4;
172
- static readonly RULE_tags = 5;
173
- static readonly RULE_isDefine = 6;
174
- static readonly RULE_runStatement = 7;
175
- static readonly RULE_sqlString = 8;
176
- static readonly RULE_sqlInterpolation = 9;
177
- static readonly RULE_importStatement = 10;
178
- static readonly RULE_importSelect = 11;
179
- static readonly RULE_importItem = 12;
180
- static readonly RULE_importURL = 13;
181
- static readonly RULE_docAnnotations = 14;
182
- static readonly RULE_ignoredObjectAnnotations = 15;
183
- static readonly RULE_ignoredModelAnnotations = 16;
184
- static readonly RULE_topLevelQueryDefs = 17;
185
- static readonly RULE_topLevelQueryDef = 18;
186
- static readonly RULE_refineOperator = 19;
187
- static readonly RULE_turtleName = 20;
188
- static readonly RULE_sqlSource = 21;
189
- static readonly RULE_exploreTable = 22;
190
- static readonly RULE_connectionId = 23;
191
- static readonly RULE_queryProperties = 24;
192
- static readonly RULE_filterShortcut = 25;
193
- static readonly RULE_queryName = 26;
194
- static readonly RULE_sourcePropertyList = 27;
195
- static readonly RULE_sourceDefinition = 28;
196
- static readonly RULE_sqExplore = 29;
197
- static readonly RULE_sourceParameters = 30;
198
- static readonly RULE_sourceParameter = 31;
199
- static readonly RULE_parameterNameDef = 32;
200
- static readonly RULE_sourceNameDef = 33;
201
- static readonly RULE_exploreProperties = 34;
202
- static readonly RULE_exploreStatement = 35;
203
- static readonly RULE_defMeasures = 36;
204
- static readonly RULE_defDimensions = 37;
205
- static readonly RULE_renameList = 38;
206
- static readonly RULE_exploreRenameDef = 39;
207
- static readonly RULE_defList = 40;
208
- static readonly RULE_fieldDef = 41;
209
- static readonly RULE_fieldNameDef = 42;
210
- static readonly RULE_joinNameDef = 43;
211
- static readonly RULE_declareStatement = 44;
212
- static readonly RULE_joinStatement = 45;
213
- static readonly RULE_queryExtend = 46;
214
- static readonly RULE_modEither = 47;
215
- static readonly RULE_sourceArguments = 48;
216
- static readonly RULE_argumentId = 49;
217
- static readonly RULE_sourceArgument = 50;
218
- static readonly RULE_sqExpr = 51;
219
- static readonly RULE_segExpr = 52;
220
- static readonly RULE_vExpr = 53;
221
- static readonly RULE_queryExtendStatement = 54;
222
- static readonly RULE_queryExtendStatementList = 55;
223
- static readonly RULE_joinList = 56;
224
- static readonly RULE_isExplore = 57;
225
- static readonly RULE_matrixOperation = 58;
226
- static readonly RULE_joinFrom = 59;
227
- static readonly RULE_joinDef = 60;
228
- static readonly RULE_joinExpression = 61;
229
- static readonly RULE_filterStatement = 62;
230
- static readonly RULE_fieldProperties = 63;
231
- static readonly RULE_aggregateOrdering = 64;
232
- static readonly RULE_aggregateOrderBySpec = 65;
233
- static readonly RULE_aggregateOrderByStatement = 66;
234
- static readonly RULE_fieldPropertyLimitStatement = 67;
235
- static readonly RULE_fieldPropertyStatement = 68;
236
- static readonly RULE_filterClauseList = 69;
237
- static readonly RULE_whereStatement = 70;
238
- static readonly RULE_havingStatement = 71;
239
- static readonly RULE_subQueryDefList = 72;
240
- static readonly RULE_exploreQueryNameDef = 73;
241
- static readonly RULE_exploreQueryDef = 74;
242
- static readonly RULE_queryStatement = 75;
243
- static readonly RULE_queryJoinStatement = 76;
244
- static readonly RULE_groupByStatement = 77;
245
- static readonly RULE_queryFieldList = 78;
246
- static readonly RULE_queryFieldEntry = 79;
247
- static readonly RULE_nestStatement = 80;
248
- static readonly RULE_nestedQueryList = 81;
249
- static readonly RULE_nestEntry = 82;
250
- static readonly RULE_aggregateStatement = 83;
251
- static readonly RULE_calculateStatement = 84;
252
- static readonly RULE_projectStatement = 85;
253
- static readonly RULE_partitionByStatement = 86;
254
- static readonly RULE_orderByStatement = 87;
255
- static readonly RULE_ordering = 88;
256
- static readonly RULE_orderBySpec = 89;
257
- static readonly RULE_limitStatement = 90;
258
- static readonly RULE_bySpec = 91;
259
- static readonly RULE_topStatement = 92;
260
- static readonly RULE_indexElement = 93;
261
- static readonly RULE_indexFields = 94;
262
- static readonly RULE_indexStatement = 95;
263
- static readonly RULE_sampleStatement = 96;
264
- static readonly RULE_timezoneStatement = 97;
265
- static readonly RULE_queryAnnotation = 98;
266
- static readonly RULE_sampleSpec = 99;
267
- static readonly RULE_aggregate = 100;
268
- static readonly RULE_malloyType = 101;
269
- static readonly RULE_compareOp = 102;
270
- static readonly RULE_string = 103;
271
- static readonly RULE_shortString = 104;
272
- static readonly RULE_numericLiteral = 105;
273
- static readonly RULE_literal = 106;
274
- static readonly RULE_dateLiteral = 107;
275
- static readonly RULE_tablePath = 108;
276
- static readonly RULE_tableURI = 109;
277
- static readonly RULE_id = 110;
278
- static readonly RULE_timeframe = 111;
279
- static readonly RULE_ungroup = 112;
280
- static readonly RULE_malloyOrSQLType = 113;
281
- static readonly RULE_fieldExpr = 114;
282
- static readonly RULE_partialAllowedFieldExpr = 115;
283
- static readonly RULE_fieldExprList = 116;
284
- static readonly RULE_pickStatement = 117;
285
- static readonly RULE_pick = 118;
286
- static readonly RULE_caseStatement = 119;
287
- static readonly RULE_caseWhen = 120;
288
- static readonly RULE_recordKey = 121;
289
- static readonly RULE_recordElement = 122;
290
- static readonly RULE_argumentList = 123;
291
- static readonly RULE_fieldNameList = 124;
292
- static readonly RULE_fieldCollection = 125;
293
- static readonly RULE_collectionWildCard = 126;
294
- static readonly RULE_starQualified = 127;
295
- static readonly RULE_taggedRef = 128;
296
- static readonly RULE_refExpr = 129;
297
- static readonly RULE_collectionMember = 130;
298
- static readonly RULE_fieldPath = 131;
299
- static readonly RULE_joinName = 132;
300
- static readonly RULE_fieldName = 133;
301
- static readonly RULE_sqlExploreNameRef = 134;
302
- static readonly RULE_nameSQLBlock = 135;
303
- static readonly RULE_connectionName = 136;
304
- static readonly RULE_debugExpr = 137;
305
- static readonly RULE_debugPartial = 138;
306
- static readonly RULE_experimentalStatementForTesting = 139;
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
- CCURLY(): TerminalNode | undefined;
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
- CCURLY(): TerminalNode;
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
- CCURLY(): TerminalNode | undefined;
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
- CCURLY(): TerminalNode;
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
- CCURLY(): TerminalNode | undefined;
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
- CCURLY(): TerminalNode;
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
- CCURLY(): TerminalNode;
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
- CCURLY(): TerminalNode;
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
- CCURLY(): TerminalNode;
2491
+ closeCurly(): CloseCurlyContext;
2482
2492
  COMMA(): TerminalNode[];
2483
2493
  COMMA(i: number): TerminalNode;
2484
2494
  EXCEPT(): TerminalNode[];