@cubejs-backend/schema-compiler 1.3.55 → 1.3.57
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/src/adapter/BaseQuery.d.ts.map +1 -1
- package/dist/src/adapter/BaseQuery.js +0 -4
- package/dist/src/adapter/BaseQuery.js.map +1 -1
- package/dist/src/adapter/PrestodbQuery.d.ts.map +1 -1
- package/dist/src/adapter/PrestodbQuery.js +2 -0
- package/dist/src/adapter/PrestodbQuery.js.map +1 -1
- package/dist/src/compiler/CubeSymbols.d.ts +3 -0
- package/dist/src/compiler/CubeSymbols.d.ts.map +1 -1
- package/dist/src/compiler/CubeSymbols.js.map +1 -1
- package/dist/src/compiler/CubeValidator.d.ts.map +1 -1
- package/dist/src/compiler/CubeValidator.js +8 -2
- package/dist/src/compiler/CubeValidator.js.map +1 -1
- package/dist/src/compiler/DataSchemaCompiler.d.ts +2 -1
- package/dist/src/compiler/DataSchemaCompiler.d.ts.map +1 -1
- package/dist/src/compiler/DataSchemaCompiler.js +119 -55
- package/dist/src/compiler/DataSchemaCompiler.js.map +1 -1
- package/dist/src/compiler/PrepareCompiler.d.ts.map +1 -1
- package/dist/src/compiler/PrepareCompiler.js +1 -0
- package/dist/src/compiler/PrepareCompiler.js.map +1 -1
- package/dist/src/compiler/YamlCompiler.d.ts +2 -2
- package/dist/src/compiler/YamlCompiler.d.ts.map +1 -1
- package/dist/src/compiler/YamlCompiler.js +10 -5
- package/dist/src/compiler/YamlCompiler.js.map +1 -1
- package/dist/src/compiler/transpilers/CubePropContextTranspiler.d.ts.map +1 -1
- package/dist/src/compiler/transpilers/CubePropContextTranspiler.js.map +1 -1
- package/dist/src/compiler/transpilers/IIFETranspiler.d.ts +13 -0
- package/dist/src/compiler/transpilers/IIFETranspiler.d.ts.map +1 -0
- package/dist/src/compiler/transpilers/IIFETranspiler.js +52 -0
- package/dist/src/compiler/transpilers/IIFETranspiler.js.map +1 -0
- package/dist/src/compiler/transpilers/ImportExportTranspiler.js +6 -6
- package/dist/src/compiler/transpilers/ImportExportTranspiler.js.map +1 -1
- package/dist/src/compiler/transpilers/index.d.ts +1 -0
- package/dist/src/compiler/transpilers/index.d.ts.map +1 -1
- package/dist/src/compiler/transpilers/index.js +1 -0
- package/dist/src/compiler/transpilers/index.js.map +1 -1
- package/dist/src/compiler/transpilers/transpiler_worker.js +2 -0
- package/dist/src/compiler/transpilers/transpiler_worker.js.map +1 -1
- package/dist/src/parser/GenericSqlLexer.d.ts +11 -12
- package/dist/src/parser/GenericSqlLexer.d.ts.map +1 -1
- package/dist/src/parser/GenericSqlLexer.js +97 -144
- package/dist/src/parser/GenericSqlLexer.js.map +1 -1
- package/dist/src/parser/GenericSqlListener.d.ts +15 -15
- package/dist/src/parser/GenericSqlListener.d.ts.map +1 -1
- package/dist/src/parser/GenericSqlListener.js +140 -1
- package/dist/src/parser/GenericSqlListener.js.map +1 -1
- package/dist/src/parser/GenericSqlParser.d.ts +61 -66
- package/dist/src/parser/GenericSqlParser.d.ts.map +1 -1
- package/dist/src/parser/GenericSqlParser.js +445 -452
- package/dist/src/parser/GenericSqlParser.js.map +1 -1
- package/dist/src/parser/GenericSqlVisitor.d.ts +15 -15
- package/dist/src/parser/GenericSqlVisitor.d.ts.map +1 -1
- package/dist/src/parser/GenericSqlVisitor.js +91 -1
- package/dist/src/parser/GenericSqlVisitor.js.map +1 -1
- package/dist/src/parser/Python3Lexer.d.ts +13 -20
- package/dist/src/parser/Python3Lexer.d.ts.map +1 -1
- package/dist/src/parser/Python3Lexer.js +631 -772
- package/dist/src/parser/Python3Lexer.js.map +1 -1
- package/dist/src/parser/Python3Parser.d.ts +385 -393
- package/dist/src/parser/Python3Parser.d.ts.map +1 -1
- package/dist/src/parser/Python3Parser.js +3637 -3703
- package/dist/src/parser/Python3Parser.js.map +1 -1
- package/dist/src/parser/Python3ParserListener.d.ts +92 -92
- package/dist/src/parser/Python3ParserListener.d.ts.map +1 -1
- package/dist/src/parser/Python3ParserListener.js +910 -1
- package/dist/src/parser/Python3ParserListener.js.map +1 -1
- package/dist/src/parser/Python3ParserVisitor.d.ts +92 -92
- package/dist/src/parser/Python3ParserVisitor.d.ts.map +1 -1
- package/dist/src/parser/Python3ParserVisitor.js +553 -1
- package/dist/src/parser/Python3ParserVisitor.js.map +1 -1
- package/dist/src/parser/PythonParser.d.ts +2 -1
- package/dist/src/parser/PythonParser.d.ts.map +1 -1
- package/dist/src/parser/PythonParser.js +45 -27
- package/dist/src/parser/PythonParser.js.map +1 -1
- package/dist/src/parser/SqlParser.d.ts.map +1 -1
- package/dist/src/parser/SqlParser.js +71 -38
- package/dist/src/parser/SqlParser.js.map +1 -1
- package/package.json +8 -9
|
@@ -1,4 +1,556 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
// Generated from src/parser/Python3Parser.g4 by ANTLR 4.
|
|
2
|
+
// Generated from src/parser/Python3Parser.g4 by ANTLR 4.13.2
|
|
3
|
+
// @ts-nocheck
|
|
3
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
const antlr4_1 = require("antlr4");
|
|
6
|
+
/**
|
|
7
|
+
* This interface defines a complete generic visitor for a parse tree produced
|
|
8
|
+
* by `Python3Parser`.
|
|
9
|
+
*
|
|
10
|
+
* @param <Result> The return type of the visit operation. Use `void` for
|
|
11
|
+
* operations with no return type.
|
|
12
|
+
*/
|
|
13
|
+
class Python3ParserVisitor extends antlr4_1.ParseTreeVisitor {
|
|
14
|
+
/**
|
|
15
|
+
* Visit a parse tree produced by `Python3Parser.file_input`.
|
|
16
|
+
* @param ctx the parse tree
|
|
17
|
+
* @return the visitor result
|
|
18
|
+
*/
|
|
19
|
+
visitFile_input;
|
|
20
|
+
/**
|
|
21
|
+
* Visit a parse tree produced by `Python3Parser.single_input`.
|
|
22
|
+
* @param ctx the parse tree
|
|
23
|
+
* @return the visitor result
|
|
24
|
+
*/
|
|
25
|
+
visitSingle_input;
|
|
26
|
+
/**
|
|
27
|
+
* Visit a parse tree produced by `Python3Parser.eval_input`.
|
|
28
|
+
* @param ctx the parse tree
|
|
29
|
+
* @return the visitor result
|
|
30
|
+
*/
|
|
31
|
+
visitEval_input;
|
|
32
|
+
/**
|
|
33
|
+
* Visit a parse tree produced by `Python3Parser.decorator`.
|
|
34
|
+
* @param ctx the parse tree
|
|
35
|
+
* @return the visitor result
|
|
36
|
+
*/
|
|
37
|
+
visitDecorator;
|
|
38
|
+
/**
|
|
39
|
+
* Visit a parse tree produced by `Python3Parser.decorators`.
|
|
40
|
+
* @param ctx the parse tree
|
|
41
|
+
* @return the visitor result
|
|
42
|
+
*/
|
|
43
|
+
visitDecorators;
|
|
44
|
+
/**
|
|
45
|
+
* Visit a parse tree produced by `Python3Parser.decorated`.
|
|
46
|
+
* @param ctx the parse tree
|
|
47
|
+
* @return the visitor result
|
|
48
|
+
*/
|
|
49
|
+
visitDecorated;
|
|
50
|
+
/**
|
|
51
|
+
* Visit a parse tree produced by `Python3Parser.async_funcdef`.
|
|
52
|
+
* @param ctx the parse tree
|
|
53
|
+
* @return the visitor result
|
|
54
|
+
*/
|
|
55
|
+
visitAsync_funcdef;
|
|
56
|
+
/**
|
|
57
|
+
* Visit a parse tree produced by `Python3Parser.funcdef`.
|
|
58
|
+
* @param ctx the parse tree
|
|
59
|
+
* @return the visitor result
|
|
60
|
+
*/
|
|
61
|
+
visitFuncdef;
|
|
62
|
+
/**
|
|
63
|
+
* Visit a parse tree produced by `Python3Parser.parameters`.
|
|
64
|
+
* @param ctx the parse tree
|
|
65
|
+
* @return the visitor result
|
|
66
|
+
*/
|
|
67
|
+
visitParameters;
|
|
68
|
+
/**
|
|
69
|
+
* Visit a parse tree produced by `Python3Parser.typedargslist`.
|
|
70
|
+
* @param ctx the parse tree
|
|
71
|
+
* @return the visitor result
|
|
72
|
+
*/
|
|
73
|
+
visitTypedargslist;
|
|
74
|
+
/**
|
|
75
|
+
* Visit a parse tree produced by `Python3Parser.tfpdef`.
|
|
76
|
+
* @param ctx the parse tree
|
|
77
|
+
* @return the visitor result
|
|
78
|
+
*/
|
|
79
|
+
visitTfpdef;
|
|
80
|
+
/**
|
|
81
|
+
* Visit a parse tree produced by `Python3Parser.varargslist`.
|
|
82
|
+
* @param ctx the parse tree
|
|
83
|
+
* @return the visitor result
|
|
84
|
+
*/
|
|
85
|
+
visitVarargslist;
|
|
86
|
+
/**
|
|
87
|
+
* Visit a parse tree produced by `Python3Parser.vfpdef`.
|
|
88
|
+
* @param ctx the parse tree
|
|
89
|
+
* @return the visitor result
|
|
90
|
+
*/
|
|
91
|
+
visitVfpdef;
|
|
92
|
+
/**
|
|
93
|
+
* Visit a parse tree produced by `Python3Parser.stmt`.
|
|
94
|
+
* @param ctx the parse tree
|
|
95
|
+
* @return the visitor result
|
|
96
|
+
*/
|
|
97
|
+
visitStmt;
|
|
98
|
+
/**
|
|
99
|
+
* Visit a parse tree produced by `Python3Parser.simple_stmt`.
|
|
100
|
+
* @param ctx the parse tree
|
|
101
|
+
* @return the visitor result
|
|
102
|
+
*/
|
|
103
|
+
visitSimple_stmt;
|
|
104
|
+
/**
|
|
105
|
+
* Visit a parse tree produced by `Python3Parser.small_stmt`.
|
|
106
|
+
* @param ctx the parse tree
|
|
107
|
+
* @return the visitor result
|
|
108
|
+
*/
|
|
109
|
+
visitSmall_stmt;
|
|
110
|
+
/**
|
|
111
|
+
* Visit a parse tree produced by `Python3Parser.expr_stmt`.
|
|
112
|
+
* @param ctx the parse tree
|
|
113
|
+
* @return the visitor result
|
|
114
|
+
*/
|
|
115
|
+
visitExpr_stmt;
|
|
116
|
+
/**
|
|
117
|
+
* Visit a parse tree produced by `Python3Parser.annassign`.
|
|
118
|
+
* @param ctx the parse tree
|
|
119
|
+
* @return the visitor result
|
|
120
|
+
*/
|
|
121
|
+
visitAnnassign;
|
|
122
|
+
/**
|
|
123
|
+
* Visit a parse tree produced by `Python3Parser.testlist_star_expr`.
|
|
124
|
+
* @param ctx the parse tree
|
|
125
|
+
* @return the visitor result
|
|
126
|
+
*/
|
|
127
|
+
visitTestlist_star_expr;
|
|
128
|
+
/**
|
|
129
|
+
* Visit a parse tree produced by `Python3Parser.augassign`.
|
|
130
|
+
* @param ctx the parse tree
|
|
131
|
+
* @return the visitor result
|
|
132
|
+
*/
|
|
133
|
+
visitAugassign;
|
|
134
|
+
/**
|
|
135
|
+
* Visit a parse tree produced by `Python3Parser.del_stmt`.
|
|
136
|
+
* @param ctx the parse tree
|
|
137
|
+
* @return the visitor result
|
|
138
|
+
*/
|
|
139
|
+
visitDel_stmt;
|
|
140
|
+
/**
|
|
141
|
+
* Visit a parse tree produced by `Python3Parser.pass_stmt`.
|
|
142
|
+
* @param ctx the parse tree
|
|
143
|
+
* @return the visitor result
|
|
144
|
+
*/
|
|
145
|
+
visitPass_stmt;
|
|
146
|
+
/**
|
|
147
|
+
* Visit a parse tree produced by `Python3Parser.flow_stmt`.
|
|
148
|
+
* @param ctx the parse tree
|
|
149
|
+
* @return the visitor result
|
|
150
|
+
*/
|
|
151
|
+
visitFlow_stmt;
|
|
152
|
+
/**
|
|
153
|
+
* Visit a parse tree produced by `Python3Parser.break_stmt`.
|
|
154
|
+
* @param ctx the parse tree
|
|
155
|
+
* @return the visitor result
|
|
156
|
+
*/
|
|
157
|
+
visitBreak_stmt;
|
|
158
|
+
/**
|
|
159
|
+
* Visit a parse tree produced by `Python3Parser.continue_stmt`.
|
|
160
|
+
* @param ctx the parse tree
|
|
161
|
+
* @return the visitor result
|
|
162
|
+
*/
|
|
163
|
+
visitContinue_stmt;
|
|
164
|
+
/**
|
|
165
|
+
* Visit a parse tree produced by `Python3Parser.return_stmt`.
|
|
166
|
+
* @param ctx the parse tree
|
|
167
|
+
* @return the visitor result
|
|
168
|
+
*/
|
|
169
|
+
visitReturn_stmt;
|
|
170
|
+
/**
|
|
171
|
+
* Visit a parse tree produced by `Python3Parser.yield_stmt`.
|
|
172
|
+
* @param ctx the parse tree
|
|
173
|
+
* @return the visitor result
|
|
174
|
+
*/
|
|
175
|
+
visitYield_stmt;
|
|
176
|
+
/**
|
|
177
|
+
* Visit a parse tree produced by `Python3Parser.raise_stmt`.
|
|
178
|
+
* @param ctx the parse tree
|
|
179
|
+
* @return the visitor result
|
|
180
|
+
*/
|
|
181
|
+
visitRaise_stmt;
|
|
182
|
+
/**
|
|
183
|
+
* Visit a parse tree produced by `Python3Parser.import_stmt`.
|
|
184
|
+
* @param ctx the parse tree
|
|
185
|
+
* @return the visitor result
|
|
186
|
+
*/
|
|
187
|
+
visitImport_stmt;
|
|
188
|
+
/**
|
|
189
|
+
* Visit a parse tree produced by `Python3Parser.import_name`.
|
|
190
|
+
* @param ctx the parse tree
|
|
191
|
+
* @return the visitor result
|
|
192
|
+
*/
|
|
193
|
+
visitImport_name;
|
|
194
|
+
/**
|
|
195
|
+
* Visit a parse tree produced by `Python3Parser.import_from`.
|
|
196
|
+
* @param ctx the parse tree
|
|
197
|
+
* @return the visitor result
|
|
198
|
+
*/
|
|
199
|
+
visitImport_from;
|
|
200
|
+
/**
|
|
201
|
+
* Visit a parse tree produced by `Python3Parser.import_as_name`.
|
|
202
|
+
* @param ctx the parse tree
|
|
203
|
+
* @return the visitor result
|
|
204
|
+
*/
|
|
205
|
+
visitImport_as_name;
|
|
206
|
+
/**
|
|
207
|
+
* Visit a parse tree produced by `Python3Parser.dotted_as_name`.
|
|
208
|
+
* @param ctx the parse tree
|
|
209
|
+
* @return the visitor result
|
|
210
|
+
*/
|
|
211
|
+
visitDotted_as_name;
|
|
212
|
+
/**
|
|
213
|
+
* Visit a parse tree produced by `Python3Parser.import_as_names`.
|
|
214
|
+
* @param ctx the parse tree
|
|
215
|
+
* @return the visitor result
|
|
216
|
+
*/
|
|
217
|
+
visitImport_as_names;
|
|
218
|
+
/**
|
|
219
|
+
* Visit a parse tree produced by `Python3Parser.dotted_as_names`.
|
|
220
|
+
* @param ctx the parse tree
|
|
221
|
+
* @return the visitor result
|
|
222
|
+
*/
|
|
223
|
+
visitDotted_as_names;
|
|
224
|
+
/**
|
|
225
|
+
* Visit a parse tree produced by `Python3Parser.dotted_name`.
|
|
226
|
+
* @param ctx the parse tree
|
|
227
|
+
* @return the visitor result
|
|
228
|
+
*/
|
|
229
|
+
visitDotted_name;
|
|
230
|
+
/**
|
|
231
|
+
* Visit a parse tree produced by `Python3Parser.global_stmt`.
|
|
232
|
+
* @param ctx the parse tree
|
|
233
|
+
* @return the visitor result
|
|
234
|
+
*/
|
|
235
|
+
visitGlobal_stmt;
|
|
236
|
+
/**
|
|
237
|
+
* Visit a parse tree produced by `Python3Parser.nonlocal_stmt`.
|
|
238
|
+
* @param ctx the parse tree
|
|
239
|
+
* @return the visitor result
|
|
240
|
+
*/
|
|
241
|
+
visitNonlocal_stmt;
|
|
242
|
+
/**
|
|
243
|
+
* Visit a parse tree produced by `Python3Parser.assert_stmt`.
|
|
244
|
+
* @param ctx the parse tree
|
|
245
|
+
* @return the visitor result
|
|
246
|
+
*/
|
|
247
|
+
visitAssert_stmt;
|
|
248
|
+
/**
|
|
249
|
+
* Visit a parse tree produced by `Python3Parser.compound_stmt`.
|
|
250
|
+
* @param ctx the parse tree
|
|
251
|
+
* @return the visitor result
|
|
252
|
+
*/
|
|
253
|
+
visitCompound_stmt;
|
|
254
|
+
/**
|
|
255
|
+
* Visit a parse tree produced by `Python3Parser.async_stmt`.
|
|
256
|
+
* @param ctx the parse tree
|
|
257
|
+
* @return the visitor result
|
|
258
|
+
*/
|
|
259
|
+
visitAsync_stmt;
|
|
260
|
+
/**
|
|
261
|
+
* Visit a parse tree produced by `Python3Parser.if_stmt`.
|
|
262
|
+
* @param ctx the parse tree
|
|
263
|
+
* @return the visitor result
|
|
264
|
+
*/
|
|
265
|
+
visitIf_stmt;
|
|
266
|
+
/**
|
|
267
|
+
* Visit a parse tree produced by `Python3Parser.while_stmt`.
|
|
268
|
+
* @param ctx the parse tree
|
|
269
|
+
* @return the visitor result
|
|
270
|
+
*/
|
|
271
|
+
visitWhile_stmt;
|
|
272
|
+
/**
|
|
273
|
+
* Visit a parse tree produced by `Python3Parser.for_stmt`.
|
|
274
|
+
* @param ctx the parse tree
|
|
275
|
+
* @return the visitor result
|
|
276
|
+
*/
|
|
277
|
+
visitFor_stmt;
|
|
278
|
+
/**
|
|
279
|
+
* Visit a parse tree produced by `Python3Parser.try_stmt`.
|
|
280
|
+
* @param ctx the parse tree
|
|
281
|
+
* @return the visitor result
|
|
282
|
+
*/
|
|
283
|
+
visitTry_stmt;
|
|
284
|
+
/**
|
|
285
|
+
* Visit a parse tree produced by `Python3Parser.with_stmt`.
|
|
286
|
+
* @param ctx the parse tree
|
|
287
|
+
* @return the visitor result
|
|
288
|
+
*/
|
|
289
|
+
visitWith_stmt;
|
|
290
|
+
/**
|
|
291
|
+
* Visit a parse tree produced by `Python3Parser.with_item`.
|
|
292
|
+
* @param ctx the parse tree
|
|
293
|
+
* @return the visitor result
|
|
294
|
+
*/
|
|
295
|
+
visitWith_item;
|
|
296
|
+
/**
|
|
297
|
+
* Visit a parse tree produced by `Python3Parser.except_clause`.
|
|
298
|
+
* @param ctx the parse tree
|
|
299
|
+
* @return the visitor result
|
|
300
|
+
*/
|
|
301
|
+
visitExcept_clause;
|
|
302
|
+
/**
|
|
303
|
+
* Visit a parse tree produced by `Python3Parser.suite`.
|
|
304
|
+
* @param ctx the parse tree
|
|
305
|
+
* @return the visitor result
|
|
306
|
+
*/
|
|
307
|
+
visitSuite;
|
|
308
|
+
/**
|
|
309
|
+
* Visit a parse tree produced by `Python3Parser.test`.
|
|
310
|
+
* @param ctx the parse tree
|
|
311
|
+
* @return the visitor result
|
|
312
|
+
*/
|
|
313
|
+
visitTest;
|
|
314
|
+
/**
|
|
315
|
+
* Visit a parse tree produced by `Python3Parser.test_nocond`.
|
|
316
|
+
* @param ctx the parse tree
|
|
317
|
+
* @return the visitor result
|
|
318
|
+
*/
|
|
319
|
+
visitTest_nocond;
|
|
320
|
+
/**
|
|
321
|
+
* Visit a parse tree produced by `Python3Parser.lambdef`.
|
|
322
|
+
* @param ctx the parse tree
|
|
323
|
+
* @return the visitor result
|
|
324
|
+
*/
|
|
325
|
+
visitLambdef;
|
|
326
|
+
/**
|
|
327
|
+
* Visit a parse tree produced by `Python3Parser.lambdef_nocond`.
|
|
328
|
+
* @param ctx the parse tree
|
|
329
|
+
* @return the visitor result
|
|
330
|
+
*/
|
|
331
|
+
visitLambdef_nocond;
|
|
332
|
+
/**
|
|
333
|
+
* Visit a parse tree produced by `Python3Parser.or_test`.
|
|
334
|
+
* @param ctx the parse tree
|
|
335
|
+
* @return the visitor result
|
|
336
|
+
*/
|
|
337
|
+
visitOr_test;
|
|
338
|
+
/**
|
|
339
|
+
* Visit a parse tree produced by `Python3Parser.and_test`.
|
|
340
|
+
* @param ctx the parse tree
|
|
341
|
+
* @return the visitor result
|
|
342
|
+
*/
|
|
343
|
+
visitAnd_test;
|
|
344
|
+
/**
|
|
345
|
+
* Visit a parse tree produced by `Python3Parser.not_test`.
|
|
346
|
+
* @param ctx the parse tree
|
|
347
|
+
* @return the visitor result
|
|
348
|
+
*/
|
|
349
|
+
visitNot_test;
|
|
350
|
+
/**
|
|
351
|
+
* Visit a parse tree produced by `Python3Parser.comparison`.
|
|
352
|
+
* @param ctx the parse tree
|
|
353
|
+
* @return the visitor result
|
|
354
|
+
*/
|
|
355
|
+
visitComparison;
|
|
356
|
+
/**
|
|
357
|
+
* Visit a parse tree produced by `Python3Parser.comp_op`.
|
|
358
|
+
* @param ctx the parse tree
|
|
359
|
+
* @return the visitor result
|
|
360
|
+
*/
|
|
361
|
+
visitComp_op;
|
|
362
|
+
/**
|
|
363
|
+
* Visit a parse tree produced by `Python3Parser.star_expr`.
|
|
364
|
+
* @param ctx the parse tree
|
|
365
|
+
* @return the visitor result
|
|
366
|
+
*/
|
|
367
|
+
visitStar_expr;
|
|
368
|
+
/**
|
|
369
|
+
* Visit a parse tree produced by `Python3Parser.expr`.
|
|
370
|
+
* @param ctx the parse tree
|
|
371
|
+
* @return the visitor result
|
|
372
|
+
*/
|
|
373
|
+
visitExpr;
|
|
374
|
+
/**
|
|
375
|
+
* Visit a parse tree produced by `Python3Parser.xor_expr`.
|
|
376
|
+
* @param ctx the parse tree
|
|
377
|
+
* @return the visitor result
|
|
378
|
+
*/
|
|
379
|
+
visitXor_expr;
|
|
380
|
+
/**
|
|
381
|
+
* Visit a parse tree produced by `Python3Parser.and_expr`.
|
|
382
|
+
* @param ctx the parse tree
|
|
383
|
+
* @return the visitor result
|
|
384
|
+
*/
|
|
385
|
+
visitAnd_expr;
|
|
386
|
+
/**
|
|
387
|
+
* Visit a parse tree produced by `Python3Parser.shift_expr`.
|
|
388
|
+
* @param ctx the parse tree
|
|
389
|
+
* @return the visitor result
|
|
390
|
+
*/
|
|
391
|
+
visitShift_expr;
|
|
392
|
+
/**
|
|
393
|
+
* Visit a parse tree produced by `Python3Parser.arith_expr`.
|
|
394
|
+
* @param ctx the parse tree
|
|
395
|
+
* @return the visitor result
|
|
396
|
+
*/
|
|
397
|
+
visitArith_expr;
|
|
398
|
+
/**
|
|
399
|
+
* Visit a parse tree produced by `Python3Parser.term`.
|
|
400
|
+
* @param ctx the parse tree
|
|
401
|
+
* @return the visitor result
|
|
402
|
+
*/
|
|
403
|
+
visitTerm;
|
|
404
|
+
/**
|
|
405
|
+
* Visit a parse tree produced by `Python3Parser.factor`.
|
|
406
|
+
* @param ctx the parse tree
|
|
407
|
+
* @return the visitor result
|
|
408
|
+
*/
|
|
409
|
+
visitFactor;
|
|
410
|
+
/**
|
|
411
|
+
* Visit a parse tree produced by `Python3Parser.power`.
|
|
412
|
+
* @param ctx the parse tree
|
|
413
|
+
* @return the visitor result
|
|
414
|
+
*/
|
|
415
|
+
visitPower;
|
|
416
|
+
/**
|
|
417
|
+
* Visit a parse tree produced by `Python3Parser.atom_expr`.
|
|
418
|
+
* @param ctx the parse tree
|
|
419
|
+
* @return the visitor result
|
|
420
|
+
*/
|
|
421
|
+
visitAtom_expr;
|
|
422
|
+
/**
|
|
423
|
+
* Visit a parse tree produced by `Python3Parser.atom`.
|
|
424
|
+
* @param ctx the parse tree
|
|
425
|
+
* @return the visitor result
|
|
426
|
+
*/
|
|
427
|
+
visitAtom;
|
|
428
|
+
/**
|
|
429
|
+
* Visit a parse tree produced by `Python3Parser.testlist_comp`.
|
|
430
|
+
* @param ctx the parse tree
|
|
431
|
+
* @return the visitor result
|
|
432
|
+
*/
|
|
433
|
+
visitTestlist_comp;
|
|
434
|
+
/**
|
|
435
|
+
* Visit a parse tree produced by `Python3Parser.trailer`.
|
|
436
|
+
* @param ctx the parse tree
|
|
437
|
+
* @return the visitor result
|
|
438
|
+
*/
|
|
439
|
+
visitTrailer;
|
|
440
|
+
/**
|
|
441
|
+
* Visit a parse tree produced by `Python3Parser.subscriptlist`.
|
|
442
|
+
* @param ctx the parse tree
|
|
443
|
+
* @return the visitor result
|
|
444
|
+
*/
|
|
445
|
+
visitSubscriptlist;
|
|
446
|
+
/**
|
|
447
|
+
* Visit a parse tree produced by `Python3Parser.subscript`.
|
|
448
|
+
* @param ctx the parse tree
|
|
449
|
+
* @return the visitor result
|
|
450
|
+
*/
|
|
451
|
+
visitSubscript;
|
|
452
|
+
/**
|
|
453
|
+
* Visit a parse tree produced by `Python3Parser.sliceop`.
|
|
454
|
+
* @param ctx the parse tree
|
|
455
|
+
* @return the visitor result
|
|
456
|
+
*/
|
|
457
|
+
visitSliceop;
|
|
458
|
+
/**
|
|
459
|
+
* Visit a parse tree produced by `Python3Parser.exprlist`.
|
|
460
|
+
* @param ctx the parse tree
|
|
461
|
+
* @return the visitor result
|
|
462
|
+
*/
|
|
463
|
+
visitExprlist;
|
|
464
|
+
/**
|
|
465
|
+
* Visit a parse tree produced by `Python3Parser.testlist`.
|
|
466
|
+
* @param ctx the parse tree
|
|
467
|
+
* @return the visitor result
|
|
468
|
+
*/
|
|
469
|
+
visitTestlist;
|
|
470
|
+
/**
|
|
471
|
+
* Visit a parse tree produced by `Python3Parser.dictorsetmaker`.
|
|
472
|
+
* @param ctx the parse tree
|
|
473
|
+
* @return the visitor result
|
|
474
|
+
*/
|
|
475
|
+
visitDictorsetmaker;
|
|
476
|
+
/**
|
|
477
|
+
* Visit a parse tree produced by `Python3Parser.classdef`.
|
|
478
|
+
* @param ctx the parse tree
|
|
479
|
+
* @return the visitor result
|
|
480
|
+
*/
|
|
481
|
+
visitClassdef;
|
|
482
|
+
/**
|
|
483
|
+
* Visit a parse tree produced by `Python3Parser.callArguments`.
|
|
484
|
+
* @param ctx the parse tree
|
|
485
|
+
* @return the visitor result
|
|
486
|
+
*/
|
|
487
|
+
visitCallArguments;
|
|
488
|
+
/**
|
|
489
|
+
* Visit a parse tree produced by `Python3Parser.arglist`.
|
|
490
|
+
* @param ctx the parse tree
|
|
491
|
+
* @return the visitor result
|
|
492
|
+
*/
|
|
493
|
+
visitArglist;
|
|
494
|
+
/**
|
|
495
|
+
* Visit a parse tree produced by `Python3Parser.argument`.
|
|
496
|
+
* @param ctx the parse tree
|
|
497
|
+
* @return the visitor result
|
|
498
|
+
*/
|
|
499
|
+
visitArgument;
|
|
500
|
+
/**
|
|
501
|
+
* Visit a parse tree produced by `Python3Parser.comp_iter`.
|
|
502
|
+
* @param ctx the parse tree
|
|
503
|
+
* @return the visitor result
|
|
504
|
+
*/
|
|
505
|
+
visitComp_iter;
|
|
506
|
+
/**
|
|
507
|
+
* Visit a parse tree produced by `Python3Parser.comp_for`.
|
|
508
|
+
* @param ctx the parse tree
|
|
509
|
+
* @return the visitor result
|
|
510
|
+
*/
|
|
511
|
+
visitComp_for;
|
|
512
|
+
/**
|
|
513
|
+
* Visit a parse tree produced by `Python3Parser.comp_if`.
|
|
514
|
+
* @param ctx the parse tree
|
|
515
|
+
* @return the visitor result
|
|
516
|
+
*/
|
|
517
|
+
visitComp_if;
|
|
518
|
+
/**
|
|
519
|
+
* Visit a parse tree produced by `Python3Parser.encoding_decl`.
|
|
520
|
+
* @param ctx the parse tree
|
|
521
|
+
* @return the visitor result
|
|
522
|
+
*/
|
|
523
|
+
visitEncoding_decl;
|
|
524
|
+
/**
|
|
525
|
+
* Visit a parse tree produced by `Python3Parser.yield_expr`.
|
|
526
|
+
* @param ctx the parse tree
|
|
527
|
+
* @return the visitor result
|
|
528
|
+
*/
|
|
529
|
+
visitYield_expr;
|
|
530
|
+
/**
|
|
531
|
+
* Visit a parse tree produced by `Python3Parser.yield_arg`.
|
|
532
|
+
* @param ctx the parse tree
|
|
533
|
+
* @return the visitor result
|
|
534
|
+
*/
|
|
535
|
+
visitYield_arg;
|
|
536
|
+
/**
|
|
537
|
+
* Visit a parse tree produced by `Python3Parser.string_template`.
|
|
538
|
+
* @param ctx the parse tree
|
|
539
|
+
* @return the visitor result
|
|
540
|
+
*/
|
|
541
|
+
visitString_template;
|
|
542
|
+
/**
|
|
543
|
+
* Visit a parse tree produced by `Python3Parser.single_string_template_atom`.
|
|
544
|
+
* @param ctx the parse tree
|
|
545
|
+
* @return the visitor result
|
|
546
|
+
*/
|
|
547
|
+
visitSingle_string_template_atom;
|
|
548
|
+
/**
|
|
549
|
+
* Visit a parse tree produced by `Python3Parser.double_string_template_atom`.
|
|
550
|
+
* @param ctx the parse tree
|
|
551
|
+
* @return the visitor result
|
|
552
|
+
*/
|
|
553
|
+
visitDouble_string_template_atom;
|
|
554
|
+
}
|
|
555
|
+
exports.default = Python3ParserVisitor;
|
|
4
556
|
//# sourceMappingURL=Python3ParserVisitor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Python3ParserVisitor.js","sourceRoot":"","sources":["../../../src/parser/Python3ParserVisitor.ts"],"names":[],"mappings":";AAAA,
|
|
1
|
+
{"version":3,"file":"Python3ParserVisitor.js","sourceRoot":"","sources":["../../../src/parser/Python3ParserVisitor.ts"],"names":[],"mappings":";AAAA,6DAA6D;AAC7D,cAAc;;AAEd,mCAAwC;AA+FxC;;;;;;GAMG;AACH,MAAqB,oBAA6B,SAAQ,yBAAwB;IACjF;;;;OAIG;IACH,eAAe,CAAsC;IACrD;;;;OAIG;IACH,iBAAi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OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,YAAY,CAAmC;IAC/C;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,mBAAmB,CAA0C;IAC7D;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,YAAY,CAAmC;IAC/C;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,aAAa,CAAoC;IACjD;;;;OAIG;IACH,YAAY,CAAmC;IAC/C;;;;OAIG;IACH,kBAAkB,CAAyC;IAC3D;;;;OAIG;IACH,eAAe,CAAsC;IACrD;;;;OAIG;IACH,cAAc,CAAqC;IACnD;;;;OAIG;IACH,oBAAoB,CAA2C;IAC/D;;;;OAIG;IACH,gCAAgC,CAAuD;IACvF;;;;OAIG;IACH,gCAAgC,CAAuD;CACvF;AA7hBD,uCA6hBC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import * as t from '@babel/types';
|
|
1
2
|
import { File_inputContext } from './Python3Parser';
|
|
2
3
|
interface SyntaxError {
|
|
3
4
|
msg: string;
|
|
@@ -13,7 +14,7 @@ export declare class PythonParser {
|
|
|
13
14
|
protected errors: SyntaxError[];
|
|
14
15
|
constructor(codeString: string);
|
|
15
16
|
protected parse(): File_inputContext;
|
|
16
|
-
transpileToJs():
|
|
17
|
+
transpileToJs(): t.Program;
|
|
17
18
|
stripQuotes(text: string): string;
|
|
18
19
|
canParse(): boolean;
|
|
19
20
|
throwErrorsIfAny(): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PythonParser.d.ts","sourceRoot":"","sources":["../../../src/parser/PythonParser.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PythonParser.d.ts","sourceRoot":"","sources":["../../../src/parser/PythonParser.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,CAAC,MAAM,cAAc,CAAC;AAGlC,OAAsB,EAEpB,iBAAiB,EAalB,MAAM,iBAAiB,CAAC;AA2BzB,UAAU,WAAW;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,GAAG,CAAC;IACT,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,GAAG,CAAC;IAChB,eAAe,EAAE,GAAG,CAAC;CACtB;AAED,qBAAa,YAAY;IAOrB,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,MAAM;IALvC,SAAS,CAAC,QAAQ,CAAC,GAAG,EAAE,iBAAiB,CAAC;IAE1C,SAAS,CAAC,MAAM,EAAE,WAAW,EAAE,CAAM;gBAGhB,UAAU,EAAE,MAAM;IAKvC,SAAS,CAAC,KAAK;IAsDR,aAAa,IAAI,CAAC,CAAC,OAAO;IAgH1B,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM;IAQjC,QAAQ;IAIR,gBAAgB;CAOxB"}
|