@malloydata/malloy 0.0.11-dev221202152346 → 0.0.11
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/index.d.ts +1 -1
- package/dist/lang/ast/ast-main.d.ts +61 -21
- package/dist/lang/ast/ast-main.js +170 -92
- package/dist/lang/index.d.ts +1 -1
- package/dist/lang/lib/Malloy/MalloyLexer.d.ts +135 -128
- package/dist/lang/lib/Malloy/MalloyLexer.js +1124 -1069
- package/dist/lang/lib/Malloy/MalloyListener.d.ts +2026 -0
- package/dist/lang/lib/Malloy/MalloyListener.js +4 -0
- package/dist/lang/lib/Malloy/MalloyParser.d.ts +276 -232
- package/dist/lang/lib/Malloy/MalloyParser.js +1719 -1456
- package/dist/lang/lib/Malloy/MalloyParserListener.d.ts +48 -15
- package/dist/lang/lib/Malloy/MalloyParserVisitor.d.ts +30 -9
- package/dist/lang/lib/Malloy/MalloyVisitor.d.ts +1276 -0
- package/dist/lang/lib/Malloy/MalloyVisitor.js +4 -0
- package/dist/lang/parse-malloy.d.ts +14 -23
- package/dist/lang/parse-malloy.js +37 -51
- package/dist/lang/parse-to-ast.d.ts +3 -2
- package/dist/lang/parse-to-ast.js +45 -13
- package/dist/lang/parse-tree-walkers/document-symbol-walker.js +2 -2
- package/dist/lang/test/parse.spec.d.ts +5 -3
- package/dist/lang/test/parse.spec.js +267 -181
- package/dist/malloy.d.ts +20 -20
- package/dist/malloy.js +73 -75
- package/dist/md5.d.ts +1 -0
- package/dist/md5.js +30 -0
- package/dist/model/malloy_query.js +1 -1
- package/dist/model/malloy_types.d.ts +19 -9
- package/dist/model/malloy_types.js +10 -1
- package/dist/model/sql_block.d.ts +5 -9
- package/dist/model/sql_block.js +21 -13
- package/dist/runtime_types.d.ts +8 -23
- package/package.json +1 -1
|
@@ -12,134 +12,139 @@ export declare class MalloyParser extends Parser {
|
|
|
12
12
|
static readonly JSON_STRING = 1;
|
|
13
13
|
static readonly ACCEPT = 2;
|
|
14
14
|
static readonly AGGREGATE = 3;
|
|
15
|
-
static readonly
|
|
16
|
-
static readonly
|
|
17
|
-
static readonly
|
|
18
|
-
static readonly
|
|
19
|
-
static readonly
|
|
20
|
-
static readonly
|
|
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
|
|
15
|
+
static readonly CONNECTION = 4;
|
|
16
|
+
static readonly DECLARE = 5;
|
|
17
|
+
static readonly DIMENSION = 6;
|
|
18
|
+
static readonly EXCEPT = 7;
|
|
19
|
+
static readonly EXPLORE = 8;
|
|
20
|
+
static readonly GROUP_BY = 9;
|
|
21
|
+
static readonly HAVING = 10;
|
|
22
|
+
static readonly INDEX = 11;
|
|
23
|
+
static readonly JOIN_CROSS = 12;
|
|
24
|
+
static readonly JOIN_ONE = 13;
|
|
25
|
+
static readonly JOIN_MANY = 14;
|
|
26
|
+
static readonly LIMIT = 15;
|
|
27
|
+
static readonly MEASURE = 16;
|
|
28
|
+
static readonly NEST = 17;
|
|
29
|
+
static readonly ORDER_BY = 18;
|
|
30
|
+
static readonly PRIMARY_KEY = 19;
|
|
31
|
+
static readonly PROJECT = 20;
|
|
32
|
+
static readonly QUERY = 21;
|
|
33
|
+
static readonly RENAME = 22;
|
|
34
|
+
static readonly SAMPLE = 23;
|
|
35
|
+
static readonly SELECT = 24;
|
|
36
|
+
static readonly SOURCE = 25;
|
|
37
|
+
static readonly SQL = 26;
|
|
38
|
+
static readonly FANCYSQL = 27;
|
|
39
|
+
static readonly TOP = 28;
|
|
40
|
+
static readonly WHERE = 29;
|
|
41
|
+
static readonly ALL = 30;
|
|
42
|
+
static readonly AND = 31;
|
|
43
|
+
static readonly AS = 32;
|
|
44
|
+
static readonly ASC = 33;
|
|
45
|
+
static readonly AVG = 34;
|
|
46
|
+
static readonly BOOLEAN = 35;
|
|
47
|
+
static readonly BY = 36;
|
|
48
|
+
static readonly CASE = 37;
|
|
49
|
+
static readonly CAST = 38;
|
|
50
|
+
static readonly CONDITION = 39;
|
|
51
|
+
static readonly COUNT = 40;
|
|
52
|
+
static readonly DATE = 41;
|
|
53
|
+
static readonly DAY = 42;
|
|
54
|
+
static readonly DESC = 43;
|
|
55
|
+
static readonly DISTINCT = 44;
|
|
56
|
+
static readonly ELSE = 45;
|
|
57
|
+
static readonly END = 46;
|
|
58
|
+
static readonly EXCLUDE = 47;
|
|
59
|
+
static readonly FALSE = 48;
|
|
60
|
+
static readonly FOR = 49;
|
|
61
|
+
static readonly FROM = 50;
|
|
62
|
+
static readonly FROM_SQL = 51;
|
|
63
|
+
static readonly HAS = 52;
|
|
64
|
+
static readonly HOUR = 53;
|
|
65
|
+
static readonly IMPORT = 54;
|
|
66
|
+
static readonly IS = 55;
|
|
67
|
+
static readonly JSON = 56;
|
|
68
|
+
static readonly LAST = 57;
|
|
69
|
+
static readonly MAX = 58;
|
|
70
|
+
static readonly MIN = 59;
|
|
71
|
+
static readonly MINUTE = 60;
|
|
72
|
+
static readonly MONTH = 61;
|
|
73
|
+
static readonly NOT = 62;
|
|
74
|
+
static readonly NOW = 63;
|
|
75
|
+
static readonly NULL = 64;
|
|
76
|
+
static readonly NUMBER = 65;
|
|
77
|
+
static readonly ON = 66;
|
|
78
|
+
static readonly OR = 67;
|
|
79
|
+
static readonly PICK = 68;
|
|
80
|
+
static readonly QMARK = 69;
|
|
81
|
+
static readonly QUARTER = 70;
|
|
82
|
+
static readonly SECOND = 71;
|
|
83
|
+
static readonly STRING = 72;
|
|
84
|
+
static readonly SUM = 73;
|
|
85
|
+
static readonly TABLE = 74;
|
|
86
|
+
static readonly THEN = 75;
|
|
87
|
+
static readonly THIS = 76;
|
|
88
|
+
static readonly TIMESTAMP = 77;
|
|
89
|
+
static readonly TO = 78;
|
|
90
|
+
static readonly TRUE = 79;
|
|
91
|
+
static readonly TURTLE = 80;
|
|
92
|
+
static readonly WEEK = 81;
|
|
93
|
+
static readonly WHEN = 82;
|
|
94
|
+
static readonly WITH = 83;
|
|
95
|
+
static readonly YEAR = 84;
|
|
96
|
+
static readonly UNGROUPED = 85;
|
|
97
|
+
static readonly STRING_ESCAPE = 86;
|
|
98
|
+
static readonly HACKY_REGEX = 87;
|
|
99
|
+
static readonly STRING_LITERAL = 88;
|
|
100
|
+
static readonly AMPER = 89;
|
|
101
|
+
static readonly ARROW = 90;
|
|
102
|
+
static readonly FAT_ARROW = 91;
|
|
103
|
+
static readonly OPAREN = 92;
|
|
104
|
+
static readonly CPAREN = 93;
|
|
105
|
+
static readonly OBRACK = 94;
|
|
106
|
+
static readonly CBRACK = 95;
|
|
107
|
+
static readonly OCURLY = 96;
|
|
108
|
+
static readonly CCURLY = 97;
|
|
109
|
+
static readonly DOUBLECOLON = 98;
|
|
110
|
+
static readonly COLON = 99;
|
|
111
|
+
static readonly COMMA = 100;
|
|
112
|
+
static readonly DOT = 101;
|
|
113
|
+
static readonly LT = 102;
|
|
114
|
+
static readonly GT = 103;
|
|
115
|
+
static readonly EQ = 104;
|
|
116
|
+
static readonly NE = 105;
|
|
117
|
+
static readonly LTE = 106;
|
|
118
|
+
static readonly GTE = 107;
|
|
119
|
+
static readonly PLUS = 108;
|
|
120
|
+
static readonly MINUS = 109;
|
|
121
|
+
static readonly STAR = 110;
|
|
122
|
+
static readonly STARSTAR = 111;
|
|
123
|
+
static readonly SLASH = 112;
|
|
124
|
+
static readonly BAR = 113;
|
|
125
|
+
static readonly SEMI = 114;
|
|
126
|
+
static readonly NOT_MATCH = 115;
|
|
127
|
+
static readonly MATCH = 116;
|
|
128
|
+
static readonly LITERAL_TIMESTAMP = 117;
|
|
129
|
+
static readonly LITERAL_DAY = 118;
|
|
130
|
+
static readonly LITERAL_QUARTER = 119;
|
|
131
|
+
static readonly LITERAL_MONTH = 120;
|
|
132
|
+
static readonly LITERAL_WEEK = 121;
|
|
133
|
+
static readonly LITERAL_YEAR = 122;
|
|
134
|
+
static readonly IDENTIFIER = 123;
|
|
135
|
+
static readonly PERCENT_LITERAL = 124;
|
|
136
|
+
static readonly INTEGER_LITERAL = 125;
|
|
137
|
+
static readonly NUMERIC_LITERAL = 126;
|
|
138
|
+
static readonly OBJECT_NAME_LITERAL = 127;
|
|
139
|
+
static readonly BLOCK_COMMENT = 128;
|
|
140
|
+
static readonly COMMENT_TO_EOL = 129;
|
|
141
|
+
static readonly WHITE_SPACE = 130;
|
|
142
|
+
static readonly SQL_BEGIN = 131;
|
|
143
|
+
static readonly CLOSE_CODE = 132;
|
|
144
|
+
static readonly UNWATED_CHARS_TRAILING_NUMBERS = 133;
|
|
145
|
+
static readonly UNEXPECTED_CHAR = 134;
|
|
146
|
+
static readonly OPEN_CODE = 135;
|
|
147
|
+
static readonly SQL_END = 136;
|
|
143
148
|
static readonly RULE_malloyDocument = 0;
|
|
144
149
|
static readonly RULE_malloyStatement = 1;
|
|
145
150
|
static readonly RULE_defineExploreStatement = 2;
|
|
@@ -147,100 +152,103 @@ export declare class MalloyParser extends Parser {
|
|
|
147
152
|
static readonly RULE_defineQuery = 4;
|
|
148
153
|
static readonly RULE_topLevelAnonQueryDef = 5;
|
|
149
154
|
static readonly RULE_defineSQLStatement = 6;
|
|
150
|
-
static readonly
|
|
151
|
-
static readonly
|
|
152
|
-
static readonly
|
|
153
|
-
static readonly
|
|
154
|
-
static readonly
|
|
155
|
-
static readonly
|
|
156
|
-
static readonly
|
|
157
|
-
static readonly
|
|
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
|
|
155
|
+
static readonly RULE_sqlBlock = 7;
|
|
156
|
+
static readonly RULE_blockSQLDef = 8;
|
|
157
|
+
static readonly RULE_sqlString = 9;
|
|
158
|
+
static readonly RULE_sqlInterpolation = 10;
|
|
159
|
+
static readonly RULE_importStatement = 11;
|
|
160
|
+
static readonly RULE_importURL = 12;
|
|
161
|
+
static readonly RULE_topLevelQueryDefs = 13;
|
|
162
|
+
static readonly RULE_topLevelQueryDef = 14;
|
|
163
|
+
static readonly RULE_refineOperator = 15;
|
|
164
|
+
static readonly RULE_query = 16;
|
|
165
|
+
static readonly RULE_pipelineFromName = 17;
|
|
166
|
+
static readonly RULE_firstSegment = 18;
|
|
167
|
+
static readonly RULE_pipeElement = 19;
|
|
168
|
+
static readonly RULE_exploreTable = 20;
|
|
169
|
+
static readonly RULE_queryProperties = 21;
|
|
170
|
+
static readonly RULE_filterShortcut = 22;
|
|
171
|
+
static readonly RULE_exploreQueryName = 23;
|
|
172
|
+
static readonly RULE_queryName = 24;
|
|
173
|
+
static readonly RULE_exploreDefinitionList = 25;
|
|
174
|
+
static readonly RULE_exploreDefinition = 26;
|
|
175
|
+
static readonly RULE_explore = 27;
|
|
176
|
+
static readonly RULE_exploreSource = 28;
|
|
177
|
+
static readonly RULE_exploreNameDef = 29;
|
|
178
|
+
static readonly RULE_exploreName = 30;
|
|
179
|
+
static readonly RULE_exploreProperties = 31;
|
|
180
|
+
static readonly RULE_exploreStatement = 32;
|
|
181
|
+
static readonly RULE_renameList = 33;
|
|
182
|
+
static readonly RULE_exploreRenameDef = 34;
|
|
183
|
+
static readonly RULE_dimensionDefList = 35;
|
|
184
|
+
static readonly RULE_measureDefList = 36;
|
|
185
|
+
static readonly RULE_fieldDef = 37;
|
|
186
|
+
static readonly RULE_fieldNameDef = 38;
|
|
187
|
+
static readonly RULE_joinNameDef = 39;
|
|
188
|
+
static readonly RULE_measureDef = 40;
|
|
189
|
+
static readonly RULE_declareStatement = 41;
|
|
190
|
+
static readonly RULE_joinStatement = 42;
|
|
191
|
+
static readonly RULE_joinList = 43;
|
|
192
|
+
static readonly RULE_joinDef = 44;
|
|
193
|
+
static readonly RULE_joinExpression = 45;
|
|
194
|
+
static readonly RULE_filterStatement = 46;
|
|
195
|
+
static readonly RULE_filteredBy = 47;
|
|
196
|
+
static readonly RULE_filterClauseList = 48;
|
|
197
|
+
static readonly RULE_whereStatement = 49;
|
|
198
|
+
static readonly RULE_havingStatement = 50;
|
|
199
|
+
static readonly RULE_subQueryDefList = 51;
|
|
200
|
+
static readonly RULE_exploreQueryNameDef = 52;
|
|
201
|
+
static readonly RULE_exploreQueryDef = 53;
|
|
202
|
+
static readonly RULE_queryStatement = 54;
|
|
203
|
+
static readonly RULE_groupByStatement = 55;
|
|
204
|
+
static readonly RULE_queryFieldList = 56;
|
|
205
|
+
static readonly RULE_dimensionDef = 57;
|
|
206
|
+
static readonly RULE_queryFieldEntry = 58;
|
|
207
|
+
static readonly RULE_nestStatement = 59;
|
|
208
|
+
static readonly RULE_nestedQueryList = 60;
|
|
209
|
+
static readonly RULE_nestEntry = 61;
|
|
210
|
+
static readonly RULE_aggregateStatement = 62;
|
|
211
|
+
static readonly RULE_projectStatement = 63;
|
|
212
|
+
static readonly RULE_orderByStatement = 64;
|
|
213
|
+
static readonly RULE_ordering = 65;
|
|
214
|
+
static readonly RULE_orderBySpec = 66;
|
|
215
|
+
static readonly RULE_limitStatement = 67;
|
|
216
|
+
static readonly RULE_bySpec = 68;
|
|
217
|
+
static readonly RULE_topStatement = 69;
|
|
218
|
+
static readonly RULE_indexElement = 70;
|
|
219
|
+
static readonly RULE_indexFields = 71;
|
|
220
|
+
static readonly RULE_indexStatement = 72;
|
|
221
|
+
static readonly RULE_sampleStatement = 73;
|
|
222
|
+
static readonly RULE_sampleSpec = 74;
|
|
223
|
+
static readonly RULE_aggregate = 75;
|
|
224
|
+
static readonly RULE_malloyType = 76;
|
|
225
|
+
static readonly RULE_compareOp = 77;
|
|
226
|
+
static readonly RULE_literal = 78;
|
|
227
|
+
static readonly RULE_dateLiteral = 79;
|
|
228
|
+
static readonly RULE_tableName = 80;
|
|
229
|
+
static readonly RULE_id = 81;
|
|
230
|
+
static readonly RULE_timeframe = 82;
|
|
231
|
+
static readonly RULE_ungroup = 83;
|
|
232
|
+
static readonly RULE_fieldExpr = 84;
|
|
233
|
+
static readonly RULE_partialAllowedFieldExpr = 85;
|
|
234
|
+
static readonly RULE_pickStatement = 86;
|
|
235
|
+
static readonly RULE_pick = 87;
|
|
236
|
+
static readonly RULE_argumentList = 88;
|
|
237
|
+
static readonly RULE_fieldNameList = 89;
|
|
238
|
+
static readonly RULE_fieldCollection = 90;
|
|
239
|
+
static readonly RULE_collectionMember = 91;
|
|
240
|
+
static readonly RULE_fieldPath = 92;
|
|
241
|
+
static readonly RULE_joinName = 93;
|
|
242
|
+
static readonly RULE_fieldName = 94;
|
|
243
|
+
static readonly RULE_justExpr = 95;
|
|
244
|
+
static readonly RULE_json = 96;
|
|
245
|
+
static readonly RULE_jsonValue = 97;
|
|
246
|
+
static readonly RULE_jsonObject = 98;
|
|
247
|
+
static readonly RULE_jsonProperty = 99;
|
|
248
|
+
static readonly RULE_jsonArray = 100;
|
|
249
|
+
static readonly RULE_sqlExploreNameRef = 101;
|
|
250
|
+
static readonly RULE_nameSQLBlock = 102;
|
|
251
|
+
static readonly RULE_connectionName = 103;
|
|
244
252
|
static readonly ruleNames: string[];
|
|
245
253
|
private static readonly _LITERAL_NAMES;
|
|
246
254
|
private static readonly _SYMBOLIC_NAMES;
|
|
@@ -258,7 +266,10 @@ export declare class MalloyParser extends Parser {
|
|
|
258
266
|
defineQuery(): DefineQueryContext;
|
|
259
267
|
topLevelAnonQueryDef(): TopLevelAnonQueryDefContext;
|
|
260
268
|
defineSQLStatement(): DefineSQLStatementContext;
|
|
261
|
-
|
|
269
|
+
sqlBlock(): SqlBlockContext;
|
|
270
|
+
blockSQLDef(): BlockSQLDefContext;
|
|
271
|
+
sqlString(): SqlStringContext;
|
|
272
|
+
sqlInterpolation(): SqlInterpolationContext;
|
|
262
273
|
importStatement(): ImportStatementContext;
|
|
263
274
|
importURL(): ImportURLContext;
|
|
264
275
|
topLevelQueryDefs(): TopLevelQueryDefsContext;
|
|
@@ -351,7 +362,7 @@ export declare class MalloyParser extends Parser {
|
|
|
351
362
|
jsonProperty(): JsonPropertyContext;
|
|
352
363
|
jsonArray(): JsonArrayContext;
|
|
353
364
|
sqlExploreNameRef(): SqlExploreNameRefContext;
|
|
354
|
-
|
|
365
|
+
nameSQLBlock(): NameSQLBlockContext;
|
|
355
366
|
connectionName(): ConnectionNameContext;
|
|
356
367
|
sempred(_localctx: RuleContext, ruleIndex: number, predIndex: number): boolean;
|
|
357
368
|
private fieldExpr_sempred;
|
|
@@ -434,19 +445,52 @@ export declare class TopLevelAnonQueryDefContext extends ParserRuleContext {
|
|
|
434
445
|
}
|
|
435
446
|
export declare class DefineSQLStatementContext extends ParserRuleContext {
|
|
436
447
|
SQL(): TerminalNode;
|
|
437
|
-
|
|
448
|
+
sqlBlock(): SqlBlockContext;
|
|
449
|
+
nameSQLBlock(): NameSQLBlockContext | undefined;
|
|
450
|
+
IS(): TerminalNode | undefined;
|
|
438
451
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
439
452
|
get ruleIndex(): number;
|
|
440
453
|
enterRule(listener: MalloyParserListener): void;
|
|
441
454
|
exitRule(listener: MalloyParserListener): void;
|
|
442
455
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
443
456
|
}
|
|
444
|
-
export declare class
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
457
|
+
export declare class SqlBlockContext extends ParserRuleContext {
|
|
458
|
+
OCURLY(): TerminalNode;
|
|
459
|
+
CCURLY(): TerminalNode;
|
|
460
|
+
blockSQLDef(): BlockSQLDefContext[];
|
|
461
|
+
blockSQLDef(i: number): BlockSQLDefContext;
|
|
462
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
463
|
+
get ruleIndex(): number;
|
|
464
|
+
enterRule(listener: MalloyParserListener): void;
|
|
465
|
+
exitRule(listener: MalloyParserListener): void;
|
|
466
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
467
|
+
}
|
|
468
|
+
export declare class BlockSQLDefContext extends ParserRuleContext {
|
|
469
|
+
CONNECTION(): TerminalNode | undefined;
|
|
449
470
|
connectionName(): ConnectionNameContext | undefined;
|
|
471
|
+
SELECT(): TerminalNode | undefined;
|
|
472
|
+
sqlString(): SqlStringContext | undefined;
|
|
473
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
474
|
+
get ruleIndex(): number;
|
|
475
|
+
enterRule(listener: MalloyParserListener): void;
|
|
476
|
+
exitRule(listener: MalloyParserListener): void;
|
|
477
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
478
|
+
}
|
|
479
|
+
export declare class SqlStringContext extends ParserRuleContext {
|
|
480
|
+
SQL_BEGIN(): TerminalNode;
|
|
481
|
+
SQL_END(): TerminalNode;
|
|
482
|
+
sqlInterpolation(): SqlInterpolationContext[];
|
|
483
|
+
sqlInterpolation(i: number): SqlInterpolationContext;
|
|
484
|
+
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
485
|
+
get ruleIndex(): number;
|
|
486
|
+
enterRule(listener: MalloyParserListener): void;
|
|
487
|
+
exitRule(listener: MalloyParserListener): void;
|
|
488
|
+
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
489
|
+
}
|
|
490
|
+
export declare class SqlInterpolationContext extends ParserRuleContext {
|
|
491
|
+
OPEN_CODE(): TerminalNode;
|
|
492
|
+
query(): QueryContext;
|
|
493
|
+
CLOSE_CODE(): TerminalNode;
|
|
450
494
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
451
495
|
get ruleIndex(): number;
|
|
452
496
|
enterRule(listener: MalloyParserListener): void;
|
|
@@ -666,7 +710,7 @@ export declare class QuerySourceContext extends ExploreSourceContext {
|
|
|
666
710
|
exitRule(listener: MalloyParserListener): void;
|
|
667
711
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
668
712
|
}
|
|
669
|
-
export declare class
|
|
713
|
+
export declare class SQLSourceNameContext extends ExploreSourceContext {
|
|
670
714
|
FROM_SQL(): TerminalNode;
|
|
671
715
|
OPAREN(): TerminalNode;
|
|
672
716
|
sqlExploreNameRef(): SqlExploreNameRefContext;
|
|
@@ -1893,7 +1937,7 @@ export declare class SqlExploreNameRefContext extends ParserRuleContext {
|
|
|
1893
1937
|
exitRule(listener: MalloyParserListener): void;
|
|
1894
1938
|
accept<Result>(visitor: MalloyParserVisitor<Result>): Result;
|
|
1895
1939
|
}
|
|
1896
|
-
export declare class
|
|
1940
|
+
export declare class NameSQLBlockContext extends ParserRuleContext {
|
|
1897
1941
|
id(): IdContext;
|
|
1898
1942
|
constructor(parent: ParserRuleContext | undefined, invokingState: number);
|
|
1899
1943
|
get ruleIndex(): number;
|