@designliquido/delegua 0.35.1 → 0.35.2
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/bibliotecas/biblioteca-global.d.ts.map +1 -1
- package/bin/package.json +1 -1
- package/construtos/binario.d.ts +18 -7
- package/construtos/binario.d.ts.map +1 -1
- package/construtos/binario.js +18 -7
- package/construtos/binario.js.map +1 -1
- package/construtos/expressao-regular.d.ts +1 -1
- package/construtos/expressao-regular.d.ts.map +1 -1
- package/construtos/index.d.ts +0 -1
- package/construtos/index.d.ts.map +1 -1
- package/construtos/index.js +0 -1
- package/construtos/index.js.map +1 -1
- package/construtos/vetor.d.ts +2 -1
- package/construtos/vetor.d.ts.map +1 -1
- package/construtos/vetor.js +7 -1
- package/construtos/vetor.js.map +1 -1
- package/estruturas/delegua-funcao.d.ts +1 -0
- package/estruturas/delegua-funcao.d.ts.map +1 -1
- package/estruturas/delegua-funcao.js +14 -7
- package/estruturas/delegua-funcao.js.map +1 -1
- package/interfaces/formatador-comum-interface.d.ts +12 -0
- package/interfaces/formatador-comum-interface.d.ts.map +1 -0
- package/interfaces/formatador-comum-interface.js +3 -0
- package/interfaces/formatador-comum-interface.js.map +1 -0
- package/interfaces/index.d.ts +1 -0
- package/interfaces/index.d.ts.map +1 -1
- package/interfaces/index.js +1 -0
- package/interfaces/index.js.map +1 -1
- package/interfaces/variavel-hipotetica-interface.d.ts +1 -0
- package/interfaces/variavel-hipotetica-interface.d.ts.map +1 -1
- package/interfaces/visitante-comum-interface.d.ts +21 -21
- package/interfaces/visitante-comum-interface.d.ts.map +1 -1
- package/interpretador/interpretador-base.d.ts +8 -2
- package/interpretador/interpretador-base.d.ts.map +1 -1
- package/interpretador/interpretador-base.js +6 -0
- package/interpretador/interpretador-base.js.map +1 -1
- package/package.json +1 -1
- package/tradutores/tradutor-javascript.d.ts +1 -1
- package/tradutores/tradutor-javascript.d.ts.map +1 -1
- package/tradutores/tradutor-javascript.js +8 -4
- package/tradutores/tradutor-javascript.js.map +1 -1
- package/umd/delegua.js +161 -150
- package/construtos/constante-ou-variavel.d.ts +0 -20
- package/construtos/constante-ou-variavel.d.ts.map +0 -1
- package/construtos/constante-ou-variavel.js +0 -26
- package/construtos/constante-ou-variavel.js.map +0 -1
package/umd/delegua.js
CHANGED
|
@@ -223,7 +223,7 @@ class AvaliadorSintaticoBase {
|
|
|
223
223
|
}
|
|
224
224
|
exports.AvaliadorSintaticoBase = AvaliadorSintaticoBase;
|
|
225
225
|
|
|
226
|
-
},{"../construtos":
|
|
226
|
+
},{"../construtos":39,"../declaracoes":77,"../tipos-de-simbolos/comum":156,"./erro-avaliador-sintatico":7}],2:[function(require,module,exports){
|
|
227
227
|
"use strict";
|
|
228
228
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
229
229
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1313,7 +1313,7 @@ class AvaliadorSintatico {
|
|
|
1313
1313
|
}
|
|
1314
1314
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
1315
1315
|
|
|
1316
|
-
},{"../construtos":
|
|
1316
|
+
},{"../construtos":39,"../construtos/tuplas":48,"../declaracoes":77,"../lexador":146,"../tipos-de-dados/delegua":154,"../tipos-de-simbolos/delegua":157,"./erro-avaliador-sintatico":7,"browser-process-hrtime":332}],3:[function(require,module,exports){
|
|
1317
1317
|
"use strict";
|
|
1318
1318
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1319
1319
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -1963,7 +1963,7 @@ class AvaliadorSintaticoEguaClassico {
|
|
|
1963
1963
|
}
|
|
1964
1964
|
exports.AvaliadorSintaticoEguaClassico = AvaliadorSintaticoEguaClassico;
|
|
1965
1965
|
|
|
1966
|
-
},{"../../construtos":
|
|
1966
|
+
},{"../../construtos":39,"../../declaracoes":77,"../../tipos-de-simbolos/egua-classico":158,"../erro-avaliador-sintatico":7}],4:[function(require,module,exports){
|
|
1967
1967
|
"use strict";
|
|
1968
1968
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1969
1969
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2735,7 +2735,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
2735
2735
|
}
|
|
2736
2736
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
2737
2737
|
|
|
2738
|
-
},{"../../construtos":
|
|
2738
|
+
},{"../../construtos":39,"../../declaracoes":77,"../../lexador":146,"../../tipos-de-simbolos/pitugues":161,"../erro-avaliador-sintatico":7,"browser-process-hrtime":332}],5:[function(require,module,exports){
|
|
2739
2739
|
"use strict";
|
|
2740
2740
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2741
2741
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2905,7 +2905,7 @@ class AvaliadorSintaticoPortugolIpt extends avaliador_sintatico_base_1.Avaliador
|
|
|
2905
2905
|
}
|
|
2906
2906
|
exports.AvaliadorSintaticoPortugolIpt = AvaliadorSintaticoPortugolIpt;
|
|
2907
2907
|
|
|
2908
|
-
},{"../../construtos":
|
|
2908
|
+
},{"../../construtos":39,"../../declaracoes":77,"../../tipos-de-simbolos/portugol-ipt":162,"../avaliador-sintatico-base":1}],6:[function(require,module,exports){
|
|
2909
2909
|
"use strict";
|
|
2910
2910
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
2911
2911
|
if (k2 === undefined) k2 = k;
|
|
@@ -3081,7 +3081,7 @@ class MicroAvaliadorSintaticoBase {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
exports.MicroAvaliadorSintaticoBase = MicroAvaliadorSintaticoBase;
|
|
3083
3083
|
|
|
3084
|
-
},{"../construtos":
|
|
3084
|
+
},{"../construtos":39,"../tipos-de-simbolos/comum":156,"./erro-avaliador-sintatico":7}],10:[function(require,module,exports){
|
|
3085
3085
|
"use strict";
|
|
3086
3086
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3087
3087
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3370,7 +3370,7 @@ class MicroAvaliadorSintatico extends micro_avaliador_sintatico_base_1.MicroAval
|
|
|
3370
3370
|
}
|
|
3371
3371
|
exports.MicroAvaliadorSintatico = MicroAvaliadorSintatico;
|
|
3372
3372
|
|
|
3373
|
-
},{"../construtos":
|
|
3373
|
+
},{"../construtos":39,"../tipos-de-simbolos/microgramaticas/delegua":160,"./erro-avaliador-sintatico":7,"./micro-avaliador-sintatico-base":9}],11:[function(require,module,exports){
|
|
3374
3374
|
"use strict";
|
|
3375
3375
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3376
3376
|
if (k2 === undefined) k2 = k;
|
|
@@ -3903,7 +3903,7 @@ async function tupla(interpretador, vetor) {
|
|
|
3903
3903
|
}
|
|
3904
3904
|
exports.tupla = tupla;
|
|
3905
3905
|
|
|
3906
|
-
},{"../construtos":
|
|
3906
|
+
},{"../construtos":39,"../estruturas":100,"../estruturas/delegua-classe":97,"../estruturas/funcao-padrao":99,"../estruturas/objeto-delegua-classe":103,"../excecoes":106}],16:[function(require,module,exports){
|
|
3907
3907
|
"use strict";
|
|
3908
3908
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3909
3909
|
exports.default = {
|
|
@@ -4189,14 +4189,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4189
4189
|
exports.Binario = void 0;
|
|
4190
4190
|
/**
|
|
4191
4191
|
* Binário é uma estrutura com um operador e dois operandos: esquerda e direita.
|
|
4192
|
-
* Implementa as seguintes operações:
|
|
4192
|
+
* Implementa as seguintes operações para Delégua e todos os dialetos:
|
|
4193
4193
|
*
|
|
4194
|
-
* - `+` (Adição)
|
|
4195
|
-
* - `-` (Subtração)
|
|
4196
|
-
* - `*` (Multiplicação)
|
|
4197
|
-
* - `/` (Divisão)
|
|
4198
|
-
* - `%` (Módulo)
|
|
4199
|
-
*
|
|
4194
|
+
* - `+` (Adição);
|
|
4195
|
+
* - `-` (Subtração);
|
|
4196
|
+
* - `*` (Multiplicação);
|
|
4197
|
+
* - `/` (Divisão);
|
|
4198
|
+
* - `%` (Módulo);
|
|
4199
|
+
*
|
|
4200
|
+
* Algumas outras operações podem ser suportadas de dialeto para dialeto,
|
|
4201
|
+
* como por exemplo:
|
|
4202
|
+
*
|
|
4203
|
+
* - `+=` (Adição com Atribuição);
|
|
4204
|
+
* - `-=` (Subtração com Atribuição);
|
|
4205
|
+
* - `*=` (Multiplicação com Atribuição);
|
|
4206
|
+
* - `/=` (Divisão com Atribuição);
|
|
4207
|
+
* - `%=` (Módulo com Atribuição);
|
|
4208
|
+
* - `**` (Exponenciação);
|
|
4209
|
+
* - `::` (Concatenação);
|
|
4210
|
+
* - `\` (Divisão inteira).
|
|
4200
4211
|
*/
|
|
4201
4212
|
class Binario {
|
|
4202
4213
|
constructor(hashArquivo, esquerda, operador, direita) {
|
|
@@ -4235,7 +4246,7 @@ class Chamada {
|
|
|
4235
4246
|
}
|
|
4236
4247
|
exports.Chamada = Chamada;
|
|
4237
4248
|
|
|
4238
|
-
},{"../geracao-identificadores":
|
|
4249
|
+
},{"../geracao-identificadores":109}],29:[function(require,module,exports){
|
|
4239
4250
|
"use strict";
|
|
4240
4251
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4241
4252
|
exports.Comentario = void 0;
|
|
@@ -4260,33 +4271,6 @@ exports.Comentario = Comentario;
|
|
|
4260
4271
|
},{}],30:[function(require,module,exports){
|
|
4261
4272
|
"use strict";
|
|
4262
4273
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4263
|
-
exports.ConstanteOuVariavel = void 0;
|
|
4264
|
-
/**
|
|
4265
|
-
* Este construto existe para alguns dialetos, como Potigol, onde
|
|
4266
|
-
* não é possível definir se um construto é constante, variável,
|
|
4267
|
-
* identificador de função, tipo ou classe no momento da avaliação
|
|
4268
|
-
* primária.
|
|
4269
|
-
*
|
|
4270
|
-
* Durante o restante da avaliação sintática, esse construto deve **obrigatoriamente**
|
|
4271
|
-
* resolver para `Constante`, `Variavel` ou algum construto de chamada/declaração de
|
|
4272
|
-
* função.
|
|
4273
|
-
*/
|
|
4274
|
-
class ConstanteOuVariavel {
|
|
4275
|
-
constructor(hashArquivo, simbolo) {
|
|
4276
|
-
this.linha = Number(simbolo.linha);
|
|
4277
|
-
this.hashArquivo = hashArquivo;
|
|
4278
|
-
this.simbolo = simbolo;
|
|
4279
|
-
}
|
|
4280
|
-
async aceitar(visitante) {
|
|
4281
|
-
return Promise.reject(new Error('Este método não deveria ser chamado. ' +
|
|
4282
|
-
'O construto deve resolver como constante ou variável ainda na avaliação sintática.'));
|
|
4283
|
-
}
|
|
4284
|
-
}
|
|
4285
|
-
exports.ConstanteOuVariavel = ConstanteOuVariavel;
|
|
4286
|
-
|
|
4287
|
-
},{}],31:[function(require,module,exports){
|
|
4288
|
-
"use strict";
|
|
4289
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4290
4274
|
exports.Constante = void 0;
|
|
4291
4275
|
/**
|
|
4292
4276
|
* O construto de constante.
|
|
@@ -4303,11 +4287,11 @@ class Constante {
|
|
|
4303
4287
|
}
|
|
4304
4288
|
exports.Constante = Constante;
|
|
4305
4289
|
|
|
4306
|
-
},{}],
|
|
4290
|
+
},{}],31:[function(require,module,exports){
|
|
4307
4291
|
"use strict";
|
|
4308
4292
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4309
4293
|
|
|
4310
|
-
},{}],
|
|
4294
|
+
},{}],32:[function(require,module,exports){
|
|
4311
4295
|
"use strict";
|
|
4312
4296
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4313
4297
|
exports.Decorador = void 0;
|
|
@@ -4328,7 +4312,7 @@ class Decorador {
|
|
|
4328
4312
|
}
|
|
4329
4313
|
exports.Decorador = Decorador;
|
|
4330
4314
|
|
|
4331
|
-
},{}],
|
|
4315
|
+
},{}],33:[function(require,module,exports){
|
|
4332
4316
|
"use strict";
|
|
4333
4317
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4334
4318
|
exports.DefinirValor = void 0;
|
|
@@ -4346,7 +4330,7 @@ class DefinirValor {
|
|
|
4346
4330
|
}
|
|
4347
4331
|
exports.DefinirValor = DefinirValor;
|
|
4348
4332
|
|
|
4349
|
-
},{}],
|
|
4333
|
+
},{}],34:[function(require,module,exports){
|
|
4350
4334
|
"use strict";
|
|
4351
4335
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4352
4336
|
exports.Dicionario = void 0;
|
|
@@ -4363,7 +4347,7 @@ class Dicionario {
|
|
|
4363
4347
|
}
|
|
4364
4348
|
exports.Dicionario = Dicionario;
|
|
4365
4349
|
|
|
4366
|
-
},{}],
|
|
4350
|
+
},{}],35:[function(require,module,exports){
|
|
4367
4351
|
"use strict";
|
|
4368
4352
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4369
4353
|
exports.ExpressaoRegular = void 0;
|
|
@@ -4380,7 +4364,7 @@ class ExpressaoRegular {
|
|
|
4380
4364
|
}
|
|
4381
4365
|
exports.ExpressaoRegular = ExpressaoRegular;
|
|
4382
4366
|
|
|
4383
|
-
},{}],
|
|
4367
|
+
},{}],36:[function(require,module,exports){
|
|
4384
4368
|
"use strict";
|
|
4385
4369
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4386
4370
|
exports.FimPara = void 0;
|
|
@@ -4407,7 +4391,7 @@ class FimPara {
|
|
|
4407
4391
|
}
|
|
4408
4392
|
exports.FimPara = FimPara;
|
|
4409
4393
|
|
|
4410
|
-
},{}],
|
|
4394
|
+
},{}],37:[function(require,module,exports){
|
|
4411
4395
|
"use strict";
|
|
4412
4396
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4413
4397
|
exports.FormatacaoEscrita = void 0;
|
|
@@ -4430,7 +4414,7 @@ class FormatacaoEscrita {
|
|
|
4430
4414
|
}
|
|
4431
4415
|
exports.FormatacaoEscrita = FormatacaoEscrita;
|
|
4432
4416
|
|
|
4433
|
-
},{}],
|
|
4417
|
+
},{}],38:[function(require,module,exports){
|
|
4434
4418
|
"use strict";
|
|
4435
4419
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4436
4420
|
exports.FuncaoConstruto = void 0;
|
|
@@ -4448,7 +4432,7 @@ class FuncaoConstruto {
|
|
|
4448
4432
|
}
|
|
4449
4433
|
exports.FuncaoConstruto = FuncaoConstruto;
|
|
4450
4434
|
|
|
4451
|
-
},{}],
|
|
4435
|
+
},{}],39:[function(require,module,exports){
|
|
4452
4436
|
"use strict";
|
|
4453
4437
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4454
4438
|
if (k2 === undefined) k2 = k;
|
|
@@ -4476,7 +4460,6 @@ __exportStar(require("./binario"), exports);
|
|
|
4476
4460
|
__exportStar(require("./chamada"), exports);
|
|
4477
4461
|
__exportStar(require("./comentario"), exports);
|
|
4478
4462
|
__exportStar(require("./constante"), exports);
|
|
4479
|
-
__exportStar(require("./constante-ou-variavel"), exports);
|
|
4480
4463
|
__exportStar(require("./construto"), exports);
|
|
4481
4464
|
__exportStar(require("./decorador"), exports);
|
|
4482
4465
|
__exportStar(require("./definir-valor"), exports);
|
|
@@ -4496,7 +4479,7 @@ __exportStar(require("./variavel"), exports);
|
|
|
4496
4479
|
__exportStar(require("./vetor"), exports);
|
|
4497
4480
|
__exportStar(require("./qual-tipo"), exports);
|
|
4498
4481
|
|
|
4499
|
-
},{"./acesso-elemento-matriz":20,"./acesso-indice-variavel":21,"./acesso-metodo-ou-propriedade":22,"./agrupamento":23,"./atribuicao-por-indice":24,"./atribuicao-por-indices-matriz":25,"./atribuir":26,"./binario":27,"./chamada":28,"./comentario":29,"./constante":
|
|
4482
|
+
},{"./acesso-elemento-matriz":20,"./acesso-indice-variavel":21,"./acesso-metodo-ou-propriedade":22,"./agrupamento":23,"./atribuicao-por-indice":24,"./atribuicao-por-indices-matriz":25,"./atribuir":26,"./binario":27,"./chamada":28,"./comentario":29,"./constante":30,"./construto":31,"./decorador":32,"./definir-valor":33,"./dicionario":34,"./expressao-regular":35,"./fim-para":36,"./formatacao-escrita":37,"./funcao":38,"./isto":40,"./literal":41,"./logico":42,"./qual-tipo":43,"./super":44,"./tipo-de":45,"./tuplas":48,"./unario":57,"./variavel":58,"./vetor":59}],40:[function(require,module,exports){
|
|
4500
4483
|
"use strict";
|
|
4501
4484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4502
4485
|
exports.Isto = void 0;
|
|
@@ -4512,7 +4495,7 @@ class Isto {
|
|
|
4512
4495
|
}
|
|
4513
4496
|
exports.Isto = Isto;
|
|
4514
4497
|
|
|
4515
|
-
},{}],
|
|
4498
|
+
},{}],41:[function(require,module,exports){
|
|
4516
4499
|
"use strict";
|
|
4517
4500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4518
4501
|
exports.Literal = void 0;
|
|
@@ -4528,7 +4511,7 @@ class Literal {
|
|
|
4528
4511
|
}
|
|
4529
4512
|
exports.Literal = Literal;
|
|
4530
4513
|
|
|
4531
|
-
},{}],
|
|
4514
|
+
},{}],42:[function(require,module,exports){
|
|
4532
4515
|
"use strict";
|
|
4533
4516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4534
4517
|
exports.Logico = void 0;
|
|
@@ -4546,7 +4529,7 @@ class Logico {
|
|
|
4546
4529
|
}
|
|
4547
4530
|
exports.Logico = Logico;
|
|
4548
4531
|
|
|
4549
|
-
},{}],
|
|
4532
|
+
},{}],43:[function(require,module,exports){
|
|
4550
4533
|
"use strict";
|
|
4551
4534
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4552
4535
|
exports.QualTipo = void 0;
|
|
@@ -4564,7 +4547,7 @@ class QualTipo {
|
|
|
4564
4547
|
}
|
|
4565
4548
|
exports.QualTipo = QualTipo;
|
|
4566
4549
|
|
|
4567
|
-
},{}],
|
|
4550
|
+
},{}],44:[function(require,module,exports){
|
|
4568
4551
|
"use strict";
|
|
4569
4552
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4570
4553
|
exports.Super = void 0;
|
|
@@ -4581,7 +4564,7 @@ class Super {
|
|
|
4581
4564
|
}
|
|
4582
4565
|
exports.Super = Super;
|
|
4583
4566
|
|
|
4584
|
-
},{}],
|
|
4567
|
+
},{}],45:[function(require,module,exports){
|
|
4585
4568
|
"use strict";
|
|
4586
4569
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4587
4570
|
exports.TipoDe = void 0;
|
|
@@ -4598,7 +4581,7 @@ class TipoDe {
|
|
|
4598
4581
|
}
|
|
4599
4582
|
exports.TipoDe = TipoDe;
|
|
4600
4583
|
|
|
4601
|
-
},{}],
|
|
4584
|
+
},{}],46:[function(require,module,exports){
|
|
4602
4585
|
"use strict";
|
|
4603
4586
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4604
4587
|
exports.Deceto = void 0;
|
|
@@ -4632,7 +4615,7 @@ class Deceto extends tupla_1.Tupla {
|
|
|
4632
4615
|
}
|
|
4633
4616
|
exports.Deceto = Deceto;
|
|
4634
4617
|
|
|
4635
|
-
},{"./tupla":
|
|
4618
|
+
},{"./tupla":56}],47:[function(require,module,exports){
|
|
4636
4619
|
"use strict";
|
|
4637
4620
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4638
4621
|
exports.Dupla = void 0;
|
|
@@ -4646,7 +4629,7 @@ class Dupla extends tupla_1.Tupla {
|
|
|
4646
4629
|
}
|
|
4647
4630
|
exports.Dupla = Dupla;
|
|
4648
4631
|
|
|
4649
|
-
},{"./tupla":
|
|
4632
|
+
},{"./tupla":56}],48:[function(require,module,exports){
|
|
4650
4633
|
"use strict";
|
|
4651
4634
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4652
4635
|
if (k2 === undefined) k2 = k;
|
|
@@ -4715,7 +4698,7 @@ class SeletorTuplas {
|
|
|
4715
4698
|
}
|
|
4716
4699
|
exports.SeletorTuplas = SeletorTuplas;
|
|
4717
4700
|
|
|
4718
|
-
},{"./deceto":
|
|
4701
|
+
},{"./deceto":46,"./dupla":47,"./noneto":49,"./octeto":50,"./quarteto":51,"./quinteto":52,"./septeto":53,"./sexteto":54,"./trio":55,"./tupla":56}],49:[function(require,module,exports){
|
|
4719
4702
|
"use strict";
|
|
4720
4703
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4721
4704
|
exports.Noneto = void 0;
|
|
@@ -4742,7 +4725,7 @@ class Noneto extends tupla_1.Tupla {
|
|
|
4742
4725
|
}
|
|
4743
4726
|
exports.Noneto = Noneto;
|
|
4744
4727
|
|
|
4745
|
-
},{"./tupla":
|
|
4728
|
+
},{"./tupla":56}],50:[function(require,module,exports){
|
|
4746
4729
|
"use strict";
|
|
4747
4730
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4748
4731
|
exports.Octeto = void 0;
|
|
@@ -4768,7 +4751,7 @@ class Octeto extends tupla_1.Tupla {
|
|
|
4768
4751
|
}
|
|
4769
4752
|
exports.Octeto = Octeto;
|
|
4770
4753
|
|
|
4771
|
-
},{"./tupla":
|
|
4754
|
+
},{"./tupla":56}],51:[function(require,module,exports){
|
|
4772
4755
|
"use strict";
|
|
4773
4756
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4774
4757
|
exports.Quarteto = void 0;
|
|
@@ -4784,7 +4767,7 @@ class Quarteto extends tupla_1.Tupla {
|
|
|
4784
4767
|
}
|
|
4785
4768
|
exports.Quarteto = Quarteto;
|
|
4786
4769
|
|
|
4787
|
-
},{"./tupla":
|
|
4770
|
+
},{"./tupla":56}],52:[function(require,module,exports){
|
|
4788
4771
|
"use strict";
|
|
4789
4772
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4790
4773
|
exports.Quinteto = void 0;
|
|
@@ -4801,7 +4784,7 @@ class Quinteto extends tupla_1.Tupla {
|
|
|
4801
4784
|
}
|
|
4802
4785
|
exports.Quinteto = Quinteto;
|
|
4803
4786
|
|
|
4804
|
-
},{"./tupla":
|
|
4787
|
+
},{"./tupla":56}],53:[function(require,module,exports){
|
|
4805
4788
|
"use strict";
|
|
4806
4789
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4807
4790
|
exports.Septeto = void 0;
|
|
@@ -4826,7 +4809,7 @@ class Septeto extends tupla_1.Tupla {
|
|
|
4826
4809
|
}
|
|
4827
4810
|
exports.Septeto = Septeto;
|
|
4828
4811
|
|
|
4829
|
-
},{"./tupla":
|
|
4812
|
+
},{"./tupla":56}],54:[function(require,module,exports){
|
|
4830
4813
|
"use strict";
|
|
4831
4814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4832
4815
|
exports.Sexteto = void 0;
|
|
@@ -4844,7 +4827,7 @@ class Sexteto extends tupla_1.Tupla {
|
|
|
4844
4827
|
}
|
|
4845
4828
|
exports.Sexteto = Sexteto;
|
|
4846
4829
|
|
|
4847
|
-
},{"./tupla":
|
|
4830
|
+
},{"./tupla":56}],55:[function(require,module,exports){
|
|
4848
4831
|
"use strict";
|
|
4849
4832
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4850
4833
|
exports.Trio = void 0;
|
|
@@ -4859,7 +4842,7 @@ class Trio extends tupla_1.Tupla {
|
|
|
4859
4842
|
}
|
|
4860
4843
|
exports.Trio = Trio;
|
|
4861
4844
|
|
|
4862
|
-
},{"./tupla":
|
|
4845
|
+
},{"./tupla":56}],56:[function(require,module,exports){
|
|
4863
4846
|
"use strict";
|
|
4864
4847
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4865
4848
|
exports.Tupla = void 0;
|
|
@@ -4870,7 +4853,7 @@ class Tupla {
|
|
|
4870
4853
|
}
|
|
4871
4854
|
exports.Tupla = Tupla;
|
|
4872
4855
|
|
|
4873
|
-
},{}],
|
|
4856
|
+
},{}],57:[function(require,module,exports){
|
|
4874
4857
|
"use strict";
|
|
4875
4858
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4876
4859
|
exports.Unario = void 0;
|
|
@@ -4888,7 +4871,7 @@ class Unario {
|
|
|
4888
4871
|
}
|
|
4889
4872
|
exports.Unario = Unario;
|
|
4890
4873
|
|
|
4891
|
-
},{}],
|
|
4874
|
+
},{}],58:[function(require,module,exports){
|
|
4892
4875
|
"use strict";
|
|
4893
4876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4894
4877
|
exports.Variavel = void 0;
|
|
@@ -4904,15 +4887,21 @@ class Variavel {
|
|
|
4904
4887
|
}
|
|
4905
4888
|
exports.Variavel = Variavel;
|
|
4906
4889
|
|
|
4907
|
-
},{}],
|
|
4890
|
+
},{}],59:[function(require,module,exports){
|
|
4908
4891
|
"use strict";
|
|
4909
4892
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4910
4893
|
exports.Vetor = void 0;
|
|
4911
4894
|
class Vetor {
|
|
4912
|
-
constructor(hashArquivo, linha, valores) {
|
|
4895
|
+
constructor(hashArquivo, linha, valores, tamanho) {
|
|
4913
4896
|
this.linha = linha;
|
|
4914
4897
|
this.hashArquivo = hashArquivo;
|
|
4915
4898
|
this.valores = valores;
|
|
4899
|
+
if (tamanho) {
|
|
4900
|
+
this.tamanho = tamanho;
|
|
4901
|
+
}
|
|
4902
|
+
else {
|
|
4903
|
+
this.tamanho = this.valores.length;
|
|
4904
|
+
}
|
|
4916
4905
|
}
|
|
4917
4906
|
async aceitar(visitante) {
|
|
4918
4907
|
return await visitante.visitarExpressaoVetor(this);
|
|
@@ -4920,7 +4909,7 @@ class Vetor {
|
|
|
4920
4909
|
}
|
|
4921
4910
|
exports.Vetor = Vetor;
|
|
4922
4911
|
|
|
4923
|
-
},{}],
|
|
4912
|
+
},{}],60:[function(require,module,exports){
|
|
4924
4913
|
"use strict";
|
|
4925
4914
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4926
4915
|
exports.Aleatorio = void 0;
|
|
@@ -4937,7 +4926,7 @@ class Aleatorio extends declaracao_1.Declaracao {
|
|
|
4937
4926
|
}
|
|
4938
4927
|
exports.Aleatorio = Aleatorio;
|
|
4939
4928
|
|
|
4940
|
-
},{"./declaracao":
|
|
4929
|
+
},{"./declaracao":67}],61:[function(require,module,exports){
|
|
4941
4930
|
"use strict";
|
|
4942
4931
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4943
4932
|
exports.Bloco = void 0;
|
|
@@ -4953,7 +4942,7 @@ class Bloco extends declaracao_1.Declaracao {
|
|
|
4953
4942
|
}
|
|
4954
4943
|
exports.Bloco = Bloco;
|
|
4955
4944
|
|
|
4956
|
-
},{"./declaracao":
|
|
4945
|
+
},{"./declaracao":67}],62:[function(require,module,exports){
|
|
4957
4946
|
"use strict";
|
|
4958
4947
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4959
4948
|
exports.CabecalhoPrograma = void 0;
|
|
@@ -4969,7 +4958,7 @@ class CabecalhoPrograma extends declaracao_1.Declaracao {
|
|
|
4969
4958
|
}
|
|
4970
4959
|
exports.CabecalhoPrograma = CabecalhoPrograma;
|
|
4971
4960
|
|
|
4972
|
-
},{"./declaracao":
|
|
4961
|
+
},{"./declaracao":67}],63:[function(require,module,exports){
|
|
4973
4962
|
"use strict";
|
|
4974
4963
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4975
4964
|
exports.Classe = void 0;
|
|
@@ -4989,7 +4978,7 @@ class Classe extends declaracao_1.Declaracao {
|
|
|
4989
4978
|
}
|
|
4990
4979
|
exports.Classe = Classe;
|
|
4991
4980
|
|
|
4992
|
-
},{"./declaracao":
|
|
4981
|
+
},{"./declaracao":67}],64:[function(require,module,exports){
|
|
4993
4982
|
"use strict";
|
|
4994
4983
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4995
4984
|
exports.ConstMultiplo = void 0;
|
|
@@ -5010,7 +4999,7 @@ class ConstMultiplo extends declaracao_1.Declaracao {
|
|
|
5010
4999
|
}
|
|
5011
5000
|
exports.ConstMultiplo = ConstMultiplo;
|
|
5012
5001
|
|
|
5013
|
-
},{"./declaracao":
|
|
5002
|
+
},{"./declaracao":67}],65:[function(require,module,exports){
|
|
5014
5003
|
"use strict";
|
|
5015
5004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5016
5005
|
exports.Const = void 0;
|
|
@@ -5031,7 +5020,7 @@ class Const extends declaracao_1.Declaracao {
|
|
|
5031
5020
|
}
|
|
5032
5021
|
exports.Const = Const;
|
|
5033
5022
|
|
|
5034
|
-
},{"./declaracao":
|
|
5023
|
+
},{"./declaracao":67}],66:[function(require,module,exports){
|
|
5035
5024
|
"use strict";
|
|
5036
5025
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5037
5026
|
exports.Continua = void 0;
|
|
@@ -5046,7 +5035,7 @@ class Continua extends declaracao_1.Declaracao {
|
|
|
5046
5035
|
}
|
|
5047
5036
|
exports.Continua = Continua;
|
|
5048
5037
|
|
|
5049
|
-
},{"./declaracao":
|
|
5038
|
+
},{"./declaracao":67}],67:[function(require,module,exports){
|
|
5050
5039
|
"use strict";
|
|
5051
5040
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5052
5041
|
exports.Declaracao = void 0;
|
|
@@ -5065,7 +5054,7 @@ class Declaracao {
|
|
|
5065
5054
|
}
|
|
5066
5055
|
exports.Declaracao = Declaracao;
|
|
5067
5056
|
|
|
5068
|
-
},{}],
|
|
5057
|
+
},{}],68:[function(require,module,exports){
|
|
5069
5058
|
"use strict";
|
|
5070
5059
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5071
5060
|
exports.Enquanto = void 0;
|
|
@@ -5082,7 +5071,7 @@ class Enquanto extends declaracao_1.Declaracao {
|
|
|
5082
5071
|
}
|
|
5083
5072
|
exports.Enquanto = Enquanto;
|
|
5084
5073
|
|
|
5085
|
-
},{"./declaracao":
|
|
5074
|
+
},{"./declaracao":67}],69:[function(require,module,exports){
|
|
5086
5075
|
"use strict";
|
|
5087
5076
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5088
5077
|
exports.Escolha = void 0;
|
|
@@ -5103,7 +5092,7 @@ class Escolha extends declaracao_1.Declaracao {
|
|
|
5103
5092
|
}
|
|
5104
5093
|
exports.Escolha = Escolha;
|
|
5105
5094
|
|
|
5106
|
-
},{"./declaracao":
|
|
5095
|
+
},{"./declaracao":67}],70:[function(require,module,exports){
|
|
5107
5096
|
"use strict";
|
|
5108
5097
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5109
5098
|
exports.EscrevaMesmaLinha = void 0;
|
|
@@ -5119,7 +5108,7 @@ class EscrevaMesmaLinha extends declaracao_1.Declaracao {
|
|
|
5119
5108
|
}
|
|
5120
5109
|
exports.EscrevaMesmaLinha = EscrevaMesmaLinha;
|
|
5121
5110
|
|
|
5122
|
-
},{"./declaracao":
|
|
5111
|
+
},{"./declaracao":67}],71:[function(require,module,exports){
|
|
5123
5112
|
"use strict";
|
|
5124
5113
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5125
5114
|
exports.Escreva = void 0;
|
|
@@ -5135,7 +5124,7 @@ class Escreva extends declaracao_1.Declaracao {
|
|
|
5135
5124
|
}
|
|
5136
5125
|
exports.Escreva = Escreva;
|
|
5137
5126
|
|
|
5138
|
-
},{"./declaracao":
|
|
5127
|
+
},{"./declaracao":67}],72:[function(require,module,exports){
|
|
5139
5128
|
"use strict";
|
|
5140
5129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5141
5130
|
exports.Expressao = void 0;
|
|
@@ -5151,7 +5140,7 @@ class Expressao extends declaracao_1.Declaracao {
|
|
|
5151
5140
|
}
|
|
5152
5141
|
exports.Expressao = Expressao;
|
|
5153
5142
|
|
|
5154
|
-
},{"./declaracao":
|
|
5143
|
+
},{"./declaracao":67}],73:[function(require,module,exports){
|
|
5155
5144
|
"use strict";
|
|
5156
5145
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5157
5146
|
exports.Falhar = void 0;
|
|
@@ -5168,7 +5157,7 @@ class Falhar extends declaracao_1.Declaracao {
|
|
|
5168
5157
|
}
|
|
5169
5158
|
exports.Falhar = Falhar;
|
|
5170
5159
|
|
|
5171
|
-
},{"./declaracao":
|
|
5160
|
+
},{"./declaracao":67}],74:[function(require,module,exports){
|
|
5172
5161
|
"use strict";
|
|
5173
5162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5174
5163
|
exports.Fazer = void 0;
|
|
@@ -5185,7 +5174,7 @@ class Fazer extends declaracao_1.Declaracao {
|
|
|
5185
5174
|
}
|
|
5186
5175
|
exports.Fazer = Fazer;
|
|
5187
5176
|
|
|
5188
|
-
},{"./declaracao":
|
|
5177
|
+
},{"./declaracao":67}],75:[function(require,module,exports){
|
|
5189
5178
|
"use strict";
|
|
5190
5179
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5191
5180
|
exports.FuncaoDeclaracao = void 0;
|
|
@@ -5204,7 +5193,7 @@ class FuncaoDeclaracao extends declaracao_1.Declaracao {
|
|
|
5204
5193
|
}
|
|
5205
5194
|
exports.FuncaoDeclaracao = FuncaoDeclaracao;
|
|
5206
5195
|
|
|
5207
|
-
},{"./declaracao":
|
|
5196
|
+
},{"./declaracao":67}],76:[function(require,module,exports){
|
|
5208
5197
|
"use strict";
|
|
5209
5198
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5210
5199
|
exports.Importar = void 0;
|
|
@@ -5221,7 +5210,7 @@ class Importar extends declaracao_1.Declaracao {
|
|
|
5221
5210
|
}
|
|
5222
5211
|
exports.Importar = Importar;
|
|
5223
5212
|
|
|
5224
|
-
},{"./declaracao":
|
|
5213
|
+
},{"./declaracao":67}],77:[function(require,module,exports){
|
|
5225
5214
|
"use strict";
|
|
5226
5215
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5227
5216
|
if (k2 === undefined) k2 = k;
|
|
@@ -5270,7 +5259,7 @@ __exportStar(require("./var"), exports);
|
|
|
5270
5259
|
__exportStar(require("./var-multiplo"), exports);
|
|
5271
5260
|
__exportStar(require("./aleatorio"), exports);
|
|
5272
5261
|
|
|
5273
|
-
},{"./aleatorio":
|
|
5262
|
+
},{"./aleatorio":60,"./bloco":61,"./cabecalho-programa":62,"./classe":63,"./const":65,"./const-multiplo":64,"./continua":66,"./declaracao":67,"./enquanto":68,"./escolha":69,"./escreva":71,"./escreva-mesma-linha":70,"./expressao":72,"./falhar":73,"./fazer":74,"./funcao":75,"./importar":76,"./inicio-algoritmo":78,"./leia":80,"./leia-multiplo":79,"./para":82,"./para-cada":81,"./propriedade-classe":83,"./retorna":84,"./se":85,"./sustar":86,"./tendo-como":87,"./tente":88,"./var":90,"./var-multiplo":89}],78:[function(require,module,exports){
|
|
5274
5263
|
"use strict";
|
|
5275
5264
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5276
5265
|
exports.InicioAlgoritmo = void 0;
|
|
@@ -5285,7 +5274,7 @@ class InicioAlgoritmo extends declaracao_1.Declaracao {
|
|
|
5285
5274
|
}
|
|
5286
5275
|
exports.InicioAlgoritmo = InicioAlgoritmo;
|
|
5287
5276
|
|
|
5288
|
-
},{"./declaracao":
|
|
5277
|
+
},{"./declaracao":67}],79:[function(require,module,exports){
|
|
5289
5278
|
"use strict";
|
|
5290
5279
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5291
5280
|
exports.LeiaMultiplo = void 0;
|
|
@@ -5308,7 +5297,7 @@ class LeiaMultiplo extends declaracao_1.Declaracao {
|
|
|
5308
5297
|
}
|
|
5309
5298
|
exports.LeiaMultiplo = LeiaMultiplo;
|
|
5310
5299
|
|
|
5311
|
-
},{"../geracao-identificadores":
|
|
5300
|
+
},{"../geracao-identificadores":109,"./declaracao":67}],80:[function(require,module,exports){
|
|
5312
5301
|
"use strict";
|
|
5313
5302
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5314
5303
|
exports.Leia = void 0;
|
|
@@ -5331,7 +5320,7 @@ class Leia extends declaracao_1.Declaracao {
|
|
|
5331
5320
|
}
|
|
5332
5321
|
exports.Leia = Leia;
|
|
5333
5322
|
|
|
5334
|
-
},{"../geracao-identificadores":
|
|
5323
|
+
},{"../geracao-identificadores":109,"./declaracao":67}],81:[function(require,module,exports){
|
|
5335
5324
|
"use strict";
|
|
5336
5325
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5337
5326
|
exports.ParaCada = void 0;
|
|
@@ -5350,7 +5339,7 @@ class ParaCada extends declaracao_1.Declaracao {
|
|
|
5350
5339
|
}
|
|
5351
5340
|
exports.ParaCada = ParaCada;
|
|
5352
5341
|
|
|
5353
|
-
},{"./declaracao":
|
|
5342
|
+
},{"./declaracao":67}],82:[function(require,module,exports){
|
|
5354
5343
|
"use strict";
|
|
5355
5344
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5356
5345
|
exports.Para = void 0;
|
|
@@ -5376,7 +5365,7 @@ class Para extends declaracao_1.Declaracao {
|
|
|
5376
5365
|
}
|
|
5377
5366
|
exports.Para = Para;
|
|
5378
5367
|
|
|
5379
|
-
},{"./declaracao":
|
|
5368
|
+
},{"./declaracao":67}],83:[function(require,module,exports){
|
|
5380
5369
|
"use strict";
|
|
5381
5370
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5382
5371
|
exports.PropriedadeClasse = void 0;
|
|
@@ -5394,7 +5383,7 @@ class PropriedadeClasse extends declaracao_1.Declaracao {
|
|
|
5394
5383
|
}
|
|
5395
5384
|
exports.PropriedadeClasse = PropriedadeClasse;
|
|
5396
5385
|
|
|
5397
|
-
},{"./declaracao":
|
|
5386
|
+
},{"./declaracao":67}],84:[function(require,module,exports){
|
|
5398
5387
|
"use strict";
|
|
5399
5388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5400
5389
|
exports.Retorna = void 0;
|
|
@@ -5411,7 +5400,7 @@ class Retorna extends declaracao_1.Declaracao {
|
|
|
5411
5400
|
}
|
|
5412
5401
|
exports.Retorna = Retorna;
|
|
5413
5402
|
|
|
5414
|
-
},{"./declaracao":
|
|
5403
|
+
},{"./declaracao":67}],85:[function(require,module,exports){
|
|
5415
5404
|
"use strict";
|
|
5416
5405
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5417
5406
|
exports.Se = void 0;
|
|
@@ -5430,7 +5419,7 @@ class Se extends declaracao_1.Declaracao {
|
|
|
5430
5419
|
}
|
|
5431
5420
|
exports.Se = Se;
|
|
5432
5421
|
|
|
5433
|
-
},{"./declaracao":
|
|
5422
|
+
},{"./declaracao":67}],86:[function(require,module,exports){
|
|
5434
5423
|
"use strict";
|
|
5435
5424
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5436
5425
|
exports.Sustar = void 0;
|
|
@@ -5445,7 +5434,7 @@ class Sustar extends declaracao_1.Declaracao {
|
|
|
5445
5434
|
}
|
|
5446
5435
|
exports.Sustar = Sustar;
|
|
5447
5436
|
|
|
5448
|
-
},{"./declaracao":
|
|
5437
|
+
},{"./declaracao":67}],87:[function(require,module,exports){
|
|
5449
5438
|
"use strict";
|
|
5450
5439
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5451
5440
|
exports.TendoComo = void 0;
|
|
@@ -5468,7 +5457,7 @@ class TendoComo extends declaracao_1.Declaracao {
|
|
|
5468
5457
|
}
|
|
5469
5458
|
exports.TendoComo = TendoComo;
|
|
5470
5459
|
|
|
5471
|
-
},{"./declaracao":
|
|
5460
|
+
},{"./declaracao":67}],88:[function(require,module,exports){
|
|
5472
5461
|
"use strict";
|
|
5473
5462
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5474
5463
|
exports.Tente = void 0;
|
|
@@ -5490,7 +5479,7 @@ class Tente extends declaracao_1.Declaracao {
|
|
|
5490
5479
|
}
|
|
5491
5480
|
exports.Tente = Tente;
|
|
5492
5481
|
|
|
5493
|
-
},{"./declaracao":
|
|
5482
|
+
},{"./declaracao":67}],89:[function(require,module,exports){
|
|
5494
5483
|
"use strict";
|
|
5495
5484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5496
5485
|
exports.VarMultiplo = void 0;
|
|
@@ -5512,7 +5501,7 @@ class VarMultiplo extends declaracao_1.Declaracao {
|
|
|
5512
5501
|
}
|
|
5513
5502
|
exports.VarMultiplo = VarMultiplo;
|
|
5514
5503
|
|
|
5515
|
-
},{"./declaracao":
|
|
5504
|
+
},{"./declaracao":67}],90:[function(require,module,exports){
|
|
5516
5505
|
"use strict";
|
|
5517
5506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5518
5507
|
exports.Var = void 0;
|
|
@@ -5535,7 +5524,7 @@ class Var extends declaracao_1.Declaracao {
|
|
|
5535
5524
|
}
|
|
5536
5525
|
exports.Var = Var;
|
|
5537
5526
|
|
|
5538
|
-
},{"./declaracao":
|
|
5527
|
+
},{"./declaracao":67}],91:[function(require,module,exports){
|
|
5539
5528
|
"use strict";
|
|
5540
5529
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5541
5530
|
/**
|
|
@@ -5559,7 +5548,7 @@ function cyrb53(nomeArquivo, semente = 0) {
|
|
|
5559
5548
|
}
|
|
5560
5549
|
exports.default = cyrb53;
|
|
5561
5550
|
|
|
5562
|
-
},{}],
|
|
5551
|
+
},{}],92:[function(require,module,exports){
|
|
5563
5552
|
"use strict";
|
|
5564
5553
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5565
5554
|
if (k2 === undefined) k2 = k;
|
|
@@ -5584,11 +5573,11 @@ var cyrb53_1 = require("./cyrb53");
|
|
|
5584
5573
|
Object.defineProperty(exports, "cyrb53", { enumerable: true, get: function () { return __importDefault(cyrb53_1).default; } });
|
|
5585
5574
|
__exportStar(require("./ponto-parada"), exports);
|
|
5586
5575
|
|
|
5587
|
-
},{"./cyrb53":
|
|
5576
|
+
},{"./cyrb53":91,"./ponto-parada":93}],93:[function(require,module,exports){
|
|
5588
5577
|
"use strict";
|
|
5589
5578
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5590
5579
|
|
|
5591
|
-
},{}],
|
|
5580
|
+
},{}],94:[function(require,module,exports){
|
|
5592
5581
|
"use strict";
|
|
5593
5582
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5594
5583
|
exports.EspacoVariaveis = void 0;
|
|
@@ -5609,7 +5598,7 @@ class EspacoVariaveis {
|
|
|
5609
5598
|
}
|
|
5610
5599
|
exports.EspacoVariaveis = EspacoVariaveis;
|
|
5611
5600
|
|
|
5612
|
-
},{}],
|
|
5601
|
+
},{}],95:[function(require,module,exports){
|
|
5613
5602
|
"use strict";
|
|
5614
5603
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5615
5604
|
exports.Chamavel = void 0;
|
|
@@ -5623,7 +5612,7 @@ class Chamavel {
|
|
|
5623
5612
|
}
|
|
5624
5613
|
exports.Chamavel = Chamavel;
|
|
5625
5614
|
|
|
5626
|
-
},{}],
|
|
5615
|
+
},{}],96:[function(require,module,exports){
|
|
5627
5616
|
"use strict";
|
|
5628
5617
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5629
5618
|
exports.ClassePadrao = void 0;
|
|
@@ -5664,7 +5653,7 @@ class ClassePadrao extends chamavel_1.Chamavel {
|
|
|
5664
5653
|
}
|
|
5665
5654
|
exports.ClassePadrao = ClassePadrao;
|
|
5666
5655
|
|
|
5667
|
-
},{"./chamavel":
|
|
5656
|
+
},{"./chamavel":95}],97:[function(require,module,exports){
|
|
5668
5657
|
"use strict";
|
|
5669
5658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5670
5659
|
exports.DeleguaClasse = void 0;
|
|
@@ -5743,7 +5732,7 @@ class DeleguaClasse extends chamavel_1.Chamavel {
|
|
|
5743
5732
|
}
|
|
5744
5733
|
exports.DeleguaClasse = DeleguaClasse;
|
|
5745
5734
|
|
|
5746
|
-
},{"../excecoes":
|
|
5735
|
+
},{"../excecoes":106,"./chamavel":95,"./objeto-delegua-classe":103}],98:[function(require,module,exports){
|
|
5747
5736
|
"use strict";
|
|
5748
5737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5749
5738
|
exports.DeleguaFuncao = void 0;
|
|
@@ -5773,7 +5762,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
5773
5762
|
*/
|
|
5774
5763
|
paraTexto() {
|
|
5775
5764
|
var _a;
|
|
5776
|
-
if (this.nome
|
|
5765
|
+
if (!this.nome)
|
|
5777
5766
|
return '<função>';
|
|
5778
5767
|
let resultado = `<função ${this.nome}`;
|
|
5779
5768
|
let parametros = '';
|
|
@@ -5805,6 +5794,14 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
5805
5794
|
toString() {
|
|
5806
5795
|
return this.paraTexto();
|
|
5807
5796
|
}
|
|
5797
|
+
resolverParametrosEspalhados(argumentos, indiceArgumentoAtual) {
|
|
5798
|
+
const argumentosResolvidos = [];
|
|
5799
|
+
for (let i = indiceArgumentoAtual; i < argumentos.length; indiceArgumentoAtual++) {
|
|
5800
|
+
const argumentoAtual = argumentos[i];
|
|
5801
|
+
argumentosResolvidos.push(argumentoAtual && argumentoAtual.hasOwnProperty('valor') ? argumentoAtual.valor : argumentoAtual);
|
|
5802
|
+
}
|
|
5803
|
+
return argumentosResolvidos;
|
|
5804
|
+
}
|
|
5808
5805
|
async chamar(visitante, argumentos) {
|
|
5809
5806
|
const ambiente = new espaco_variaveis_1.EspacoVariaveis();
|
|
5810
5807
|
const parametros = this.declaracao.parametros || [];
|
|
@@ -5812,11 +5809,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
5812
5809
|
const parametro = parametros[i];
|
|
5813
5810
|
const nome = parametro['nome'].lexema;
|
|
5814
5811
|
if (parametro.abrangencia === 'multiplo') {
|
|
5815
|
-
const argumentosResolvidos =
|
|
5816
|
-
for (let indiceArgumentoAtual = i; indiceArgumentoAtual < argumentos.length; indiceArgumentoAtual++) {
|
|
5817
|
-
const argumentoAtual = argumentos[indiceArgumentoAtual];
|
|
5818
|
-
argumentosResolvidos.push(argumentoAtual && argumentoAtual.hasOwnProperty('valor') ? argumentoAtual.valor : argumentoAtual);
|
|
5819
|
-
}
|
|
5812
|
+
const argumentosResolvidos = this.resolverParametrosEspalhados(argumentos, i);
|
|
5820
5813
|
// TODO: Verificar se `imutavel` é `true` aqui mesmo.
|
|
5821
5814
|
ambiente.valores[nome] = { tipo: 'vetor', valor: argumentosResolvidos, imutavel: true };
|
|
5822
5815
|
}
|
|
@@ -5834,7 +5827,10 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
5834
5827
|
tipo: 'objeto',
|
|
5835
5828
|
imutavel: false,
|
|
5836
5829
|
};
|
|
5837
|
-
|
|
5830
|
+
// TODO: Apenass Potigol usa isso até então.
|
|
5831
|
+
// Estudar mover isso para o dialeto.
|
|
5832
|
+
if (this.instancia.classe.dialetoRequerExpansaoPropriedadesEspacoVariaveis &&
|
|
5833
|
+
this.nome !== 'construtor') {
|
|
5838
5834
|
for (let [nomeCampo, valorCampo] of Object.entries(this.instancia.propriedades)) {
|
|
5839
5835
|
ambiente.valores[nomeCampo] = {
|
|
5840
5836
|
valor: valorCampo,
|
|
@@ -5879,7 +5875,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
5879
5875
|
}
|
|
5880
5876
|
exports.DeleguaFuncao = DeleguaFuncao;
|
|
5881
5877
|
|
|
5882
|
-
},{"../declaracoes":
|
|
5878
|
+
},{"../declaracoes":77,"../espaco-variaveis":94,"../interpretador/inferenciador":134,"../quebras":153,"./chamavel":95}],99:[function(require,module,exports){
|
|
5883
5879
|
"use strict";
|
|
5884
5880
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5885
5881
|
exports.FuncaoPadrao = void 0;
|
|
@@ -5915,7 +5911,7 @@ class FuncaoPadrao extends chamavel_1.Chamavel {
|
|
|
5915
5911
|
}
|
|
5916
5912
|
exports.FuncaoPadrao = FuncaoPadrao;
|
|
5917
5913
|
|
|
5918
|
-
},{"./chamavel":
|
|
5914
|
+
},{"./chamavel":95}],100:[function(require,module,exports){
|
|
5919
5915
|
"use strict";
|
|
5920
5916
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5921
5917
|
if (k2 === undefined) k2 = k;
|
|
@@ -5942,7 +5938,7 @@ __exportStar(require("./modulo"), exports);
|
|
|
5942
5938
|
__exportStar(require("./objeto-delegua-classe"), exports);
|
|
5943
5939
|
__exportStar(require("./objeto-padrao"), exports);
|
|
5944
5940
|
|
|
5945
|
-
},{"./chamavel":
|
|
5941
|
+
},{"./chamavel":95,"./classe-padrao":96,"./delegua-classe":97,"./delegua-funcao":98,"./funcao-padrao":99,"./metodo-primitiva":101,"./modulo":102,"./objeto-delegua-classe":103,"./objeto-padrao":104}],101:[function(require,module,exports){
|
|
5946
5942
|
"use strict";
|
|
5947
5943
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5948
5944
|
exports.MetodoPrimitiva = void 0;
|
|
@@ -5984,7 +5980,7 @@ class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
|
5984
5980
|
}
|
|
5985
5981
|
exports.MetodoPrimitiva = MetodoPrimitiva;
|
|
5986
5982
|
|
|
5987
|
-
},{"./chamavel":
|
|
5983
|
+
},{"./chamavel":95}],102:[function(require,module,exports){
|
|
5988
5984
|
"use strict";
|
|
5989
5985
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5990
5986
|
exports.DeleguaModulo = void 0;
|
|
@@ -6010,7 +6006,7 @@ class DeleguaModulo {
|
|
|
6010
6006
|
}
|
|
6011
6007
|
exports.DeleguaModulo = DeleguaModulo;
|
|
6012
6008
|
|
|
6013
|
-
},{}],
|
|
6009
|
+
},{}],103:[function(require,module,exports){
|
|
6014
6010
|
"use strict";
|
|
6015
6011
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6016
6012
|
exports.ObjetoDeleguaClasse = void 0;
|
|
@@ -6065,7 +6061,7 @@ class ObjetoDeleguaClasse {
|
|
|
6065
6061
|
}
|
|
6066
6062
|
exports.ObjetoDeleguaClasse = ObjetoDeleguaClasse;
|
|
6067
6063
|
|
|
6068
|
-
},{"../excecoes":
|
|
6064
|
+
},{"../excecoes":106}],104:[function(require,module,exports){
|
|
6069
6065
|
"use strict";
|
|
6070
6066
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6071
6067
|
exports.ObjetoPadrao = void 0;
|
|
@@ -6099,7 +6095,7 @@ class ObjetoPadrao {
|
|
|
6099
6095
|
}
|
|
6100
6096
|
exports.ObjetoPadrao = ObjetoPadrao;
|
|
6101
6097
|
|
|
6102
|
-
},{}],
|
|
6098
|
+
},{}],105:[function(require,module,exports){
|
|
6103
6099
|
"use strict";
|
|
6104
6100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6105
6101
|
exports.ErroEmTempoDeExecucao = void 0;
|
|
@@ -6114,7 +6110,7 @@ class ErroEmTempoDeExecucao extends Error {
|
|
|
6114
6110
|
}
|
|
6115
6111
|
exports.ErroEmTempoDeExecucao = ErroEmTempoDeExecucao;
|
|
6116
6112
|
|
|
6117
|
-
},{}],
|
|
6113
|
+
},{}],106:[function(require,module,exports){
|
|
6118
6114
|
"use strict";
|
|
6119
6115
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6120
6116
|
if (k2 === undefined) k2 = k;
|
|
@@ -6133,7 +6129,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6133
6129
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6134
6130
|
__exportStar(require("./erro-em-tempo-de-execucao"), exports);
|
|
6135
6131
|
|
|
6136
|
-
},{"./erro-em-tempo-de-execucao":
|
|
6132
|
+
},{"./erro-em-tempo-de-execucao":105}],107:[function(require,module,exports){
|
|
6137
6133
|
"use strict";
|
|
6138
6134
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6139
6135
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6811,7 +6807,7 @@ class FormatadorDelegua {
|
|
|
6811
6807
|
}
|
|
6812
6808
|
exports.FormatadorDelegua = FormatadorDelegua;
|
|
6813
6809
|
|
|
6814
|
-
},{"../construtos":
|
|
6810
|
+
},{"../construtos":39,"../tipos-de-simbolos/delegua":157}],108:[function(require,module,exports){
|
|
6815
6811
|
"use strict";
|
|
6816
6812
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6817
6813
|
if (k2 === undefined) k2 = k;
|
|
@@ -6830,7 +6826,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6830
6826
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6831
6827
|
__exportStar(require("./formatador-delegua"), exports);
|
|
6832
6828
|
|
|
6833
|
-
},{"./formatador-delegua":
|
|
6829
|
+
},{"./formatador-delegua":107}],109:[function(require,module,exports){
|
|
6834
6830
|
"use strict";
|
|
6835
6831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6836
6832
|
exports.uuidv4 = void 0;
|
|
@@ -6855,7 +6851,7 @@ function uuidv4() {
|
|
|
6855
6851
|
}
|
|
6856
6852
|
exports.uuidv4 = uuidv4;
|
|
6857
6853
|
|
|
6858
|
-
},{}],
|
|
6854
|
+
},{}],110:[function(require,module,exports){
|
|
6859
6855
|
"use strict";
|
|
6860
6856
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6861
6857
|
if (k2 === undefined) k2 = k;
|
|
@@ -6884,15 +6880,15 @@ __exportStar(require("./interpretador"), exports);
|
|
|
6884
6880
|
__exportStar(require("./lexador"), exports);
|
|
6885
6881
|
__exportStar(require("./tradutores"), exports);
|
|
6886
6882
|
|
|
6887
|
-
},{"./avaliador-sintatico":8,"./construtos":
|
|
6883
|
+
},{"./avaliador-sintatico":8,"./construtos":39,"./declaracoes":77,"./depuracao":92,"./formatadores":108,"./interfaces":116,"./interpretador":133,"./lexador":146,"./tradutores":163}],111:[function(require,module,exports){
|
|
6888
6884
|
"use strict";
|
|
6889
6885
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6890
6886
|
|
|
6891
|
-
},{}],
|
|
6887
|
+
},{}],112:[function(require,module,exports){
|
|
6892
6888
|
"use strict";
|
|
6893
6889
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6894
6890
|
|
|
6895
|
-
},{}],
|
|
6891
|
+
},{}],113:[function(require,module,exports){
|
|
6896
6892
|
"use strict";
|
|
6897
6893
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6898
6894
|
exports.DiagnosticoSeveridade = void 0;
|
|
@@ -6904,7 +6900,7 @@ var DiagnosticoSeveridade;
|
|
|
6904
6900
|
DiagnosticoSeveridade[DiagnosticoSeveridade["SUGESTAO"] = 3] = "SUGESTAO";
|
|
6905
6901
|
})(DiagnosticoSeveridade = exports.DiagnosticoSeveridade || (exports.DiagnosticoSeveridade = {}));
|
|
6906
6902
|
|
|
6907
|
-
},{}],
|
|
6903
|
+
},{}],114:[function(require,module,exports){
|
|
6908
6904
|
"use strict";
|
|
6909
6905
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6910
6906
|
if (k2 === undefined) k2 = k;
|
|
@@ -6923,7 +6919,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6923
6919
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6924
6920
|
__exportStar(require("./diagnostico-analisador-semantico"), exports);
|
|
6925
6921
|
|
|
6926
|
-
},{"./diagnostico-analisador-semantico":
|
|
6922
|
+
},{"./diagnostico-analisador-semantico":113}],115:[function(require,module,exports){
|
|
6923
|
+
"use strict";
|
|
6924
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6925
|
+
|
|
6926
|
+
},{}],116:[function(require,module,exports){
|
|
6927
6927
|
"use strict";
|
|
6928
6928
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6929
6929
|
if (k2 === undefined) k2 = k;
|
|
@@ -6941,6 +6941,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
6941
6941
|
};
|
|
6942
6942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6943
6943
|
__exportStar(require("./avaliador-sintatico-interface"), exports);
|
|
6944
|
+
__exportStar(require("./formatador-comum-interface"), exports);
|
|
6944
6945
|
__exportStar(require("./interpretador-com-depuracao-interface"), exports);
|
|
6945
6946
|
__exportStar(require("./interpretador-interface"), exports);
|
|
6946
6947
|
__exportStar(require("./lexador-interface"), exports);
|
|
@@ -6956,7 +6957,7 @@ __exportStar(require("./construtos"), exports);
|
|
|
6956
6957
|
__exportStar(require("./erros"), exports);
|
|
6957
6958
|
__exportStar(require("./retornos"), exports);
|
|
6958
6959
|
|
|
6959
|
-
},{"./avaliador-sintatico-interface":
|
|
6960
|
+
},{"./avaliador-sintatico-interface":111,"./construtos":112,"./erros":114,"./formatador-comum-interface":115,"./interpretador-com-depuracao-interface":117,"./interpretador-interface":118,"./lexador-interface":119,"./parametro-interface":120,"./pilha-interface":121,"./resolvedor-interface":122,"./retornos":123,"./retornos/retorno-execucao-interface":125,"./simbolo-interface":128,"./tradutor-interface":129,"./variavel-interface":130,"./visitante-comum-interface":131}],117:[function(require,module,exports){
|
|
6960
6961
|
"use strict";
|
|
6961
6962
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6962
6963
|
|
|
@@ -7088,7 +7089,7 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
7088
7089
|
}
|
|
7089
7090
|
exports.carregarBibliotecasGlobais = carregarBibliotecasGlobais;
|
|
7090
7091
|
|
|
7091
|
-
},{"../bibliotecas/biblioteca-global":15,"../estruturas/funcao-padrao":
|
|
7092
|
+
},{"../bibliotecas/biblioteca-global":15,"../estruturas/funcao-padrao":99}],133:[function(require,module,exports){
|
|
7092
7093
|
"use strict";
|
|
7093
7094
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7094
7095
|
if (k2 === undefined) k2 = k;
|
|
@@ -7525,6 +7526,12 @@ class InterpretadorBase {
|
|
|
7525
7526
|
}
|
|
7526
7527
|
return resultado;
|
|
7527
7528
|
}
|
|
7529
|
+
/**
|
|
7530
|
+
* Lógica para verificação de valores iguais, para Delégua e alguns dialetos.
|
|
7531
|
+
* @param esquerda Uma variável.
|
|
7532
|
+
* @param direita Outra variável.
|
|
7533
|
+
* @returns Verdadeiro se são iguais. Falso em caso contrário.
|
|
7534
|
+
*/
|
|
7528
7535
|
eIgual(esquerda, direita) {
|
|
7529
7536
|
if (esquerda === null && direita === null)
|
|
7530
7537
|
return true;
|
|
@@ -8582,7 +8589,7 @@ class InterpretadorBase {
|
|
|
8582
8589
|
exports.InterpretadorBase = InterpretadorBase;
|
|
8583
8590
|
|
|
8584
8591
|
}).call(this)}).call(this,require('_process'))
|
|
8585
|
-
},{"../avaliador-sintatico":8,"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../construtos":
|
|
8592
|
+
},{"../avaliador-sintatico":8,"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../construtos":39,"../espaco-variaveis":94,"../estruturas":100,"../estruturas/metodo-primitiva":101,"../excecoes":106,"../lexador":146,"../quebras":153,"../tipos-de-dados/delegua":154,"../tipos-de-dados/primitivos":155,"../tipos-de-simbolos/delegua":157,"./comum":132,"./inferenciador":134,"./pilha-escopos-execucao":137,"_process":371,"browser-process-hrtime":332}],136:[function(require,module,exports){
|
|
8586
8593
|
"use strict";
|
|
8587
8594
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8588
8595
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -9152,7 +9159,7 @@ class InterpretadorComDepuracao extends interpretador_base_1.InterpretadorBase {
|
|
|
9152
9159
|
}
|
|
9153
9160
|
exports.InterpretadorComDepuracao = InterpretadorComDepuracao;
|
|
9154
9161
|
|
|
9155
|
-
},{"../declaracoes":
|
|
9162
|
+
},{"../declaracoes":77,"../espaco-variaveis":94,"../quebras":153,"./inferenciador":134,"./interpretador-base":135,"lodash":364}],137:[function(require,module,exports){
|
|
9156
9163
|
"use strict";
|
|
9157
9164
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9158
9165
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -9387,7 +9394,7 @@ class PilhaEscoposExecucao {
|
|
|
9387
9394
|
}
|
|
9388
9395
|
exports.PilhaEscoposExecucao = PilhaEscoposExecucao;
|
|
9389
9396
|
|
|
9390
|
-
},{"../estruturas":
|
|
9397
|
+
},{"../estruturas":100,"../excecoes":106,"../lexador":146,"../tipos-de-dados/delegua":154,"./inferenciador":134}],138:[function(require,module,exports){
|
|
9391
9398
|
"use strict";
|
|
9392
9399
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9393
9400
|
if (k2 === undefined) k2 = k;
|
|
@@ -24993,7 +25000,7 @@ class TradutorAssemblyScript {
|
|
|
24993
25000
|
}
|
|
24994
25001
|
exports.TradutorAssemblyScript = TradutorAssemblyScript;
|
|
24995
25002
|
|
|
24996
|
-
},{"../construtos":
|
|
25003
|
+
},{"../construtos":39,"../declaracoes":77,"../tipos-de-simbolos/delegua":157}],167:[function(require,module,exports){
|
|
24997
25004
|
"use strict";
|
|
24998
25005
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24999
25006
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -25013,7 +25020,7 @@ class TradutorJavaScript {
|
|
|
25013
25020
|
this.indentacao = 0;
|
|
25014
25021
|
this.dicionarioConstrutos = {
|
|
25015
25022
|
AcessoIndiceVariavel: this.traduzirAcessoIndiceVariavel.bind(this),
|
|
25016
|
-
AcessoMetodoOuPropriedade: this.
|
|
25023
|
+
AcessoMetodoOuPropriedade: this.traduzirConstrutoAcessoMetodo.bind(this),
|
|
25017
25024
|
Agrupamento: this.traduzirConstrutoAgrupamento.bind(this),
|
|
25018
25025
|
AtribuicaoPorIndice: this.traduzirConstrutoAtribuicaoPorIndice.bind(this),
|
|
25019
25026
|
Atribuir: this.traduzirConstrutoAtribuir.bind(this),
|
|
@@ -25180,14 +25187,18 @@ class TradutorJavaScript {
|
|
|
25180
25187
|
else {
|
|
25181
25188
|
resultado += retorno;
|
|
25182
25189
|
}
|
|
25183
|
-
|
|
25190
|
+
if (!retorno.endsWith('length')) {
|
|
25191
|
+
resultado += '(';
|
|
25192
|
+
}
|
|
25184
25193
|
for (let parametro of chamada.argumentos) {
|
|
25185
25194
|
resultado += this.dicionarioConstrutos[parametro.constructor.name](parametro) + ', ';
|
|
25186
25195
|
}
|
|
25187
25196
|
if (chamada.argumentos.length > 0) {
|
|
25188
25197
|
resultado = resultado.slice(0, -2);
|
|
25189
25198
|
}
|
|
25190
|
-
|
|
25199
|
+
if (!retorno.endsWith('length')) {
|
|
25200
|
+
resultado += ')';
|
|
25201
|
+
}
|
|
25191
25202
|
return resultado;
|
|
25192
25203
|
}
|
|
25193
25204
|
traduzirConstrutoComentario(comentario) {
|
|
@@ -25469,7 +25480,7 @@ class TradutorJavaScript {
|
|
|
25469
25480
|
}
|
|
25470
25481
|
return resultado;
|
|
25471
25482
|
}
|
|
25472
|
-
|
|
25483
|
+
traduzirConstrutoAcessoMetodo(acessoMetodo) {
|
|
25473
25484
|
if (acessoMetodo.objeto instanceof construtos_1.Variavel) {
|
|
25474
25485
|
let objetoVariavel = acessoMetodo.objeto;
|
|
25475
25486
|
return `${objetoVariavel.simbolo.lexema}.${this.traduzirFuncoesNativas(acessoMetodo.simbolo.lexema)}`;
|
|
@@ -25568,7 +25579,7 @@ class TradutorJavaScript {
|
|
|
25568
25579
|
}
|
|
25569
25580
|
exports.TradutorJavaScript = TradutorJavaScript;
|
|
25570
25581
|
|
|
25571
|
-
},{"../construtos":
|
|
25582
|
+
},{"../construtos":39,"../declaracoes":77,"../tipos-de-simbolos/delegua":157}],168:[function(require,module,exports){
|
|
25572
25583
|
"use strict";
|
|
25573
25584
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25574
25585
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -26093,7 +26104,7 @@ class TradutorPython {
|
|
|
26093
26104
|
}
|
|
26094
26105
|
exports.TradutorPython = TradutorPython;
|
|
26095
26106
|
|
|
26096
|
-
},{"../construtos":
|
|
26107
|
+
},{"../construtos":39,"../declaracoes":77,"../tipos-de-simbolos/delegua":157}],170:[function(require,module,exports){
|
|
26097
26108
|
"use strict";
|
|
26098
26109
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26099
26110
|
exports.TradutorReversoJavaScript = void 0;
|
|
@@ -72095,5 +72106,5 @@ module.exports = function hasToStringTagShams() {
|
|
|
72095
72106
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
72096
72107
|
};
|
|
72097
72108
|
|
|
72098
|
-
},{"has-symbols/shams":354}]},{},[
|
|
72109
|
+
},{"has-symbols/shams":354}]},{},[110])(110)
|
|
72099
72110
|
});
|