@malloydata/malloy 0.0.43-dev230622180905 → 0.0.43-dev230622192152
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/executors/reduce-executor.js +8 -0
- package/dist/lang/ast/expressions/expr-func.js +6 -0
- package/dist/lang/ast/index.d.ts +3 -0
- package/dist/lang/ast/index.js +3 -0
- package/dist/lang/ast/query-elements/run-query.d.ts +18 -0
- package/dist/lang/ast/query-elements/run-query.js +67 -0
- package/dist/lang/ast/query-properties/extend.d.ts +5 -0
- package/dist/lang/ast/query-properties/extend.js +33 -0
- package/dist/lang/ast/types/query-extend-property.d.ts +6 -0
- package/dist/lang/ast/types/query-extend-property.js +33 -0
- package/dist/lang/ast/types/query-property.d.ts +2 -1
- package/dist/lang/ast/types/query-property.js +2 -0
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +134 -132
- package/dist/lang/lib/Malloy/MalloyLexer.js +1136 -1119
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +344 -239
- package/dist/lang/lib/Malloy/MalloyParser.js +2218 -1547
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +134 -20
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +84 -12
- package/dist/lang/malloy-to-ast.d.ts +6 -2
- package/dist/lang/malloy-to-ast.js +54 -6
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +16 -0
- package/dist/lang/test/document-symbol-walker.spec.js +7 -0
- package/dist/lang/test/parse.spec.js +49 -7
- package/package.json +1 -1
|
@@ -18,241 +18,251 @@ export declare class MalloyParser extends Parser {
|
|
|
18
18
|
static readonly DECLARE = 7;
|
|
19
19
|
static readonly DIMENSION = 8;
|
|
20
20
|
static readonly EXCEPT = 9;
|
|
21
|
-
static readonly
|
|
22
|
-
static readonly
|
|
23
|
-
static readonly
|
|
24
|
-
static readonly
|
|
25
|
-
static readonly
|
|
26
|
-
static readonly
|
|
27
|
-
static readonly
|
|
28
|
-
static readonly
|
|
29
|
-
static readonly
|
|
30
|
-
static readonly
|
|
31
|
-
static readonly
|
|
32
|
-
static readonly
|
|
33
|
-
static readonly
|
|
34
|
-
static readonly
|
|
35
|
-
static readonly
|
|
36
|
-
static readonly
|
|
37
|
-
static readonly
|
|
38
|
-
static readonly
|
|
39
|
-
static readonly
|
|
40
|
-
static readonly
|
|
41
|
-
static readonly
|
|
42
|
-
static readonly
|
|
43
|
-
static readonly
|
|
44
|
-
static readonly
|
|
45
|
-
static readonly
|
|
46
|
-
static readonly
|
|
47
|
-
static readonly
|
|
48
|
-
static readonly
|
|
49
|
-
static readonly
|
|
50
|
-
static readonly
|
|
51
|
-
static readonly
|
|
52
|
-
static readonly
|
|
53
|
-
static readonly
|
|
54
|
-
static readonly
|
|
55
|
-
static readonly
|
|
56
|
-
static readonly
|
|
57
|
-
static readonly
|
|
58
|
-
static readonly
|
|
59
|
-
static readonly
|
|
60
|
-
static readonly
|
|
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
|
|
21
|
+
static readonly EXTENDQ = 10;
|
|
22
|
+
static readonly GROUP_BY = 11;
|
|
23
|
+
static readonly HAVING = 12;
|
|
24
|
+
static readonly INDEX = 13;
|
|
25
|
+
static readonly JOIN_CROSS = 14;
|
|
26
|
+
static readonly JOIN_ONE = 15;
|
|
27
|
+
static readonly JOIN_MANY = 16;
|
|
28
|
+
static readonly LIMIT = 17;
|
|
29
|
+
static readonly MEASURE = 18;
|
|
30
|
+
static readonly NEST = 19;
|
|
31
|
+
static readonly ORDER_BY = 20;
|
|
32
|
+
static readonly PRIMARY_KEY = 21;
|
|
33
|
+
static readonly PROJECT = 22;
|
|
34
|
+
static readonly QUERY = 23;
|
|
35
|
+
static readonly RENAME = 24;
|
|
36
|
+
static readonly RUN = 25;
|
|
37
|
+
static readonly SAMPLE = 26;
|
|
38
|
+
static readonly SELECT = 27;
|
|
39
|
+
static readonly SOURCE = 28;
|
|
40
|
+
static readonly SQL = 29;
|
|
41
|
+
static readonly TOP = 30;
|
|
42
|
+
static readonly WHERE = 31;
|
|
43
|
+
static readonly TIMEZONE = 32;
|
|
44
|
+
static readonly ALL = 33;
|
|
45
|
+
static readonly AND = 34;
|
|
46
|
+
static readonly AS = 35;
|
|
47
|
+
static readonly ASC = 36;
|
|
48
|
+
static readonly AVG = 37;
|
|
49
|
+
static readonly BOOLEAN = 38;
|
|
50
|
+
static readonly BY = 39;
|
|
51
|
+
static readonly CASE = 40;
|
|
52
|
+
static readonly CAST = 41;
|
|
53
|
+
static readonly CONDITION = 42;
|
|
54
|
+
static readonly COUNT = 43;
|
|
55
|
+
static readonly DATE = 44;
|
|
56
|
+
static readonly DAY = 45;
|
|
57
|
+
static readonly DESC = 46;
|
|
58
|
+
static readonly DISTINCT = 47;
|
|
59
|
+
static readonly ELSE = 48;
|
|
60
|
+
static readonly END = 49;
|
|
61
|
+
static readonly EXCLUDE = 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 SECOND = 73;
|
|
85
|
+
static readonly STRING = 74;
|
|
86
|
+
static readonly SUM = 75;
|
|
87
|
+
static readonly TABLE = 76;
|
|
88
|
+
static readonly THEN = 77;
|
|
89
|
+
static readonly THIS = 78;
|
|
90
|
+
static readonly TIMESTAMP = 79;
|
|
91
|
+
static readonly TO = 80;
|
|
92
|
+
static readonly TRUE = 81;
|
|
93
|
+
static readonly TURTLE = 82;
|
|
94
|
+
static readonly WEEK = 83;
|
|
95
|
+
static readonly WHEN = 84;
|
|
96
|
+
static readonly WITH = 85;
|
|
97
|
+
static readonly YEAR = 86;
|
|
98
|
+
static readonly UNGROUPED = 87;
|
|
99
|
+
static readonly STRING_ESCAPE = 88;
|
|
100
|
+
static readonly HACKY_REGEX = 89;
|
|
101
|
+
static readonly STRING_LITERAL = 90;
|
|
102
|
+
static readonly AMPER = 91;
|
|
103
|
+
static readonly ARROW = 92;
|
|
104
|
+
static readonly FAT_ARROW = 93;
|
|
105
|
+
static readonly OPAREN = 94;
|
|
106
|
+
static readonly CPAREN = 95;
|
|
107
|
+
static readonly OBRACK = 96;
|
|
108
|
+
static readonly CBRACK = 97;
|
|
109
|
+
static readonly OCURLY = 98;
|
|
110
|
+
static readonly CCURLY = 99;
|
|
111
|
+
static readonly DOUBLECOLON = 100;
|
|
112
|
+
static readonly EXCLAM = 101;
|
|
113
|
+
static readonly COLON = 102;
|
|
114
|
+
static readonly COMMA = 103;
|
|
115
|
+
static readonly DOT = 104;
|
|
116
|
+
static readonly LT = 105;
|
|
117
|
+
static readonly GT = 106;
|
|
118
|
+
static readonly EQ = 107;
|
|
119
|
+
static readonly NE = 108;
|
|
120
|
+
static readonly LTE = 109;
|
|
121
|
+
static readonly GTE = 110;
|
|
122
|
+
static readonly PLUS = 111;
|
|
123
|
+
static readonly MINUS = 112;
|
|
124
|
+
static readonly STAR = 113;
|
|
125
|
+
static readonly STARSTAR = 114;
|
|
126
|
+
static readonly SLASH = 115;
|
|
127
|
+
static readonly BAR = 116;
|
|
128
|
+
static readonly SEMI = 117;
|
|
129
|
+
static readonly NOT_MATCH = 118;
|
|
130
|
+
static readonly MATCH = 119;
|
|
131
|
+
static readonly PERCENT = 120;
|
|
132
|
+
static readonly DOUBLE_QMARK = 121;
|
|
133
|
+
static readonly QMARK = 122;
|
|
134
|
+
static readonly LITERAL_TIMESTAMP = 123;
|
|
135
|
+
static readonly LITERAL_HOUR = 124;
|
|
136
|
+
static readonly LITERAL_DAY = 125;
|
|
137
|
+
static readonly LITERAL_QUARTER = 126;
|
|
138
|
+
static readonly LITERAL_MONTH = 127;
|
|
139
|
+
static readonly LITERAL_WEEK = 128;
|
|
140
|
+
static readonly LITERAL_YEAR = 129;
|
|
141
|
+
static readonly IDENTIFIER = 130;
|
|
142
|
+
static readonly PERCENT_LITERAL = 131;
|
|
143
|
+
static readonly INTEGER_LITERAL = 132;
|
|
144
|
+
static readonly NUMERIC_LITERAL = 133;
|
|
145
|
+
static readonly OBJECT_NAME_LITERAL = 134;
|
|
146
|
+
static readonly BLOCK_COMMENT = 135;
|
|
147
|
+
static readonly COMMENT_TO_EOL = 136;
|
|
148
|
+
static readonly WHITE_SPACE = 137;
|
|
149
|
+
static readonly SQL_BEGIN = 138;
|
|
150
|
+
static readonly CLOSE_CODE = 139;
|
|
151
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 140;
|
|
152
|
+
static readonly UNEXPECTED_CHAR = 141;
|
|
153
|
+
static readonly OPEN_CODE = 142;
|
|
154
|
+
static readonly SQL_END = 143;
|
|
153
155
|
static readonly RULE_malloyDocument = 0;
|
|
154
156
|
static readonly RULE_malloyStatement = 1;
|
|
155
157
|
static readonly RULE_defineSourceStatement = 2;
|
|
156
158
|
static readonly RULE_defineQuery = 3;
|
|
157
159
|
static readonly RULE_topLevelAnonQueryDef = 4;
|
|
158
|
-
static readonly
|
|
159
|
-
static readonly
|
|
160
|
-
static readonly
|
|
161
|
-
static readonly
|
|
162
|
-
static readonly
|
|
163
|
-
static readonly
|
|
164
|
-
static readonly
|
|
165
|
-
static readonly
|
|
166
|
-
static readonly
|
|
167
|
-
static readonly
|
|
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
|
|
160
|
+
static readonly RULE_runStatement = 5;
|
|
161
|
+
static readonly RULE_defineSQLStatement = 6;
|
|
162
|
+
static readonly RULE_sqlBlock = 7;
|
|
163
|
+
static readonly RULE_blockSQLDef = 8;
|
|
164
|
+
static readonly RULE_sqlString = 9;
|
|
165
|
+
static readonly RULE_sqlInterpolation = 10;
|
|
166
|
+
static readonly RULE_importStatement = 11;
|
|
167
|
+
static readonly RULE_importURL = 12;
|
|
168
|
+
static readonly RULE_topLevelQueryDefs = 13;
|
|
169
|
+
static readonly RULE_topLevelQueryDef = 14;
|
|
170
|
+
static readonly RULE_refineOperator = 15;
|
|
171
|
+
static readonly RULE_query = 16;
|
|
172
|
+
static readonly RULE_pipelineFromName = 17;
|
|
173
|
+
static readonly RULE_firstSegment = 18;
|
|
174
|
+
static readonly RULE_pipeElement = 19;
|
|
175
|
+
static readonly RULE_exploreTable = 20;
|
|
176
|
+
static readonly RULE_queryProperties = 21;
|
|
177
|
+
static readonly RULE_filterShortcut = 22;
|
|
178
|
+
static readonly RULE_exploreQueryName = 23;
|
|
179
|
+
static readonly RULE_queryName = 24;
|
|
180
|
+
static readonly RULE_sourcePropertyList = 25;
|
|
181
|
+
static readonly RULE_sourceDefinition = 26;
|
|
182
|
+
static readonly RULE_explore = 27;
|
|
183
|
+
static readonly RULE_exploreSource = 28;
|
|
184
|
+
static readonly RULE_sourceNameDef = 29;
|
|
185
|
+
static readonly RULE_sourceID = 30;
|
|
186
|
+
static readonly RULE_exploreProperties = 31;
|
|
187
|
+
static readonly RULE_exploreStatement = 32;
|
|
188
|
+
static readonly RULE_defDimensions = 33;
|
|
189
|
+
static readonly RULE_defMeasures = 34;
|
|
190
|
+
static readonly RULE_renameList = 35;
|
|
191
|
+
static readonly RULE_exploreRenameDef = 36;
|
|
192
|
+
static readonly RULE_defList = 37;
|
|
193
|
+
static readonly RULE_fieldDef = 38;
|
|
194
|
+
static readonly RULE_fieldNameDef = 39;
|
|
195
|
+
static readonly RULE_joinNameDef = 40;
|
|
196
|
+
static readonly RULE_declareStatement = 41;
|
|
197
|
+
static readonly RULE_joinStatement = 42;
|
|
198
|
+
static readonly RULE_queryExtend = 43;
|
|
199
|
+
static readonly RULE_queryExtendStatement = 44;
|
|
200
|
+
static readonly RULE_queryExtendStatementList = 45;
|
|
201
|
+
static readonly RULE_joinList = 46;
|
|
202
|
+
static readonly RULE_joinDef = 47;
|
|
203
|
+
static readonly RULE_joinExpression = 48;
|
|
204
|
+
static readonly RULE_filterStatement = 49;
|
|
205
|
+
static readonly RULE_filteredBy = 50;
|
|
206
|
+
static readonly RULE_filterClauseList = 51;
|
|
207
|
+
static readonly RULE_whereStatement = 52;
|
|
208
|
+
static readonly RULE_havingStatement = 53;
|
|
209
|
+
static readonly RULE_subQueryDefList = 54;
|
|
210
|
+
static readonly RULE_exploreQueryNameDef = 55;
|
|
211
|
+
static readonly RULE_exploreQueryDef = 56;
|
|
212
|
+
static readonly RULE_queryStatement = 57;
|
|
213
|
+
static readonly RULE_queryJoinStatement = 58;
|
|
214
|
+
static readonly RULE_groupByStatement = 59;
|
|
215
|
+
static readonly RULE_queryFieldList = 60;
|
|
216
|
+
static readonly RULE_queryFieldEntry = 61;
|
|
217
|
+
static readonly RULE_nestStatement = 62;
|
|
218
|
+
static readonly RULE_nestedQueryList = 63;
|
|
219
|
+
static readonly RULE_nestEntry = 64;
|
|
220
|
+
static readonly RULE_aggregateStatement = 65;
|
|
221
|
+
static readonly RULE_calculateStatement = 66;
|
|
222
|
+
static readonly RULE_projectStatement = 67;
|
|
223
|
+
static readonly RULE_orderByStatement = 68;
|
|
224
|
+
static readonly RULE_ordering = 69;
|
|
225
|
+
static readonly RULE_orderBySpec = 70;
|
|
226
|
+
static readonly RULE_limitStatement = 71;
|
|
227
|
+
static readonly RULE_bySpec = 72;
|
|
228
|
+
static readonly RULE_topStatement = 73;
|
|
229
|
+
static readonly RULE_indexElement = 74;
|
|
230
|
+
static readonly RULE_indexFields = 75;
|
|
231
|
+
static readonly RULE_indexStatement = 76;
|
|
232
|
+
static readonly RULE_sampleStatement = 77;
|
|
233
|
+
static readonly RULE_timezoneStatement = 78;
|
|
234
|
+
static readonly RULE_timezoneName = 79;
|
|
235
|
+
static readonly RULE_sampleSpec = 80;
|
|
236
|
+
static readonly RULE_aggregate = 81;
|
|
237
|
+
static readonly RULE_malloyType = 82;
|
|
238
|
+
static readonly RULE_compareOp = 83;
|
|
239
|
+
static readonly RULE_literal = 84;
|
|
240
|
+
static readonly RULE_dateLiteral = 85;
|
|
241
|
+
static readonly RULE_tableName = 86;
|
|
242
|
+
static readonly RULE_id = 87;
|
|
243
|
+
static readonly RULE_timeframe = 88;
|
|
244
|
+
static readonly RULE_ungroup = 89;
|
|
245
|
+
static readonly RULE_fieldExpr = 90;
|
|
246
|
+
static readonly RULE_partialAllowedFieldExpr = 91;
|
|
247
|
+
static readonly RULE_pickStatement = 92;
|
|
248
|
+
static readonly RULE_pick = 93;
|
|
249
|
+
static readonly RULE_argumentList = 94;
|
|
250
|
+
static readonly RULE_fieldNameList = 95;
|
|
251
|
+
static readonly RULE_fieldCollection = 96;
|
|
252
|
+
static readonly RULE_collectionWildCard = 97;
|
|
253
|
+
static readonly RULE_collectionMember = 98;
|
|
254
|
+
static readonly RULE_fieldPath = 99;
|
|
255
|
+
static readonly RULE_joinName = 100;
|
|
256
|
+
static readonly RULE_fieldName = 101;
|
|
257
|
+
static readonly RULE_justExpr = 102;
|
|
258
|
+
static readonly RULE_json = 103;
|
|
259
|
+
static readonly RULE_jsonValue = 104;
|
|
260
|
+
static readonly RULE_jsonObject = 105;
|
|
261
|
+
static readonly RULE_jsonProperty = 106;
|
|
262
|
+
static readonly RULE_jsonArray = 107;
|
|
263
|
+
static readonly RULE_sqlExploreNameRef = 108;
|
|
264
|
+
static readonly RULE_nameSQLBlock = 109;
|
|
265
|
+
static readonly RULE_connectionName = 110;
|
|
256
266
|
static readonly ruleNames: string[];
|
|
257
267
|
private static readonly _LITERAL_NAMES;
|
|
258
268
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -268,6 +278,7 @@ export declare class MalloyParser extends Parser {
|
|
|
268
278
|
defineSourceStatement(): DefineSourceStatementContext;
|
|
269
279
|
defineQuery(): DefineQueryContext;
|
|
270
280
|
topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
|
|
281
|
+
runStatement(): RunStatementContext;
|
|
271
282
|
defineSQLStatement(): DefineSQLStatementContext;
|
|
272
283
|
sqlBlock(): SqlBlockContext;
|
|
273
284
|
blockSQLDef(): BlockSQLDefContext;
|
|
@@ -295,6 +306,8 @@ export declare class MalloyParser extends Parser {
|
|
|
295
306
|
sourceID(): SourceIDContext;
|
|
296
307
|
exploreProperties(): ExplorePropertiesContext;
|
|
297
308
|
exploreStatement(): ExploreStatementContext;
|
|
309
|
+
defDimensions(): DefDimensionsContext;
|
|
310
|
+
defMeasures(): DefMeasuresContext;
|
|
298
311
|
renameList(): RenameListContext;
|
|
299
312
|
exploreRenameDef(): ExploreRenameDefContext;
|
|
300
313
|
defList(): DefListContext;
|
|
@@ -303,6 +316,9 @@ export declare class MalloyParser extends Parser {
|
|
|
303
316
|
joinNameDef(): JoinNameDefContext;
|
|
304
317
|
declareStatement(): DeclareStatementContext;
|
|
305
318
|
joinStatement(): JoinStatementContext;
|
|
319
|
+
queryExtend(): QueryExtendContext;
|
|
320
|
+
queryExtendStatement(): QueryExtendStatementContext;
|
|
321
|
+
queryExtendStatementList(): QueryExtendStatementListContext;
|
|
306
322
|
joinList(): JoinListContext;
|
|
307
323
|
joinDef(): JoinDefContext;
|
|
308
324
|
joinExpression(): JoinExpressionContext;
|
|
@@ -315,6 +331,7 @@ export declare class MalloyParser extends Parser {
|
|
|
315
331
|
exploreQueryNameDef(): ExploreQueryNameDefContext;
|
|
316
332
|
exploreQueryDef(): ExploreQueryDefContext;
|
|
317
333
|
queryStatement(): QueryStatementContext;
|
|
334
|
+
queryJoinStatement(): QueryJoinStatementContext;
|
|
318
335
|
groupByStatement(): GroupByStatementContext;
|
|
319
336
|
queryFieldList(): QueryFieldListContext;
|
|
320
337
|
queryFieldEntry(): QueryFieldEntryContext;
|
|
@@ -335,6 +352,7 @@ export declare class MalloyParser extends Parser {
|
|
|
335
352
|
indexStatement(): IndexStatementContext;
|
|
336
353
|
sampleStatement(): SampleStatementContext;
|
|
337
354
|
timezoneStatement(): TimezoneStatementContext;
|
|
355
|
+
timezoneName(): TimezoneNameContext;
|
|
338
356
|
sampleSpec(): SampleSpecContext;
|
|
339
357
|
aggregate(): AggregateContext;
|
|
340
358
|
malloyType(): MalloyTypeContext;
|
|
@@ -393,6 +411,7 @@ export declare class MalloyStatementContext extends ParserRuleContext {
|
|
|
393
411
|
defineSQLStatement(): DefineSQLStatementContext | undefined;
|
|
394
412
|
defineQuery(): DefineQueryContext | undefined;
|
|
395
413
|
importStatement(): ImportStatementContext | undefined;
|
|
414
|
+
runStatement(): RunStatementContext | undefined;
|
|
396
415
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
397
416
|
get ruleIndex(): number;
|
|
398
417
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -437,6 +456,27 @@ export declare class TopLevelAnonQueryDefContext extends ParserRuleContext {
|
|
|
437
456
|
exitRule(listener: MalloyParserListener): void;
|
|
438
457
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
439
458
|
}
|
|
459
|
+
export declare class RunStatementContext extends ParserRuleContext {
|
|
460
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
461
|
+
get ruleIndex(): number;
|
|
462
|
+
copyFrom(ctx: RunStatementContext): void;
|
|
463
|
+
}
|
|
464
|
+
export declare class RunStatementDefContext extends RunStatementContext {
|
|
465
|
+
RUN(): TerminalNode;
|
|
466
|
+
topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
|
|
467
|
+
constructor(ctx: RunStatementContext);
|
|
468
|
+
enterRule(listener: MalloyParserListener): void;
|
|
469
|
+
exitRule(listener: MalloyParserListener): void;
|
|
470
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
471
|
+
}
|
|
472
|
+
export declare class RunStatementRefContext extends RunStatementContext {
|
|
473
|
+
RUN(): TerminalNode;
|
|
474
|
+
queryName(): QueryNameContext;
|
|
475
|
+
constructor(ctx: RunStatementContext);
|
|
476
|
+
enterRule(listener: MalloyParserListener): void;
|
|
477
|
+
exitRule(listener: MalloyParserListener): void;
|
|
478
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
479
|
+
}
|
|
440
480
|
export declare class DefineSQLStatementContext extends ParserRuleContext {
|
|
441
481
|
SQL(): TerminalNode;
|
|
442
482
|
sqlBlock(): SqlBlockContext;
|
|
@@ -749,17 +789,15 @@ export declare class ExploreStatementContext extends ParserRuleContext {
|
|
|
749
789
|
get ruleIndex(): number;
|
|
750
790
|
copyFrom(ctx: ExploreStatementContext): void;
|
|
751
791
|
}
|
|
752
|
-
export declare class
|
|
753
|
-
|
|
754
|
-
defList(): DefListContext;
|
|
792
|
+
export declare class DefExploreDimension_stubContext extends ExploreStatementContext {
|
|
793
|
+
defDimensions(): DefDimensionsContext;
|
|
755
794
|
constructor(ctx: ExploreStatementContext);
|
|
756
795
|
enterRule(listener: MalloyParserListener): void;
|
|
757
796
|
exitRule(listener: MalloyParserListener): void;
|
|
758
797
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
759
798
|
}
|
|
760
|
-
export declare class
|
|
761
|
-
|
|
762
|
-
defList(): DefListContext;
|
|
799
|
+
export declare class DefExploreMeasure_stubContext extends ExploreStatementContext {
|
|
800
|
+
defMeasures(): DefMeasuresContext;
|
|
763
801
|
constructor(ctx: ExploreStatementContext);
|
|
764
802
|
enterRule(listener: MalloyParserListener): void;
|
|
765
803
|
exitRule(listener: MalloyParserListener): void;
|
|
@@ -779,7 +817,7 @@ export declare class DefJoin_stubContext extends ExploreStatementContext {
|
|
|
779
817
|
exitRule(listener: MalloyParserListener): void;
|
|
780
818
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
781
819
|
}
|
|
782
|
-
export declare class
|
|
820
|
+
export declare class DefExploreWhere_stubContext extends ExploreStatementContext {
|
|
783
821
|
whereStatement(): WhereStatementContext;
|
|
784
822
|
constructor(ctx: ExploreStatementContext);
|
|
785
823
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -811,7 +849,7 @@ export declare class DefExploreEditFieldContext extends ExploreStatementContext
|
|
|
811
849
|
exitRule(listener: MalloyParserListener): void;
|
|
812
850
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
813
851
|
}
|
|
814
|
-
export declare class
|
|
852
|
+
export declare class DefExploreQuery_stubContext extends ExploreStatementContext {
|
|
815
853
|
QUERY(): TerminalNode;
|
|
816
854
|
subQueryDefList(): SubQueryDefListContext;
|
|
817
855
|
constructor(ctx: ExploreStatementContext);
|
|
@@ -826,6 +864,24 @@ export declare class DefExploreTimezoneContext extends ExploreStatementContext {
|
|
|
826
864
|
exitRule(listener: MalloyParserListener): void;
|
|
827
865
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
828
866
|
}
|
|
867
|
+
export declare class DefDimensionsContext extends ParserRuleContext {
|
|
868
|
+
DIMENSION(): TerminalNode;
|
|
869
|
+
defList(): DefListContext;
|
|
870
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
871
|
+
get ruleIndex(): number;
|
|
872
|
+
enterRule(listener: MalloyParserListener): void;
|
|
873
|
+
exitRule(listener: MalloyParserListener): void;
|
|
874
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
875
|
+
}
|
|
876
|
+
export declare class DefMeasuresContext extends ParserRuleContext {
|
|
877
|
+
MEASURE(): TerminalNode;
|
|
878
|
+
defList(): DefListContext;
|
|
879
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
880
|
+
get ruleIndex(): number;
|
|
881
|
+
enterRule(listener: MalloyParserListener): void;
|
|
882
|
+
exitRule(listener: MalloyParserListener): void;
|
|
883
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
884
|
+
}
|
|
829
885
|
export declare class RenameListContext extends ParserRuleContext {
|
|
830
886
|
exploreRenameDef(): ExploreRenameDefContext[];
|
|
831
887
|
exploreRenameDef(i: number): ExploreRenameDefContext;
|
|
@@ -922,6 +978,38 @@ export declare class DefJoinCrossContext extends JoinStatementContext {
|
|
|
922
978
|
exitRule(listener: MalloyParserListener): void;
|
|
923
979
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
924
980
|
}
|
|
981
|
+
export declare class QueryExtendContext extends ParserRuleContext {
|
|
982
|
+
EXTENDQ(): TerminalNode;
|
|
983
|
+
queryExtendStatementList(): QueryExtendStatementListContext;
|
|
984
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
985
|
+
get ruleIndex(): number;
|
|
986
|
+
enterRule(listener: MalloyParserListener): void;
|
|
987
|
+
exitRule(listener: MalloyParserListener): void;
|
|
988
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
989
|
+
}
|
|
990
|
+
export declare class QueryExtendStatementContext extends ParserRuleContext {
|
|
991
|
+
defDimensions(): DefDimensionsContext | undefined;
|
|
992
|
+
defMeasures(): DefMeasuresContext | undefined;
|
|
993
|
+
joinStatement(): JoinStatementContext | undefined;
|
|
994
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
995
|
+
get ruleIndex(): number;
|
|
996
|
+
enterRule(listener: MalloyParserListener): void;
|
|
997
|
+
exitRule(listener: MalloyParserListener): void;
|
|
998
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
999
|
+
}
|
|
1000
|
+
export declare class QueryExtendStatementListContext extends ParserRuleContext {
|
|
1001
|
+
OCURLY(): TerminalNode;
|
|
1002
|
+
CCURLY(): TerminalNode;
|
|
1003
|
+
queryExtendStatement(): QueryExtendStatementContext[];
|
|
1004
|
+
queryExtendStatement(i: number): QueryExtendStatementContext;
|
|
1005
|
+
SEMI(): TerminalNode[];
|
|
1006
|
+
SEMI(i: number): TerminalNode;
|
|
1007
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1008
|
+
get ruleIndex(): number;
|
|
1009
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1010
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1011
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1012
|
+
}
|
|
925
1013
|
export declare class JoinListContext extends ParserRuleContext {
|
|
926
1014
|
joinDef(): JoinDefContext[];
|
|
927
1015
|
joinDef(i: number): JoinDefContext;
|
|
@@ -1058,7 +1146,8 @@ export declare class ExploreQueryDefContext extends ParserRuleContext {
|
|
|
1058
1146
|
export declare class QueryStatementContext extends ParserRuleContext {
|
|
1059
1147
|
groupByStatement(): GroupByStatementContext | undefined;
|
|
1060
1148
|
declareStatement(): DeclareStatementContext | undefined;
|
|
1061
|
-
|
|
1149
|
+
queryJoinStatement(): QueryJoinStatementContext | undefined;
|
|
1150
|
+
queryExtend(): QueryExtendContext | undefined;
|
|
1062
1151
|
projectStatement(): ProjectStatementContext | undefined;
|
|
1063
1152
|
indexStatement(): IndexStatementContext | undefined;
|
|
1064
1153
|
aggregateStatement(): AggregateStatementContext | undefined;
|
|
@@ -1077,6 +1166,14 @@ export declare class QueryStatementContext extends ParserRuleContext {
|
|
|
1077
1166
|
exitRule(listener: MalloyParserListener): void;
|
|
1078
1167
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1079
1168
|
}
|
|
1169
|
+
export declare class QueryJoinStatementContext extends ParserRuleContext {
|
|
1170
|
+
joinStatement(): JoinStatementContext;
|
|
1171
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1172
|
+
get ruleIndex(): number;
|
|
1173
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1174
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1175
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1176
|
+
}
|
|
1080
1177
|
export declare class GroupByStatementContext extends ParserRuleContext {
|
|
1081
1178
|
GROUP_BY(): TerminalNode;
|
|
1082
1179
|
queryFieldList(): QueryFieldListContext;
|
|
@@ -1280,6 +1377,14 @@ export declare class SampleStatementContext extends ParserRuleContext {
|
|
|
1280
1377
|
}
|
|
1281
1378
|
export declare class TimezoneStatementContext extends ParserRuleContext {
|
|
1282
1379
|
TIMEZONE(): TerminalNode;
|
|
1380
|
+
timezoneName(): TimezoneNameContext;
|
|
1381
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1382
|
+
get ruleIndex(): number;
|
|
1383
|
+
enterRule(listener: MalloyParserListener): void;
|
|
1384
|
+
exitRule(listener: MalloyParserListener): void;
|
|
1385
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1386
|
+
}
|
|
1387
|
+
export declare class TimezoneNameContext extends ParserRuleContext {
|
|
1283
1388
|
STRING_LITERAL(): TerminalNode;
|
|
1284
1389
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1285
1390
|
get ruleIndex(): number;
|