@designliquido/delegua 0.20.14 → 0.20.16

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 (77) hide show
  1. package/bin/package.json +1 -1
  2. package/fontes/analisador-semantico/analisador-semantico.d.ts +1 -0
  3. package/fontes/analisador-semantico/analisador-semantico.js +3 -0
  4. package/fontes/analisador-semantico/analisador-semantico.js.map +1 -1
  5. package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +2 -1
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js +8 -0
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  8. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.d.ts +1 -0
  9. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.js +44 -17
  10. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.js.map +1 -1
  11. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +2 -0
  12. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +6 -4
  13. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
  14. package/fontes/bibliotecas/primitivas-vetor.js +5 -5
  15. package/fontes/bibliotecas/primitivas-vetor.js.map +1 -1
  16. package/fontes/declaracoes/falhar.d.ts +8 -0
  17. package/fontes/declaracoes/falhar.js +16 -0
  18. package/fontes/declaracoes/falhar.js.map +1 -0
  19. package/fontes/declaracoes/index.d.ts +1 -0
  20. package/fontes/declaracoes/index.js +1 -0
  21. package/fontes/declaracoes/index.js.map +1 -1
  22. package/fontes/interfaces/visitante-comum-interface.d.ts +29 -28
  23. package/fontes/interpretador/dialetos/birl/interpretador-birl.d.ts +1 -0
  24. package/fontes/interpretador/dialetos/birl/interpretador-birl.js +3 -0
  25. package/fontes/interpretador/dialetos/birl/interpretador-birl.js.map +1 -1
  26. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.d.ts +1 -0
  27. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.js +3 -0
  28. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.js.map +1 -1
  29. package/fontes/interpretador/dialetos/egua-classico/resolvedor/resolvedor.d.ts +1 -0
  30. package/fontes/interpretador/dialetos/egua-classico/resolvedor/resolvedor.js +3 -0
  31. package/fontes/interpretador/dialetos/egua-classico/resolvedor/resolvedor.js.map +1 -1
  32. package/fontes/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.d.ts +1 -0
  33. package/fontes/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.js +3 -0
  34. package/fontes/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.js.map +1 -1
  35. package/fontes/interpretador/interpretador-base.d.ts +2 -1
  36. package/fontes/interpretador/interpretador-base.js +3 -0
  37. package/fontes/interpretador/interpretador-base.js.map +1 -1
  38. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.d.ts +1 -4
  39. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.js +2 -5
  40. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.js.map +1 -1
  41. package/fontes/lexador/palavras-reservadas.d.ts +1 -0
  42. package/fontes/lexador/palavras-reservadas.js +1 -0
  43. package/fontes/lexador/palavras-reservadas.js.map +1 -1
  44. package/fontes/tipos-de-simbolos/delegua.d.ts +1 -0
  45. package/fontes/tipos-de-simbolos/delegua.js +1 -0
  46. package/fontes/tipos-de-simbolos/delegua.js.map +1 -1
  47. package/fontes/tipos-de-simbolos/egua-classico.d.ts +0 -2
  48. package/fontes/tipos-de-simbolos/egua-classico.js +0 -2
  49. package/fontes/tipos-de-simbolos/egua-classico.js.map +1 -1
  50. package/fontes/tradutores/index.d.ts +3 -0
  51. package/fontes/tradutores/index.js +3 -0
  52. package/fontes/tradutores/index.js.map +1 -1
  53. package/fontes/tradutores/python/python3-lexer.d.ts +5 -5
  54. package/fontes/tradutores/python/python3-lexer.js +567 -841
  55. package/fontes/tradutores/python/python3-lexer.js.map +1 -1
  56. package/fontes/tradutores/python/python3-listener.d.ts +184 -173
  57. package/fontes/tradutores/python/python3-listener.js +1 -0
  58. package/fontes/tradutores/python/python3-listener.js.map +1 -1
  59. package/fontes/tradutores/python/python3-parser.d.ts +85 -73
  60. package/fontes/tradutores/python/python3-parser.js +1485 -1415
  61. package/fontes/tradutores/python/python3-parser.js.map +1 -1
  62. package/fontes/tradutores/python/python3-visitor.d.ts +94 -87
  63. package/fontes/tradutores/python/python3-visitor.js +1 -0
  64. package/fontes/tradutores/python/python3-visitor.js.map +1 -1
  65. package/fontes/tradutores/tradutor-javascript.d.ts +2 -2
  66. package/fontes/tradutores/tradutor-javascript.js +1 -1
  67. package/fontes/tradutores/tradutor-javascript.js.map +1 -1
  68. package/fontes/tradutores/tradutor-portugol-ipt.d.ts +21 -0
  69. package/fontes/tradutores/tradutor-portugol-ipt.js +61 -0
  70. package/fontes/tradutores/tradutor-portugol-ipt.js.map +1 -0
  71. package/fontes/tradutores/tradutor-python.d.ts +16 -1
  72. package/fontes/tradutores/tradutor-python.js +41 -28
  73. package/fontes/tradutores/tradutor-python.js.map +1 -1
  74. package/fontes/tradutores/tradutor-reverso-python.d.ts +32 -0
  75. package/fontes/tradutores/tradutor-reverso-python.js +72 -0
  76. package/fontes/tradutores/tradutor-reverso-python.js.map +1 -0
  77. package/package.json +1 -1
@@ -16,6 +16,7 @@ import { StmtContext } from './python3-parser';
16
16
  import { Simple_stmtContext } from './python3-parser';
17
17
  import { Small_stmtContext } from './python3-parser';
18
18
  import { Expr_stmtContext } from './python3-parser';
19
+ import { Simple_assignContext } from './python3-parser';
19
20
  import { AnnassignContext } from './python3-parser';
20
21
  import { Testlist_star_exprContext } from './python3-parser';
21
22
  import { AugassignContext } from './python3-parser';
@@ -87,524 +88,530 @@ import { Yield_exprContext } from './python3-parser';
87
88
  import { Yield_argContext } from './python3-parser';
88
89
  /**
89
90
  * This interface defines a complete generic visitor for a parse tree produced
90
- * by `python3-parser`.
91
+ * by `Python3Parser`.
91
92
  *
92
93
  * @param <Result> The return type of the visit operation. Use `void` for
93
94
  * operations with no return type.
94
95
  */
95
96
  export interface Python3Visitor<Result> extends ParseTreeVisitor<Result> {
96
97
  /**
97
- * Visit a parse tree produced by `python3-parser.single_input`.
98
+ * Visit a parse tree produced by `Python3Parser.single_input`.
98
99
  * @param ctx the parse tree
99
100
  * @return the visitor result
100
101
  */
101
102
  visitSingle_input?: (ctx: Single_inputContext) => Result;
102
103
  /**
103
- * Visit a parse tree produced by `python3-parser.file_input`.
104
+ * Visit a parse tree produced by `Python3Parser.file_input`.
104
105
  * @param ctx the parse tree
105
106
  * @return the visitor result
106
107
  */
107
108
  visitFile_input?: (ctx: File_inputContext) => Result;
108
109
  /**
109
- * Visit a parse tree produced by `python3-parser.eval_input`.
110
+ * Visit a parse tree produced by `Python3Parser.eval_input`.
110
111
  * @param ctx the parse tree
111
112
  * @return the visitor result
112
113
  */
113
114
  visitEval_input?: (ctx: Eval_inputContext) => Result;
114
115
  /**
115
- * Visit a parse tree produced by `python3-parser.decorator`.
116
+ * Visit a parse tree produced by `Python3Parser.decorator`.
116
117
  * @param ctx the parse tree
117
118
  * @return the visitor result
118
119
  */
119
120
  visitDecorator?: (ctx: DecoratorContext) => Result;
120
121
  /**
121
- * Visit a parse tree produced by `python3-parser.decorators`.
122
+ * Visit a parse tree produced by `Python3Parser.decorators`.
122
123
  * @param ctx the parse tree
123
124
  * @return the visitor result
124
125
  */
125
126
  visitDecorators?: (ctx: DecoratorsContext) => Result;
126
127
  /**
127
- * Visit a parse tree produced by `python3-parser.decorated`.
128
+ * Visit a parse tree produced by `Python3Parser.decorated`.
128
129
  * @param ctx the parse tree
129
130
  * @return the visitor result
130
131
  */
131
132
  visitDecorated?: (ctx: DecoratedContext) => Result;
132
133
  /**
133
- * Visit a parse tree produced by `python3-parser.async_funcdef`.
134
+ * Visit a parse tree produced by `Python3Parser.async_funcdef`.
134
135
  * @param ctx the parse tree
135
136
  * @return the visitor result
136
137
  */
137
138
  visitAsync_funcdef?: (ctx: Async_funcdefContext) => Result;
138
139
  /**
139
- * Visit a parse tree produced by `python3-parser.funcdef`.
140
+ * Visit a parse tree produced by `Python3Parser.funcdef`.
140
141
  * @param ctx the parse tree
141
142
  * @return the visitor result
142
143
  */
143
144
  visitFuncdef?: (ctx: FuncdefContext) => Result;
144
145
  /**
145
- * Visit a parse tree produced by `python3-parser.parameters`.
146
+ * Visit a parse tree produced by `Python3Parser.parameters`.
146
147
  * @param ctx the parse tree
147
148
  * @return the visitor result
148
149
  */
149
150
  visitParameters?: (ctx: ParametersContext) => Result;
150
151
  /**
151
- * Visit a parse tree produced by `python3-parser.typedargslist`.
152
+ * Visit a parse tree produced by `Python3Parser.typedargslist`.
152
153
  * @param ctx the parse tree
153
154
  * @return the visitor result
154
155
  */
155
156
  visitTypedargslist?: (ctx: TypedargslistContext) => Result;
156
157
  /**
157
- * Visit a parse tree produced by `python3-parser.tfpdef`.
158
+ * Visit a parse tree produced by `Python3Parser.tfpdef`.
158
159
  * @param ctx the parse tree
159
160
  * @return the visitor result
160
161
  */
161
162
  visitTfpdef?: (ctx: TfpdefContext) => Result;
162
163
  /**
163
- * Visit a parse tree produced by `python3-parser.varargslist`.
164
+ * Visit a parse tree produced by `Python3Parser.varargslist`.
164
165
  * @param ctx the parse tree
165
166
  * @return the visitor result
166
167
  */
167
168
  visitVarargslist?: (ctx: VarargslistContext) => Result;
168
169
  /**
169
- * Visit a parse tree produced by `python3-parser.vfpdef`.
170
+ * Visit a parse tree produced by `Python3Parser.vfpdef`.
170
171
  * @param ctx the parse tree
171
172
  * @return the visitor result
172
173
  */
173
174
  visitVfpdef?: (ctx: VfpdefContext) => Result;
174
175
  /**
175
- * Visit a parse tree produced by `python3-parser.stmt`.
176
+ * Visit a parse tree produced by `Python3Parser.stmt`.
176
177
  * @param ctx the parse tree
177
178
  * @return the visitor result
178
179
  */
179
180
  visitStmt?: (ctx: StmtContext) => Result;
180
181
  /**
181
- * Visit a parse tree produced by `python3-parser.simple_stmt`.
182
+ * Visit a parse tree produced by `Python3Parser.simple_stmt`.
182
183
  * @param ctx the parse tree
183
184
  * @return the visitor result
184
185
  */
185
186
  visitSimple_stmt?: (ctx: Simple_stmtContext) => Result;
186
187
  /**
187
- * Visit a parse tree produced by `python3-parser.small_stmt`.
188
+ * Visit a parse tree produced by `Python3Parser.small_stmt`.
188
189
  * @param ctx the parse tree
189
190
  * @return the visitor result
190
191
  */
191
192
  visitSmall_stmt?: (ctx: Small_stmtContext) => Result;
192
193
  /**
193
- * Visit a parse tree produced by `python3-parser.expr_stmt`.
194
+ * Visit a parse tree produced by `Python3Parser.expr_stmt`.
194
195
  * @param ctx the parse tree
195
196
  * @return the visitor result
196
197
  */
197
198
  visitExpr_stmt?: (ctx: Expr_stmtContext) => Result;
198
199
  /**
199
- * Visit a parse tree produced by `python3-parser.annassign`.
200
+ * Visit a parse tree produced by `Python3Parser.simple_assign`.
201
+ * @param ctx the parse tree
202
+ * @return the visitor result
203
+ */
204
+ visitSimple_assign?: (ctx: Simple_assignContext) => Result;
205
+ /**
206
+ * Visit a parse tree produced by `Python3Parser.annassign`.
200
207
  * @param ctx the parse tree
201
208
  * @return the visitor result
202
209
  */
203
210
  visitAnnassign?: (ctx: AnnassignContext) => Result;
204
211
  /**
205
- * Visit a parse tree produced by `python3-parser.testlist_star_expr`.
212
+ * Visit a parse tree produced by `Python3Parser.testlist_star_expr`.
206
213
  * @param ctx the parse tree
207
214
  * @return the visitor result
208
215
  */
209
216
  visitTestlist_star_expr?: (ctx: Testlist_star_exprContext) => Result;
210
217
  /**
211
- * Visit a parse tree produced by `python3-parser.augassign`.
218
+ * Visit a parse tree produced by `Python3Parser.augassign`.
212
219
  * @param ctx the parse tree
213
220
  * @return the visitor result
214
221
  */
215
222
  visitAugassign?: (ctx: AugassignContext) => Result;
216
223
  /**
217
- * Visit a parse tree produced by `python3-parser.del_stmt`.
224
+ * Visit a parse tree produced by `Python3Parser.del_stmt`.
218
225
  * @param ctx the parse tree
219
226
  * @return the visitor result
220
227
  */
221
228
  visitDel_stmt?: (ctx: Del_stmtContext) => Result;
222
229
  /**
223
- * Visit a parse tree produced by `python3-parser.pass_stmt`.
230
+ * Visit a parse tree produced by `Python3Parser.pass_stmt`.
224
231
  * @param ctx the parse tree
225
232
  * @return the visitor result
226
233
  */
227
234
  visitPass_stmt?: (ctx: Pass_stmtContext) => Result;
228
235
  /**
229
- * Visit a parse tree produced by `python3-parser.flow_stmt`.
236
+ * Visit a parse tree produced by `Python3Parser.flow_stmt`.
230
237
  * @param ctx the parse tree
231
238
  * @return the visitor result
232
239
  */
233
240
  visitFlow_stmt?: (ctx: Flow_stmtContext) => Result;
234
241
  /**
235
- * Visit a parse tree produced by `python3-parser.break_stmt`.
242
+ * Visit a parse tree produced by `Python3Parser.break_stmt`.
236
243
  * @param ctx the parse tree
237
244
  * @return the visitor result
238
245
  */
239
246
  visitBreak_stmt?: (ctx: Break_stmtContext) => Result;
240
247
  /**
241
- * Visit a parse tree produced by `python3-parser.continue_stmt`.
248
+ * Visit a parse tree produced by `Python3Parser.continue_stmt`.
242
249
  * @param ctx the parse tree
243
250
  * @return the visitor result
244
251
  */
245
252
  visitContinue_stmt?: (ctx: Continue_stmtContext) => Result;
246
253
  /**
247
- * Visit a parse tree produced by `python3-parser.return_stmt`.
254
+ * Visit a parse tree produced by `Python3Parser.return_stmt`.
248
255
  * @param ctx the parse tree
249
256
  * @return the visitor result
250
257
  */
251
258
  visitReturn_stmt?: (ctx: Return_stmtContext) => Result;
252
259
  /**
253
- * Visit a parse tree produced by `python3-parser.yield_stmt`.
260
+ * Visit a parse tree produced by `Python3Parser.yield_stmt`.
254
261
  * @param ctx the parse tree
255
262
  * @return the visitor result
256
263
  */
257
264
  visitYield_stmt?: (ctx: Yield_stmtContext) => Result;
258
265
  /**
259
- * Visit a parse tree produced by `python3-parser.raise_stmt`.
266
+ * Visit a parse tree produced by `Python3Parser.raise_stmt`.
260
267
  * @param ctx the parse tree
261
268
  * @return the visitor result
262
269
  */
263
270
  visitRaise_stmt?: (ctx: Raise_stmtContext) => Result;
264
271
  /**
265
- * Visit a parse tree produced by `python3-parser.import_stmt`.
272
+ * Visit a parse tree produced by `Python3Parser.import_stmt`.
266
273
  * @param ctx the parse tree
267
274
  * @return the visitor result
268
275
  */
269
276
  visitImport_stmt?: (ctx: Import_stmtContext) => Result;
270
277
  /**
271
- * Visit a parse tree produced by `python3-parser.import_name`.
278
+ * Visit a parse tree produced by `Python3Parser.import_name`.
272
279
  * @param ctx the parse tree
273
280
  * @return the visitor result
274
281
  */
275
282
  visitImport_name?: (ctx: Import_nameContext) => Result;
276
283
  /**
277
- * Visit a parse tree produced by `python3-parser.import_from`.
284
+ * Visit a parse tree produced by `Python3Parser.import_from`.
278
285
  * @param ctx the parse tree
279
286
  * @return the visitor result
280
287
  */
281
288
  visitImport_from?: (ctx: Import_fromContext) => Result;
282
289
  /**
283
- * Visit a parse tree produced by `python3-parser.import_as_name`.
290
+ * Visit a parse tree produced by `Python3Parser.import_as_name`.
284
291
  * @param ctx the parse tree
285
292
  * @return the visitor result
286
293
  */
287
294
  visitImport_as_name?: (ctx: Import_as_nameContext) => Result;
288
295
  /**
289
- * Visit a parse tree produced by `python3-parser.dotted_as_name`.
296
+ * Visit a parse tree produced by `Python3Parser.dotted_as_name`.
290
297
  * @param ctx the parse tree
291
298
  * @return the visitor result
292
299
  */
293
300
  visitDotted_as_name?: (ctx: Dotted_as_nameContext) => Result;
294
301
  /**
295
- * Visit a parse tree produced by `python3-parser.import_as_names`.
302
+ * Visit a parse tree produced by `Python3Parser.import_as_names`.
296
303
  * @param ctx the parse tree
297
304
  * @return the visitor result
298
305
  */
299
306
  visitImport_as_names?: (ctx: Import_as_namesContext) => Result;
300
307
  /**
301
- * Visit a parse tree produced by `python3-parser.dotted_as_names`.
308
+ * Visit a parse tree produced by `Python3Parser.dotted_as_names`.
302
309
  * @param ctx the parse tree
303
310
  * @return the visitor result
304
311
  */
305
312
  visitDotted_as_names?: (ctx: Dotted_as_namesContext) => Result;
306
313
  /**
307
- * Visit a parse tree produced by `python3-parser.dotted_name`.
314
+ * Visit a parse tree produced by `Python3Parser.dotted_name`.
308
315
  * @param ctx the parse tree
309
316
  * @return the visitor result
310
317
  */
311
318
  visitDotted_name?: (ctx: Dotted_nameContext) => Result;
312
319
  /**
313
- * Visit a parse tree produced by `python3-parser.global_stmt`.
320
+ * Visit a parse tree produced by `Python3Parser.global_stmt`.
314
321
  * @param ctx the parse tree
315
322
  * @return the visitor result
316
323
  */
317
324
  visitGlobal_stmt?: (ctx: Global_stmtContext) => Result;
318
325
  /**
319
- * Visit a parse tree produced by `python3-parser.nonlocal_stmt`.
326
+ * Visit a parse tree produced by `Python3Parser.nonlocal_stmt`.
320
327
  * @param ctx the parse tree
321
328
  * @return the visitor result
322
329
  */
323
330
  visitNonlocal_stmt?: (ctx: Nonlocal_stmtContext) => Result;
324
331
  /**
325
- * Visit a parse tree produced by `python3-parser.assert_stmt`.
332
+ * Visit a parse tree produced by `Python3Parser.assert_stmt`.
326
333
  * @param ctx the parse tree
327
334
  * @return the visitor result
328
335
  */
329
336
  visitAssert_stmt?: (ctx: Assert_stmtContext) => Result;
330
337
  /**
331
- * Visit a parse tree produced by `python3-parser.compound_stmt`.
338
+ * Visit a parse tree produced by `Python3Parser.compound_stmt`.
332
339
  * @param ctx the parse tree
333
340
  * @return the visitor result
334
341
  */
335
342
  visitCompound_stmt?: (ctx: Compound_stmtContext) => Result;
336
343
  /**
337
- * Visit a parse tree produced by `python3-parser.async_stmt`.
344
+ * Visit a parse tree produced by `Python3Parser.async_stmt`.
338
345
  * @param ctx the parse tree
339
346
  * @return the visitor result
340
347
  */
341
348
  visitAsync_stmt?: (ctx: Async_stmtContext) => Result;
342
349
  /**
343
- * Visit a parse tree produced by `python3-parser.if_stmt`.
350
+ * Visit a parse tree produced by `Python3Parser.if_stmt`.
344
351
  * @param ctx the parse tree
345
352
  * @return the visitor result
346
353
  */
347
354
  visitIf_stmt?: (ctx: If_stmtContext) => Result;
348
355
  /**
349
- * Visit a parse tree produced by `python3-parser.while_stmt`.
356
+ * Visit a parse tree produced by `Python3Parser.while_stmt`.
350
357
  * @param ctx the parse tree
351
358
  * @return the visitor result
352
359
  */
353
360
  visitWhile_stmt?: (ctx: While_stmtContext) => Result;
354
361
  /**
355
- * Visit a parse tree produced by `python3-parser.for_stmt`.
362
+ * Visit a parse tree produced by `Python3Parser.for_stmt`.
356
363
  * @param ctx the parse tree
357
364
  * @return the visitor result
358
365
  */
359
366
  visitFor_stmt?: (ctx: For_stmtContext) => Result;
360
367
  /**
361
- * Visit a parse tree produced by `python3-parser.try_stmt`.
368
+ * Visit a parse tree produced by `Python3Parser.try_stmt`.
362
369
  * @param ctx the parse tree
363
370
  * @return the visitor result
364
371
  */
365
372
  visitTry_stmt?: (ctx: Try_stmtContext) => Result;
366
373
  /**
367
- * Visit a parse tree produced by `python3-parser.with_stmt`.
374
+ * Visit a parse tree produced by `Python3Parser.with_stmt`.
368
375
  * @param ctx the parse tree
369
376
  * @return the visitor result
370
377
  */
371
378
  visitWith_stmt?: (ctx: With_stmtContext) => Result;
372
379
  /**
373
- * Visit a parse tree produced by `python3-parser.with_item`.
380
+ * Visit a parse tree produced by `Python3Parser.with_item`.
374
381
  * @param ctx the parse tree
375
382
  * @return the visitor result
376
383
  */
377
384
  visitWith_item?: (ctx: With_itemContext) => Result;
378
385
  /**
379
- * Visit a parse tree produced by `python3-parser.except_clause`.
386
+ * Visit a parse tree produced by `Python3Parser.except_clause`.
380
387
  * @param ctx the parse tree
381
388
  * @return the visitor result
382
389
  */
383
390
  visitExcept_clause?: (ctx: Except_clauseContext) => Result;
384
391
  /**
385
- * Visit a parse tree produced by `python3-parser.suite`.
392
+ * Visit a parse tree produced by `Python3Parser.suite`.
386
393
  * @param ctx the parse tree
387
394
  * @return the visitor result
388
395
  */
389
396
  visitSuite?: (ctx: SuiteContext) => Result;
390
397
  /**
391
- * Visit a parse tree produced by `python3-parser.test`.
398
+ * Visit a parse tree produced by `Python3Parser.test`.
392
399
  * @param ctx the parse tree
393
400
  * @return the visitor result
394
401
  */
395
402
  visitTest?: (ctx: TestContext) => Result;
396
403
  /**
397
- * Visit a parse tree produced by `python3-parser.test_nocond`.
404
+ * Visit a parse tree produced by `Python3Parser.test_nocond`.
398
405
  * @param ctx the parse tree
399
406
  * @return the visitor result
400
407
  */
401
408
  visitTest_nocond?: (ctx: Test_nocondContext) => Result;
402
409
  /**
403
- * Visit a parse tree produced by `python3-parser.lambdef`.
410
+ * Visit a parse tree produced by `Python3Parser.lambdef`.
404
411
  * @param ctx the parse tree
405
412
  * @return the visitor result
406
413
  */
407
414
  visitLambdef?: (ctx: LambdefContext) => Result;
408
415
  /**
409
- * Visit a parse tree produced by `python3-parser.lambdef_nocond`.
416
+ * Visit a parse tree produced by `Python3Parser.lambdef_nocond`.
410
417
  * @param ctx the parse tree
411
418
  * @return the visitor result
412
419
  */
413
420
  visitLambdef_nocond?: (ctx: Lambdef_nocondContext) => Result;
414
421
  /**
415
- * Visit a parse tree produced by `python3-parser.or_test`.
422
+ * Visit a parse tree produced by `Python3Parser.or_test`.
416
423
  * @param ctx the parse tree
417
424
  * @return the visitor result
418
425
  */
419
426
  visitOr_test?: (ctx: Or_testContext) => Result;
420
427
  /**
421
- * Visit a parse tree produced by `python3-parser.and_test`.
428
+ * Visit a parse tree produced by `Python3Parser.and_test`.
422
429
  * @param ctx the parse tree
423
430
  * @return the visitor result
424
431
  */
425
432
  visitAnd_test?: (ctx: And_testContext) => Result;
426
433
  /**
427
- * Visit a parse tree produced by `python3-parser.not_test`.
434
+ * Visit a parse tree produced by `Python3Parser.not_test`.
428
435
  * @param ctx the parse tree
429
436
  * @return the visitor result
430
437
  */
431
438
  visitNot_test?: (ctx: Not_testContext) => Result;
432
439
  /**
433
- * Visit a parse tree produced by `python3-parser.comparison`.
440
+ * Visit a parse tree produced by `Python3Parser.comparison`.
434
441
  * @param ctx the parse tree
435
442
  * @return the visitor result
436
443
  */
437
444
  visitComparison?: (ctx: ComparisonContext) => Result;
438
445
  /**
439
- * Visit a parse tree produced by `python3-parser.comp_op`.
446
+ * Visit a parse tree produced by `Python3Parser.comp_op`.
440
447
  * @param ctx the parse tree
441
448
  * @return the visitor result
442
449
  */
443
450
  visitComp_op?: (ctx: Comp_opContext) => Result;
444
451
  /**
445
- * Visit a parse tree produced by `python3-parser.star_expr`.
452
+ * Visit a parse tree produced by `Python3Parser.star_expr`.
446
453
  * @param ctx the parse tree
447
454
  * @return the visitor result
448
455
  */
449
456
  visitStar_expr?: (ctx: Star_exprContext) => Result;
450
457
  /**
451
- * Visit a parse tree produced by `python3-parser.expr`.
458
+ * Visit a parse tree produced by `Python3Parser.expr`.
452
459
  * @param ctx the parse tree
453
460
  * @return the visitor result
454
461
  */
455
462
  visitExpr?: (ctx: ExprContext) => Result;
456
463
  /**
457
- * Visit a parse tree produced by `python3-parser.xor_expr`.
464
+ * Visit a parse tree produced by `Python3Parser.xor_expr`.
458
465
  * @param ctx the parse tree
459
466
  * @return the visitor result
460
467
  */
461
468
  visitXor_expr?: (ctx: Xor_exprContext) => Result;
462
469
  /**
463
- * Visit a parse tree produced by `python3-parser.and_expr`.
470
+ * Visit a parse tree produced by `Python3Parser.and_expr`.
464
471
  * @param ctx the parse tree
465
472
  * @return the visitor result
466
473
  */
467
474
  visitAnd_expr?: (ctx: And_exprContext) => Result;
468
475
  /**
469
- * Visit a parse tree produced by `python3-parser.shift_expr`.
476
+ * Visit a parse tree produced by `Python3Parser.shift_expr`.
470
477
  * @param ctx the parse tree
471
478
  * @return the visitor result
472
479
  */
473
480
  visitShift_expr?: (ctx: Shift_exprContext) => Result;
474
481
  /**
475
- * Visit a parse tree produced by `python3-parser.arith_expr`.
482
+ * Visit a parse tree produced by `Python3Parser.arith_expr`.
476
483
  * @param ctx the parse tree
477
484
  * @return the visitor result
478
485
  */
479
486
  visitArith_expr?: (ctx: Arith_exprContext) => Result;
480
487
  /**
481
- * Visit a parse tree produced by `python3-parser.term`.
488
+ * Visit a parse tree produced by `Python3Parser.term`.
482
489
  * @param ctx the parse tree
483
490
  * @return the visitor result
484
491
  */
485
492
  visitTerm?: (ctx: TermContext) => Result;
486
493
  /**
487
- * Visit a parse tree produced by `python3-parser.factor`.
494
+ * Visit a parse tree produced by `Python3Parser.factor`.
488
495
  * @param ctx the parse tree
489
496
  * @return the visitor result
490
497
  */
491
498
  visitFactor?: (ctx: FactorContext) => Result;
492
499
  /**
493
- * Visit a parse tree produced by `python3-parser.power`.
500
+ * Visit a parse tree produced by `Python3Parser.power`.
494
501
  * @param ctx the parse tree
495
502
  * @return the visitor result
496
503
  */
497
504
  visitPower?: (ctx: PowerContext) => Result;
498
505
  /**
499
- * Visit a parse tree produced by `python3-parser.atom_expr`.
506
+ * Visit a parse tree produced by `Python3Parser.atom_expr`.
500
507
  * @param ctx the parse tree
501
508
  * @return the visitor result
502
509
  */
503
510
  visitAtom_expr?: (ctx: Atom_exprContext) => Result;
504
511
  /**
505
- * Visit a parse tree produced by `python3-parser.atom`.
512
+ * Visit a parse tree produced by `Python3Parser.atom`.
506
513
  * @param ctx the parse tree
507
514
  * @return the visitor result
508
515
  */
509
516
  visitAtom?: (ctx: AtomContext) => Result;
510
517
  /**
511
- * Visit a parse tree produced by `python3-parser.testlist_comp`.
518
+ * Visit a parse tree produced by `Python3Parser.testlist_comp`.
512
519
  * @param ctx the parse tree
513
520
  * @return the visitor result
514
521
  */
515
522
  visitTestlist_comp?: (ctx: Testlist_compContext) => Result;
516
523
  /**
517
- * Visit a parse tree produced by `python3-parser.trailer`.
524
+ * Visit a parse tree produced by `Python3Parser.trailer`.
518
525
  * @param ctx the parse tree
519
526
  * @return the visitor result
520
527
  */
521
528
  visitTrailer?: (ctx: TrailerContext) => Result;
522
529
  /**
523
- * Visit a parse tree produced by `python3-parser.subscriptlist`.
530
+ * Visit a parse tree produced by `Python3Parser.subscriptlist`.
524
531
  * @param ctx the parse tree
525
532
  * @return the visitor result
526
533
  */
527
534
  visitSubscriptlist?: (ctx: SubscriptlistContext) => Result;
528
535
  /**
529
- * Visit a parse tree produced by `python3-parser.subscript`.
536
+ * Visit a parse tree produced by `Python3Parser.subscript`.
530
537
  * @param ctx the parse tree
531
538
  * @return the visitor result
532
539
  */
533
540
  visitSubscript?: (ctx: SubscriptContext) => Result;
534
541
  /**
535
- * Visit a parse tree produced by `python3-parser.sliceop`.
542
+ * Visit a parse tree produced by `Python3Parser.sliceop`.
536
543
  * @param ctx the parse tree
537
544
  * @return the visitor result
538
545
  */
539
546
  visitSliceop?: (ctx: SliceopContext) => Result;
540
547
  /**
541
- * Visit a parse tree produced by `python3-parser.exprlist`.
548
+ * Visit a parse tree produced by `Python3Parser.exprlist`.
542
549
  * @param ctx the parse tree
543
550
  * @return the visitor result
544
551
  */
545
552
  visitExprlist?: (ctx: ExprlistContext) => Result;
546
553
  /**
547
- * Visit a parse tree produced by `python3-parser.testlist`.
554
+ * Visit a parse tree produced by `Python3Parser.testlist`.
548
555
  * @param ctx the parse tree
549
556
  * @return the visitor result
550
557
  */
551
558
  visitTestlist?: (ctx: TestlistContext) => Result;
552
559
  /**
553
- * Visit a parse tree produced by `python3-parser.dictorsetmaker`.
560
+ * Visit a parse tree produced by `Python3Parser.dictorsetmaker`.
554
561
  * @param ctx the parse tree
555
562
  * @return the visitor result
556
563
  */
557
564
  visitDictorsetmaker?: (ctx: DictorsetmakerContext) => Result;
558
565
  /**
559
- * Visit a parse tree produced by `python3-parser.classdef`.
566
+ * Visit a parse tree produced by `Python3Parser.classdef`.
560
567
  * @param ctx the parse tree
561
568
  * @return the visitor result
562
569
  */
563
570
  visitClassdef?: (ctx: ClassdefContext) => Result;
564
571
  /**
565
- * Visit a parse tree produced by `python3-parser.arglist`.
572
+ * Visit a parse tree produced by `Python3Parser.arglist`.
566
573
  * @param ctx the parse tree
567
574
  * @return the visitor result
568
575
  */
569
576
  visitArglist?: (ctx: ArglistContext) => Result;
570
577
  /**
571
- * Visit a parse tree produced by `python3-parser.argument`.
578
+ * Visit a parse tree produced by `Python3Parser.argument`.
572
579
  * @param ctx the parse tree
573
580
  * @return the visitor result
574
581
  */
575
582
  visitArgument?: (ctx: ArgumentContext) => Result;
576
583
  /**
577
- * Visit a parse tree produced by `python3-parser.comp_iter`.
584
+ * Visit a parse tree produced by `Python3Parser.comp_iter`.
578
585
  * @param ctx the parse tree
579
586
  * @return the visitor result
580
587
  */
581
588
  visitComp_iter?: (ctx: Comp_iterContext) => Result;
582
589
  /**
583
- * Visit a parse tree produced by `python3-parser.comp_for`.
590
+ * Visit a parse tree produced by `Python3Parser.comp_for`.
584
591
  * @param ctx the parse tree
585
592
  * @return the visitor result
586
593
  */
587
594
  visitComp_for?: (ctx: Comp_forContext) => Result;
588
595
  /**
589
- * Visit a parse tree produced by `python3-parser.comp_if`.
596
+ * Visit a parse tree produced by `Python3Parser.comp_if`.
590
597
  * @param ctx the parse tree
591
598
  * @return the visitor result
592
599
  */
593
600
  visitComp_if?: (ctx: Comp_ifContext) => Result;
594
601
  /**
595
- * Visit a parse tree produced by `python3-parser.encoding_decl`.
602
+ * Visit a parse tree produced by `Python3Parser.encoding_decl`.
596
603
  * @param ctx the parse tree
597
604
  * @return the visitor result
598
605
  */
599
606
  visitEncoding_decl?: (ctx: Encoding_declContext) => Result;
600
607
  /**
601
- * Visit a parse tree produced by `python3-parser.yield_expr`.
608
+ * Visit a parse tree produced by `Python3Parser.yield_expr`.
602
609
  * @param ctx the parse tree
603
610
  * @return the visitor result
604
611
  */
605
612
  visitYield_expr?: (ctx: Yield_exprContext) => Result;
606
613
  /**
607
- * Visit a parse tree produced by `python3-parser.yield_arg`.
614
+ * Visit a parse tree produced by `Python3Parser.yield_arg`.
608
615
  * @param ctx the parse tree
609
616
  * @return the visitor result
610
617
  */
@@ -1,3 +1,4 @@
1
1
  "use strict";
2
+ // Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
2
3
  Object.defineProperty(exports, "__esModule", { value: true });
3
4
  //# sourceMappingURL=python3-visitor.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"python3-visitor.js","sourceRoot":"","sources":["../../../../fontes/tradutores/python/python3-visitor.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"python3-visitor.js","sourceRoot":"","sources":["../../../../fontes/tradutores/python/python3-visitor.ts"],"names":[],"mappings":";AAAA,6EAA6E"}
@@ -1,5 +1,5 @@
1
1
  import { AcessoIndiceVariavel, AcessoMetodo, Agrupamento, AtribuicaoPorIndice, Atribuir, Binario, Chamada, DefinirValor, FuncaoConstruto, Literal, Logico, Unario, Variavel, Vetor } from '../construtos';
2
- import { Bloco, Classe, Const, Declaracao, Enquanto, Escolha, Escreva, Expressao, Fazer, FuncaoDeclaracao, Importar, Para, ParaCada, Retorna, Se, Tente, Var } from '../declaracoes';
2
+ import { Bloco, Classe, Const, Declaracao, Enquanto, Escolha, Escreva, Expressao, Fazer, FuncaoDeclaracao, Importar, Leia, Para, ParaCada, Retorna, Se, Tente, Var } from '../declaracoes';
3
3
  import { SimboloInterface, TradutorInterface } from '../interfaces';
4
4
  import { CaminhoEscolha } from '../interfaces/construtos';
5
5
  /**
@@ -31,7 +31,7 @@ export declare class TradutorJavaScript implements TradutorInterface {
31
31
  traduzirDeclaracaoFazer(declaracaoFazer: Fazer): string;
32
32
  traduzirDeclaracaoFuncao(declaracaoFuncao: FuncaoDeclaracao): string;
33
33
  traduzirDeclaracaoImportar(declaracaoImportar: Importar): string;
34
- traduzirDeclaracaoLeia(declaracaoImportar: Importar): string;
34
+ traduzirDeclaracaoLeia(declaracaoLeia: Leia): string;
35
35
  traduzirDeclaracaoParaCada(declaracaoParaCada: ParaCada): string;
36
36
  traduzirDeclaracaoPara(declaracaoPara: Para): string;
37
37
  traduzirDeclaracaoRetorna(declaracaoRetorna: Retorna): string;
@@ -327,7 +327,7 @@ class TradutorJavaScript {
327
327
  traduzirDeclaracaoImportar(declaracaoImportar) {
328
328
  return `'importar() não é suportado por este padrão de JavaScript'`;
329
329
  }
330
- traduzirDeclaracaoLeia(declaracaoImportar) {
330
+ traduzirDeclaracaoLeia(declaracaoLeia) {
331
331
  return `'leia() não é suportado por este padrão de JavaScript.'`;
332
332
  }
333
333
  traduzirDeclaracaoParaCada(declaracaoParaCada) {