@malloydata/malloy 0.0.392 → 0.0.394

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.
@@ -205,173 +205,174 @@ export declare class MalloyParser extends Parser {
205
205
  static readonly RULE_defineGivenStatement = 12;
206
206
  static readonly RULE_givenDefList = 13;
207
207
  static readonly RULE_givenDef = 14;
208
- static readonly RULE_givenNameDef = 15;
209
- static readonly RULE_givenType = 16;
210
- static readonly RULE_topLevelAnonQueryDef = 17;
211
- static readonly RULE_annotation = 18;
212
- static readonly RULE_tags = 19;
213
- static readonly RULE_blockAnnotation = 20;
214
- static readonly RULE_docAnnotation = 21;
215
- static readonly RULE_docBlockAnnotation = 22;
216
- static readonly RULE_isDefine = 23;
217
- static readonly RULE_runStatement = 24;
218
- static readonly RULE_sqlString = 25;
219
- static readonly RULE_sqlInterpolation = 26;
220
- static readonly RULE_importStatement = 27;
221
- static readonly RULE_importSelect = 28;
222
- static readonly RULE_importItem = 29;
223
- static readonly RULE_importURL = 30;
224
- static readonly RULE_docAnnotations = 31;
225
- static readonly RULE_ignoredObjectAnnotations = 32;
226
- static readonly RULE_ignoredModelAnnotations = 33;
227
- static readonly RULE_topLevelQueryDefs = 34;
228
- static readonly RULE_topLevelQueryDef = 35;
229
- static readonly RULE_refineOperator = 36;
230
- static readonly RULE_turtleName = 37;
231
- static readonly RULE_sqlSource = 38;
232
- static readonly RULE_exploreTable = 39;
233
- static readonly RULE_virtualSource = 40;
234
- static readonly RULE_connectionId = 41;
235
- static readonly RULE_queryProperties = 42;
236
- static readonly RULE_queryName = 43;
237
- static readonly RULE_sourcePropertyList = 44;
238
- static readonly RULE_sourceDefinition = 45;
239
- static readonly RULE_sqExplore = 46;
240
- static readonly RULE_sourceParameters = 47;
241
- static readonly RULE_legalParamType = 48;
242
- static readonly RULE_sourceParameter = 49;
243
- static readonly RULE_parameterNameDef = 50;
244
- static readonly RULE_sourceNameDef = 51;
245
- static readonly RULE_exploreProperties = 52;
246
- static readonly RULE_exploreStatement = 53;
247
- static readonly RULE_accessLabel = 54;
248
- static readonly RULE_accessModifierList = 55;
249
- static readonly RULE_defMeasures = 56;
250
- static readonly RULE_defDimensions = 57;
251
- static readonly RULE_renameList = 58;
252
- static readonly RULE_renameEntry = 59;
253
- static readonly RULE_defList = 60;
254
- static readonly RULE_fieldDef = 61;
255
- static readonly RULE_fieldNameDef = 62;
256
- static readonly RULE_joinNameDef = 63;
257
- static readonly RULE_declareStatement = 64;
258
- static readonly RULE_joinStatement = 65;
259
- static readonly RULE_queryExtend = 66;
260
- static readonly RULE_modEither = 67;
261
- static readonly RULE_sourceArguments = 68;
262
- static readonly RULE_argumentId = 69;
263
- static readonly RULE_sourceArgument = 70;
264
- static readonly RULE_sqExpr = 71;
265
- static readonly RULE_sourceTypeConstraints = 72;
266
- static readonly RULE_userTypeName = 73;
267
- static readonly RULE_includeBlock = 74;
268
- static readonly RULE_includeItem = 75;
269
- static readonly RULE_orphanedAnnotation = 76;
270
- static readonly RULE_accessLabelProp = 77;
271
- static readonly RULE_includeExceptList = 78;
272
- static readonly RULE_includeExceptListItem = 79;
273
- static readonly RULE_includeList = 80;
274
- static readonly RULE_includeField = 81;
275
- static readonly RULE_segExpr = 82;
276
- static readonly RULE_vExpr = 83;
277
- static readonly RULE_queryExtendStatement = 84;
278
- static readonly RULE_queryExtendStatementList = 85;
279
- static readonly RULE_joinList = 86;
280
- static readonly RULE_isExplore = 87;
281
- static readonly RULE_matrixOperation = 88;
282
- static readonly RULE_joinFrom = 89;
283
- static readonly RULE_joinDef = 90;
284
- static readonly RULE_joinExpression = 91;
285
- static readonly RULE_filterStatement = 92;
286
- static readonly RULE_fieldProperties = 93;
287
- static readonly RULE_aggregateOrdering = 94;
288
- static readonly RULE_aggregateOrderBySpec = 95;
289
- static readonly RULE_aggregateOrderByStatement = 96;
290
- static readonly RULE_fieldPropertyLimitStatement = 97;
291
- static readonly RULE_fieldPropertyStatement = 98;
292
- static readonly RULE_filterClauseList = 99;
293
- static readonly RULE_whereStatement = 100;
294
- static readonly RULE_havingStatement = 101;
295
- static readonly RULE_subQueryDefList = 102;
296
- static readonly RULE_exploreQueryNameDef = 103;
297
- static readonly RULE_exploreQueryDef = 104;
298
- static readonly RULE_drillStatement = 105;
299
- static readonly RULE_drillClauseList = 106;
300
- static readonly RULE_queryStatement = 107;
301
- static readonly RULE_queryJoinStatement = 108;
302
- static readonly RULE_groupByStatement = 109;
303
- static readonly RULE_queryFieldList = 110;
304
- static readonly RULE_queryFieldEntry = 111;
305
- static readonly RULE_nestStatement = 112;
306
- static readonly RULE_nestedQueryList = 113;
307
- static readonly RULE_nestEntry = 114;
308
- static readonly RULE_aggregateStatement = 115;
309
- static readonly RULE_calculateStatement = 116;
310
- static readonly RULE_projectStatement = 117;
311
- static readonly RULE_partitionByStatement = 118;
312
- static readonly RULE_groupedByStatement = 119;
313
- static readonly RULE_orderByStatement = 120;
314
- static readonly RULE_ordering = 121;
315
- static readonly RULE_orderBySpec = 122;
316
- static readonly RULE_limitStatement = 123;
317
- static readonly RULE_bySpec = 124;
318
- static readonly RULE_topStatement = 125;
319
- static readonly RULE_indexElement = 126;
320
- static readonly RULE_indexFields = 127;
321
- static readonly RULE_indexStatement = 128;
322
- static readonly RULE_sampleStatement = 129;
323
- static readonly RULE_timezoneStatement = 130;
324
- static readonly RULE_queryAnnotation = 131;
325
- static readonly RULE_sampleSpec = 132;
326
- static readonly RULE_aggregate = 133;
327
- static readonly RULE_malloyType = 134;
328
- static readonly RULE_malloyBasicType = 135;
329
- static readonly RULE_malloyRecordType = 136;
330
- static readonly RULE_malloyRecordField = 137;
331
- static readonly RULE_compareOp = 138;
332
- static readonly RULE_string = 139;
333
- static readonly RULE_shortString = 140;
334
- static readonly RULE_rawString = 141;
335
- static readonly RULE_numericLiteral = 142;
336
- static readonly RULE_literal = 143;
337
- static readonly RULE_dateLiteral = 144;
338
- static readonly RULE_tablePath = 145;
339
- static readonly RULE_tableURI = 146;
340
- static readonly RULE_id = 147;
341
- static readonly RULE_timeframe = 148;
342
- static readonly RULE_ungroup = 149;
343
- static readonly RULE_malloyOrSQLType = 150;
344
- static readonly RULE_fieldExpr = 151;
345
- static readonly RULE_partialCompare = 152;
346
- static readonly RULE_partialTest = 153;
347
- static readonly RULE_partialAllowedFieldExpr = 154;
348
- static readonly RULE_fieldExprList = 155;
349
- static readonly RULE_pickStatement = 156;
350
- static readonly RULE_pick = 157;
351
- static readonly RULE_caseStatement = 158;
352
- static readonly RULE_caseWhen = 159;
353
- static readonly RULE_recordKey = 160;
354
- static readonly RULE_recordElement = 161;
355
- static readonly RULE_argumentList = 162;
356
- static readonly RULE_fieldNameList = 163;
357
- static readonly RULE_fieldCollection = 164;
358
- static readonly RULE_collectionWildCard = 165;
359
- static readonly RULE_starQualified = 166;
360
- static readonly RULE_taggedRef = 167;
361
- static readonly RULE_refExpr = 168;
362
- static readonly RULE_collectionMember = 169;
363
- static readonly RULE_fieldPath = 170;
364
- static readonly RULE_joinName = 171;
365
- static readonly RULE_fieldName = 172;
366
- static readonly RULE_sqlExploreNameRef = 173;
367
- static readonly RULE_nameSQLBlock = 174;
368
- static readonly RULE_connectionName = 175;
369
- static readonly RULE_tripFilterString = 176;
370
- static readonly RULE_tickFilterString = 177;
371
- static readonly RULE_filterString = 178;
372
- static readonly RULE_debugExpr = 179;
373
- static readonly RULE_debugPartial = 180;
374
- static readonly RULE_experimentalStatementForTesting = 181;
208
+ static readonly RULE_givenModifier = 15;
209
+ static readonly RULE_givenNameDef = 16;
210
+ static readonly RULE_givenType = 17;
211
+ static readonly RULE_topLevelAnonQueryDef = 18;
212
+ static readonly RULE_annotation = 19;
213
+ static readonly RULE_tags = 20;
214
+ static readonly RULE_blockAnnotation = 21;
215
+ static readonly RULE_docAnnotation = 22;
216
+ static readonly RULE_docBlockAnnotation = 23;
217
+ static readonly RULE_isDefine = 24;
218
+ static readonly RULE_runStatement = 25;
219
+ static readonly RULE_sqlString = 26;
220
+ static readonly RULE_sqlInterpolation = 27;
221
+ static readonly RULE_importStatement = 28;
222
+ static readonly RULE_importSelect = 29;
223
+ static readonly RULE_importItem = 30;
224
+ static readonly RULE_importURL = 31;
225
+ static readonly RULE_docAnnotations = 32;
226
+ static readonly RULE_ignoredObjectAnnotations = 33;
227
+ static readonly RULE_ignoredModelAnnotations = 34;
228
+ static readonly RULE_topLevelQueryDefs = 35;
229
+ static readonly RULE_topLevelQueryDef = 36;
230
+ static readonly RULE_refineOperator = 37;
231
+ static readonly RULE_turtleName = 38;
232
+ static readonly RULE_sqlSource = 39;
233
+ static readonly RULE_exploreTable = 40;
234
+ static readonly RULE_virtualSource = 41;
235
+ static readonly RULE_connectionId = 42;
236
+ static readonly RULE_queryProperties = 43;
237
+ static readonly RULE_queryName = 44;
238
+ static readonly RULE_sourcePropertyList = 45;
239
+ static readonly RULE_sourceDefinition = 46;
240
+ static readonly RULE_sqExplore = 47;
241
+ static readonly RULE_sourceParameters = 48;
242
+ static readonly RULE_legalParamType = 49;
243
+ static readonly RULE_sourceParameter = 50;
244
+ static readonly RULE_parameterNameDef = 51;
245
+ static readonly RULE_sourceNameDef = 52;
246
+ static readonly RULE_exploreProperties = 53;
247
+ static readonly RULE_exploreStatement = 54;
248
+ static readonly RULE_accessLabel = 55;
249
+ static readonly RULE_accessModifierList = 56;
250
+ static readonly RULE_defMeasures = 57;
251
+ static readonly RULE_defDimensions = 58;
252
+ static readonly RULE_renameList = 59;
253
+ static readonly RULE_renameEntry = 60;
254
+ static readonly RULE_defList = 61;
255
+ static readonly RULE_fieldDef = 62;
256
+ static readonly RULE_fieldNameDef = 63;
257
+ static readonly RULE_joinNameDef = 64;
258
+ static readonly RULE_declareStatement = 65;
259
+ static readonly RULE_joinStatement = 66;
260
+ static readonly RULE_queryExtend = 67;
261
+ static readonly RULE_modEither = 68;
262
+ static readonly RULE_sourceArguments = 69;
263
+ static readonly RULE_argumentId = 70;
264
+ static readonly RULE_sourceArgument = 71;
265
+ static readonly RULE_sqExpr = 72;
266
+ static readonly RULE_sourceTypeConstraints = 73;
267
+ static readonly RULE_userTypeName = 74;
268
+ static readonly RULE_includeBlock = 75;
269
+ static readonly RULE_includeItem = 76;
270
+ static readonly RULE_orphanedAnnotation = 77;
271
+ static readonly RULE_accessLabelProp = 78;
272
+ static readonly RULE_includeExceptList = 79;
273
+ static readonly RULE_includeExceptListItem = 80;
274
+ static readonly RULE_includeList = 81;
275
+ static readonly RULE_includeField = 82;
276
+ static readonly RULE_segExpr = 83;
277
+ static readonly RULE_vExpr = 84;
278
+ static readonly RULE_queryExtendStatement = 85;
279
+ static readonly RULE_queryExtendStatementList = 86;
280
+ static readonly RULE_joinList = 87;
281
+ static readonly RULE_isExplore = 88;
282
+ static readonly RULE_matrixOperation = 89;
283
+ static readonly RULE_joinFrom = 90;
284
+ static readonly RULE_joinDef = 91;
285
+ static readonly RULE_joinExpression = 92;
286
+ static readonly RULE_filterStatement = 93;
287
+ static readonly RULE_fieldProperties = 94;
288
+ static readonly RULE_aggregateOrdering = 95;
289
+ static readonly RULE_aggregateOrderBySpec = 96;
290
+ static readonly RULE_aggregateOrderByStatement = 97;
291
+ static readonly RULE_fieldPropertyLimitStatement = 98;
292
+ static readonly RULE_fieldPropertyStatement = 99;
293
+ static readonly RULE_filterClauseList = 100;
294
+ static readonly RULE_whereStatement = 101;
295
+ static readonly RULE_havingStatement = 102;
296
+ static readonly RULE_subQueryDefList = 103;
297
+ static readonly RULE_exploreQueryNameDef = 104;
298
+ static readonly RULE_exploreQueryDef = 105;
299
+ static readonly RULE_drillStatement = 106;
300
+ static readonly RULE_drillClauseList = 107;
301
+ static readonly RULE_queryStatement = 108;
302
+ static readonly RULE_queryJoinStatement = 109;
303
+ static readonly RULE_groupByStatement = 110;
304
+ static readonly RULE_queryFieldList = 111;
305
+ static readonly RULE_queryFieldEntry = 112;
306
+ static readonly RULE_nestStatement = 113;
307
+ static readonly RULE_nestedQueryList = 114;
308
+ static readonly RULE_nestEntry = 115;
309
+ static readonly RULE_aggregateStatement = 116;
310
+ static readonly RULE_calculateStatement = 117;
311
+ static readonly RULE_projectStatement = 118;
312
+ static readonly RULE_partitionByStatement = 119;
313
+ static readonly RULE_groupedByStatement = 120;
314
+ static readonly RULE_orderByStatement = 121;
315
+ static readonly RULE_ordering = 122;
316
+ static readonly RULE_orderBySpec = 123;
317
+ static readonly RULE_limitStatement = 124;
318
+ static readonly RULE_bySpec = 125;
319
+ static readonly RULE_topStatement = 126;
320
+ static readonly RULE_indexElement = 127;
321
+ static readonly RULE_indexFields = 128;
322
+ static readonly RULE_indexStatement = 129;
323
+ static readonly RULE_sampleStatement = 130;
324
+ static readonly RULE_timezoneStatement = 131;
325
+ static readonly RULE_queryAnnotation = 132;
326
+ static readonly RULE_sampleSpec = 133;
327
+ static readonly RULE_aggregate = 134;
328
+ static readonly RULE_malloyType = 135;
329
+ static readonly RULE_malloyBasicType = 136;
330
+ static readonly RULE_malloyRecordType = 137;
331
+ static readonly RULE_malloyRecordField = 138;
332
+ static readonly RULE_compareOp = 139;
333
+ static readonly RULE_string = 140;
334
+ static readonly RULE_shortString = 141;
335
+ static readonly RULE_rawString = 142;
336
+ static readonly RULE_numericLiteral = 143;
337
+ static readonly RULE_literal = 144;
338
+ static readonly RULE_dateLiteral = 145;
339
+ static readonly RULE_tablePath = 146;
340
+ static readonly RULE_tableURI = 147;
341
+ static readonly RULE_id = 148;
342
+ static readonly RULE_timeframe = 149;
343
+ static readonly RULE_ungroup = 150;
344
+ static readonly RULE_malloyOrSQLType = 151;
345
+ static readonly RULE_fieldExpr = 152;
346
+ static readonly RULE_partialCompare = 153;
347
+ static readonly RULE_partialTest = 154;
348
+ static readonly RULE_partialAllowedFieldExpr = 155;
349
+ static readonly RULE_fieldExprList = 156;
350
+ static readonly RULE_pickStatement = 157;
351
+ static readonly RULE_pick = 158;
352
+ static readonly RULE_caseStatement = 159;
353
+ static readonly RULE_caseWhen = 160;
354
+ static readonly RULE_recordKey = 161;
355
+ static readonly RULE_recordElement = 162;
356
+ static readonly RULE_argumentList = 163;
357
+ static readonly RULE_fieldNameList = 164;
358
+ static readonly RULE_fieldCollection = 165;
359
+ static readonly RULE_collectionWildCard = 166;
360
+ static readonly RULE_starQualified = 167;
361
+ static readonly RULE_taggedRef = 168;
362
+ static readonly RULE_refExpr = 169;
363
+ static readonly RULE_collectionMember = 170;
364
+ static readonly RULE_fieldPath = 171;
365
+ static readonly RULE_joinName = 172;
366
+ static readonly RULE_fieldName = 173;
367
+ static readonly RULE_sqlExploreNameRef = 174;
368
+ static readonly RULE_nameSQLBlock = 175;
369
+ static readonly RULE_connectionName = 176;
370
+ static readonly RULE_tripFilterString = 177;
371
+ static readonly RULE_tickFilterString = 178;
372
+ static readonly RULE_filterString = 179;
373
+ static readonly RULE_debugExpr = 180;
374
+ static readonly RULE_debugPartial = 181;
375
+ static readonly RULE_experimentalStatementForTesting = 182;
375
376
  static readonly ruleNames: string[];
376
377
  private static readonly _LITERAL_NAMES;
377
378
  private static readonly _SYMBOLIC_NAMES;
@@ -398,6 +399,7 @@ export declare class MalloyParser extends Parser {
398
399
  defineGivenStatement(): DefineGivenStatementContext;
399
400
  givenDefList(): GivenDefListContext;
400
401
  givenDef(): GivenDefContext;
402
+ givenModifier(): GivenModifierContext;
401
403
  givenNameDef(): GivenNameDefContext;
402
404
  givenType(): GivenTypeContext;
403
405
  topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
@@ -766,6 +768,7 @@ export declare class GivenDefContext extends ParserRuleContext {
766
768
  givenNameDef(): GivenNameDefContext;
767
769
  DOUBLECOLON(): TerminalNode;
768
770
  givenType(): GivenTypeContext;
771
+ givenModifier(): GivenModifierContext | undefined;
769
772
  isDefine(): IsDefineContext | undefined;
770
773
  fieldExpr(): FieldExprContext | undefined;
771
774
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -774,6 +777,14 @@ export declare class GivenDefContext extends ParserRuleContext {
774
777
  exitRule(listener: MalloyParserListener): void;
775
778
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
776
779
  }
780
+ export declare class GivenModifierContext extends ParserRuleContext {
781
+ id(): IdContext;
782
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
783
+ get ruleIndex(): number;
784
+ enterRule(listener: MalloyParserListener): void;
785
+ exitRule(listener: MalloyParserListener): void;
786
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
787
+ }
777
788
  export declare class GivenNameDefContext extends ParserRuleContext {
778
789
  id(): IdContext;
779
790
  constructor(parent: ParserRuleContext | undefined, invokingState: number);
@@ -2770,6 +2781,16 @@ export declare class ExprWarnInContext extends FieldExprContext {
2770
2781
  exitRule(listener: MalloyParserListener): void;
2771
2782
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
2772
2783
  }
2784
+ export declare class ExprInGivenContext extends FieldExprContext {
2785
+ fieldExpr(): FieldExprContext;
2786
+ IN(): TerminalNode;
2787
+ GIVEN_REF(): TerminalNode;
2788
+ NOT(): TerminalNode | undefined;
2789
+ constructor(ctx: FieldExprContext);
2790
+ enterRule(listener: MalloyParserListener): void;
2791
+ exitRule(listener: MalloyParserListener): void;
2792
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
2793
+ }
2773
2794
  export declare class ExprApplyContext extends FieldExprContext {
2774
2795
  fieldExpr(): FieldExprContext;
2775
2796
  QMARK(): TerminalNode;