@malloydata/malloy 0.0.262 → 0.0.263-dev250414184158

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.
Files changed (40) hide show
  1. package/dist/lang/ast/expressions/expr-filter-expr.d.ts +0 -3
  2. package/dist/lang/ast/expressions/expr-filter-expr.js +7 -59
  3. package/dist/lang/ast/expressions/expr-func.js +3 -0
  4. package/dist/lang/ast/expressions/pick-when.js +6 -0
  5. package/dist/lang/ast/field-space/dynamic-space.js +1 -1
  6. package/dist/lang/ast/field-space/join-space-field.js +1 -1
  7. package/dist/lang/ast/index.d.ts +1 -0
  8. package/dist/lang/ast/index.js +1 -0
  9. package/dist/lang/ast/parameters/has-parameter.d.ts +6 -3
  10. package/dist/lang/ast/parameters/has-parameter.js +28 -9
  11. package/dist/lang/ast/query-items/field-declaration.d.ts +1 -2
  12. package/dist/lang/ast/query-items/field-declaration.js +0 -4
  13. package/dist/lang/ast/source-elements/named-source.js +6 -0
  14. package/dist/lang/ast/source-properties/join.d.ts +3 -3
  15. package/dist/lang/ast/source-properties/join.js +2 -2
  16. package/dist/lang/ast/types/expression-def.d.ts +2 -1
  17. package/dist/lang/ast/types/expression-def.js +79 -17
  18. package/dist/lang/ast/types/space-param.d.ts +1 -3
  19. package/dist/lang/ast/types/space-param.js +8 -8
  20. package/dist/lang/lib/Malloy/MalloyLexer.d.ts +114 -113
  21. package/dist/lang/lib/Malloy/MalloyLexer.js +1272 -1266
  22. package/dist/lang/lib/Malloy/MalloyParser.d.ts +253 -239
  23. package/dist/lang/lib/Malloy/MalloyParser.js +2244 -2142
  24. package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +11 -0
  25. package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +7 -0
  26. package/dist/lang/malloy-to-ast.d.ts +1 -1
  27. package/dist/lang/malloy-to-ast.js +38 -12
  28. package/dist/lang/test/expr-to-str.js +3 -20
  29. package/dist/model/filter_compilers.d.ts +27 -0
  30. package/dist/model/filter_compilers.js +335 -3
  31. package/dist/model/malloy_query.d.ts +2 -1
  32. package/dist/model/malloy_query.js +45 -10
  33. package/dist/model/malloy_types.d.ts +18 -6
  34. package/dist/model/malloy_types.js +6 -2
  35. package/dist/to_stable.js +19 -5
  36. package/dist/version.d.ts +1 -1
  37. package/dist/version.js +1 -1
  38. package/package.json +4 -4
  39. package/dist/model/filter_temporal_compiler.d.ts +0 -29
  40. package/dist/model/filter_temporal_compiler.js +0 -343
@@ -65,119 +65,120 @@ export declare class MalloyParser extends Parser {
65
65
  static readonly EXCLUDE = 54;
66
66
  static readonly EXTEND = 55;
67
67
  static readonly FALSE = 56;
68
- static readonly FULL = 57;
69
- static readonly FOR = 58;
70
- static readonly FROM = 59;
71
- static readonly HAS = 60;
72
- static readonly HOUR = 61;
73
- static readonly IMPORT = 62;
74
- static readonly INCLUDE = 63;
75
- static readonly INNER = 64;
76
- static readonly IS = 65;
77
- static readonly IN = 66;
78
- static readonly INTERNAL_KW = 67;
79
- static readonly JSON = 68;
80
- static readonly LAST = 69;
81
- static readonly LEFT = 70;
82
- static readonly LIKE = 71;
83
- static readonly MAX = 72;
84
- static readonly MIN = 73;
85
- static readonly MINUTE = 74;
86
- static readonly MONTH = 75;
87
- static readonly NOT = 76;
88
- static readonly NOW = 77;
89
- static readonly NULL = 78;
90
- static readonly NUMBER = 79;
91
- static readonly ON = 80;
92
- static readonly OR = 81;
93
- static readonly PICK = 82;
94
- static readonly PRIVATE_KW = 83;
95
- static readonly PUBLIC_KW = 84;
96
- static readonly QUARTER = 85;
97
- static readonly RIGHT = 86;
98
- static readonly SECOND = 87;
99
- static readonly STRING = 88;
100
- static readonly SOURCE_KW = 89;
101
- static readonly SUM = 90;
102
- static readonly SQL = 91;
103
- static readonly TABLE = 92;
104
- static readonly THEN = 93;
105
- static readonly THIS = 94;
106
- static readonly TIMESTAMP = 95;
107
- static readonly TO = 96;
108
- static readonly TRUE = 97;
109
- static readonly TURTLE = 98;
110
- static readonly WEEK = 99;
111
- static readonly WHEN = 100;
112
- static readonly WITH = 101;
113
- static readonly YEAR = 102;
114
- static readonly UNGROUPED = 103;
115
- static readonly HACKY_REGEX = 104;
116
- static readonly RAW_SQ = 105;
117
- static readonly RAW_DQ = 106;
118
- static readonly SQ3_FILTER = 107;
119
- static readonly SQ_FILTER = 108;
120
- static readonly DQ3_FILTER = 109;
121
- static readonly DQ_FILTER = 110;
122
- static readonly BQ3_FILTER = 111;
123
- static readonly BQ_FILTER = 112;
124
- static readonly SQ_STRING = 113;
125
- static readonly DQ_STRING = 114;
126
- static readonly BQ_STRING = 115;
127
- static readonly DOC_ANNOTATION = 116;
128
- static readonly ANNOTATION = 117;
129
- static readonly AMPER = 118;
130
- static readonly ARROW = 119;
131
- static readonly FAT_ARROW = 120;
132
- static readonly OPAREN = 121;
133
- static readonly CPAREN = 122;
134
- static readonly OBRACK = 123;
135
- static readonly CBRACK = 124;
136
- static readonly OCURLY = 125;
137
- static readonly CCURLY = 126;
138
- static readonly DOUBLECOLON = 127;
139
- static readonly TRIPLECOLON = 128;
140
- static readonly EXCLAM = 129;
141
- static readonly COLON = 130;
142
- static readonly COMMA = 131;
143
- static readonly DOT = 132;
144
- static readonly LT = 133;
145
- static readonly GT = 134;
146
- static readonly EQ = 135;
147
- static readonly NE = 136;
148
- static readonly LTE = 137;
149
- static readonly GTE = 138;
150
- static readonly PLUS = 139;
151
- static readonly MINUS = 140;
152
- static readonly STAR = 141;
153
- static readonly STARSTAR = 142;
154
- static readonly SLASH = 143;
155
- static readonly BAR = 144;
156
- static readonly SEMI = 145;
157
- static readonly NOT_MATCH = 146;
158
- static readonly MATCH = 147;
159
- static readonly PERCENT = 148;
160
- static readonly DOUBLE_QMARK = 149;
161
- static readonly QMARK = 150;
162
- static readonly LITERAL_TIMESTAMP = 151;
163
- static readonly LITERAL_HOUR = 152;
164
- static readonly LITERAL_DAY = 153;
165
- static readonly LITERAL_QUARTER = 154;
166
- static readonly LITERAL_MONTH = 155;
167
- static readonly LITERAL_WEEK = 156;
168
- static readonly LITERAL_YEAR = 157;
169
- static readonly IDENTIFIER = 158;
170
- static readonly PERCENT_LITERAL = 159;
171
- static readonly NUMERIC_LITERAL = 160;
172
- static readonly INTEGER_LITERAL = 161;
173
- static readonly BLOCK_COMMENT = 162;
174
- static readonly COMMENT_TO_EOL = 163;
175
- static readonly WHITE_SPACE = 164;
176
- static readonly SQL_BEGIN = 165;
177
- static readonly UNWATED_CHARS_TRAILING_NUMBERS = 166;
178
- static readonly UNEXPECTED_CHAR = 167;
179
- static readonly OPEN_CODE = 168;
180
- static readonly SQL_END = 169;
68
+ static readonly FILTER = 57;
69
+ static readonly FULL = 58;
70
+ static readonly FOR = 59;
71
+ static readonly FROM = 60;
72
+ static readonly HAS = 61;
73
+ static readonly HOUR = 62;
74
+ static readonly IMPORT = 63;
75
+ static readonly INCLUDE = 64;
76
+ static readonly INNER = 65;
77
+ static readonly IS = 66;
78
+ static readonly IN = 67;
79
+ static readonly INTERNAL_KW = 68;
80
+ static readonly JSON = 69;
81
+ static readonly LAST = 70;
82
+ static readonly LEFT = 71;
83
+ static readonly LIKE = 72;
84
+ static readonly MAX = 73;
85
+ static readonly MIN = 74;
86
+ static readonly MINUTE = 75;
87
+ static readonly MONTH = 76;
88
+ static readonly NOT = 77;
89
+ static readonly NOW = 78;
90
+ static readonly NULL = 79;
91
+ static readonly NUMBER = 80;
92
+ static readonly ON = 81;
93
+ static readonly OR = 82;
94
+ static readonly PICK = 83;
95
+ static readonly PRIVATE_KW = 84;
96
+ static readonly PUBLIC_KW = 85;
97
+ static readonly QUARTER = 86;
98
+ static readonly RIGHT = 87;
99
+ static readonly SECOND = 88;
100
+ static readonly STRING = 89;
101
+ static readonly SOURCE_KW = 90;
102
+ static readonly SUM = 91;
103
+ static readonly SQL = 92;
104
+ static readonly TABLE = 93;
105
+ static readonly THEN = 94;
106
+ static readonly THIS = 95;
107
+ static readonly TIMESTAMP = 96;
108
+ static readonly TO = 97;
109
+ static readonly TRUE = 98;
110
+ static readonly TURTLE = 99;
111
+ static readonly WEEK = 100;
112
+ static readonly WHEN = 101;
113
+ static readonly WITH = 102;
114
+ static readonly YEAR = 103;
115
+ static readonly UNGROUPED = 104;
116
+ static readonly HACKY_REGEX = 105;
117
+ static readonly RAW_SQ = 106;
118
+ static readonly RAW_DQ = 107;
119
+ static readonly SQ3_FILTER = 108;
120
+ static readonly SQ_FILTER = 109;
121
+ static readonly DQ3_FILTER = 110;
122
+ static readonly DQ_FILTER = 111;
123
+ static readonly BQ3_FILTER = 112;
124
+ static readonly BQ_FILTER = 113;
125
+ static readonly SQ_STRING = 114;
126
+ static readonly DQ_STRING = 115;
127
+ static readonly BQ_STRING = 116;
128
+ static readonly DOC_ANNOTATION = 117;
129
+ static readonly ANNOTATION = 118;
130
+ static readonly AMPER = 119;
131
+ static readonly ARROW = 120;
132
+ static readonly FAT_ARROW = 121;
133
+ static readonly OPAREN = 122;
134
+ static readonly CPAREN = 123;
135
+ static readonly OBRACK = 124;
136
+ static readonly CBRACK = 125;
137
+ static readonly OCURLY = 126;
138
+ static readonly CCURLY = 127;
139
+ static readonly DOUBLECOLON = 128;
140
+ static readonly TRIPLECOLON = 129;
141
+ static readonly EXCLAM = 130;
142
+ static readonly COLON = 131;
143
+ static readonly COMMA = 132;
144
+ static readonly DOT = 133;
145
+ static readonly LT = 134;
146
+ static readonly GT = 135;
147
+ static readonly EQ = 136;
148
+ static readonly NE = 137;
149
+ static readonly LTE = 138;
150
+ static readonly GTE = 139;
151
+ static readonly PLUS = 140;
152
+ static readonly MINUS = 141;
153
+ static readonly STAR = 142;
154
+ static readonly STARSTAR = 143;
155
+ static readonly SLASH = 144;
156
+ static readonly BAR = 145;
157
+ static readonly SEMI = 146;
158
+ static readonly NOT_MATCH = 147;
159
+ static readonly MATCH = 148;
160
+ static readonly PERCENT = 149;
161
+ static readonly DOUBLE_QMARK = 150;
162
+ static readonly QMARK = 151;
163
+ static readonly LITERAL_TIMESTAMP = 152;
164
+ static readonly LITERAL_HOUR = 153;
165
+ static readonly LITERAL_DAY = 154;
166
+ static readonly LITERAL_QUARTER = 155;
167
+ static readonly LITERAL_MONTH = 156;
168
+ static readonly LITERAL_WEEK = 157;
169
+ static readonly LITERAL_YEAR = 158;
170
+ static readonly IDENTIFIER = 159;
171
+ static readonly PERCENT_LITERAL = 160;
172
+ static readonly NUMERIC_LITERAL = 161;
173
+ static readonly INTEGER_LITERAL = 162;
174
+ static readonly BLOCK_COMMENT = 163;
175
+ static readonly COMMENT_TO_EOL = 164;
176
+ static readonly WHITE_SPACE = 165;
177
+ static readonly SQL_BEGIN = 166;
178
+ static readonly UNWATED_CHARS_TRAILING_NUMBERS = 167;
179
+ static readonly UNEXPECTED_CHAR = 168;
180
+ static readonly OPEN_CODE = 169;
181
+ static readonly SQL_END = 170;
181
182
  static readonly RULE_malloyDocument = 0;
182
183
  static readonly RULE_malloyStatement = 1;
183
184
  static readonly RULE_defineSourceStatement = 2;
@@ -208,131 +209,132 @@ export declare class MalloyParser extends Parser {
208
209
  static readonly RULE_sourceDefinition = 27;
209
210
  static readonly RULE_sqExplore = 28;
210
211
  static readonly RULE_sourceParameters = 29;
211
- static readonly RULE_sourceParameter = 30;
212
- static readonly RULE_parameterNameDef = 31;
213
- static readonly RULE_sourceNameDef = 32;
214
- static readonly RULE_exploreProperties = 33;
215
- static readonly RULE_exploreStatement = 34;
216
- static readonly RULE_accessLabel = 35;
217
- static readonly RULE_accessModifierList = 36;
218
- static readonly RULE_defMeasures = 37;
219
- static readonly RULE_defDimensions = 38;
220
- static readonly RULE_renameList = 39;
221
- static readonly RULE_exploreRenameDef = 40;
222
- static readonly RULE_defList = 41;
223
- static readonly RULE_fieldDef = 42;
224
- static readonly RULE_fieldNameDef = 43;
225
- static readonly RULE_joinNameDef = 44;
226
- static readonly RULE_declareStatement = 45;
227
- static readonly RULE_joinStatement = 46;
228
- static readonly RULE_queryExtend = 47;
229
- static readonly RULE_modEither = 48;
230
- static readonly RULE_sourceArguments = 49;
231
- static readonly RULE_argumentId = 50;
232
- static readonly RULE_sourceArgument = 51;
233
- static readonly RULE_sqExpr = 52;
234
- static readonly RULE_includeBlock = 53;
235
- static readonly RULE_includeItem = 54;
236
- static readonly RULE_orphanedAnnotation = 55;
237
- static readonly RULE_accessLabelProp = 56;
238
- static readonly RULE_includeExceptList = 57;
239
- static readonly RULE_includeExceptListItem = 58;
240
- static readonly RULE_includeList = 59;
241
- static readonly RULE_includeField = 60;
242
- static readonly RULE_segExpr = 61;
243
- static readonly RULE_vExpr = 62;
244
- static readonly RULE_queryExtendStatement = 63;
245
- static readonly RULE_queryExtendStatementList = 64;
246
- static readonly RULE_joinList = 65;
247
- static readonly RULE_isExplore = 66;
248
- static readonly RULE_matrixOperation = 67;
249
- static readonly RULE_joinFrom = 68;
250
- static readonly RULE_joinDef = 69;
251
- static readonly RULE_joinExpression = 70;
252
- static readonly RULE_filterStatement = 71;
253
- static readonly RULE_fieldProperties = 72;
254
- static readonly RULE_aggregateOrdering = 73;
255
- static readonly RULE_aggregateOrderBySpec = 74;
256
- static readonly RULE_aggregateOrderByStatement = 75;
257
- static readonly RULE_fieldPropertyLimitStatement = 76;
258
- static readonly RULE_fieldPropertyStatement = 77;
259
- static readonly RULE_filterClauseList = 78;
260
- static readonly RULE_whereStatement = 79;
261
- static readonly RULE_havingStatement = 80;
262
- static readonly RULE_subQueryDefList = 81;
263
- static readonly RULE_exploreQueryNameDef = 82;
264
- static readonly RULE_exploreQueryDef = 83;
265
- static readonly RULE_queryStatement = 84;
266
- static readonly RULE_queryJoinStatement = 85;
267
- static readonly RULE_groupByStatement = 86;
268
- static readonly RULE_queryFieldList = 87;
269
- static readonly RULE_queryFieldEntry = 88;
270
- static readonly RULE_nestStatement = 89;
271
- static readonly RULE_nestedQueryList = 90;
272
- static readonly RULE_nestEntry = 91;
273
- static readonly RULE_aggregateStatement = 92;
274
- static readonly RULE_calculateStatement = 93;
275
- static readonly RULE_projectStatement = 94;
276
- static readonly RULE_partitionByStatement = 95;
277
- static readonly RULE_orderByStatement = 96;
278
- static readonly RULE_ordering = 97;
279
- static readonly RULE_orderBySpec = 98;
280
- static readonly RULE_limitStatement = 99;
281
- static readonly RULE_bySpec = 100;
282
- static readonly RULE_topStatement = 101;
283
- static readonly RULE_indexElement = 102;
284
- static readonly RULE_indexFields = 103;
285
- static readonly RULE_indexStatement = 104;
286
- static readonly RULE_sampleStatement = 105;
287
- static readonly RULE_timezoneStatement = 106;
288
- static readonly RULE_queryAnnotation = 107;
289
- static readonly RULE_sampleSpec = 108;
290
- static readonly RULE_aggregate = 109;
291
- static readonly RULE_malloyType = 110;
292
- static readonly RULE_compareOp = 111;
293
- static readonly RULE_string = 112;
294
- static readonly RULE_shortString = 113;
295
- static readonly RULE_rawString = 114;
296
- static readonly RULE_numericLiteral = 115;
297
- static readonly RULE_literal = 116;
298
- static readonly RULE_dateLiteral = 117;
299
- static readonly RULE_tablePath = 118;
300
- static readonly RULE_tableURI = 119;
301
- static readonly RULE_id = 120;
302
- static readonly RULE_timeframe = 121;
303
- static readonly RULE_ungroup = 122;
304
- static readonly RULE_malloyOrSQLType = 123;
305
- static readonly RULE_fieldExpr = 124;
306
- static readonly RULE_partialCompare = 125;
307
- static readonly RULE_partialTest = 126;
308
- static readonly RULE_partialAllowedFieldExpr = 127;
309
- static readonly RULE_fieldExprList = 128;
310
- static readonly RULE_pickStatement = 129;
311
- static readonly RULE_pick = 130;
312
- static readonly RULE_caseStatement = 131;
313
- static readonly RULE_caseWhen = 132;
314
- static readonly RULE_recordKey = 133;
315
- static readonly RULE_recordElement = 134;
316
- static readonly RULE_argumentList = 135;
317
- static readonly RULE_fieldNameList = 136;
318
- static readonly RULE_fieldCollection = 137;
319
- static readonly RULE_collectionWildCard = 138;
320
- static readonly RULE_starQualified = 139;
321
- static readonly RULE_taggedRef = 140;
322
- static readonly RULE_refExpr = 141;
323
- static readonly RULE_collectionMember = 142;
324
- static readonly RULE_fieldPath = 143;
325
- static readonly RULE_joinName = 144;
326
- static readonly RULE_fieldName = 145;
327
- static readonly RULE_sqlExploreNameRef = 146;
328
- static readonly RULE_nameSQLBlock = 147;
329
- static readonly RULE_connectionName = 148;
330
- static readonly RULE_tripFilterString = 149;
331
- static readonly RULE_tickFilterString = 150;
332
- static readonly RULE_filterString = 151;
333
- static readonly RULE_debugExpr = 152;
334
- static readonly RULE_debugPartial = 153;
335
- static readonly RULE_experimentalStatementForTesting = 154;
212
+ static readonly RULE_legalParamType = 30;
213
+ static readonly RULE_sourceParameter = 31;
214
+ static readonly RULE_parameterNameDef = 32;
215
+ static readonly RULE_sourceNameDef = 33;
216
+ static readonly RULE_exploreProperties = 34;
217
+ static readonly RULE_exploreStatement = 35;
218
+ static readonly RULE_accessLabel = 36;
219
+ static readonly RULE_accessModifierList = 37;
220
+ static readonly RULE_defMeasures = 38;
221
+ static readonly RULE_defDimensions = 39;
222
+ static readonly RULE_renameList = 40;
223
+ static readonly RULE_exploreRenameDef = 41;
224
+ static readonly RULE_defList = 42;
225
+ static readonly RULE_fieldDef = 43;
226
+ static readonly RULE_fieldNameDef = 44;
227
+ static readonly RULE_joinNameDef = 45;
228
+ static readonly RULE_declareStatement = 46;
229
+ static readonly RULE_joinStatement = 47;
230
+ static readonly RULE_queryExtend = 48;
231
+ static readonly RULE_modEither = 49;
232
+ static readonly RULE_sourceArguments = 50;
233
+ static readonly RULE_argumentId = 51;
234
+ static readonly RULE_sourceArgument = 52;
235
+ static readonly RULE_sqExpr = 53;
236
+ static readonly RULE_includeBlock = 54;
237
+ static readonly RULE_includeItem = 55;
238
+ static readonly RULE_orphanedAnnotation = 56;
239
+ static readonly RULE_accessLabelProp = 57;
240
+ static readonly RULE_includeExceptList = 58;
241
+ static readonly RULE_includeExceptListItem = 59;
242
+ static readonly RULE_includeList = 60;
243
+ static readonly RULE_includeField = 61;
244
+ static readonly RULE_segExpr = 62;
245
+ static readonly RULE_vExpr = 63;
246
+ static readonly RULE_queryExtendStatement = 64;
247
+ static readonly RULE_queryExtendStatementList = 65;
248
+ static readonly RULE_joinList = 66;
249
+ static readonly RULE_isExplore = 67;
250
+ static readonly RULE_matrixOperation = 68;
251
+ static readonly RULE_joinFrom = 69;
252
+ static readonly RULE_joinDef = 70;
253
+ static readonly RULE_joinExpression = 71;
254
+ static readonly RULE_filterStatement = 72;
255
+ static readonly RULE_fieldProperties = 73;
256
+ static readonly RULE_aggregateOrdering = 74;
257
+ static readonly RULE_aggregateOrderBySpec = 75;
258
+ static readonly RULE_aggregateOrderByStatement = 76;
259
+ static readonly RULE_fieldPropertyLimitStatement = 77;
260
+ static readonly RULE_fieldPropertyStatement = 78;
261
+ static readonly RULE_filterClauseList = 79;
262
+ static readonly RULE_whereStatement = 80;
263
+ static readonly RULE_havingStatement = 81;
264
+ static readonly RULE_subQueryDefList = 82;
265
+ static readonly RULE_exploreQueryNameDef = 83;
266
+ static readonly RULE_exploreQueryDef = 84;
267
+ static readonly RULE_queryStatement = 85;
268
+ static readonly RULE_queryJoinStatement = 86;
269
+ static readonly RULE_groupByStatement = 87;
270
+ static readonly RULE_queryFieldList = 88;
271
+ static readonly RULE_queryFieldEntry = 89;
272
+ static readonly RULE_nestStatement = 90;
273
+ static readonly RULE_nestedQueryList = 91;
274
+ static readonly RULE_nestEntry = 92;
275
+ static readonly RULE_aggregateStatement = 93;
276
+ static readonly RULE_calculateStatement = 94;
277
+ static readonly RULE_projectStatement = 95;
278
+ static readonly RULE_partitionByStatement = 96;
279
+ static readonly RULE_orderByStatement = 97;
280
+ static readonly RULE_ordering = 98;
281
+ static readonly RULE_orderBySpec = 99;
282
+ static readonly RULE_limitStatement = 100;
283
+ static readonly RULE_bySpec = 101;
284
+ static readonly RULE_topStatement = 102;
285
+ static readonly RULE_indexElement = 103;
286
+ static readonly RULE_indexFields = 104;
287
+ static readonly RULE_indexStatement = 105;
288
+ static readonly RULE_sampleStatement = 106;
289
+ static readonly RULE_timezoneStatement = 107;
290
+ static readonly RULE_queryAnnotation = 108;
291
+ static readonly RULE_sampleSpec = 109;
292
+ static readonly RULE_aggregate = 110;
293
+ static readonly RULE_malloyType = 111;
294
+ static readonly RULE_compareOp = 112;
295
+ static readonly RULE_string = 113;
296
+ static readonly RULE_shortString = 114;
297
+ static readonly RULE_rawString = 115;
298
+ static readonly RULE_numericLiteral = 116;
299
+ static readonly RULE_literal = 117;
300
+ static readonly RULE_dateLiteral = 118;
301
+ static readonly RULE_tablePath = 119;
302
+ static readonly RULE_tableURI = 120;
303
+ static readonly RULE_id = 121;
304
+ static readonly RULE_timeframe = 122;
305
+ static readonly RULE_ungroup = 123;
306
+ static readonly RULE_malloyOrSQLType = 124;
307
+ static readonly RULE_fieldExpr = 125;
308
+ static readonly RULE_partialCompare = 126;
309
+ static readonly RULE_partialTest = 127;
310
+ static readonly RULE_partialAllowedFieldExpr = 128;
311
+ static readonly RULE_fieldExprList = 129;
312
+ static readonly RULE_pickStatement = 130;
313
+ static readonly RULE_pick = 131;
314
+ static readonly RULE_caseStatement = 132;
315
+ static readonly RULE_caseWhen = 133;
316
+ static readonly RULE_recordKey = 134;
317
+ static readonly RULE_recordElement = 135;
318
+ static readonly RULE_argumentList = 136;
319
+ static readonly RULE_fieldNameList = 137;
320
+ static readonly RULE_fieldCollection = 138;
321
+ static readonly RULE_collectionWildCard = 139;
322
+ static readonly RULE_starQualified = 140;
323
+ static readonly RULE_taggedRef = 141;
324
+ static readonly RULE_refExpr = 142;
325
+ static readonly RULE_collectionMember = 143;
326
+ static readonly RULE_fieldPath = 144;
327
+ static readonly RULE_joinName = 145;
328
+ static readonly RULE_fieldName = 146;
329
+ static readonly RULE_sqlExploreNameRef = 147;
330
+ static readonly RULE_nameSQLBlock = 148;
331
+ static readonly RULE_connectionName = 149;
332
+ static readonly RULE_tripFilterString = 150;
333
+ static readonly RULE_tickFilterString = 151;
334
+ static readonly RULE_filterString = 152;
335
+ static readonly RULE_debugExpr = 153;
336
+ static readonly RULE_debugPartial = 154;
337
+ static readonly RULE_experimentalStatementForTesting = 155;
336
338
  static readonly ruleNames: string[];
337
339
  private static readonly _LITERAL_NAMES;
338
340
  private static readonly _SYMBOLIC_NAMES;
@@ -373,6 +375,7 @@ export declare class MalloyParser extends Parser {
373
375
  sourceDefinition(): SourceDefinitionContext;
374
376
  sqExplore(): SqExploreContext;
375
377
  sourceParameters(): SourceParametersContext;
378
+ legalParamType(): LegalParamTypeContext;
376
379
  sourceParameter(): SourceParameterContext;
377
380
  parameterNameDef(): ParameterNameDefContext;
378
381
  sourceNameDef(): SourceNameDefContext;
@@ -831,10 +834,21 @@ export declare class SourceParametersContext extends ParserRuleContext {
831
834
  exitRule(listener: MalloyParserListener): void;
832
835
  accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
833
836
  }
837
+ export declare class LegalParamTypeContext extends ParserRuleContext {
838
+ malloyType(): MalloyTypeContext;
839
+ FILTER(): TerminalNode | undefined;
840
+ LT(): TerminalNode | undefined;
841
+ GT(): TerminalNode | undefined;
842
+ constructor(parent: ParserRuleContext | undefined, invokingState: number);
843
+ get ruleIndex(): number;
844
+ enterRule(listener: MalloyParserListener): void;
845
+ exitRule(listener: MalloyParserListener): void;
846
+ accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
847
+ }
834
848
  export declare class SourceParameterContext extends ParserRuleContext {
835
849
  parameterNameDef(): ParameterNameDefContext;
836
850
  DOUBLECOLON(): TerminalNode | undefined;
837
- malloyType(): MalloyTypeContext | undefined;
851
+ legalParamType(): LegalParamTypeContext | undefined;
838
852
  IS(): TerminalNode | undefined;
839
853
  fieldExpr(): FieldExprContext | undefined;
840
854
  constructor(parent: ParserRuleContext | undefined, invokingState: number);