@designliquido/delegua 1.16.1 → 1.16.3
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/analisador-semantico/analisador-semantico.d.ts +14 -0
- package/analisador-semantico/analisador-semantico.d.ts.map +1 -1
- package/analisador-semantico/analisador-semantico.js +20 -12
- package/analisador-semantico/analisador-semantico.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts +5 -0
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/bin/package.json +1 -1
- package/estilizador/estilizador-delegua.d.ts.map +1 -1
- package/estilizador/estilizador-delegua.js +10 -2
- package/estilizador/estilizador-delegua.js.map +1 -1
- package/estilizador/index.d.ts +1 -0
- package/estilizador/index.d.ts.map +1 -1
- package/estilizador/index.js +1 -0
- package/estilizador/index.js.map +1 -1
- package/estilizador/quebrador-linha.d.ts +18 -0
- package/estilizador/quebrador-linha.d.ts.map +1 -0
- package/estilizador/quebrador-linha.js +184 -0
- package/estilizador/quebrador-linha.js.map +1 -0
- package/estilizador/regras/index.d.ts +3 -3
- package/estilizador/regras/index.d.ts.map +1 -1
- package/estilizador/regras/index.js +3 -3
- package/estilizador/regras/index.js.map +1 -1
- package/estilizador/regras/{convencao-nomenclatura.d.ts → regra-convencao-nomenclatura.d.ts} +3 -28
- package/estilizador/regras/regra-convencao-nomenclatura.d.ts.map +1 -0
- package/estilizador/regras/{convencao-nomenclatura.js → regra-convencao-nomenclatura.js} +1 -1
- package/estilizador/regras/regra-convencao-nomenclatura.js.map +1 -0
- package/estilizador/regras/{fortalecer-tipos.d.ts → regra-fortalecer-tipos.d.ts} +1 -1
- package/estilizador/regras/regra-fortalecer-tipos.d.ts.map +1 -0
- package/estilizador/regras/{fortalecer-tipos.js → regra-fortalecer-tipos.js} +1 -1
- package/estilizador/regras/regra-fortalecer-tipos.js.map +1 -0
- package/estilizador/regras/{paradigma-consistente.d.ts → regra-paradigma-consistente.d.ts} +1 -1
- package/estilizador/regras/regra-paradigma-consistente.d.ts.map +1 -0
- package/estilizador/regras/{paradigma-consistente.js → regra-paradigma-consistente.js} +1 -1
- package/estilizador/regras/regra-paradigma-consistente.js.map +1 -0
- package/interfaces/estilizador/estilizador-interface.d.ts +1 -6
- package/interfaces/estilizador/estilizador-interface.d.ts.map +1 -1
- package/interfaces/estilizador/index.d.ts +2 -0
- package/interfaces/estilizador/index.d.ts.map +1 -1
- package/interfaces/estilizador/index.js +2 -0
- package/interfaces/estilizador/index.js.map +1 -1
- package/interfaces/estilizador/opcoes-convencao-nomenclatura-interface.d.ts +26 -0
- package/interfaces/estilizador/opcoes-convencao-nomenclatura-interface.d.ts.map +1 -0
- package/interfaces/estilizador/opcoes-convencao-nomenclatura-interface.js +3 -0
- package/interfaces/estilizador/opcoes-convencao-nomenclatura-interface.js.map +1 -0
- package/interfaces/estilizador/opcoes-formatacao-estilizador-interface.d.ts +8 -0
- package/interfaces/estilizador/opcoes-formatacao-estilizador-interface.d.ts.map +1 -0
- package/interfaces/estilizador/opcoes-formatacao-estilizador-interface.js +3 -0
- package/interfaces/estilizador/opcoes-formatacao-estilizador-interface.js.map +1 -0
- package/interpretador/dialetos/pitugues/interpretador-pitugues.js +3 -3
- package/interpretador/dialetos/pitugues/interpretador-pitugues.js.map +1 -1
- package/interpretador/interpretador-base.d.ts +1 -0
- package/interpretador/interpretador-base.d.ts.map +1 -1
- package/interpretador/interpretador-base.js +2 -0
- package/interpretador/interpretador-base.js.map +1 -1
- package/interpretador/interpretador.d.ts.map +1 -1
- package/interpretador/interpretador.js +12 -0
- package/interpretador/interpretador.js.map +1 -1
- package/package.json +1 -1
- package/tradutores/index.d.ts +1 -1
- package/tradutores/index.d.ts.map +1 -1
- package/tradutores/index.js +1 -1
- package/tradutores/index.js.map +1 -1
- package/tradutores/tradutor-reverso-calango.d.ts +45 -0
- package/tradutores/tradutor-reverso-calango.d.ts.map +1 -0
- package/tradutores/tradutor-reverso-calango.js +351 -0
- package/tradutores/tradutor-reverso-calango.js.map +1 -0
- package/tradutores/tradutor-reverso-python.d.ts +58 -26
- package/tradutores/tradutor-reverso-python.d.ts.map +1 -1
- package/tradutores/tradutor-reverso-python.js +609 -52
- package/tradutores/tradutor-reverso-python.js.map +1 -1
- package/umd/delegua.js +1716 -606
- package/estilizador/regras/convencao-nomenclatura.d.ts.map +0 -1
- package/estilizador/regras/convencao-nomenclatura.js.map +0 -1
- package/estilizador/regras/fortalecer-tipos.d.ts.map +0 -1
- package/estilizador/regras/fortalecer-tipos.js.map +0 -1
- package/estilizador/regras/paradigma-consistente.d.ts.map +0 -1
- package/estilizador/regras/paradigma-consistente.js.map +0 -1
- package/tradutores/tradutor-calango.d.ts +0 -23
- package/tradutores/tradutor-calango.d.ts.map +0 -1
- package/tradutores/tradutor-calango.js +0 -54
- package/tradutores/tradutor-calango.js.map +0 -1
package/umd/delegua.js
CHANGED
|
@@ -476,7 +476,7 @@ class AnalisadorSemanticoBase {
|
|
|
476
476
|
}
|
|
477
477
|
exports.AnalisadorSemanticoBase = AnalisadorSemanticoBase;
|
|
478
478
|
|
|
479
|
-
},{"../construtos":62,"../declaracoes":110,"../interfaces":
|
|
479
|
+
},{"../construtos":62,"../declaracoes":110,"../interfaces":150,"../quebras":218,"./gerenciador-escopos":5}],2:[function(require,module,exports){
|
|
480
480
|
"use strict";
|
|
481
481
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
482
482
|
exports.AnalisadorSemantico = void 0;
|
|
@@ -557,6 +557,13 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
557
557
|
visitarExpressaoTipoDe(expressao) {
|
|
558
558
|
return this.verificarTipoDe(expressao.valor);
|
|
559
559
|
}
|
|
560
|
+
/**
|
|
561
|
+
* Método recursivo para verificar o tipo de um construto, usado principalmente para validar
|
|
562
|
+
* o uso de `tipoDe` e `falhar()`.
|
|
563
|
+
* @param {Construto} valor O construto a ser avaliado.
|
|
564
|
+
* @returns {Promise<any>} O tipo do construto, ou `Promise.resolve()` se o tipo não puder ser
|
|
565
|
+
* determinado neste estágio da análise.
|
|
566
|
+
*/
|
|
560
567
|
verificarTipoDe(valor) {
|
|
561
568
|
switch (valor.constructor) {
|
|
562
569
|
case construtos_1.Agrupamento:
|
|
@@ -576,6 +583,13 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
576
583
|
visitarExpressaoFalhar(expressao) {
|
|
577
584
|
return this.verificarFalhar(expressao.explicacao);
|
|
578
585
|
}
|
|
586
|
+
/**
|
|
587
|
+
* Método recursivo para verificar se um construto passado para `falhar()` é válido, ou seja, se é
|
|
588
|
+
* do tipo texto ou pode ser avaliado como texto.
|
|
589
|
+
* @param {Construto} valor O construto a ser avaliado.
|
|
590
|
+
* @returns {Promise<any>} O tipo do construto, ou `Promise.resolve()` se o tipo não puder ser
|
|
591
|
+
* determinado neste estágio da análise.
|
|
592
|
+
*/
|
|
579
593
|
verificarFalhar(valor) {
|
|
580
594
|
if (valor instanceof construtos_1.Binario) {
|
|
581
595
|
this.verificarFalhar(valor.direita);
|
|
@@ -612,9 +626,7 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
612
626
|
}
|
|
613
627
|
}
|
|
614
628
|
visitarChamadaPorArgumentoReferenciaFuncao(argumentoReferenciaFuncao, argumentos) {
|
|
615
|
-
const variavelCorrespondente =
|
|
616
|
-
// this.variaveis[argumentoReferenciaFuncao.simboloFuncao.lexema].valor;
|
|
617
|
-
this.gerenciadorEscopos.buscar(argumentoReferenciaFuncao.simboloFuncao.lexema)?.valor;
|
|
629
|
+
const variavelCorrespondente = this.gerenciadorEscopos.buscar(argumentoReferenciaFuncao.simboloFuncao.lexema)?.valor;
|
|
618
630
|
if (!variavelCorrespondente) {
|
|
619
631
|
return;
|
|
620
632
|
}
|
|
@@ -761,14 +773,6 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
761
773
|
}
|
|
762
774
|
}
|
|
763
775
|
}
|
|
764
|
-
/* if (valor.imutavel) {
|
|
765
|
-
this.erro(simboloAlvo, `Constante ${simboloAlvo.lexema} não pode ser modificada.`);
|
|
766
|
-
return Promise.resolve();
|
|
767
|
-
} else {
|
|
768
|
-
if (this.variaveis[simboloAlvo.lexema]) {
|
|
769
|
-
this.variaveis[simboloAlvo.lexema].valor = expressao.valor;
|
|
770
|
-
}
|
|
771
|
-
} */
|
|
772
776
|
return Promise.resolve();
|
|
773
777
|
}
|
|
774
778
|
async visitarDeclaracaoDeExpressao(declaracao) {
|
|
@@ -853,7 +857,11 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
853
857
|
}
|
|
854
858
|
return Promise.resolve();
|
|
855
859
|
}
|
|
856
|
-
visitarDeclaracaoFazer(declaracao) {
|
|
860
|
+
async visitarDeclaracaoFazer(declaracao) {
|
|
861
|
+
// Visita corpo para que usos/atribuições dentro do bloco sejam analisados.
|
|
862
|
+
for (const declaracaoCorpo of declaracao.caminhoFazer.declaracoes) {
|
|
863
|
+
await declaracaoCorpo.aceitar(this);
|
|
864
|
+
}
|
|
857
865
|
// Marca variáveis usadas na condição
|
|
858
866
|
this.marcarVariaveisUsadasEmExpressao(declaracao.condicaoEnquanto);
|
|
859
867
|
// Verifica a condição
|
|
@@ -1627,7 +1635,7 @@ class AnalisadorSemantico extends analisador_semantico_base_1.AnalisadorSemantic
|
|
|
1627
1635
|
}
|
|
1628
1636
|
exports.AnalisadorSemantico = AnalisadorSemantico;
|
|
1629
1637
|
|
|
1630
|
-
},{"../avaliador-sintatico/comum":11,"../avaliador-sintatico/micro-avaliador-sintatico":24,"../construtos":62,"../declaracoes":110,"../interfaces/erros":
|
|
1638
|
+
},{"../avaliador-sintatico/comum":11,"../avaliador-sintatico/micro-avaliador-sintatico":24,"../construtos":62,"../declaracoes":110,"../interfaces/erros":147,"../lexador/micro-lexador":215,"./analisador-semantico-base":1,"./gerenciador-escopos":5,"./pilha-variaveis":7}],3:[function(require,module,exports){
|
|
1631
1639
|
"use strict";
|
|
1632
1640
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
1633
1641
|
|
|
@@ -2045,7 +2053,7 @@ class AvaliadorSintaticoBase {
|
|
|
2045
2053
|
}
|
|
2046
2054
|
exports.AvaliadorSintaticoBase = AvaliadorSintaticoBase;
|
|
2047
2055
|
|
|
2048
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/comum":
|
|
2056
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/comum":223,"./erro-avaliador-sintatico":20}],10:[function(require,module,exports){
|
|
2049
2057
|
"use strict";
|
|
2050
2058
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2051
2059
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4938,7 +4946,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
4938
4946
|
}
|
|
4939
4947
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
4940
4948
|
|
|
4941
|
-
},{"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../construtos/tuplas":80,"../declaracoes":110,"../inferenciador":
|
|
4949
|
+
},{"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../construtos/tuplas":80,"../declaracoes":110,"../inferenciador":138,"../informacao-elemento-sintatico":139,"../tipos-de-dados/delegua":219,"../tipos-de-simbolos/delegua":224,"./avaliador-sintatico-base":9,"./comum":11,"./elemento-montao-tipos":19,"./erro-avaliador-sintatico":20,"./informacao-escopo":22,"./montao-tipos":25,"./pilha-escopos":26,"browser-process-hrtime":417}],11:[function(require,module,exports){
|
|
4942
4950
|
"use strict";
|
|
4943
4951
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4944
4952
|
exports.buscarRetornos = buscarRetornos;
|
|
@@ -5053,7 +5061,7 @@ function registrarPrimitiva(primitivasConhecidas, tipo, catalogoPrimitivas) {
|
|
|
5053
5061
|
}
|
|
5054
5062
|
}
|
|
5055
5063
|
|
|
5056
|
-
},{"../declaracoes":110,"../informacao-elemento-sintatico":
|
|
5064
|
+
},{"../declaracoes":110,"../informacao-elemento-sintatico":139}],12:[function(require,module,exports){
|
|
5057
5065
|
"use strict";
|
|
5058
5066
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5059
5067
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -5713,7 +5721,7 @@ class AvaliadorSintaticoEguaClassico {
|
|
|
5713
5721
|
}
|
|
5714
5722
|
exports.AvaliadorSintaticoEguaClassico = AvaliadorSintaticoEguaClassico;
|
|
5715
5723
|
|
|
5716
|
-
},{"../../construtos":62,"../../declaracoes":110,"../../tipos-de-simbolos/egua-classico":
|
|
5724
|
+
},{"../../construtos":62,"../../declaracoes":110,"../../tipos-de-simbolos/egua-classico":225,"../erro-avaliador-sintatico":20}],13:[function(require,module,exports){
|
|
5717
5725
|
"use strict";
|
|
5718
5726
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5719
5727
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7424,7 +7432,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
7424
7432
|
}
|
|
7425
7433
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
7426
7434
|
|
|
7427
|
-
},{"../../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":110,"../../inferenciador":
|
|
7435
|
+
},{"../../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":110,"../../inferenciador":138,"../../informacao-elemento-sintatico":139,"../../lexador":209,"../../lexador/micro-lexador-pitugues":214,"../../tipos-de-dados/dialetos/pitugues":220,"../../tipos-de-simbolos/pitugues":228,"../comum":11,"../erro-avaliador-sintatico":20,"../informacao-escopo":22,"../pilha-escopos":26,"./micro-avaliador-sintatico-pitugues":18,"browser-process-hrtime":417}],14:[function(require,module,exports){
|
|
7428
7436
|
"use strict";
|
|
7429
7437
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7430
7438
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7598,7 +7606,7 @@ class AvaliadorSintaticoPortugolIpt extends avaliador_sintatico_base_1.Avaliador
|
|
|
7598
7606
|
}
|
|
7599
7607
|
exports.AvaliadorSintaticoPortugolIpt = AvaliadorSintaticoPortugolIpt;
|
|
7600
7608
|
|
|
7601
|
-
},{"../../construtos":62,"../../declaracoes":110,"../../tipos-de-simbolos/portugol-ipt":
|
|
7609
|
+
},{"../../construtos":62,"../../declaracoes":110,"../../tipos-de-simbolos/portugol-ipt":229,"../avaliador-sintatico-base":9}],15:[function(require,module,exports){
|
|
7602
7610
|
"use strict";
|
|
7603
7611
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7604
7612
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -8568,7 +8576,7 @@ class AvaliadorSintaticoPrisma extends avaliador_sintatico_base_1.AvaliadorSinta
|
|
|
8568
8576
|
}
|
|
8569
8577
|
exports.AvaliadorSintaticoPrisma = AvaliadorSintaticoPrisma;
|
|
8570
8578
|
|
|
8571
|
-
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":110,"../../inferenciador":
|
|
8579
|
+
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":110,"../../inferenciador":138,"../../informacao-elemento-sintatico":139,"../../lexador":209,"../../tipos-de-simbolos/prisma":230,"../avaliador-sintatico-base":9,"../comum":11,"../erro-avaliador-sintatico":20,"../informacao-escopo":22,"../pilha-escopos":26,"browser-process-hrtime":417}],16:[function(require,module,exports){
|
|
8572
8580
|
"use strict";
|
|
8573
8581
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8574
8582
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -9580,7 +9588,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
9580
9588
|
}
|
|
9581
9589
|
exports.AvaliadorSintaticoTenda = AvaliadorSintaticoTenda;
|
|
9582
9590
|
|
|
9583
|
-
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../construtos/tuplas":80,"../../declaracoes":110,"../../inferenciador":
|
|
9591
|
+
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../construtos/tuplas":80,"../../declaracoes":110,"../../inferenciador":138,"../../informacao-elemento-sintatico":139,"../../lexador/simbolo":217,"../../tipos-de-dados/delegua":219,"../../tipos-de-simbolos/tenda":231,"../avaliador-sintatico-base":9,"./../erro-avaliador-sintatico":20,"./../informacao-escopo":22,"./../pilha-escopos":26,"browser-process-hrtime":417}],17:[function(require,module,exports){
|
|
9584
9592
|
"use strict";
|
|
9585
9593
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
9586
9594
|
if (k2 === undefined) k2 = k;
|
|
@@ -9843,7 +9851,7 @@ class MicroAvaliadorSintaticoPitugues extends micro_avaliador_sintatico_base_1.M
|
|
|
9843
9851
|
}
|
|
9844
9852
|
exports.MicroAvaliadorSintaticoPitugues = MicroAvaliadorSintaticoPitugues;
|
|
9845
9853
|
|
|
9846
|
-
},{"../../construtos":62,"../../declaracoes":110,"../../inferenciador":
|
|
9854
|
+
},{"../../construtos":62,"../../declaracoes":110,"../../inferenciador":138,"../../tipos-de-simbolos/pitugues":228,"../micro-avaliador-sintatico-base":23}],19:[function(require,module,exports){
|
|
9847
9855
|
"use strict";
|
|
9848
9856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9849
9857
|
exports.ElementoMontaoTipos = void 0;
|
|
@@ -10025,7 +10033,7 @@ class MicroAvaliadorSintaticoBase {
|
|
|
10025
10033
|
}
|
|
10026
10034
|
exports.MicroAvaliadorSintaticoBase = MicroAvaliadorSintaticoBase;
|
|
10027
10035
|
|
|
10028
|
-
},{"../construtos":62,"../tipos-de-simbolos/comum":
|
|
10036
|
+
},{"../construtos":62,"../tipos-de-simbolos/comum":223,"./erro-avaliador-sintatico":20}],24:[function(require,module,exports){
|
|
10029
10037
|
"use strict";
|
|
10030
10038
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10031
10039
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10240,7 +10248,7 @@ class MicroAvaliadorSintatico extends micro_avaliador_sintatico_base_1.MicroAval
|
|
|
10240
10248
|
}
|
|
10241
10249
|
exports.MicroAvaliadorSintatico = MicroAvaliadorSintatico;
|
|
10242
10250
|
|
|
10243
|
-
},{"../construtos":62,"../tipos-de-simbolos/microgramaticas/delegua":
|
|
10251
|
+
},{"../construtos":62,"../tipos-de-simbolos/microgramaticas/delegua":227,"./micro-avaliador-sintatico-base":23}],25:[function(require,module,exports){
|
|
10244
10252
|
"use strict";
|
|
10245
10253
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10246
10254
|
exports.MontaoTipos = void 0;
|
|
@@ -10291,7 +10299,7 @@ class MontaoTipos {
|
|
|
10291
10299
|
}
|
|
10292
10300
|
exports.MontaoTipos = MontaoTipos;
|
|
10293
10301
|
|
|
10294
|
-
},{"../geracao-identificadores":
|
|
10302
|
+
},{"../geracao-identificadores":136,"./erro-avaliador-sintatico":20}],26:[function(require,module,exports){
|
|
10295
10303
|
"use strict";
|
|
10296
10304
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10297
10305
|
exports.PilhaEscopos = void 0;
|
|
@@ -11533,7 +11541,7 @@ async function vetor(interpretador, tupla) {
|
|
|
11533
11541
|
return resultadoFinal;
|
|
11534
11542
|
}
|
|
11535
11543
|
|
|
11536
|
-
},{"../construtos":62,"../excecoes":
|
|
11544
|
+
},{"../construtos":62,"../excecoes":132,"../interpretador/estruturas":180,"../interpretador/estruturas/descritor-tipo-classe":178,"../interpretador/estruturas/funcao-padrao":179,"../interpretador/estruturas/objeto-delegua-classe":185,"../quebras":218}],28:[function(require,module,exports){
|
|
11537
11545
|
"use strict";
|
|
11538
11546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11539
11547
|
const excecoes_1 = require("../../../excecoes");
|
|
@@ -11556,7 +11564,7 @@ exports.default = {
|
|
|
11556
11564
|
},
|
|
11557
11565
|
};
|
|
11558
11566
|
|
|
11559
|
-
},{"../../../construtos":62,"../../../excecoes":
|
|
11567
|
+
},{"../../../construtos":62,"../../../excecoes":132}],29:[function(require,module,exports){
|
|
11560
11568
|
"use strict";
|
|
11561
11569
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11562
11570
|
const construtos_1 = require("../construtos");
|
|
@@ -11638,7 +11646,7 @@ exports.default = {
|
|
|
11638
11646
|
},
|
|
11639
11647
|
};
|
|
11640
11648
|
|
|
11641
|
-
},{"../construtos":62,"../informacao-elemento-sintatico":
|
|
11649
|
+
},{"../construtos":62,"../informacao-elemento-sintatico":139}],30:[function(require,module,exports){
|
|
11642
11650
|
"use strict";
|
|
11643
11651
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11644
11652
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
@@ -11723,7 +11731,7 @@ exports.default = {
|
|
|
11723
11731
|
},
|
|
11724
11732
|
};
|
|
11725
11733
|
|
|
11726
|
-
},{"../informacao-elemento-sintatico":
|
|
11734
|
+
},{"../informacao-elemento-sintatico":139}],31:[function(require,module,exports){
|
|
11727
11735
|
"use strict";
|
|
11728
11736
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11729
11737
|
exports.implementacaoParticao = void 0;
|
|
@@ -12122,7 +12130,7 @@ exports.default = {
|
|
|
12122
12130
|
},
|
|
12123
12131
|
};
|
|
12124
12132
|
|
|
12125
|
-
},{"../construtos":62,"../excecoes":
|
|
12133
|
+
},{"../construtos":62,"../excecoes":132,"../informacao-elemento-sintatico":139}],32:[function(require,module,exports){
|
|
12126
12134
|
"use strict";
|
|
12127
12135
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12128
12136
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
@@ -12533,7 +12541,7 @@ exports.default = {
|
|
|
12533
12541
|
},
|
|
12534
12542
|
};
|
|
12535
12543
|
|
|
12536
|
-
},{"../construtos":62,"../excecoes":
|
|
12544
|
+
},{"../construtos":62,"../excecoes":132,"../inferenciador":138,"../informacao-elemento-sintatico":139}],33:[function(require,module,exports){
|
|
12537
12545
|
"use strict";
|
|
12538
12546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12539
12547
|
exports.AcessoElementoMatriz = void 0;
|
|
@@ -13008,7 +13016,7 @@ class Chamada {
|
|
|
13008
13016
|
}
|
|
13009
13017
|
exports.Chamada = Chamada;
|
|
13010
13018
|
|
|
13011
|
-
},{"../geracao-identificadores":
|
|
13019
|
+
},{"../geracao-identificadores":136}],47:[function(require,module,exports){
|
|
13012
13020
|
"use strict";
|
|
13013
13021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13014
13022
|
exports.ComentarioComoConstruto = void 0;
|
|
@@ -13519,7 +13527,7 @@ class Leia {
|
|
|
13519
13527
|
}
|
|
13520
13528
|
exports.Leia = Leia;
|
|
13521
13529
|
|
|
13522
|
-
},{"../geracao-identificadores":
|
|
13530
|
+
},{"../geracao-identificadores":136}],65:[function(require,module,exports){
|
|
13523
13531
|
"use strict";
|
|
13524
13532
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13525
13533
|
exports.ListaCompreensao = void 0;
|
|
@@ -14748,7 +14756,7 @@ class FuncaoDeclaracao extends declaracao_1.Declaracao {
|
|
|
14748
14756
|
}
|
|
14749
14757
|
exports.FuncaoDeclaracao = FuncaoDeclaracao;
|
|
14750
14758
|
|
|
14751
|
-
},{"../geracao-identificadores":
|
|
14759
|
+
},{"../geracao-identificadores":136,"./declaracao":99}],109:[function(require,module,exports){
|
|
14752
14760
|
"use strict";
|
|
14753
14761
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14754
14762
|
exports.Importar = void 0;
|
|
@@ -15184,6 +15192,7 @@ exports.Var = Var;
|
|
|
15184
15192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15185
15193
|
exports.EstilizadorDelegua = void 0;
|
|
15186
15194
|
const formatadores_1 = require("../formatadores");
|
|
15195
|
+
const quebrador_linha_1 = require("./quebrador-linha");
|
|
15187
15196
|
/**
|
|
15188
15197
|
* Estilizador de código para Delégua.
|
|
15189
15198
|
* Aplica transformações no AST para enforcar convenções e melhorar qualidade do código.
|
|
@@ -15412,15 +15421,22 @@ class EstilizadorDelegua {
|
|
|
15412
15421
|
}
|
|
15413
15422
|
estilizarEFormatar(declaracoes, opcoesFormatacao = {}) {
|
|
15414
15423
|
const declaracoesEstilizadas = this.estilizar(declaracoes);
|
|
15415
|
-
const
|
|
15424
|
+
const separadorLinha = opcoesFormatacao.quebraLinha || '\n';
|
|
15425
|
+
const tamanhoIndentacao = opcoesFormatacao.tamanhoIndentacao ?? 4;
|
|
15426
|
+
const formatador = new formatadores_1.FormatadorDelegua(separadorLinha, tamanhoIndentacao, {
|
|
15416
15427
|
delimitadorTexto: opcoesFormatacao.delimitadorTexto,
|
|
15417
15428
|
});
|
|
15418
|
-
|
|
15429
|
+
let codigo = formatador.formatar(declaracoesEstilizadas);
|
|
15430
|
+
if (opcoesFormatacao.maximoCaracteresPorLinha !== undefined) {
|
|
15431
|
+
const quebrador = new quebrador_linha_1.QuebradorDeLinha(opcoesFormatacao.maximoCaracteresPorLinha, tamanhoIndentacao, separadorLinha);
|
|
15432
|
+
codigo = quebrador.quebrar(codigo);
|
|
15433
|
+
}
|
|
15434
|
+
return codigo;
|
|
15419
15435
|
}
|
|
15420
15436
|
}
|
|
15421
15437
|
exports.EstilizadorDelegua = EstilizadorDelegua;
|
|
15422
15438
|
|
|
15423
|
-
},{"../formatadores":
|
|
15439
|
+
},{"../formatadores":135,"./quebrador-linha":126}],125:[function(require,module,exports){
|
|
15424
15440
|
"use strict";
|
|
15425
15441
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15426
15442
|
if (k2 === undefined) k2 = k;
|
|
@@ -15438,9 +15454,216 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15438
15454
|
};
|
|
15439
15455
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15440
15456
|
__exportStar(require("./estilizador-delegua"), exports);
|
|
15457
|
+
__exportStar(require("./quebrador-linha"), exports);
|
|
15441
15458
|
__exportStar(require("./regras"), exports);
|
|
15442
15459
|
|
|
15443
|
-
},{"./estilizador-delegua":124,"./regras":
|
|
15460
|
+
},{"./estilizador-delegua":124,"./quebrador-linha":126,"./regras":127}],126:[function(require,module,exports){
|
|
15461
|
+
"use strict";
|
|
15462
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15463
|
+
exports.QuebradorDeLinha = void 0;
|
|
15464
|
+
/**
|
|
15465
|
+
* Operadores lógicos reconhecidos como pontos de quebra.
|
|
15466
|
+
* Inclui as formas em português geradas pelo FormatadorDelegua.
|
|
15467
|
+
*/
|
|
15468
|
+
const OPERADORES_LOGICOS = [' && ', ' || ', ' e ', ' ou ', ' em '];
|
|
15469
|
+
/**
|
|
15470
|
+
* Operadores binários multi-caractere reconhecidos como pontos de quebra.
|
|
15471
|
+
*/
|
|
15472
|
+
const OPERADORES_BINARIOS_MULTI = [' == ', ' != ', ' >= ', ' <= '];
|
|
15473
|
+
/**
|
|
15474
|
+
* Verifica se a posição `pos` está dentro de um literal de texto na linha.
|
|
15475
|
+
* Suporta aspas simples e duplas, respeitando escapes com `\`.
|
|
15476
|
+
*/
|
|
15477
|
+
function estaEmString(linha, pos) {
|
|
15478
|
+
let emString = false;
|
|
15479
|
+
let delimitador = '';
|
|
15480
|
+
for (let i = 0; i < pos; i++) {
|
|
15481
|
+
const c = linha[i];
|
|
15482
|
+
if (emString) {
|
|
15483
|
+
if (c === '\\') {
|
|
15484
|
+
i++; // pula o próximo caractere (escape)
|
|
15485
|
+
continue;
|
|
15486
|
+
}
|
|
15487
|
+
if (c === delimitador) {
|
|
15488
|
+
emString = false;
|
|
15489
|
+
delimitador = '';
|
|
15490
|
+
}
|
|
15491
|
+
}
|
|
15492
|
+
else {
|
|
15493
|
+
if (c === '"' || c === "'") {
|
|
15494
|
+
emString = true;
|
|
15495
|
+
delimitador = c;
|
|
15496
|
+
}
|
|
15497
|
+
}
|
|
15498
|
+
}
|
|
15499
|
+
return emString;
|
|
15500
|
+
}
|
|
15501
|
+
/**
|
|
15502
|
+
* Retorna o prefixo de espaços/tabs no início da linha.
|
|
15503
|
+
*/
|
|
15504
|
+
function obterIndentacao(linha) {
|
|
15505
|
+
const match = linha.match(/^(\s*)/);
|
|
15506
|
+
return match ? match[1] : '';
|
|
15507
|
+
}
|
|
15508
|
+
/**
|
|
15509
|
+
* Encontra todos os pontos de quebra válidos em uma linha, retornando os índices
|
|
15510
|
+
* onde a próxima linha de continuação deve começar (já avançado o espaço separador).
|
|
15511
|
+
*
|
|
15512
|
+
* Estratégia (em ordem de prioridade aplicada pela posição na linha):
|
|
15513
|
+
* - Após vírgulas fora de strings
|
|
15514
|
+
* - Antes de operadores lógicos fora de strings
|
|
15515
|
+
* - Antes de operadores binários multi-char fora de strings
|
|
15516
|
+
*
|
|
15517
|
+
* Retorna os índices ordenados do menor para o maior.
|
|
15518
|
+
*/
|
|
15519
|
+
function encontrarPontosDeQuebra(linha) {
|
|
15520
|
+
const pontos = new Set();
|
|
15521
|
+
for (let i = 0; i < linha.length; i++) {
|
|
15522
|
+
if (estaEmString(linha, i))
|
|
15523
|
+
continue;
|
|
15524
|
+
const c = linha[i];
|
|
15525
|
+
// Após vírgula: a continuação começa logo depois (pulando o espaço separador)
|
|
15526
|
+
if (c === ',') {
|
|
15527
|
+
let pos = i + 1;
|
|
15528
|
+
if (pos < linha.length && linha[pos] === ' ')
|
|
15529
|
+
pos++;
|
|
15530
|
+
pontos.add(pos);
|
|
15531
|
+
continue;
|
|
15532
|
+
}
|
|
15533
|
+
// Antes de operadores lógicos: quebra logo antes do operador
|
|
15534
|
+
for (const op of OPERADORES_LOGICOS) {
|
|
15535
|
+
if (linha.slice(i).startsWith(op)) {
|
|
15536
|
+
pontos.add(i + 1); // mantém o espaço antes do operador na linha anterior
|
|
15537
|
+
break;
|
|
15538
|
+
}
|
|
15539
|
+
}
|
|
15540
|
+
// Antes de operadores binários multi-char
|
|
15541
|
+
for (const op of OPERADORES_BINARIOS_MULTI) {
|
|
15542
|
+
if (linha.slice(i).startsWith(op)) {
|
|
15543
|
+
pontos.add(i + 1);
|
|
15544
|
+
break;
|
|
15545
|
+
}
|
|
15546
|
+
}
|
|
15547
|
+
}
|
|
15548
|
+
return Array.from(pontos).sort((a, b) => a - b);
|
|
15549
|
+
}
|
|
15550
|
+
/**
|
|
15551
|
+
* Quebra uma única linha em múltiplas, tentando manter cada segmento
|
|
15552
|
+
* dentro de `maximo` caracteres usando uma estratégia gulosa.
|
|
15553
|
+
*
|
|
15554
|
+
* Para cada segmento, encontra o último ponto de quebra que ainda mantém
|
|
15555
|
+
* o conteúdo dentro do limite. Se não houver ponto de quebra viável,
|
|
15556
|
+
* usa o primeiro disponível (evitando truncamento arbitrário de tokens).
|
|
15557
|
+
*
|
|
15558
|
+
* Se a linha não puder ser melhorada (apenas 1 segmento), retorna a original intacta.
|
|
15559
|
+
*/
|
|
15560
|
+
function quebrarLinha(linha, maximo, indentacaoContinuacao) {
|
|
15561
|
+
if (linha.length <= maximo)
|
|
15562
|
+
return [linha];
|
|
15563
|
+
const pontos = encontrarPontosDeQuebra(linha);
|
|
15564
|
+
if (pontos.length === 0)
|
|
15565
|
+
return [linha];
|
|
15566
|
+
const segmentos = [];
|
|
15567
|
+
let inicio = 0;
|
|
15568
|
+
while (inicio < linha.length) {
|
|
15569
|
+
const prefixo = segmentos.length === 0 ? '' : indentacaoContinuacao;
|
|
15570
|
+
const restante = linha.slice(inicio);
|
|
15571
|
+
// O conteúdo restante cabe no limite → termina
|
|
15572
|
+
if ((prefixo + restante.trimEnd()).length <= maximo) {
|
|
15573
|
+
segmentos.push(prefixo + restante.trimEnd());
|
|
15574
|
+
break;
|
|
15575
|
+
}
|
|
15576
|
+
// Filtra apenas pontos à frente de `inicio`
|
|
15577
|
+
const pontosDisponiveis = pontos.filter((p) => p > inicio);
|
|
15578
|
+
if (pontosDisponiveis.length === 0) {
|
|
15579
|
+
// Nenhum ponto restante; empurra o resto sem quebrar
|
|
15580
|
+
segmentos.push(prefixo + restante.trimEnd());
|
|
15581
|
+
break;
|
|
15582
|
+
}
|
|
15583
|
+
// Encontra o maior ponto que ainda mantém o segmento dentro do limite
|
|
15584
|
+
let melhorPonto = -1;
|
|
15585
|
+
for (const ponto of pontosDisponiveis) {
|
|
15586
|
+
const conteudo = linha.slice(inicio, ponto).trimEnd();
|
|
15587
|
+
if ((prefixo + conteudo).length <= maximo) {
|
|
15588
|
+
melhorPonto = ponto;
|
|
15589
|
+
}
|
|
15590
|
+
else {
|
|
15591
|
+
break; // pontos estão ordenados; excedeu o limite → para
|
|
15592
|
+
}
|
|
15593
|
+
}
|
|
15594
|
+
if (melhorPonto === -1) {
|
|
15595
|
+
// Nenhum ponto cabe → usa o primeiro disponível (soft break forçado)
|
|
15596
|
+
melhorPonto = pontosDisponiveis[0];
|
|
15597
|
+
}
|
|
15598
|
+
const conteudo = linha.slice(inicio, melhorPonto).trimEnd();
|
|
15599
|
+
segmentos.push(prefixo + conteudo);
|
|
15600
|
+
// Avança `inicio` pulando o espaço separador, se houver
|
|
15601
|
+
inicio = melhorPonto;
|
|
15602
|
+
if (inicio < linha.length && linha[inicio] === ' ') {
|
|
15603
|
+
inicio++;
|
|
15604
|
+
}
|
|
15605
|
+
}
|
|
15606
|
+
// Se não houve melhoria real, preserva a linha original
|
|
15607
|
+
if (segmentos.length <= 1)
|
|
15608
|
+
return [linha];
|
|
15609
|
+
return segmentos;
|
|
15610
|
+
}
|
|
15611
|
+
/**
|
|
15612
|
+
* Aplica quebra de linha por limite de colunas a um bloco de código já formatado.
|
|
15613
|
+
*
|
|
15614
|
+
* Cada linha que ultrapasse `maximoCaracteres` é dividida em múltiplas linhas
|
|
15615
|
+
* em pontos semanticamente seguros (após vírgulas, antes de operadores lógicos
|
|
15616
|
+
* e binários), respeitando o conteúdo de strings literais.
|
|
15617
|
+
*
|
|
15618
|
+
* Quando não existe ponto de quebra viável, a linha é preservada intacta
|
|
15619
|
+
* ("soft break" — nunca trunca tokens arbitrariamente).
|
|
15620
|
+
*/
|
|
15621
|
+
class QuebradorDeLinha {
|
|
15622
|
+
constructor(maximoCaracteres, tamanhoIndentacao, separadorLinha) {
|
|
15623
|
+
this.maximoCaracteres = maximoCaracteres;
|
|
15624
|
+
this.tamanhoIndentacao = tamanhoIndentacao;
|
|
15625
|
+
this.separadorLinha = separadorLinha;
|
|
15626
|
+
}
|
|
15627
|
+
quebrar(codigo) {
|
|
15628
|
+
const linhas = codigo.split(this.separadorLinha);
|
|
15629
|
+
const resultado = [];
|
|
15630
|
+
for (const linha of linhas) {
|
|
15631
|
+
if (linha.length <= this.maximoCaracteres) {
|
|
15632
|
+
resultado.push(linha);
|
|
15633
|
+
}
|
|
15634
|
+
else {
|
|
15635
|
+
const indentacaoBase = obterIndentacao(linha);
|
|
15636
|
+
const indentacaoContinuacao = indentacaoBase + ' '.repeat(this.tamanhoIndentacao);
|
|
15637
|
+
resultado.push(...quebrarLinha(linha, this.maximoCaracteres, indentacaoContinuacao));
|
|
15638
|
+
}
|
|
15639
|
+
}
|
|
15640
|
+
return resultado.join(this.separadorLinha);
|
|
15641
|
+
}
|
|
15642
|
+
}
|
|
15643
|
+
exports.QuebradorDeLinha = QuebradorDeLinha;
|
|
15644
|
+
|
|
15645
|
+
},{}],127:[function(require,module,exports){
|
|
15646
|
+
"use strict";
|
|
15647
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15648
|
+
if (k2 === undefined) k2 = k;
|
|
15649
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15650
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15651
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15652
|
+
}
|
|
15653
|
+
Object.defineProperty(o, k2, desc);
|
|
15654
|
+
}) : (function(o, m, k, k2) {
|
|
15655
|
+
if (k2 === undefined) k2 = k;
|
|
15656
|
+
o[k2] = m[k];
|
|
15657
|
+
}));
|
|
15658
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15659
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15660
|
+
};
|
|
15661
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15662
|
+
__exportStar(require("./regra-fortalecer-tipos"), exports);
|
|
15663
|
+
__exportStar(require("./regra-convencao-nomenclatura"), exports);
|
|
15664
|
+
__exportStar(require("./regra-paradigma-consistente"), exports);
|
|
15665
|
+
|
|
15666
|
+
},{"./regra-convencao-nomenclatura":128,"./regra-fortalecer-tipos":129,"./regra-paradigma-consistente":130}],128:[function(require,module,exports){
|
|
15444
15667
|
"use strict";
|
|
15445
15668
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15446
15669
|
exports.RegraConvencaoNomenclatura = void 0;
|
|
@@ -15589,7 +15812,7 @@ class RegraConvencaoNomenclatura {
|
|
|
15589
15812
|
}
|
|
15590
15813
|
exports.RegraConvencaoNomenclatura = RegraConvencaoNomenclatura;
|
|
15591
15814
|
|
|
15592
|
-
},{"../../declaracoes":110}],
|
|
15815
|
+
},{"../../declaracoes":110}],129:[function(require,module,exports){
|
|
15593
15816
|
"use strict";
|
|
15594
15817
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15595
15818
|
exports.RegraFortalecerTipos = void 0;
|
|
@@ -15674,28 +15897,7 @@ class RegraFortalecerTipos {
|
|
|
15674
15897
|
}
|
|
15675
15898
|
exports.RegraFortalecerTipos = RegraFortalecerTipos;
|
|
15676
15899
|
|
|
15677
|
-
},{"../../construtos":62,"../../declaracoes":110,"../../inferenciador":
|
|
15678
|
-
"use strict";
|
|
15679
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15680
|
-
if (k2 === undefined) k2 = k;
|
|
15681
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15682
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
15683
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15684
|
-
}
|
|
15685
|
-
Object.defineProperty(o, k2, desc);
|
|
15686
|
-
}) : (function(o, m, k, k2) {
|
|
15687
|
-
if (k2 === undefined) k2 = k;
|
|
15688
|
-
o[k2] = m[k];
|
|
15689
|
-
}));
|
|
15690
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
15691
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15692
|
-
};
|
|
15693
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15694
|
-
__exportStar(require("./fortalecer-tipos"), exports);
|
|
15695
|
-
__exportStar(require("./convencao-nomenclatura"), exports);
|
|
15696
|
-
__exportStar(require("./paradigma-consistente"), exports);
|
|
15697
|
-
|
|
15698
|
-
},{"./convencao-nomenclatura":126,"./fortalecer-tipos":127,"./paradigma-consistente":129}],129:[function(require,module,exports){
|
|
15900
|
+
},{"../../construtos":62,"../../declaracoes":110,"../../inferenciador":138}],130:[function(require,module,exports){
|
|
15699
15901
|
"use strict";
|
|
15700
15902
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15701
15903
|
exports.RegraParadigmaConsistente = void 0;
|
|
@@ -15785,7 +15987,7 @@ class RegraParadigmaConsistente {
|
|
|
15785
15987
|
}
|
|
15786
15988
|
exports.RegraParadigmaConsistente = RegraParadigmaConsistente;
|
|
15787
15989
|
|
|
15788
|
-
},{"../../construtos/leia":64,"../../declaracoes":110,"../../lexador/mapeamento-paradigmas":
|
|
15990
|
+
},{"../../construtos/leia":64,"../../declaracoes":110,"../../lexador/mapeamento-paradigmas":213}],131:[function(require,module,exports){
|
|
15789
15991
|
"use strict";
|
|
15790
15992
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15791
15993
|
exports.ErroEmTempoDeExecucao = void 0;
|
|
@@ -15800,7 +16002,7 @@ class ErroEmTempoDeExecucao extends Error {
|
|
|
15800
16002
|
}
|
|
15801
16003
|
exports.ErroEmTempoDeExecucao = ErroEmTempoDeExecucao;
|
|
15802
16004
|
|
|
15803
|
-
},{}],
|
|
16005
|
+
},{}],132:[function(require,module,exports){
|
|
15804
16006
|
"use strict";
|
|
15805
16007
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15806
16008
|
if (k2 === undefined) k2 = k;
|
|
@@ -15819,7 +16021,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15819
16021
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15820
16022
|
__exportStar(require("./erro-em-tempo-de-execucao"), exports);
|
|
15821
16023
|
|
|
15822
|
-
},{"./erro-em-tempo-de-execucao":
|
|
16024
|
+
},{"./erro-em-tempo-de-execucao":131}],133:[function(require,module,exports){
|
|
15823
16025
|
"use strict";
|
|
15824
16026
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15825
16027
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -16774,7 +16976,7 @@ class FormatadorDelegua {
|
|
|
16774
16976
|
}
|
|
16775
16977
|
exports.FormatadorDelegua = FormatadorDelegua;
|
|
16776
16978
|
|
|
16777
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
16979
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224}],134:[function(require,module,exports){
|
|
16778
16980
|
"use strict";
|
|
16779
16981
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16780
16982
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17236,7 +17438,7 @@ class FormatadorPitugues {
|
|
|
17236
17438
|
}
|
|
17237
17439
|
exports.FormatadorPitugues = FormatadorPitugues;
|
|
17238
17440
|
|
|
17239
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/pitugues":
|
|
17441
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/pitugues":228}],135:[function(require,module,exports){
|
|
17240
17442
|
"use strict";
|
|
17241
17443
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17242
17444
|
if (k2 === undefined) k2 = k;
|
|
@@ -17256,7 +17458,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17256
17458
|
__exportStar(require("./formatador-delegua"), exports);
|
|
17257
17459
|
__exportStar(require("./formatador-pitugues"), exports);
|
|
17258
17460
|
|
|
17259
|
-
},{"./formatador-delegua":
|
|
17461
|
+
},{"./formatador-delegua":133,"./formatador-pitugues":134}],136:[function(require,module,exports){
|
|
17260
17462
|
"use strict";
|
|
17261
17463
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17262
17464
|
exports.cyrb53 = cyrb53;
|
|
@@ -17300,7 +17502,7 @@ function uuidv4() {
|
|
|
17300
17502
|
});
|
|
17301
17503
|
}
|
|
17302
17504
|
|
|
17303
|
-
},{}],
|
|
17505
|
+
},{}],137:[function(require,module,exports){
|
|
17304
17506
|
"use strict";
|
|
17305
17507
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17306
17508
|
if (k2 === undefined) k2 = k;
|
|
@@ -17329,7 +17531,7 @@ __exportStar(require("./interpretador"), exports);
|
|
|
17329
17531
|
__exportStar(require("./lexador"), exports);
|
|
17330
17532
|
__exportStar(require("./tradutores"), exports);
|
|
17331
17533
|
|
|
17332
|
-
},{"./analisador-semantico":6,"./avaliador-sintatico":21,"./construtos":62,"./declaracoes":110,"./estilizador":125,"./formatadores":
|
|
17534
|
+
},{"./analisador-semantico":6,"./avaliador-sintatico":21,"./construtos":62,"./declaracoes":110,"./estilizador":125,"./formatadores":135,"./geracao-identificadores":136,"./interfaces":150,"./interpretador":189,"./lexador":209,"./tradutores":232}],138:[function(require,module,exports){
|
|
17333
17535
|
"use strict";
|
|
17334
17536
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17335
17537
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17451,7 +17653,7 @@ function inferirTipoVariavel(variavel) {
|
|
|
17451
17653
|
}
|
|
17452
17654
|
}
|
|
17453
17655
|
|
|
17454
|
-
},{"./tipos-de-dados/delegua":
|
|
17656
|
+
},{"./tipos-de-dados/delegua":219,"./tipos-de-dados/primitivos":221,"./tipos-de-simbolos/delegua":224}],139:[function(require,module,exports){
|
|
17455
17657
|
"use strict";
|
|
17456
17658
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17457
17659
|
exports.InformacaoElementoSintatico = void 0;
|
|
@@ -17470,10 +17672,6 @@ class InformacaoElementoSintatico {
|
|
|
17470
17672
|
}
|
|
17471
17673
|
exports.InformacaoElementoSintatico = InformacaoElementoSintatico;
|
|
17472
17674
|
|
|
17473
|
-
},{}],139:[function(require,module,exports){
|
|
17474
|
-
"use strict";
|
|
17475
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17476
|
-
|
|
17477
17675
|
},{}],140:[function(require,module,exports){
|
|
17478
17676
|
"use strict";
|
|
17479
17677
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -17493,6 +17691,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17493
17691
|
},{}],144:[function(require,module,exports){
|
|
17494
17692
|
"use strict";
|
|
17495
17693
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17694
|
+
|
|
17695
|
+
},{}],145:[function(require,module,exports){
|
|
17696
|
+
"use strict";
|
|
17697
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17496
17698
|
exports.DiagnosticoSeveridade = void 0;
|
|
17497
17699
|
var DiagnosticoSeveridade;
|
|
17498
17700
|
(function (DiagnosticoSeveridade) {
|
|
@@ -17502,11 +17704,11 @@ var DiagnosticoSeveridade;
|
|
|
17502
17704
|
DiagnosticoSeveridade[DiagnosticoSeveridade["SUGESTAO"] = 3] = "SUGESTAO";
|
|
17503
17705
|
})(DiagnosticoSeveridade || (exports.DiagnosticoSeveridade = DiagnosticoSeveridade = {}));
|
|
17504
17706
|
|
|
17505
|
-
},{}],
|
|
17707
|
+
},{}],146:[function(require,module,exports){
|
|
17506
17708
|
"use strict";
|
|
17507
17709
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17508
17710
|
|
|
17509
|
-
},{}],
|
|
17711
|
+
},{}],147:[function(require,module,exports){
|
|
17510
17712
|
"use strict";
|
|
17511
17713
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17512
17714
|
if (k2 === undefined) k2 = k;
|
|
@@ -17527,15 +17729,15 @@ __exportStar(require("./correcao-sugerida-interface"), exports);
|
|
|
17527
17729
|
__exportStar(require("./diagnostico-analisador-semantico"), exports);
|
|
17528
17730
|
__exportStar(require("./erro-interpretador-interface"), exports);
|
|
17529
17731
|
|
|
17530
|
-
},{"./correcao-sugerida-interface":
|
|
17732
|
+
},{"./correcao-sugerida-interface":144,"./diagnostico-analisador-semantico":145,"./erro-interpretador-interface":146}],148:[function(require,module,exports){
|
|
17531
17733
|
"use strict";
|
|
17532
17734
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17533
17735
|
|
|
17534
|
-
},{}],
|
|
17736
|
+
},{}],149:[function(require,module,exports){
|
|
17535
17737
|
"use strict";
|
|
17536
17738
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17537
17739
|
|
|
17538
|
-
},{}],
|
|
17740
|
+
},{}],150:[function(require,module,exports){
|
|
17539
17741
|
"use strict";
|
|
17540
17742
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17541
17743
|
if (k2 === undefined) k2 = k;
|
|
@@ -17576,11 +17778,7 @@ __exportStar(require("./construtos"), exports);
|
|
|
17576
17778
|
__exportStar(require("./erros"), exports);
|
|
17577
17779
|
__exportStar(require("./retornos"), exports);
|
|
17578
17780
|
|
|
17579
|
-
},{"./avaliador-sintatico-interface":
|
|
17580
|
-
"use strict";
|
|
17581
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17582
|
-
|
|
17583
|
-
},{}],151:[function(require,module,exports){
|
|
17781
|
+
},{"./avaliador-sintatico-interface":140,"./componente-modulo-classe-interface":141,"./componente-modulo-funcao-interface":142,"./construtos":143,"./erros":147,"./estilizador/estilizador-interface":148,"./formatador-comum-interface":149,"./interpretador-com-depuracao-interface":151,"./interpretador-interface":152,"./lexador-interface":153,"./modulo-interface":154,"./parametro-interface":155,"./pilha-interface":156,"./primitiva-interface":157,"./resolvedor-interface":158,"./resultado-parcial-interpretador-interface":159,"./retornos":160,"./retornos/retorno-execucao-interface":163,"./simbolo-interface":166,"./tradutor-interface":167,"./variavel-interface":168,"./visitante-comum-interface":169,"./visitante-delegua-interface":170}],151:[function(require,module,exports){
|
|
17584
17782
|
"use strict";
|
|
17585
17783
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17586
17784
|
|
|
@@ -17614,6 +17812,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17614
17812
|
|
|
17615
17813
|
},{}],159:[function(require,module,exports){
|
|
17616
17814
|
"use strict";
|
|
17815
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17816
|
+
|
|
17817
|
+
},{}],160:[function(require,module,exports){
|
|
17818
|
+
"use strict";
|
|
17617
17819
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17618
17820
|
if (k2 === undefined) k2 = k;
|
|
17619
17821
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -17635,11 +17837,7 @@ __exportStar(require("./retorno-execucao-interface"), exports);
|
|
|
17635
17837
|
__exportStar(require("./retorno-interpretador-interface"), exports);
|
|
17636
17838
|
__exportStar(require("./retorno-lexador"), exports);
|
|
17637
17839
|
|
|
17638
|
-
},{"./retorno-analisador-semantico":
|
|
17639
|
-
"use strict";
|
|
17640
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17641
|
-
|
|
17642
|
-
},{}],161:[function(require,module,exports){
|
|
17840
|
+
},{"./retorno-analisador-semantico":161,"./retorno-avaliador-sintatico":162,"./retorno-execucao-interface":163,"./retorno-interpretador-interface":164,"./retorno-lexador":165}],161:[function(require,module,exports){
|
|
17643
17841
|
"use strict";
|
|
17644
17842
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17645
17843
|
|
|
@@ -17677,6 +17875,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17677
17875
|
|
|
17678
17876
|
},{}],170:[function(require,module,exports){
|
|
17679
17877
|
"use strict";
|
|
17878
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17879
|
+
|
|
17880
|
+
},{}],171:[function(require,module,exports){
|
|
17881
|
+
"use strict";
|
|
17680
17882
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
17681
17883
|
if (k2 === undefined) k2 = k;
|
|
17682
17884
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -18277,7 +18479,7 @@ function obterAjudaFuncaoPadrao(funcaoPadrao) {
|
|
|
18277
18479
|
}
|
|
18278
18480
|
}
|
|
18279
18481
|
|
|
18280
|
-
},{"../bibliotecas/biblioteca-global":27,"../construtos":62,"./estruturas/delegua-funcao":
|
|
18482
|
+
},{"../bibliotecas/biblioteca-global":27,"../construtos":62,"./estruturas/delegua-funcao":177,"./estruturas/descritor-tipo-classe":178,"./estruturas/funcao-padrao":179,"./estruturas/objeto-delegua-classe":185}],172:[function(require,module,exports){
|
|
18281
18483
|
"use strict";
|
|
18282
18484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18283
18485
|
exports.EspacoMemoria = void 0;
|
|
@@ -18302,7 +18504,7 @@ class EspacoMemoria {
|
|
|
18302
18504
|
}
|
|
18303
18505
|
exports.EspacoMemoria = EspacoMemoria;
|
|
18304
18506
|
|
|
18305
|
-
},{}],
|
|
18507
|
+
},{}],173:[function(require,module,exports){
|
|
18306
18508
|
"use strict";
|
|
18307
18509
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18308
18510
|
exports.Chamavel = void 0;
|
|
@@ -18316,7 +18518,7 @@ class Chamavel {
|
|
|
18316
18518
|
}
|
|
18317
18519
|
exports.Chamavel = Chamavel;
|
|
18318
18520
|
|
|
18319
|
-
},{}],
|
|
18521
|
+
},{}],174:[function(require,module,exports){
|
|
18320
18522
|
"use strict";
|
|
18321
18523
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18322
18524
|
exports.ClasseDeModulo = void 0;
|
|
@@ -18337,7 +18539,7 @@ class ClasseDeModulo extends chamavel_1.Chamavel {
|
|
|
18337
18539
|
}
|
|
18338
18540
|
exports.ClasseDeModulo = ClasseDeModulo;
|
|
18339
18541
|
|
|
18340
|
-
},{"./chamavel":
|
|
18542
|
+
},{"./chamavel":173}],175:[function(require,module,exports){
|
|
18341
18543
|
"use strict";
|
|
18342
18544
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18343
18545
|
exports.ClassePadrao = void 0;
|
|
@@ -18378,7 +18580,7 @@ class ClassePadrao extends chamavel_1.Chamavel {
|
|
|
18378
18580
|
}
|
|
18379
18581
|
exports.ClassePadrao = ClassePadrao;
|
|
18380
18582
|
|
|
18381
|
-
},{"./chamavel":
|
|
18583
|
+
},{"./chamavel":173}],176:[function(require,module,exports){
|
|
18382
18584
|
"use strict";
|
|
18383
18585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18384
18586
|
exports.DeleguaFuncaoNativa = void 0;
|
|
@@ -18421,7 +18623,7 @@ class DeleguaFuncaoNativa extends delegua_funcao_1.DeleguaFuncao {
|
|
|
18421
18623
|
}
|
|
18422
18624
|
exports.DeleguaFuncaoNativa = DeleguaFuncaoNativa;
|
|
18423
18625
|
|
|
18424
|
-
},{"./delegua-funcao":
|
|
18626
|
+
},{"./delegua-funcao":177}],177:[function(require,module,exports){
|
|
18425
18627
|
"use strict";
|
|
18426
18628
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18427
18629
|
exports.DeleguaFuncao = void 0;
|
|
@@ -18613,7 +18815,7 @@ function tipoDeDados(valor) {
|
|
|
18613
18815
|
}
|
|
18614
18816
|
}
|
|
18615
18817
|
|
|
18616
|
-
},{"../../declaracoes":110,"../../quebras":
|
|
18818
|
+
},{"../../declaracoes":110,"../../quebras":218,"../espaco-memoria":172,"./chamavel":173,"./objeto-delegua-classe":185}],178:[function(require,module,exports){
|
|
18617
18819
|
"use strict";
|
|
18618
18820
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18619
18821
|
exports.DescritorTipoClasse = void 0;
|
|
@@ -18927,7 +19129,7 @@ class DescritorTipoClasse extends chamavel_1.Chamavel {
|
|
|
18927
19129
|
}
|
|
18928
19130
|
exports.DescritorTipoClasse = DescritorTipoClasse;
|
|
18929
19131
|
|
|
18930
|
-
},{"../../excecoes":
|
|
19132
|
+
},{"../../excecoes":132,"./chamavel":173,"./metodo-polimorfico":181,"./objeto-delegua-classe":185}],179:[function(require,module,exports){
|
|
18931
19133
|
"use strict";
|
|
18932
19134
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18933
19135
|
exports.FuncaoPadrao = void 0;
|
|
@@ -18964,7 +19166,7 @@ class FuncaoPadrao extends chamavel_1.Chamavel {
|
|
|
18964
19166
|
}
|
|
18965
19167
|
exports.FuncaoPadrao = FuncaoPadrao;
|
|
18966
19168
|
|
|
18967
|
-
},{"./chamavel":
|
|
19169
|
+
},{"./chamavel":173}],180:[function(require,module,exports){
|
|
18968
19170
|
"use strict";
|
|
18969
19171
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18970
19172
|
if (k2 === undefined) k2 = k;
|
|
@@ -18997,7 +19199,7 @@ __exportStar(require("./objeto-padrao"), exports);
|
|
|
18997
19199
|
__exportStar(require("./referencia-montao"), exports);
|
|
18998
19200
|
__exportStar(require("./super-proxy"), exports);
|
|
18999
19201
|
|
|
19000
|
-
},{"./chamavel":
|
|
19202
|
+
},{"./chamavel":173,"./classe-de-modulo":174,"./classe-padrao":175,"./delegua-funcao":177,"./delegua-funcao-nativa":176,"./descritor-tipo-classe":178,"./funcao-padrao":179,"./metodo-polimorfico":181,"./metodo-primitiva":182,"./modulo":183,"./objeto-base":184,"./objeto-delegua-classe":185,"./objeto-padrao":186,"./referencia-montao":187,"./super-proxy":188}],181:[function(require,module,exports){
|
|
19001
19203
|
"use strict";
|
|
19002
19204
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19003
19205
|
exports.MetodoPolimorfico = void 0;
|
|
@@ -19175,7 +19377,7 @@ class MetodoPolimorfico extends chamavel_1.Chamavel {
|
|
|
19175
19377
|
}
|
|
19176
19378
|
exports.MetodoPolimorfico = MetodoPolimorfico;
|
|
19177
19379
|
|
|
19178
|
-
},{"../../excecoes":
|
|
19380
|
+
},{"../../excecoes":132,"../../inferenciador":138,"./chamavel":173}],182:[function(require,module,exports){
|
|
19179
19381
|
"use strict";
|
|
19180
19382
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19181
19383
|
exports.MetodoPrimitiva = void 0;
|
|
@@ -19221,7 +19423,7 @@ class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
|
19221
19423
|
}
|
|
19222
19424
|
exports.MetodoPrimitiva = MetodoPrimitiva;
|
|
19223
19425
|
|
|
19224
|
-
},{"./chamavel":
|
|
19426
|
+
},{"./chamavel":173}],183:[function(require,module,exports){
|
|
19225
19427
|
"use strict";
|
|
19226
19428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19227
19429
|
exports.DeleguaModulo = void 0;
|
|
@@ -19247,7 +19449,7 @@ class DeleguaModulo {
|
|
|
19247
19449
|
}
|
|
19248
19450
|
exports.DeleguaModulo = DeleguaModulo;
|
|
19249
19451
|
|
|
19250
|
-
},{}],
|
|
19452
|
+
},{}],184:[function(require,module,exports){
|
|
19251
19453
|
"use strict";
|
|
19252
19454
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19253
19455
|
exports.OBJETO_BASE = void 0;
|
|
@@ -19321,7 +19523,7 @@ function criarDescritorObjeto() {
|
|
|
19321
19523
|
}
|
|
19322
19524
|
exports.OBJETO_BASE = criarDescritorObjeto();
|
|
19323
19525
|
|
|
19324
|
-
},{"./delegua-funcao-nativa":
|
|
19526
|
+
},{"./delegua-funcao-nativa":176,"./descritor-tipo-classe":178}],185:[function(require,module,exports){
|
|
19325
19527
|
"use strict";
|
|
19326
19528
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19327
19529
|
exports.ObjetoDeleguaClasse = void 0;
|
|
@@ -19497,7 +19699,7 @@ class ObjetoDeleguaClasse {
|
|
|
19497
19699
|
}
|
|
19498
19700
|
exports.ObjetoDeleguaClasse = ObjetoDeleguaClasse;
|
|
19499
19701
|
|
|
19500
|
-
},{"../../excecoes":
|
|
19702
|
+
},{"../../excecoes":132}],186:[function(require,module,exports){
|
|
19501
19703
|
"use strict";
|
|
19502
19704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19503
19705
|
exports.ObjetoPadrao = void 0;
|
|
@@ -19531,7 +19733,7 @@ class ObjetoPadrao {
|
|
|
19531
19733
|
}
|
|
19532
19734
|
exports.ObjetoPadrao = ObjetoPadrao;
|
|
19533
19735
|
|
|
19534
|
-
},{}],
|
|
19736
|
+
},{}],187:[function(require,module,exports){
|
|
19535
19737
|
"use strict";
|
|
19536
19738
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19537
19739
|
exports.ReferenciaMontao = void 0;
|
|
@@ -19556,7 +19758,7 @@ class ReferenciaMontao {
|
|
|
19556
19758
|
}
|
|
19557
19759
|
exports.ReferenciaMontao = ReferenciaMontao;
|
|
19558
19760
|
|
|
19559
|
-
},{}],
|
|
19761
|
+
},{}],188:[function(require,module,exports){
|
|
19560
19762
|
"use strict";
|
|
19561
19763
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19562
19764
|
exports.SuperProxy = void 0;
|
|
@@ -19595,7 +19797,7 @@ class SuperProxy extends chamavel_1.Chamavel {
|
|
|
19595
19797
|
}
|
|
19596
19798
|
exports.SuperProxy = SuperProxy;
|
|
19597
19799
|
|
|
19598
|
-
},{"./chamavel":
|
|
19800
|
+
},{"./chamavel":173}],189:[function(require,module,exports){
|
|
19599
19801
|
"use strict";
|
|
19600
19802
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
19601
19803
|
if (k2 === undefined) k2 = k;
|
|
@@ -19616,7 +19818,7 @@ __exportStar(require("./estruturas"), exports);
|
|
|
19616
19818
|
__exportStar(require("./interpretador"), exports);
|
|
19617
19819
|
__exportStar(require("./interpretador-base"), exports);
|
|
19618
19820
|
|
|
19619
|
-
},{"./estruturas":
|
|
19821
|
+
},{"./estruturas":180,"./interpretador":191,"./interpretador-base":190}],190:[function(require,module,exports){
|
|
19620
19822
|
(function (process,setImmediate){(function (){
|
|
19621
19823
|
"use strict";
|
|
19622
19824
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -19657,6 +19859,7 @@ class InterpretadorBase {
|
|
|
19657
19859
|
this.funcaoDeRetornoMesmaLinha = null;
|
|
19658
19860
|
this.interfaceDeEntrada = null; // Originalmente é `readline.Interface`
|
|
19659
19861
|
this.interfaceEntradaSaida = null;
|
|
19862
|
+
this.funcaoVerificarIteracao = null;
|
|
19660
19863
|
this.emDeclaracaoTente = false;
|
|
19661
19864
|
// typeName → methodName → DeleguaFuncao
|
|
19662
19865
|
this.extensoesGlobais = new Map();
|
|
@@ -19751,6 +19954,7 @@ class InterpretadorBase {
|
|
|
19751
19954
|
case construtos_1.AcessoMetodoOuPropriedade:
|
|
19752
19955
|
case construtos_1.AcessoIndiceVariavel:
|
|
19753
19956
|
case construtos_1.Dicionario:
|
|
19957
|
+
case construtos_1.Leia:
|
|
19754
19958
|
case construtos_1.Literal:
|
|
19755
19959
|
case construtos_1.Vetor:
|
|
19756
19960
|
return '';
|
|
@@ -21924,7 +22128,7 @@ class InterpretadorBase {
|
|
|
21924
22128
|
exports.InterpretadorBase = InterpretadorBase;
|
|
21925
22129
|
|
|
21926
22130
|
}).call(this)}).call(this,require('_process'),require("timers").setImmediate)
|
|
21927
|
-
},{"../avaliador-sintatico":21,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../excecoes":
|
|
22131
|
+
},{"../avaliador-sintatico":21,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../excecoes":132,"../inferenciador":138,"../lexador":209,"../quebras":218,"../tipos-de-dados/delegua":219,"../tipos-de-dados/primitivos":221,"../tipos-de-simbolos/delegua":224,"./espaco-memoria":172,"./estruturas":180,"./estruturas/metodo-primitiva":182,"./pilha-escopos-execucao":193,"_process":471,"browser-process-hrtime":417,"timers":474}],191:[function(require,module,exports){
|
|
21928
22132
|
"use strict";
|
|
21929
22133
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21930
22134
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -22189,6 +22393,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
22189
22393
|
!(retornoExecucao && retornoExecucao.valorRetornado instanceof quebras_1.Quebra)) &&
|
|
22190
22394
|
this.eVerdadeiro(await this.avaliar(enquanto.condicao))) {
|
|
22191
22395
|
try {
|
|
22396
|
+
if (this.funcaoVerificarIteracao) {
|
|
22397
|
+
await this.funcaoVerificarIteracao();
|
|
22398
|
+
}
|
|
22192
22399
|
retornoExecucao = await this.executar(enquanto.corpo);
|
|
22193
22400
|
if (retornoExecucao && retornoExecucao.valorRetornado instanceof quebras_1.SustarQuebra) {
|
|
22194
22401
|
if (acumularRetornos) {
|
|
@@ -22231,6 +22438,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
22231
22438
|
const retornos = [];
|
|
22232
22439
|
do {
|
|
22233
22440
|
try {
|
|
22441
|
+
if (this.funcaoVerificarIteracao) {
|
|
22442
|
+
await this.funcaoVerificarIteracao();
|
|
22443
|
+
}
|
|
22234
22444
|
retornoExecucao = await this.executar(fazer.caminhoFazer);
|
|
22235
22445
|
if (retornoExecucao && retornoExecucao.valorRetornado instanceof quebras_1.SustarQuebra) {
|
|
22236
22446
|
if (acumularRetornos) {
|
|
@@ -22283,6 +22493,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
22283
22493
|
if (para.condicao !== null && !this.eVerdadeiro(await this.avaliar(para.condicao))) {
|
|
22284
22494
|
break;
|
|
22285
22495
|
}
|
|
22496
|
+
if (this.funcaoVerificarIteracao) {
|
|
22497
|
+
await this.funcaoVerificarIteracao();
|
|
22498
|
+
}
|
|
22286
22499
|
retornoExecucao = await this.executar(para.corpo);
|
|
22287
22500
|
if (retornoExecucao && retornoExecucao.valorRetornado instanceof quebras_1.SustarQuebra) {
|
|
22288
22501
|
if (acumularRetornos) {
|
|
@@ -22338,6 +22551,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
22338
22551
|
!(retornoExecucao && retornoExecucao.valorRetornado instanceof quebras_1.Quebra)) &&
|
|
22339
22552
|
paraCada.posicaoAtual < valorVetorOuDicionarioResolvido.length) {
|
|
22340
22553
|
try {
|
|
22554
|
+
if (this.funcaoVerificarIteracao) {
|
|
22555
|
+
await this.funcaoVerificarIteracao();
|
|
22556
|
+
}
|
|
22341
22557
|
if (paraCada.variavelIteracao instanceof construtos_1.Variavel) {
|
|
22342
22558
|
this.pilhaEscoposExecucao.definirVariavel(paraCada.variavelIteracao.simbolo.lexema, valorVetorOuDicionarioResolvido[paraCada.posicaoAtual]);
|
|
22343
22559
|
}
|
|
@@ -23286,7 +23502,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
23286
23502
|
}
|
|
23287
23503
|
exports.Interpretador = Interpretador;
|
|
23288
23504
|
|
|
23289
|
-
},{"../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../declaracoes":110,"../excecoes":
|
|
23505
|
+
},{"../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../declaracoes":110,"../excecoes":132,"../inferenciador":138,"../quebras":218,"../tipos-de-dados/delegua":219,"../tipos-de-dados/primitivos":221,"../tipos-de-simbolos/delegua":224,"./comum":171,"./estruturas":180,"./interpretador-base":190,"./montao":192}],192:[function(require,module,exports){
|
|
23290
23506
|
"use strict";
|
|
23291
23507
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
23292
23508
|
exports.Montao = void 0;
|
|
@@ -23343,7 +23559,7 @@ class Montao {
|
|
|
23343
23559
|
}
|
|
23344
23560
|
exports.Montao = Montao;
|
|
23345
23561
|
|
|
23346
|
-
},{"../excecoes":
|
|
23562
|
+
},{"../excecoes":132,"../geracao-identificadores":136}],193:[function(require,module,exports){
|
|
23347
23563
|
"use strict";
|
|
23348
23564
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23349
23565
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -23676,7 +23892,7 @@ class PilhaEscoposExecucao {
|
|
|
23676
23892
|
}
|
|
23677
23893
|
exports.PilhaEscoposExecucao = PilhaEscoposExecucao;
|
|
23678
23894
|
|
|
23679
|
-
},{"../excecoes":
|
|
23895
|
+
},{"../excecoes":132,"../inferenciador":138,"../lexador":209,"../tipos-de-dados/delegua":219,"./estruturas":180}],194:[function(require,module,exports){
|
|
23680
23896
|
"use strict";
|
|
23681
23897
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
23682
23898
|
if (k2 === undefined) k2 = k;
|
|
@@ -23701,7 +23917,7 @@ __exportStar(require("./lexador-portugol-ipt"), exports);
|
|
|
23701
23917
|
__exportStar(require("./lexador-prisma"), exports);
|
|
23702
23918
|
__exportStar(require("./lexador-tenda"), exports);
|
|
23703
23919
|
|
|
23704
|
-
},{"./lexador-calango":
|
|
23920
|
+
},{"./lexador-calango":195,"./lexador-egua-classico":196,"./lexador-guarani":197,"./lexador-pitugues":198,"./lexador-portugol-ipt":199,"./lexador-prisma":200,"./lexador-tenda":201}],195:[function(require,module,exports){
|
|
23705
23921
|
"use strict";
|
|
23706
23922
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
23707
23923
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -24014,7 +24230,7 @@ class LexadorCalango {
|
|
|
24014
24230
|
}
|
|
24015
24231
|
exports.LexadorCalango = LexadorCalango;
|
|
24016
24232
|
|
|
24017
|
-
},{"../../tipos-de-simbolos/calango":
|
|
24233
|
+
},{"../../tipos-de-simbolos/calango":222,"../simbolo":217,"./palavras-reservadas/calango":202}],196:[function(require,module,exports){
|
|
24018
24234
|
"use strict";
|
|
24019
24235
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24020
24236
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -24307,7 +24523,7 @@ class LexadorEguaClassico {
|
|
|
24307
24523
|
}
|
|
24308
24524
|
exports.LexadorEguaClassico = LexadorEguaClassico;
|
|
24309
24525
|
|
|
24310
|
-
},{"../../tipos-de-simbolos/egua-classico":
|
|
24526
|
+
},{"../../tipos-de-simbolos/egua-classico":225,"../simbolo":217,"./palavras-reservadas/egua-classico":203}],197:[function(require,module,exports){
|
|
24311
24527
|
"use strict";
|
|
24312
24528
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24313
24529
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -24426,7 +24642,7 @@ class LexadorGuarani extends lexador_base_1.LexadorBase {
|
|
|
24426
24642
|
}
|
|
24427
24643
|
exports.LexadorGuarani = LexadorGuarani;
|
|
24428
24644
|
|
|
24429
|
-
},{"../../tipos-de-simbolos/guarani":
|
|
24645
|
+
},{"../../tipos-de-simbolos/guarani":226,"../lexador-base":211,"./palavras-reservadas/guarani":204}],198:[function(require,module,exports){
|
|
24430
24646
|
"use strict";
|
|
24431
24647
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24432
24648
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -24951,7 +25167,7 @@ class LexadorPitugues {
|
|
|
24951
25167
|
}
|
|
24952
25168
|
exports.LexadorPitugues = LexadorPitugues;
|
|
24953
25169
|
|
|
24954
|
-
},{"../../tipos-de-simbolos/pitugues":
|
|
25170
|
+
},{"../../tipos-de-simbolos/pitugues":228,"../simbolo":217,"./palavras-reservadas/pitugues":205,"browser-process-hrtime":417}],199:[function(require,module,exports){
|
|
24955
25171
|
"use strict";
|
|
24956
25172
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
24957
25173
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -25208,7 +25424,7 @@ class LexadorPortugolIpt {
|
|
|
25208
25424
|
}
|
|
25209
25425
|
exports.LexadorPortugolIpt = LexadorPortugolIpt;
|
|
25210
25426
|
|
|
25211
|
-
},{"../../tipos-de-simbolos/portugol-ipt":
|
|
25427
|
+
},{"../../tipos-de-simbolos/portugol-ipt":229,"../simbolo":217,"./palavras-reservadas/portugol-ipt":206}],200:[function(require,module,exports){
|
|
25212
25428
|
"use strict";
|
|
25213
25429
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25214
25430
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -25609,7 +25825,7 @@ class LexadorPrisma {
|
|
|
25609
25825
|
}
|
|
25610
25826
|
exports.LexadorPrisma = LexadorPrisma;
|
|
25611
25827
|
|
|
25612
|
-
},{"../../tipos-de-simbolos/prisma":
|
|
25828
|
+
},{"../../tipos-de-simbolos/prisma":230,"../simbolo":217,"./palavras-reservadas/prisma":207,"browser-process-hrtime":417}],201:[function(require,module,exports){
|
|
25613
25829
|
"use strict";
|
|
25614
25830
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25615
25831
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26003,7 +26219,7 @@ class LexadorTenda {
|
|
|
26003
26219
|
}
|
|
26004
26220
|
exports.LexadorTenda = LexadorTenda;
|
|
26005
26221
|
|
|
26006
|
-
},{"../../tipos-de-simbolos/tenda":
|
|
26222
|
+
},{"../../tipos-de-simbolos/tenda":231,"../simbolo":217,"./palavras-reservadas/tenda":208,"browser-process-hrtime":417}],202:[function(require,module,exports){
|
|
26007
26223
|
"use strict";
|
|
26008
26224
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26009
26225
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26051,7 +26267,7 @@ exports.default = {
|
|
|
26051
26267
|
verdadeiro: calango_1.default.VERDADEIRO,
|
|
26052
26268
|
};
|
|
26053
26269
|
|
|
26054
|
-
},{"../../../tipos-de-simbolos/calango":
|
|
26270
|
+
},{"../../../tipos-de-simbolos/calango":222}],203:[function(require,module,exports){
|
|
26055
26271
|
"use strict";
|
|
26056
26272
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26057
26273
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26092,7 +26308,7 @@ exports.palavrasReservadas = {
|
|
|
26092
26308
|
verdadeiro: egua_classico_1.default.VERDADEIRO,
|
|
26093
26309
|
};
|
|
26094
26310
|
|
|
26095
|
-
},{"../../../tipos-de-simbolos/egua-classico":
|
|
26311
|
+
},{"../../../tipos-de-simbolos/egua-classico":225}],204:[function(require,module,exports){
|
|
26096
26312
|
"use strict";
|
|
26097
26313
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26098
26314
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26104,7 +26320,7 @@ exports.palavrasReservadas = {
|
|
|
26104
26320
|
hai: guarani_1.default.HAI,
|
|
26105
26321
|
};
|
|
26106
26322
|
|
|
26107
|
-
},{"../../../tipos-de-simbolos/guarani":
|
|
26323
|
+
},{"../../../tipos-de-simbolos/guarani":226}],205:[function(require,module,exports){
|
|
26108
26324
|
"use strict";
|
|
26109
26325
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26110
26326
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26168,7 +26384,7 @@ exports.palavrasReservadasMicroGramatica = {
|
|
|
26168
26384
|
verdadeiro: pitugues_1.default.VERDADEIRO,
|
|
26169
26385
|
};
|
|
26170
26386
|
|
|
26171
|
-
},{"../../../tipos-de-simbolos/pitugues":
|
|
26387
|
+
},{"../../../tipos-de-simbolos/pitugues":228}],206:[function(require,module,exports){
|
|
26172
26388
|
"use strict";
|
|
26173
26389
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26174
26390
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26190,7 +26406,7 @@ exports.palavrasReservadas = {
|
|
|
26190
26406
|
senão: portugol_ipt_1.default.SENAO,
|
|
26191
26407
|
};
|
|
26192
26408
|
|
|
26193
|
-
},{"../../../tipos-de-simbolos/portugol-ipt":
|
|
26409
|
+
},{"../../../tipos-de-simbolos/portugol-ipt":229}],207:[function(require,module,exports){
|
|
26194
26410
|
"use strict";
|
|
26195
26411
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26196
26412
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26241,7 +26457,7 @@ exports.palavrasReservadas = {
|
|
|
26241
26457
|
verdadeiro: prisma_1.default.VERDADEIRO,
|
|
26242
26458
|
};
|
|
26243
26459
|
|
|
26244
|
-
},{"../../../tipos-de-simbolos/prisma":
|
|
26460
|
+
},{"../../../tipos-de-simbolos/prisma":230}],208:[function(require,module,exports){
|
|
26245
26461
|
"use strict";
|
|
26246
26462
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26247
26463
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26299,7 +26515,7 @@ exports.palavrasReservadas = {
|
|
|
26299
26515
|
Texto: tenda_1.default.BIBLIOTECA_GLOBAL,
|
|
26300
26516
|
};
|
|
26301
26517
|
|
|
26302
|
-
},{"../../../tipos-de-simbolos/tenda":
|
|
26518
|
+
},{"../../../tipos-de-simbolos/tenda":231}],209:[function(require,module,exports){
|
|
26303
26519
|
"use strict";
|
|
26304
26520
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
26305
26521
|
if (k2 === undefined) k2 = k;
|
|
@@ -26322,7 +26538,7 @@ __exportStar(require("./lexador-base-linha-unica"), exports);
|
|
|
26322
26538
|
__exportStar(require("./micro-lexador"), exports);
|
|
26323
26539
|
__exportStar(require("./simbolo"), exports);
|
|
26324
26540
|
|
|
26325
|
-
},{"./dialetos":
|
|
26541
|
+
},{"./dialetos":194,"./lexador":212,"./lexador-base-linha-unica":210,"./micro-lexador":215,"./simbolo":217}],210:[function(require,module,exports){
|
|
26326
26542
|
"use strict";
|
|
26327
26543
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26328
26544
|
exports.LexadorBaseLinhaUnica = void 0;
|
|
@@ -26411,7 +26627,7 @@ class LexadorBaseLinhaUnica {
|
|
|
26411
26627
|
}
|
|
26412
26628
|
exports.LexadorBaseLinhaUnica = LexadorBaseLinhaUnica;
|
|
26413
26629
|
|
|
26414
|
-
},{"./simbolo":
|
|
26630
|
+
},{"./simbolo":217}],211:[function(require,module,exports){
|
|
26415
26631
|
"use strict";
|
|
26416
26632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26417
26633
|
exports.LexadorBase = void 0;
|
|
@@ -26550,7 +26766,7 @@ class LexadorBase {
|
|
|
26550
26766
|
}
|
|
26551
26767
|
exports.LexadorBase = LexadorBase;
|
|
26552
26768
|
|
|
26553
|
-
},{"./simbolo":
|
|
26769
|
+
},{"./simbolo":217}],212:[function(require,module,exports){
|
|
26554
26770
|
"use strict";
|
|
26555
26771
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26556
26772
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27203,7 +27419,7 @@ class Lexador {
|
|
|
27203
27419
|
}
|
|
27204
27420
|
exports.Lexador = Lexador;
|
|
27205
27421
|
|
|
27206
|
-
},{"../tipos-de-simbolos/delegua":
|
|
27422
|
+
},{"../tipos-de-simbolos/delegua":224,"./palavras-reservadas":216,"./simbolo":217,"browser-process-hrtime":417}],213:[function(require,module,exports){
|
|
27207
27423
|
"use strict";
|
|
27208
27424
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27209
27425
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27386,7 +27602,7 @@ function pertenceAoParadigma(lexema, paradigma) {
|
|
|
27386
27602
|
return paradigmaLexema === paradigma;
|
|
27387
27603
|
}
|
|
27388
27604
|
|
|
27389
|
-
},{"../tipos-de-simbolos/delegua":
|
|
27605
|
+
},{"../tipos-de-simbolos/delegua":224}],214:[function(require,module,exports){
|
|
27390
27606
|
"use strict";
|
|
27391
27607
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27392
27608
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27606,7 +27822,7 @@ class MicroLexadorPitugues {
|
|
|
27606
27822
|
}
|
|
27607
27823
|
exports.MicroLexadorPitugues = MicroLexadorPitugues;
|
|
27608
27824
|
|
|
27609
|
-
},{"../tipos-de-simbolos/pitugues":
|
|
27825
|
+
},{"../tipos-de-simbolos/pitugues":228,"./palavras-reservadas":216,"./simbolo":217}],215:[function(require,module,exports){
|
|
27610
27826
|
"use strict";
|
|
27611
27827
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27612
27828
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27844,7 +28060,7 @@ class MicroLexador {
|
|
|
27844
28060
|
}
|
|
27845
28061
|
exports.MicroLexador = MicroLexador;
|
|
27846
28062
|
|
|
27847
|
-
},{"../tipos-de-simbolos/microgramaticas/delegua":
|
|
28063
|
+
},{"../tipos-de-simbolos/microgramaticas/delegua":227,"./palavras-reservadas":216,"./simbolo":217}],216:[function(require,module,exports){
|
|
27848
28064
|
"use strict";
|
|
27849
28065
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27850
28066
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27943,7 +28159,7 @@ exports.palavrasReservadasMicroGramatica = {
|
|
|
27943
28159
|
verdadeiro: delegua_1.default.VERDADEIRO,
|
|
27944
28160
|
};
|
|
27945
28161
|
|
|
27946
|
-
},{"../tipos-de-simbolos/delegua":
|
|
28162
|
+
},{"../tipos-de-simbolos/delegua":224}],217:[function(require,module,exports){
|
|
27947
28163
|
"use strict";
|
|
27948
28164
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27949
28165
|
exports.Simbolo = void 0;
|
|
@@ -27964,7 +28180,7 @@ class Simbolo {
|
|
|
27964
28180
|
}
|
|
27965
28181
|
exports.Simbolo = Simbolo;
|
|
27966
28182
|
|
|
27967
|
-
},{}],
|
|
28183
|
+
},{}],218:[function(require,module,exports){
|
|
27968
28184
|
"use strict";
|
|
27969
28185
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27970
28186
|
exports.ContinuarQuebra = exports.SustarQuebra = exports.RetornoQuebra = exports.Quebra = void 0;
|
|
@@ -27989,7 +28205,7 @@ class ContinuarQuebra extends Quebra {
|
|
|
27989
28205
|
}
|
|
27990
28206
|
exports.ContinuarQuebra = ContinuarQuebra;
|
|
27991
28207
|
|
|
27992
|
-
},{}],
|
|
28208
|
+
},{}],219:[function(require,module,exports){
|
|
27993
28209
|
"use strict";
|
|
27994
28210
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27995
28211
|
exports.default = {
|
|
@@ -28023,7 +28239,7 @@ exports.default = {
|
|
|
28023
28239
|
VETOR_TEXTO: 'texto[]',
|
|
28024
28240
|
};
|
|
28025
28241
|
|
|
28026
|
-
},{}],
|
|
28242
|
+
},{}],220:[function(require,module,exports){
|
|
28027
28243
|
"use strict";
|
|
28028
28244
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28029
28245
|
exports.default = {
|
|
@@ -28053,7 +28269,7 @@ exports.default = {
|
|
|
28053
28269
|
VETOR_TEXTO: 'texto[]',
|
|
28054
28270
|
};
|
|
28055
28271
|
|
|
28056
|
-
},{}],
|
|
28272
|
+
},{}],221:[function(require,module,exports){
|
|
28057
28273
|
"use strict";
|
|
28058
28274
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28059
28275
|
exports.default = {
|
|
@@ -28072,7 +28288,7 @@ exports.default = {
|
|
|
28072
28288
|
TEXTO: 'string',
|
|
28073
28289
|
};
|
|
28074
28290
|
|
|
28075
|
-
},{}],
|
|
28291
|
+
},{}],222:[function(require,module,exports){
|
|
28076
28292
|
"use strict";
|
|
28077
28293
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28078
28294
|
exports.default = {
|
|
@@ -28144,7 +28360,7 @@ exports.default = {
|
|
|
28144
28360
|
VIRGULA: 'VIRGULA',
|
|
28145
28361
|
};
|
|
28146
28362
|
|
|
28147
|
-
},{}],
|
|
28363
|
+
},{}],223:[function(require,module,exports){
|
|
28148
28364
|
"use strict";
|
|
28149
28365
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28150
28366
|
exports.default = {
|
|
@@ -28171,7 +28387,7 @@ exports.default = {
|
|
|
28171
28387
|
VIRGULA: 'VIRGULA',
|
|
28172
28388
|
};
|
|
28173
28389
|
|
|
28174
|
-
},{}],
|
|
28390
|
+
},{}],224:[function(require,module,exports){
|
|
28175
28391
|
"use strict";
|
|
28176
28392
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28177
28393
|
exports.default = {
|
|
@@ -28285,7 +28501,7 @@ exports.default = {
|
|
|
28285
28501
|
VIRGULA: 'VIRGULA',
|
|
28286
28502
|
};
|
|
28287
28503
|
|
|
28288
|
-
},{}],
|
|
28504
|
+
},{}],225:[function(require,module,exports){
|
|
28289
28505
|
"use strict";
|
|
28290
28506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28291
28507
|
exports.default = {
|
|
@@ -28363,7 +28579,7 @@ exports.default = {
|
|
|
28363
28579
|
VIRGULA: 'VIRGULA',
|
|
28364
28580
|
};
|
|
28365
28581
|
|
|
28366
|
-
},{}],
|
|
28582
|
+
},{}],226:[function(require,module,exports){
|
|
28367
28583
|
"use strict";
|
|
28368
28584
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28369
28585
|
exports.default = {
|
|
@@ -28380,7 +28596,7 @@ exports.default = {
|
|
|
28380
28596
|
VIRGULA: 'VIRGULA',
|
|
28381
28597
|
};
|
|
28382
28598
|
|
|
28383
|
-
},{}],
|
|
28599
|
+
},{}],227:[function(require,module,exports){
|
|
28384
28600
|
"use strict";
|
|
28385
28601
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28386
28602
|
exports.default = {
|
|
@@ -28433,7 +28649,7 @@ exports.default = {
|
|
|
28433
28649
|
VIRGULA: 'VIRGULA',
|
|
28434
28650
|
};
|
|
28435
28651
|
|
|
28436
|
-
},{}],
|
|
28652
|
+
},{}],228:[function(require,module,exports){
|
|
28437
28653
|
"use strict";
|
|
28438
28654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28439
28655
|
exports.default = {
|
|
@@ -28525,7 +28741,7 @@ exports.default = {
|
|
|
28525
28741
|
VIRGULA: 'VIRGULA',
|
|
28526
28742
|
};
|
|
28527
28743
|
|
|
28528
|
-
},{}],
|
|
28744
|
+
},{}],229:[function(require,module,exports){
|
|
28529
28745
|
"use strict";
|
|
28530
28746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28531
28747
|
exports.default = {
|
|
@@ -28564,7 +28780,7 @@ exports.default = {
|
|
|
28564
28780
|
VIRGULA: 'VIRGULA',
|
|
28565
28781
|
};
|
|
28566
28782
|
|
|
28567
|
-
},{}],
|
|
28783
|
+
},{}],230:[function(require,module,exports){
|
|
28568
28784
|
"use strict";
|
|
28569
28785
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28570
28786
|
exports.default = {
|
|
@@ -28648,7 +28864,7 @@ exports.default = {
|
|
|
28648
28864
|
VIRGULA: 'VIRGULA',
|
|
28649
28865
|
};
|
|
28650
28866
|
|
|
28651
|
-
},{}],
|
|
28867
|
+
},{}],231:[function(require,module,exports){
|
|
28652
28868
|
"use strict";
|
|
28653
28869
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28654
28870
|
// Em Tenda, isto é implementado em https://github.com/gabrielbrunop/tenda/blob/main/crates/scanner/src/token.rs#L42.
|
|
@@ -28743,7 +28959,7 @@ exports.default = {
|
|
|
28743
28959
|
VIRGULA: 'VIRGULA',
|
|
28744
28960
|
};
|
|
28745
28961
|
|
|
28746
|
-
},{}],
|
|
28962
|
+
},{}],232:[function(require,module,exports){
|
|
28747
28963
|
"use strict";
|
|
28748
28964
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28749
28965
|
if (k2 === undefined) k2 = k;
|
|
@@ -28765,7 +28981,7 @@ __exportStar(require("./tradutor-assembly-risc-v"), exports);
|
|
|
28765
28981
|
__exportStar(require("./tradutor-webassembly"), exports);
|
|
28766
28982
|
__exportStar(require("./tradutor-assembly-x64"), exports);
|
|
28767
28983
|
__exportStar(require("./tradutor-assemblyscript"), exports);
|
|
28768
|
-
__exportStar(require("./tradutor-calango"), exports);
|
|
28984
|
+
__exportStar(require("./tradutor-reverso-calango"), exports);
|
|
28769
28985
|
__exportStar(require("./tradutor-elixir"), exports);
|
|
28770
28986
|
__exportStar(require("./tradutor-javascript"), exports);
|
|
28771
28987
|
__exportStar(require("./tradutor-mermaidjs"), exports);
|
|
@@ -28776,7 +28992,7 @@ __exportStar(require("./tradutor-reverso-python"), exports);
|
|
|
28776
28992
|
__exportStar(require("./tradutor-reverso-tenda"), exports);
|
|
28777
28993
|
__exportStar(require("./tradutor-ruby"), exports);
|
|
28778
28994
|
|
|
28779
|
-
},{"./tradutor-assembly-arm":
|
|
28995
|
+
},{"./tradutor-assembly-arm":241,"./tradutor-assembly-risc-v":242,"./tradutor-assembly-x64":243,"./tradutor-assemblyscript":244,"./tradutor-elixir":245,"./tradutor-javascript":246,"./tradutor-mermaidjs":247,"./tradutor-portugol-ipt":248,"./tradutor-python":249,"./tradutor-reverso-calango":250,"./tradutor-reverso-javascript":251,"./tradutor-reverso-python":252,"./tradutor-reverso-tenda":253,"./tradutor-ruby":254,"./tradutor-webassembly":255}],233:[function(require,module,exports){
|
|
28780
28996
|
"use strict";
|
|
28781
28997
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28782
28998
|
exports.ArestaFluxograma = void 0;
|
|
@@ -28788,7 +29004,7 @@ class ArestaFluxograma {
|
|
|
28788
29004
|
}
|
|
28789
29005
|
exports.ArestaFluxograma = ArestaFluxograma;
|
|
28790
29006
|
|
|
28791
|
-
},{}],
|
|
29007
|
+
},{}],234:[function(require,module,exports){
|
|
28792
29008
|
"use strict";
|
|
28793
29009
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
28794
29010
|
if (k2 === undefined) k2 = k;
|
|
@@ -28811,7 +29027,7 @@ __exportStar(require("./subgrafo-funcao"), exports);
|
|
|
28811
29027
|
__exportStar(require("./subgrafo-metodo"), exports);
|
|
28812
29028
|
__exportStar(require("./vertice-fluxograma"), exports);
|
|
28813
29029
|
|
|
28814
|
-
},{"./aresta-fluxograma":
|
|
29030
|
+
},{"./aresta-fluxograma":233,"./subgrafo-classe":235,"./subgrafo-funcao":236,"./subgrafo-metodo":237,"./vertice-fluxograma":238}],235:[function(require,module,exports){
|
|
28815
29031
|
"use strict";
|
|
28816
29032
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28817
29033
|
exports.SubgrafoClasse = void 0;
|
|
@@ -28857,7 +29073,7 @@ class SubgrafoClasse {
|
|
|
28857
29073
|
}
|
|
28858
29074
|
exports.SubgrafoClasse = SubgrafoClasse;
|
|
28859
29075
|
|
|
28860
|
-
},{}],
|
|
29076
|
+
},{}],236:[function(require,module,exports){
|
|
28861
29077
|
"use strict";
|
|
28862
29078
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28863
29079
|
exports.SubgrafoFuncao = void 0;
|
|
@@ -28872,7 +29088,7 @@ class SubgrafoFuncao {
|
|
|
28872
29088
|
}
|
|
28873
29089
|
exports.SubgrafoFuncao = SubgrafoFuncao;
|
|
28874
29090
|
|
|
28875
|
-
},{}],
|
|
29091
|
+
},{}],237:[function(require,module,exports){
|
|
28876
29092
|
"use strict";
|
|
28877
29093
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28878
29094
|
exports.SubgrafoMetodo = void 0;
|
|
@@ -28889,7 +29105,7 @@ class SubgrafoMetodo {
|
|
|
28889
29105
|
}
|
|
28890
29106
|
exports.SubgrafoMetodo = SubgrafoMetodo;
|
|
28891
29107
|
|
|
28892
|
-
},{}],
|
|
29108
|
+
},{}],238:[function(require,module,exports){
|
|
28893
29109
|
"use strict";
|
|
28894
29110
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28895
29111
|
exports.VerticeFluxograma = void 0;
|
|
@@ -28906,7 +29122,7 @@ class VerticeFluxograma {
|
|
|
28906
29122
|
}
|
|
28907
29123
|
exports.VerticeFluxograma = VerticeFluxograma;
|
|
28908
29124
|
|
|
28909
|
-
},{}],
|
|
29125
|
+
},{}],239:[function(require,module,exports){
|
|
28910
29126
|
"use strict";
|
|
28911
29127
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
28912
29128
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -30146,7 +30362,7 @@ __decorate([
|
|
|
30146
30362
|
Decorators_1.Override
|
|
30147
30363
|
], Python3Lexer.prototype, "nextToken", null);
|
|
30148
30364
|
|
|
30149
|
-
},{"./python3-parser":
|
|
30365
|
+
},{"./python3-parser":240,"antlr4ts/CommonToken":265,"antlr4ts/Decorators":269,"antlr4ts/Lexer":277,"antlr4ts/Token":294,"antlr4ts/VocabularyImpl":300,"antlr4ts/atn/ATNDeserializer":306,"antlr4ts/atn/LexerATNSimulator":327,"antlr4ts/misc/Utils":388}],240:[function(require,module,exports){
|
|
30150
30366
|
"use strict";
|
|
30151
30367
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
30152
30368
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -41393,7 +41609,7 @@ class Yield_argContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
41393
41609
|
}
|
|
41394
41610
|
exports.Yield_argContext = Yield_argContext;
|
|
41395
41611
|
|
|
41396
|
-
},{"antlr4ts/FailedPredicateException":
|
|
41612
|
+
},{"antlr4ts/FailedPredicateException":273,"antlr4ts/NoViableAltException":281,"antlr4ts/Parser":282,"antlr4ts/ParserRuleContext":285,"antlr4ts/RecognitionException":288,"antlr4ts/Token":294,"antlr4ts/VocabularyImpl":300,"antlr4ts/atn/ATN":302,"antlr4ts/atn/ATNDeserializer":306,"antlr4ts/atn/ParserATNSimulator":343,"antlr4ts/misc/Utils":388}],241:[function(require,module,exports){
|
|
41397
41613
|
"use strict";
|
|
41398
41614
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41399
41615
|
exports.TradutorAssemblyARM = void 0;
|
|
@@ -42105,7 +42321,7 @@ ${labelFim}:`;
|
|
|
42105
42321
|
}
|
|
42106
42322
|
exports.TradutorAssemblyARM = TradutorAssemblyARM;
|
|
42107
42323
|
|
|
42108
|
-
},{"../construtos":62,"../declaracoes":110}],
|
|
42324
|
+
},{"../construtos":62,"../declaracoes":110}],242:[function(require,module,exports){
|
|
42109
42325
|
"use strict";
|
|
42110
42326
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42111
42327
|
exports.TradutorAssemblyRISCV = void 0;
|
|
@@ -42781,7 +42997,7 @@ ${labelSenao}:`;
|
|
|
42781
42997
|
}
|
|
42782
42998
|
exports.TradutorAssemblyRISCV = TradutorAssemblyRISCV;
|
|
42783
42999
|
|
|
42784
|
-
},{"../construtos":62,"../declaracoes":110}],
|
|
43000
|
+
},{"../construtos":62,"../declaracoes":110}],243:[function(require,module,exports){
|
|
42785
43001
|
"use strict";
|
|
42786
43002
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42787
43003
|
exports.TradutorAssemblyX64 = void 0;
|
|
@@ -43556,7 +43772,7 @@ __delegua_print_int:
|
|
|
43556
43772
|
}
|
|
43557
43773
|
exports.TradutorAssemblyX64 = TradutorAssemblyX64;
|
|
43558
43774
|
|
|
43559
|
-
},{"../construtos":62,"../declaracoes":110}],
|
|
43775
|
+
},{"../construtos":62,"../declaracoes":110}],244:[function(require,module,exports){
|
|
43560
43776
|
"use strict";
|
|
43561
43777
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
43562
43778
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -44762,62 +44978,7 @@ class TradutorAssemblyScript {
|
|
|
44762
44978
|
}
|
|
44763
44979
|
exports.TradutorAssemblyScript = TradutorAssemblyScript;
|
|
44764
44980
|
|
|
44765
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
44766
|
-
"use strict";
|
|
44767
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
44768
|
-
exports.TradutorCalango = void 0;
|
|
44769
|
-
class TradutorCalango {
|
|
44770
|
-
constructor() {
|
|
44771
|
-
this.indentacao = 0;
|
|
44772
|
-
this.dicionarioConstrutos = {
|
|
44773
|
-
FormatacaoEscrita: this.traduzirConstrutoFormatacaoEscrita.bind(this),
|
|
44774
|
-
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
44775
|
-
};
|
|
44776
|
-
this.dicionarioDeclaracoes = {
|
|
44777
|
-
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
44778
|
-
EscrevaMesmaLinha: this.traduzirDeclaracaoEscrevaMesmaLinha.bind(this),
|
|
44779
|
-
};
|
|
44780
|
-
}
|
|
44781
|
-
traduzirConstrutoFormatacaoEscrita(formatacaoEscrita) {
|
|
44782
|
-
const avaliacaoExpressao = this.dicionarioConstrutos[formatacaoEscrita.expressao.constructor.name](formatacaoEscrita.expressao);
|
|
44783
|
-
return `${avaliacaoExpressao}`;
|
|
44784
|
-
}
|
|
44785
|
-
traduzirConstrutoLiteral(literal) {
|
|
44786
|
-
if (typeof literal.valor === 'string')
|
|
44787
|
-
return `'${literal.valor}'`;
|
|
44788
|
-
return String(literal.valor);
|
|
44789
|
-
}
|
|
44790
|
-
traduzirDeclaracaoEscreva(declaracaoEscreva) {
|
|
44791
|
-
let resultado = 'escreva(';
|
|
44792
|
-
for (const argumento of declaracaoEscreva.argumentos) {
|
|
44793
|
-
const valor = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
44794
|
-
resultado += valor + ', ';
|
|
44795
|
-
}
|
|
44796
|
-
resultado = resultado.slice(0, -2);
|
|
44797
|
-
resultado += ')';
|
|
44798
|
-
return resultado;
|
|
44799
|
-
}
|
|
44800
|
-
traduzirDeclaracaoEscrevaMesmaLinha(declaracaoEscreva) {
|
|
44801
|
-
let resultado = 'escreva(';
|
|
44802
|
-
for (const argumento of declaracaoEscreva.argumentos) {
|
|
44803
|
-
const valor = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
44804
|
-
resultado += valor + ', ';
|
|
44805
|
-
}
|
|
44806
|
-
resultado = resultado.slice(0, -2);
|
|
44807
|
-
resultado += ')';
|
|
44808
|
-
return resultado;
|
|
44809
|
-
}
|
|
44810
|
-
traduzir(declaracoes) {
|
|
44811
|
-
let resultado = '';
|
|
44812
|
-
for (const declaracao of declaracoes) {
|
|
44813
|
-
resultado += `${this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao)} \n`;
|
|
44814
|
-
}
|
|
44815
|
-
return resultado;
|
|
44816
|
-
}
|
|
44817
|
-
}
|
|
44818
|
-
exports.TradutorCalango = TradutorCalango;
|
|
44819
|
-
|
|
44820
|
-
},{}],245:[function(require,module,exports){
|
|
44981
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224}],245:[function(require,module,exports){
|
|
44821
44982
|
"use strict";
|
|
44822
44983
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44823
44984
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -45768,7 +45929,7 @@ class TradutorElixir {
|
|
|
45768
45929
|
}
|
|
45769
45930
|
exports.TradutorElixir = TradutorElixir;
|
|
45770
45931
|
|
|
45771
|
-
},{"../tipos-de-simbolos/delegua":
|
|
45932
|
+
},{"../tipos-de-simbolos/delegua":224}],246:[function(require,module,exports){
|
|
45772
45933
|
"use strict";
|
|
45773
45934
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
45774
45935
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -46560,7 +46721,7 @@ class TradutorJavaScript {
|
|
|
46560
46721
|
}
|
|
46561
46722
|
exports.TradutorJavaScript = TradutorJavaScript;
|
|
46562
46723
|
|
|
46563
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
46724
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224}],247:[function(require,module,exports){
|
|
46564
46725
|
"use strict";
|
|
46565
46726
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
46566
46727
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -47384,7 +47545,7 @@ class TradutorMermaidJs {
|
|
|
47384
47545
|
}
|
|
47385
47546
|
exports.TradutorMermaidJs = TradutorMermaidJs;
|
|
47386
47547
|
|
|
47387
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
47548
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224,"./mermaid":234}],248:[function(require,module,exports){
|
|
47388
47549
|
"use strict";
|
|
47389
47550
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47390
47551
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -47446,7 +47607,7 @@ class TradutorPortugolIpt {
|
|
|
47446
47607
|
}
|
|
47447
47608
|
exports.TradutorPortugolIpt = TradutorPortugolIpt;
|
|
47448
47609
|
|
|
47449
|
-
},{"../avaliador-sintatico/dialetos":17,"../lexador/dialetos":
|
|
47610
|
+
},{"../avaliador-sintatico/dialetos":17,"../lexador/dialetos":194}],249:[function(require,module,exports){
|
|
47450
47611
|
"use strict";
|
|
47451
47612
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
47452
47613
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -48131,7 +48292,359 @@ class TradutorPython {
|
|
|
48131
48292
|
}
|
|
48132
48293
|
exports.TradutorPython = TradutorPython;
|
|
48133
48294
|
|
|
48134
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
48295
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224}],250:[function(require,module,exports){
|
|
48296
|
+
"use strict";
|
|
48297
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48298
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
48299
|
+
};
|
|
48300
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48301
|
+
exports.TradutorReversoCalango = void 0;
|
|
48302
|
+
const calango_1 = __importDefault(require("../tipos-de-simbolos/calango"));
|
|
48303
|
+
class TradutorReversoCalango {
|
|
48304
|
+
constructor() {
|
|
48305
|
+
this.indentacao = 0;
|
|
48306
|
+
this.dicionarioConstrutos = {
|
|
48307
|
+
AcessoIndiceVariavel: this.traduzirConstrutoAcessoIndiceVariavel.bind(this),
|
|
48308
|
+
Agrupamento: this.traduzirConstrutoAgrupamento.bind(this),
|
|
48309
|
+
AtribuicaoPorIndice: this.traduzirConstrutoAtribuicaoPorIndice.bind(this),
|
|
48310
|
+
Atribuir: this.traduzirConstrutoAtribuir.bind(this),
|
|
48311
|
+
Binario: this.traduzirConstrutoBinario.bind(this),
|
|
48312
|
+
Chamada: this.traduzirConstrutoChamada.bind(this),
|
|
48313
|
+
FormatacaoEscrita: this.traduzirConstrutoFormatacaoEscrita.bind(this),
|
|
48314
|
+
FuncaoConstruto: this.traduzirConstrutoFuncao.bind(this),
|
|
48315
|
+
Leia: this.traduzirConstrutoLeia.bind(this),
|
|
48316
|
+
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
48317
|
+
Logico: this.traduzirConstrutoLogico.bind(this),
|
|
48318
|
+
Unario: this.traduzirConstrutoUnario.bind(this),
|
|
48319
|
+
Variavel: this.traduzirConstrutoVariavel.bind(this),
|
|
48320
|
+
Vetor: this.traduzirConstrutoVetor.bind(this),
|
|
48321
|
+
};
|
|
48322
|
+
this.dicionarioDeclaracoes = {
|
|
48323
|
+
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
48324
|
+
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
48325
|
+
Escolha: this.traduzirDeclaracaoEscolha.bind(this),
|
|
48326
|
+
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
48327
|
+
EscrevaMesmaLinha: this.traduzirDeclaracaoEscrevaMesmaLinha.bind(this),
|
|
48328
|
+
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
48329
|
+
Fazer: this.traduzirDeclaracaoFazer.bind(this),
|
|
48330
|
+
FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
48331
|
+
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
48332
|
+
Retorna: this.traduzirDeclaracaoRetorna.bind(this),
|
|
48333
|
+
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
48334
|
+
Sustar: this.traduzirDeclaracaoSustar.bind(this),
|
|
48335
|
+
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
48336
|
+
};
|
|
48337
|
+
}
|
|
48338
|
+
traduzirSimboloOperador(simbolo) {
|
|
48339
|
+
switch (simbolo?.tipo) {
|
|
48340
|
+
case calango_1.default.ADICAO:
|
|
48341
|
+
return '+';
|
|
48342
|
+
case calango_1.default.SUBTRACAO:
|
|
48343
|
+
return '-';
|
|
48344
|
+
case calango_1.default.MULTIPLICACAO:
|
|
48345
|
+
return '*';
|
|
48346
|
+
case calango_1.default.DIVISAO:
|
|
48347
|
+
return '/';
|
|
48348
|
+
case calango_1.default.DIVISAO_INTEIRA:
|
|
48349
|
+
return '\\';
|
|
48350
|
+
case calango_1.default.MODULO:
|
|
48351
|
+
return '%';
|
|
48352
|
+
case calango_1.default.EXPONENCIACAO:
|
|
48353
|
+
return '^';
|
|
48354
|
+
case calango_1.default.IGUAL:
|
|
48355
|
+
case calango_1.default.IGUAL_IGUAL:
|
|
48356
|
+
return '==';
|
|
48357
|
+
case calango_1.default.IGUAL_ATRIBUICAO:
|
|
48358
|
+
return '=';
|
|
48359
|
+
case calango_1.default.DIFERENTE:
|
|
48360
|
+
return '!=';
|
|
48361
|
+
case calango_1.default.MAIOR:
|
|
48362
|
+
return '>';
|
|
48363
|
+
case calango_1.default.MAIOR_IGUAL:
|
|
48364
|
+
return '>=';
|
|
48365
|
+
case calango_1.default.MENOR:
|
|
48366
|
+
return '<';
|
|
48367
|
+
case calango_1.default.MENOR_IGUAL:
|
|
48368
|
+
return '<=';
|
|
48369
|
+
case calango_1.default.E:
|
|
48370
|
+
return 'e';
|
|
48371
|
+
case calango_1.default.OU:
|
|
48372
|
+
return 'ou';
|
|
48373
|
+
case calango_1.default.NEGACAO:
|
|
48374
|
+
return 'nao';
|
|
48375
|
+
default:
|
|
48376
|
+
return simbolo?.lexema || '';
|
|
48377
|
+
}
|
|
48378
|
+
}
|
|
48379
|
+
traduzirQualquer(elemento) {
|
|
48380
|
+
if (!elemento) {
|
|
48381
|
+
return '';
|
|
48382
|
+
}
|
|
48383
|
+
const nomeConstrutor = elemento.constructor.name;
|
|
48384
|
+
if (this.dicionarioDeclaracoes.hasOwnProperty(nomeConstrutor)) {
|
|
48385
|
+
return this.dicionarioDeclaracoes[nomeConstrutor](elemento);
|
|
48386
|
+
}
|
|
48387
|
+
if (this.dicionarioConstrutos.hasOwnProperty(nomeConstrutor)) {
|
|
48388
|
+
return this.dicionarioConstrutos[nomeConstrutor](elemento);
|
|
48389
|
+
}
|
|
48390
|
+
throw new Error(`Elemento não suportado pelo tradutor Calango reverso: ${nomeConstrutor}`);
|
|
48391
|
+
}
|
|
48392
|
+
traduzirParametro(parametro) {
|
|
48393
|
+
const nome = parametro?.nome?.lexema;
|
|
48394
|
+
const tipo = parametro?.tipoDado;
|
|
48395
|
+
if (!nome) {
|
|
48396
|
+
return '';
|
|
48397
|
+
}
|
|
48398
|
+
if (!tipo || tipo === 'qualquer') {
|
|
48399
|
+
return nome;
|
|
48400
|
+
}
|
|
48401
|
+
return `${nome}: ${tipo}`;
|
|
48402
|
+
}
|
|
48403
|
+
logicaComumBlocoEscopo(declaracoes) {
|
|
48404
|
+
let resultado = '{\n';
|
|
48405
|
+
this.indentacao += 4;
|
|
48406
|
+
for (const declaracaoOuConstruto of declaracoes || []) {
|
|
48407
|
+
const traducao = this.traduzirQualquer(declaracaoOuConstruto);
|
|
48408
|
+
if (!traducao) {
|
|
48409
|
+
continue;
|
|
48410
|
+
}
|
|
48411
|
+
resultado += `${' '.repeat(this.indentacao)}${traducao}\n`;
|
|
48412
|
+
}
|
|
48413
|
+
this.indentacao -= 4;
|
|
48414
|
+
resultado += `${' '.repeat(this.indentacao)}}`;
|
|
48415
|
+
return resultado;
|
|
48416
|
+
}
|
|
48417
|
+
traduzirConstrutoAcessoIndiceVariavel(acessoIndiceVariavel) {
|
|
48418
|
+
const entidade = this.traduzirQualquer(acessoIndiceVariavel.entidadeChamada);
|
|
48419
|
+
const indice = this.traduzirQualquer(acessoIndiceVariavel.indice);
|
|
48420
|
+
return `${entidade}[${indice}]`;
|
|
48421
|
+
}
|
|
48422
|
+
traduzirConstrutoAgrupamento(agrupamento) {
|
|
48423
|
+
return `(${this.traduzirQualquer(agrupamento.expressao)})`;
|
|
48424
|
+
}
|
|
48425
|
+
traduzirConstrutoAtribuicaoPorIndice(atribuicao) {
|
|
48426
|
+
const objeto = this.traduzirQualquer(atribuicao.objeto);
|
|
48427
|
+
const indice = this.traduzirQualquer(atribuicao.indice);
|
|
48428
|
+
const valor = this.traduzirQualquer(atribuicao.valor);
|
|
48429
|
+
return `${objeto}[${indice}] = ${valor}`;
|
|
48430
|
+
}
|
|
48431
|
+
traduzirConstrutoAtribuir(atribuir) {
|
|
48432
|
+
let alvo = this.traduzirQualquer(atribuir.alvo);
|
|
48433
|
+
if (atribuir.indice) {
|
|
48434
|
+
alvo += `[${this.traduzirQualquer(atribuir.indice)}]`;
|
|
48435
|
+
}
|
|
48436
|
+
const operador = atribuir.simboloOperador
|
|
48437
|
+
? this.traduzirSimboloOperador(atribuir.simboloOperador)
|
|
48438
|
+
: '=';
|
|
48439
|
+
const valor = this.traduzirQualquer(atribuir.valor);
|
|
48440
|
+
return `${alvo} ${operador} ${valor}`;
|
|
48441
|
+
}
|
|
48442
|
+
traduzirConstrutoBinario(binario) {
|
|
48443
|
+
const esquerda = this.traduzirQualquer(binario.esquerda);
|
|
48444
|
+
const direita = this.traduzirQualquer(binario.direita);
|
|
48445
|
+
const operador = this.traduzirSimboloOperador(binario.operador);
|
|
48446
|
+
return `${esquerda} ${operador} ${direita}`;
|
|
48447
|
+
}
|
|
48448
|
+
traduzirConstrutoChamada(chamada) {
|
|
48449
|
+
const entidade = this.traduzirQualquer(chamada.entidadeChamada);
|
|
48450
|
+
const argumentos = (chamada.argumentos || []).map((argumento) => this.traduzirQualquer(argumento));
|
|
48451
|
+
return `${entidade}(${argumentos.join(', ')})`;
|
|
48452
|
+
}
|
|
48453
|
+
traduzirConstrutoFormatacaoEscrita(formatacaoEscrita) {
|
|
48454
|
+
const avaliacaoExpressao = this.traduzirQualquer(formatacaoEscrita.expressao);
|
|
48455
|
+
return `${avaliacaoExpressao}`;
|
|
48456
|
+
}
|
|
48457
|
+
traduzirConstrutoFuncao(funcaoConstruto) {
|
|
48458
|
+
const parametros = (funcaoConstruto.parametros || [])
|
|
48459
|
+
.map((parametro) => this.traduzirParametro(parametro))
|
|
48460
|
+
.filter((p) => p)
|
|
48461
|
+
.join(', ');
|
|
48462
|
+
let resultado = `funcao(${parametros}) `;
|
|
48463
|
+
resultado += this.logicaComumBlocoEscopo(funcaoConstruto.corpo);
|
|
48464
|
+
return resultado;
|
|
48465
|
+
}
|
|
48466
|
+
traduzirConstrutoLeia(leia) {
|
|
48467
|
+
const argumentos = (leia.argumentos || []).map((argumento) => this.traduzirQualquer(argumento));
|
|
48468
|
+
return `leia(${argumentos.join(', ')})`;
|
|
48469
|
+
}
|
|
48470
|
+
traduzirConstrutoLiteral(literal) {
|
|
48471
|
+
if (typeof literal.valor === 'string') {
|
|
48472
|
+
const valorEscapado = literal.valor.replace(/\\/g, '\\\\').replace(/'/g, "\\'");
|
|
48473
|
+
return `'${valorEscapado}'`;
|
|
48474
|
+
}
|
|
48475
|
+
if (literal.valor === null || literal.valor === undefined) {
|
|
48476
|
+
return 'nulo';
|
|
48477
|
+
}
|
|
48478
|
+
if (typeof literal.valor === 'boolean') {
|
|
48479
|
+
return literal.valor ? 'verdadeiro' : 'falso';
|
|
48480
|
+
}
|
|
48481
|
+
return String(literal.valor);
|
|
48482
|
+
}
|
|
48483
|
+
traduzirConstrutoLogico(logico) {
|
|
48484
|
+
const esquerda = this.traduzirQualquer(logico.esquerda);
|
|
48485
|
+
const direita = this.traduzirQualquer(logico.direita);
|
|
48486
|
+
const operador = this.traduzirSimboloOperador(logico.operador);
|
|
48487
|
+
return `${esquerda} ${operador} ${direita}`;
|
|
48488
|
+
}
|
|
48489
|
+
traduzirConstrutoUnario(unario) {
|
|
48490
|
+
const operador = this.traduzirSimboloOperador(unario.operador);
|
|
48491
|
+
const operando = this.traduzirQualquer(unario.operando);
|
|
48492
|
+
if (unario.incidenciaOperador === 'DEPOIS') {
|
|
48493
|
+
return `${operando}${operador}`;
|
|
48494
|
+
}
|
|
48495
|
+
if (operador === 'nao') {
|
|
48496
|
+
return `${operador} ${operando}`;
|
|
48497
|
+
}
|
|
48498
|
+
return `${operador}${operando}`;
|
|
48499
|
+
}
|
|
48500
|
+
traduzirConstrutoVariavel(variavel) {
|
|
48501
|
+
return variavel.simbolo.lexema;
|
|
48502
|
+
}
|
|
48503
|
+
traduzirConstrutoVetor(vetor) {
|
|
48504
|
+
const elementos = (vetor.elementos || []).map((elemento) => this.traduzirQualquer(elemento));
|
|
48505
|
+
return `[${elementos.join(', ')}]`;
|
|
48506
|
+
}
|
|
48507
|
+
traduzirDeclaracaoBloco(bloco) {
|
|
48508
|
+
return this.logicaComumBlocoEscopo(bloco.declaracoes);
|
|
48509
|
+
}
|
|
48510
|
+
traduzirDeclaracaoEnquanto(declaracaoEnquanto) {
|
|
48511
|
+
const condicao = this.traduzirQualquer(declaracaoEnquanto.condicao);
|
|
48512
|
+
const corpo = this.traduzirDeclaracaoBloco(declaracaoEnquanto.corpo);
|
|
48513
|
+
return `enquanto (${condicao}) ${corpo}`;
|
|
48514
|
+
}
|
|
48515
|
+
traduzirDeclaracaoEscolha(declaracaoEscolha) {
|
|
48516
|
+
const expressao = this.traduzirQualquer(declaracaoEscolha.identificadorOuLiteral);
|
|
48517
|
+
let resultado = `escolha (${expressao}) {\n`;
|
|
48518
|
+
this.indentacao += 4;
|
|
48519
|
+
for (const caminho of declaracaoEscolha.caminhos || []) {
|
|
48520
|
+
for (const condicao of caminho.condicoes || []) {
|
|
48521
|
+
resultado += `${' '.repeat(this.indentacao)}caso ${this.traduzirQualquer(condicao)}:\n`;
|
|
48522
|
+
}
|
|
48523
|
+
this.indentacao += 4;
|
|
48524
|
+
for (const declaracao of caminho.declaracoes || []) {
|
|
48525
|
+
const traducao = this.traduzirQualquer(declaracao);
|
|
48526
|
+
if (traducao) {
|
|
48527
|
+
resultado += `${' '.repeat(this.indentacao)}${traducao}\n`;
|
|
48528
|
+
}
|
|
48529
|
+
}
|
|
48530
|
+
this.indentacao -= 4;
|
|
48531
|
+
}
|
|
48532
|
+
if (declaracaoEscolha.caminhoPadrao) {
|
|
48533
|
+
resultado += `${' '.repeat(this.indentacao)}padrao:\n`;
|
|
48534
|
+
this.indentacao += 4;
|
|
48535
|
+
for (const declaracao of declaracaoEscolha.caminhoPadrao.declaracoes || []) {
|
|
48536
|
+
const traducao = this.traduzirQualquer(declaracao);
|
|
48537
|
+
if (traducao) {
|
|
48538
|
+
resultado += `${' '.repeat(this.indentacao)}${traducao}\n`;
|
|
48539
|
+
}
|
|
48540
|
+
}
|
|
48541
|
+
this.indentacao -= 4;
|
|
48542
|
+
}
|
|
48543
|
+
this.indentacao -= 4;
|
|
48544
|
+
resultado += `${' '.repeat(this.indentacao)}}`;
|
|
48545
|
+
return resultado;
|
|
48546
|
+
}
|
|
48547
|
+
traduzirDeclaracaoEscreva(declaracaoEscreva) {
|
|
48548
|
+
let resultado = 'escreva(';
|
|
48549
|
+
for (const argumento of declaracaoEscreva.argumentos) {
|
|
48550
|
+
const valor = this.traduzirQualquer(argumento);
|
|
48551
|
+
resultado += valor + ', ';
|
|
48552
|
+
}
|
|
48553
|
+
if (declaracaoEscreva.argumentos.length > 0) {
|
|
48554
|
+
resultado = resultado.slice(0, -2);
|
|
48555
|
+
}
|
|
48556
|
+
resultado += ')';
|
|
48557
|
+
return resultado;
|
|
48558
|
+
}
|
|
48559
|
+
traduzirDeclaracaoEscrevaMesmaLinha(declaracaoEscreva) {
|
|
48560
|
+
let resultado = 'escreva(';
|
|
48561
|
+
for (const argumento of declaracaoEscreva.argumentos) {
|
|
48562
|
+
const valor = this.traduzirQualquer(argumento);
|
|
48563
|
+
resultado += valor + ', ';
|
|
48564
|
+
}
|
|
48565
|
+
if (declaracaoEscreva.argumentos.length > 0) {
|
|
48566
|
+
resultado = resultado.slice(0, -2);
|
|
48567
|
+
}
|
|
48568
|
+
resultado += ')';
|
|
48569
|
+
return resultado;
|
|
48570
|
+
}
|
|
48571
|
+
traduzirDeclaracaoExpressao(expressao) {
|
|
48572
|
+
return this.traduzirQualquer(expressao.expressao);
|
|
48573
|
+
}
|
|
48574
|
+
traduzirDeclaracaoFazer(fazer) {
|
|
48575
|
+
const corpo = this.traduzirDeclaracaoBloco(fazer.caminhoFazer);
|
|
48576
|
+
const condicao = this.traduzirQualquer(fazer.condicaoEnquanto);
|
|
48577
|
+
return `fazer ${corpo} enquanto (${condicao})`;
|
|
48578
|
+
}
|
|
48579
|
+
traduzirDeclaracaoFuncao(declaracaoFuncao) {
|
|
48580
|
+
const parametros = (declaracaoFuncao.funcao.parametros || [])
|
|
48581
|
+
.map((parametro) => this.traduzirParametro(parametro))
|
|
48582
|
+
.filter((p) => p)
|
|
48583
|
+
.join(', ');
|
|
48584
|
+
const tipoRetorno = declaracaoFuncao.tipo && declaracaoFuncao.tipo !== 'qualquer' && declaracaoFuncao.tipo !== 'vazio'
|
|
48585
|
+
? `: ${declaracaoFuncao.tipo}`
|
|
48586
|
+
: '';
|
|
48587
|
+
let resultado = `funcao ${declaracaoFuncao.simbolo.lexema}(${parametros})${tipoRetorno} `;
|
|
48588
|
+
resultado += this.logicaComumBlocoEscopo(declaracaoFuncao.funcao.corpo);
|
|
48589
|
+
return resultado;
|
|
48590
|
+
}
|
|
48591
|
+
traduzirDeclaracaoPara(declaracaoPara) {
|
|
48592
|
+
let inicializador = '';
|
|
48593
|
+
if (Array.isArray(declaracaoPara.inicializador)) {
|
|
48594
|
+
inicializador = declaracaoPara.inicializador
|
|
48595
|
+
.map((declaracao) => this.traduzirQualquer(declaracao))
|
|
48596
|
+
.join(', ');
|
|
48597
|
+
}
|
|
48598
|
+
else if (declaracaoPara.inicializador) {
|
|
48599
|
+
inicializador = this.traduzirQualquer(declaracaoPara.inicializador);
|
|
48600
|
+
}
|
|
48601
|
+
const condicao = this.traduzirQualquer(declaracaoPara.condicao);
|
|
48602
|
+
const incremento = this.traduzirQualquer(declaracaoPara.incrementar);
|
|
48603
|
+
const corpo = this.traduzirDeclaracaoBloco(declaracaoPara.corpo);
|
|
48604
|
+
return `para (${inicializador}; ${condicao}; ${incremento}) ${corpo}`;
|
|
48605
|
+
}
|
|
48606
|
+
traduzirDeclaracaoRetorna(retorna) {
|
|
48607
|
+
if (!retorna.valor) {
|
|
48608
|
+
return 'retorna';
|
|
48609
|
+
}
|
|
48610
|
+
return `retorna ${this.traduzirQualquer(retorna.valor)}`;
|
|
48611
|
+
}
|
|
48612
|
+
traduzirDeclaracaoSe(declaracaoSe) {
|
|
48613
|
+
const condicao = this.traduzirQualquer(declaracaoSe.condicao);
|
|
48614
|
+
const caminhoEntao = this.traduzirQualquer(declaracaoSe.caminhoEntao);
|
|
48615
|
+
let resultado = `se (${condicao}) ${caminhoEntao}`;
|
|
48616
|
+
const caminhosSeSenao = declaracaoSe.caminhosSeSenao || [];
|
|
48617
|
+
for (const caminhoSeSenao of caminhosSeSenao) {
|
|
48618
|
+
resultado += ` senao se (${this.traduzirQualquer(caminhoSeSenao.condicao)}) ${this.traduzirQualquer(caminhoSeSenao.caminho)}`;
|
|
48619
|
+
}
|
|
48620
|
+
if (declaracaoSe.caminhoSenao) {
|
|
48621
|
+
resultado += ` senao ${this.traduzirQualquer(declaracaoSe.caminhoSenao)}`;
|
|
48622
|
+
}
|
|
48623
|
+
return resultado;
|
|
48624
|
+
}
|
|
48625
|
+
traduzirDeclaracaoSustar(_sustar) {
|
|
48626
|
+
return 'sustar';
|
|
48627
|
+
}
|
|
48628
|
+
traduzirDeclaracaoVar(declaracaoVar) {
|
|
48629
|
+
if (!declaracaoVar.inicializador) {
|
|
48630
|
+
return `var ${declaracaoVar.simbolo.lexema}`;
|
|
48631
|
+
}
|
|
48632
|
+
return `var ${declaracaoVar.simbolo.lexema} = ${this.traduzirQualquer(declaracaoVar.inicializador)}`;
|
|
48633
|
+
}
|
|
48634
|
+
traduzir(declaracoes) {
|
|
48635
|
+
const linhas = [];
|
|
48636
|
+
for (const declaracao of declaracoes) {
|
|
48637
|
+
const traducao = this.traduzirQualquer(declaracao);
|
|
48638
|
+
if (traducao) {
|
|
48639
|
+
linhas.push(traducao);
|
|
48640
|
+
}
|
|
48641
|
+
}
|
|
48642
|
+
return linhas.join('\n');
|
|
48643
|
+
}
|
|
48644
|
+
}
|
|
48645
|
+
exports.TradutorReversoCalango = TradutorReversoCalango;
|
|
48646
|
+
|
|
48647
|
+
},{"../tipos-de-simbolos/calango":222}],251:[function(require,module,exports){
|
|
48135
48648
|
"use strict";
|
|
48136
48649
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48137
48650
|
exports.TradutorReversoJavaScript = void 0;
|
|
@@ -48526,80 +49039,637 @@ class TradutorReversoJavaScript {
|
|
|
48526
49039
|
}
|
|
48527
49040
|
exports.TradutorReversoJavaScript = TradutorReversoJavaScript;
|
|
48528
49041
|
|
|
48529
|
-
},{}],
|
|
49042
|
+
},{}],252:[function(require,module,exports){
|
|
48530
49043
|
"use strict";
|
|
48531
49044
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48532
49045
|
exports.TradutorReversoPython = void 0;
|
|
48533
49046
|
const antlr4ts_1 = require("antlr4ts");
|
|
48534
|
-
const
|
|
48535
|
-
const ParseTreeWalker_1 = require("antlr4ts/tree/ParseTreeWalker");
|
|
49047
|
+
const AbstractParseTreeVisitor_1 = require("antlr4ts/tree/AbstractParseTreeVisitor");
|
|
48536
49048
|
const python3_lexer_1 = require("./python/python3-lexer");
|
|
49049
|
+
const python3_parser_1 = require("./python/python3-parser");
|
|
48537
49050
|
/**
|
|
48538
49051
|
* Tradutor reverso de Python para Delégua.
|
|
48539
|
-
* Utiliza o
|
|
49052
|
+
* Utiliza o visitor do ANTLR para percorrer a árvore sintática em
|
|
48540
49053
|
* Python e traduzir para Delégua.
|
|
48541
49054
|
*/
|
|
48542
|
-
class TradutorReversoPython {
|
|
48543
|
-
|
|
48544
|
-
|
|
48545
|
-
|
|
48546
|
-
|
|
48547
|
-
|
|
48548
|
-
|
|
48549
|
-
|
|
48550
|
-
|
|
48551
|
-
|
|
49055
|
+
class TradutorReversoPython extends AbstractParseTreeVisitor_1.AbstractParseTreeVisitor {
|
|
49056
|
+
constructor() {
|
|
49057
|
+
super(...arguments);
|
|
49058
|
+
// Funções globais Python → Delégua
|
|
49059
|
+
this.mapeamentoFuncoes = {
|
|
49060
|
+
print: 'escreva',
|
|
49061
|
+
input: 'leia',
|
|
49062
|
+
len: 'tamanho',
|
|
49063
|
+
int: 'inteiro',
|
|
49064
|
+
float: 'real',
|
|
49065
|
+
str: 'texto',
|
|
49066
|
+
bool: 'logico',
|
|
49067
|
+
type: 'tipoDe',
|
|
49068
|
+
range: 'intervalo',
|
|
49069
|
+
abs: 'absoluto',
|
|
49070
|
+
round: 'arredondar',
|
|
49071
|
+
min: 'minimo',
|
|
49072
|
+
max: 'maximo',
|
|
49073
|
+
sum: 'somar',
|
|
49074
|
+
};
|
|
49075
|
+
// Métodos de instância Python → Delégua
|
|
49076
|
+
this.mapeamentoMetodos = {
|
|
49077
|
+
// Lista / vetor
|
|
49078
|
+
append: 'adicionar',
|
|
49079
|
+
pop: 'removerUltimo',
|
|
49080
|
+
reverse: 'inverter',
|
|
49081
|
+
sort: 'ordenar',
|
|
49082
|
+
clear: 'limpar',
|
|
49083
|
+
// Texto / string
|
|
49084
|
+
upper: 'maiusculo',
|
|
49085
|
+
lower: 'minusculo',
|
|
49086
|
+
strip: 'aparar',
|
|
49087
|
+
lstrip: 'aparar',
|
|
49088
|
+
rstrip: 'aparar',
|
|
49089
|
+
split: 'dividir',
|
|
49090
|
+
join: 'juntar',
|
|
49091
|
+
startswith: 'iniciaCom',
|
|
49092
|
+
endswith: 'terminaCom',
|
|
49093
|
+
replace: 'substituir',
|
|
49094
|
+
find: 'encontrar',
|
|
49095
|
+
count: 'contar',
|
|
49096
|
+
// Dicionário
|
|
49097
|
+
keys: 'chaves',
|
|
49098
|
+
values: 'valores',
|
|
49099
|
+
items: 'itens',
|
|
49100
|
+
};
|
|
49101
|
+
}
|
|
49102
|
+
defaultResult() {
|
|
49103
|
+
return '';
|
|
49104
|
+
}
|
|
49105
|
+
aggregateResult(aggregate, nextResult) {
|
|
49106
|
+
return aggregate + nextResult;
|
|
49107
|
+
}
|
|
49108
|
+
visitTerminal(node) {
|
|
49109
|
+
return node.text;
|
|
49110
|
+
}
|
|
49111
|
+
visitFile_input(ctx) {
|
|
49112
|
+
return ctx.stmt().map((s) => this.visit(s)).join('\n');
|
|
49113
|
+
}
|
|
49114
|
+
visitSimple_stmt(ctx) {
|
|
49115
|
+
return ctx.small_stmt().map((s) => this.visit(s)).join('; ');
|
|
49116
|
+
}
|
|
49117
|
+
visitExpr_stmt(ctx) {
|
|
49118
|
+
const lhs = this.visit(ctx.testlist_star_expr());
|
|
49119
|
+
const simpleAssign = ctx.simple_assign();
|
|
49120
|
+
if (simpleAssign && simpleAssign.childCount > 0) {
|
|
49121
|
+
const rhs = this.visitSimple_assign(simpleAssign);
|
|
49122
|
+
// Atribuições a atributos (a.b = x) ou índices (a[i] = x) não usam 'var'
|
|
49123
|
+
const prefixo = lhs.includes('.') || lhs.includes('[') ? '' : 'var ';
|
|
49124
|
+
return `${prefixo}${lhs} = ${rhs}`;
|
|
49125
|
+
}
|
|
49126
|
+
if (ctx.augassign()) {
|
|
49127
|
+
const op = this.visitAugassign(ctx.augassign());
|
|
49128
|
+
const testlist = ctx.testlist();
|
|
49129
|
+
const yieldExpr = ctx.yield_expr();
|
|
49130
|
+
const rhs = testlist
|
|
49131
|
+
? this.visit(testlist)
|
|
49132
|
+
: yieldExpr
|
|
49133
|
+
? this.visit(yieldExpr)
|
|
49134
|
+
: '';
|
|
49135
|
+
return `${lhs} ${op} ${rhs}`;
|
|
49136
|
+
}
|
|
49137
|
+
return lhs;
|
|
49138
|
+
}
|
|
49139
|
+
visitSimple_assign(ctx) {
|
|
49140
|
+
const exprs = ctx.testlist_star_expr();
|
|
49141
|
+
return this.visit(exprs[exprs.length - 1]);
|
|
49142
|
+
}
|
|
49143
|
+
visitAugassign(ctx) {
|
|
49144
|
+
if (ctx.ADD_ASSIGN())
|
|
49145
|
+
return '+=';
|
|
49146
|
+
if (ctx.SUB_ASSIGN())
|
|
49147
|
+
return '-=';
|
|
49148
|
+
if (ctx.MULT_ASSIGN())
|
|
49149
|
+
return '*=';
|
|
49150
|
+
if (ctx.DIV_ASSIGN())
|
|
49151
|
+
return '/=';
|
|
49152
|
+
if (ctx.MOD_ASSIGN())
|
|
49153
|
+
return '%=';
|
|
49154
|
+
if (ctx.AND_ASSIGN())
|
|
49155
|
+
return '&=';
|
|
49156
|
+
if (ctx.OR_ASSIGN())
|
|
49157
|
+
return '|=';
|
|
49158
|
+
if (ctx.XOR_ASSIGN())
|
|
49159
|
+
return '^=';
|
|
49160
|
+
if (ctx.LEFT_SHIFT_ASSIGN())
|
|
49161
|
+
return '<<=';
|
|
49162
|
+
if (ctx.RIGHT_SHIFT_ASSIGN())
|
|
49163
|
+
return '>>=';
|
|
49164
|
+
if (ctx.POWER_ASSIGN())
|
|
49165
|
+
return '**=';
|
|
49166
|
+
if (ctx.IDIV_ASSIGN())
|
|
49167
|
+
return '//=';
|
|
49168
|
+
return ctx.text;
|
|
49169
|
+
}
|
|
49170
|
+
visitTestlist_star_expr(ctx) {
|
|
49171
|
+
return ctx.test().map((t) => this.visit(t)).join(', ');
|
|
49172
|
+
}
|
|
49173
|
+
visitTestlist(ctx) {
|
|
49174
|
+
return ctx.test().map((t) => this.visit(t)).join(', ');
|
|
49175
|
+
}
|
|
49176
|
+
visitTest(ctx) {
|
|
49177
|
+
const orTests = ctx.or_test();
|
|
49178
|
+
if (orTests.length === 1)
|
|
49179
|
+
return this.visit(orTests[0]);
|
|
49180
|
+
const lambdef = ctx.lambdef();
|
|
49181
|
+
if (lambdef)
|
|
49182
|
+
return this.visit(lambdef);
|
|
49183
|
+
// Expressão ternária (a if cond else b) — implementada em fase futura
|
|
49184
|
+
return this.visitChildren(ctx);
|
|
49185
|
+
}
|
|
49186
|
+
visitOr_test(ctx) {
|
|
49187
|
+
return ctx.and_test().map((t) => this.visit(t)).join(' ou ');
|
|
49188
|
+
}
|
|
49189
|
+
visitAnd_test(ctx) {
|
|
49190
|
+
return ctx.not_test().map((t) => this.visit(t)).join(' e ');
|
|
49191
|
+
}
|
|
49192
|
+
visitNot_test(ctx) {
|
|
49193
|
+
if (ctx.NOT()) {
|
|
49194
|
+
return `nao ${this.visit(ctx.not_test())}`;
|
|
49195
|
+
}
|
|
49196
|
+
const comp = ctx.comparison();
|
|
49197
|
+
if (comp)
|
|
49198
|
+
return this.visit(comp);
|
|
49199
|
+
return this.visitChildren(ctx);
|
|
49200
|
+
}
|
|
49201
|
+
visitComparison(ctx) {
|
|
49202
|
+
const exprs = ctx.expr();
|
|
49203
|
+
if (exprs.length === 1)
|
|
49204
|
+
return this.visit(exprs[0]);
|
|
49205
|
+
const ops = ctx.comp_op();
|
|
49206
|
+
let resultado = this.visit(exprs[0]);
|
|
49207
|
+
for (let i = 0; i < ops.length; i++) {
|
|
49208
|
+
resultado += ` ${this.visitComp_op(ops[i])} ${this.visit(exprs[i + 1])}`;
|
|
48552
49209
|
}
|
|
49210
|
+
return resultado;
|
|
48553
49211
|
}
|
|
48554
|
-
|
|
48555
|
-
|
|
48556
|
-
|
|
48557
|
-
|
|
48558
|
-
|
|
48559
|
-
|
|
49212
|
+
visitComp_op(ctx) {
|
|
49213
|
+
if (ctx.LESS_THAN())
|
|
49214
|
+
return '<';
|
|
49215
|
+
if (ctx.GREATER_THAN())
|
|
49216
|
+
return '>';
|
|
49217
|
+
if (ctx.EQUALS())
|
|
49218
|
+
return '==';
|
|
49219
|
+
if (ctx.GT_EQ())
|
|
49220
|
+
return '>=';
|
|
49221
|
+
if (ctx.LT_EQ())
|
|
49222
|
+
return '<=';
|
|
49223
|
+
if (ctx.NOT_EQ_1() || ctx.NOT_EQ_2())
|
|
49224
|
+
return '!=';
|
|
49225
|
+
if (ctx.NOT() && ctx.IN())
|
|
49226
|
+
return 'nao em';
|
|
49227
|
+
if (ctx.IN())
|
|
49228
|
+
return 'em';
|
|
49229
|
+
if (ctx.NOT() && ctx.IS())
|
|
49230
|
+
return '!=';
|
|
49231
|
+
if (ctx.IS())
|
|
49232
|
+
return '==';
|
|
49233
|
+
return ctx.text;
|
|
49234
|
+
}
|
|
49235
|
+
visitArith_expr(ctx) {
|
|
49236
|
+
const termos = ctx.term();
|
|
49237
|
+
if (termos.length === 1)
|
|
49238
|
+
return this.visit(termos[0]);
|
|
49239
|
+
let resultado = this.visit(termos[0]);
|
|
49240
|
+
let idx = 1;
|
|
49241
|
+
for (let i = 1; i < ctx.childCount; i++) {
|
|
49242
|
+
const texto = ctx.getChild(i).text;
|
|
49243
|
+
if (texto === '+' || texto === '-') {
|
|
49244
|
+
resultado += ` ${texto} ${this.visit(termos[idx++])}`;
|
|
49245
|
+
}
|
|
49246
|
+
}
|
|
49247
|
+
return resultado;
|
|
48560
49248
|
}
|
|
48561
|
-
|
|
48562
|
-
|
|
49249
|
+
visitTerm(ctx) {
|
|
49250
|
+
const fatores = ctx.factor();
|
|
49251
|
+
if (fatores.length === 1)
|
|
49252
|
+
return this.visit(fatores[0]);
|
|
49253
|
+
let resultado = this.visit(fatores[0]);
|
|
49254
|
+
let idx = 1;
|
|
49255
|
+
for (let i = 1; i < ctx.childCount; i++) {
|
|
49256
|
+
const texto = ctx.getChild(i).text;
|
|
49257
|
+
if (['*', '/', '%', '//', '@'].includes(texto)) {
|
|
49258
|
+
resultado += ` ${texto} ${this.visit(fatores[idx++])}`;
|
|
49259
|
+
}
|
|
49260
|
+
}
|
|
49261
|
+
return resultado;
|
|
48563
49262
|
}
|
|
48564
|
-
|
|
48565
|
-
|
|
48566
|
-
|
|
48567
|
-
|
|
48568
|
-
|
|
48569
|
-
|
|
48570
|
-
|
|
48571
|
-
|
|
48572
|
-
|
|
48573
|
-
|
|
48574
|
-
|
|
49263
|
+
visitFactor(ctx) {
|
|
49264
|
+
if (ctx.ADD())
|
|
49265
|
+
return `+${this.visit(ctx.factor())}`;
|
|
49266
|
+
if (ctx.MINUS())
|
|
49267
|
+
return `-${this.visit(ctx.factor())}`;
|
|
49268
|
+
if (ctx.NOT_OP())
|
|
49269
|
+
return `~${this.visit(ctx.factor())}`;
|
|
49270
|
+
return this.visit(ctx.power());
|
|
49271
|
+
}
|
|
49272
|
+
visitPower(ctx) {
|
|
49273
|
+
const base = this.visit(ctx.atom_expr());
|
|
49274
|
+
if (ctx.POWER()) {
|
|
49275
|
+
return `${base} ** ${this.visit(ctx.factor())}`;
|
|
49276
|
+
}
|
|
49277
|
+
return base;
|
|
49278
|
+
}
|
|
49279
|
+
visitAtom_expr(ctx) {
|
|
49280
|
+
const textoAtomo = this.visit(ctx.atom());
|
|
49281
|
+
const trailers = ctx.trailer();
|
|
49282
|
+
if (trailers.length === 0)
|
|
49283
|
+
return textoAtomo;
|
|
49284
|
+
// Chamada de função simples: nome(args)
|
|
49285
|
+
if (trailers.length === 1 && trailers[0].OPEN_PAREN()) {
|
|
49286
|
+
const nomeFuncao = this.mapeamentoFuncoes[textoAtomo] ?? textoAtomo;
|
|
49287
|
+
const arglist = trailers[0].arglist();
|
|
49288
|
+
const args = arglist ? this.visit(arglist) : '';
|
|
49289
|
+
return `${nomeFuncao}(${args})`;
|
|
49290
|
+
}
|
|
49291
|
+
// Chamada de método: obj.metodo(args) → dois trailers: .nome e (args)
|
|
49292
|
+
if (trailers.length === 2 &&
|
|
49293
|
+
trailers[0].DOT() &&
|
|
49294
|
+
trailers[0].NAME() &&
|
|
49295
|
+
trailers[1].OPEN_PAREN()) {
|
|
49296
|
+
const nomeMetodoPython = trailers[0].NAME().text;
|
|
49297
|
+
const arglist = trailers[1].arglist();
|
|
49298
|
+
const args = arglist ? this.visit(arglist) : '';
|
|
49299
|
+
// join é invertido: sep.join(iteravel) → iteravel.juntar(sep)
|
|
49300
|
+
if (nomeMetodoPython === 'join') {
|
|
49301
|
+
return `${args}.juntar(${textoAtomo})`;
|
|
49302
|
+
}
|
|
49303
|
+
const nomeMetodoDelégua = this.mapeamentoMetodos[nomeMetodoPython] ?? nomeMetodoPython;
|
|
49304
|
+
return `${textoAtomo}.${nomeMetodoDelégua}(${args})`;
|
|
49305
|
+
}
|
|
49306
|
+
// Fallback: acesso a atributo, índice ou chamadas encadeadas
|
|
49307
|
+
let resultado = textoAtomo;
|
|
49308
|
+
for (const trailer of trailers) {
|
|
49309
|
+
resultado += this.visitTrailer(trailer);
|
|
48575
49310
|
}
|
|
49311
|
+
return resultado;
|
|
48576
49312
|
}
|
|
48577
|
-
|
|
48578
|
-
|
|
48579
|
-
|
|
48580
|
-
|
|
48581
|
-
|
|
49313
|
+
visitTrailer(ctx) {
|
|
49314
|
+
if (ctx.DOT() && ctx.NAME()) {
|
|
49315
|
+
return `.${ctx.NAME().text}`;
|
|
49316
|
+
}
|
|
49317
|
+
if (ctx.OPEN_BRACK()) {
|
|
49318
|
+
const subscriptlist = ctx.subscriptlist();
|
|
49319
|
+
const conteudo = subscriptlist ? this.visit(subscriptlist) : '';
|
|
49320
|
+
return `[${conteudo}]`;
|
|
49321
|
+
}
|
|
49322
|
+
if (ctx.OPEN_PAREN()) {
|
|
49323
|
+
const arglist = ctx.arglist();
|
|
49324
|
+
const args = arglist ? this.visit(arglist) : '';
|
|
49325
|
+
return `(${args})`;
|
|
49326
|
+
}
|
|
49327
|
+
return ctx.text;
|
|
49328
|
+
}
|
|
49329
|
+
visitAtom(ctx) {
|
|
49330
|
+
const nome = ctx.NAME();
|
|
49331
|
+
if (nome)
|
|
49332
|
+
return nome.text === 'self' ? 'isto' : nome.text;
|
|
49333
|
+
const numero = ctx.NUMBER();
|
|
49334
|
+
if (numero)
|
|
49335
|
+
return numero.text;
|
|
49336
|
+
if (ctx.TRUE())
|
|
49337
|
+
return 'verdadeiro';
|
|
49338
|
+
if (ctx.FALSE())
|
|
49339
|
+
return 'falso';
|
|
49340
|
+
if (ctx.NONE())
|
|
49341
|
+
return 'nulo';
|
|
49342
|
+
const strings = ctx.STRING();
|
|
49343
|
+
if (strings.length > 0)
|
|
49344
|
+
return strings.map((s) => s.text).join(' ');
|
|
49345
|
+
if (ctx.OPEN_PAREN()) {
|
|
49346
|
+
const testlistComp = ctx.testlist_comp();
|
|
49347
|
+
if (testlistComp) {
|
|
49348
|
+
// Tupla com vírgula → vetor em Delégua
|
|
49349
|
+
if (testlistComp.COMMA().length > 0) {
|
|
49350
|
+
return `[${this.visitTestlist_comp(testlistComp)}]`;
|
|
49351
|
+
}
|
|
49352
|
+
return `(${this.visitTestlist_comp(testlistComp)})`;
|
|
49353
|
+
}
|
|
49354
|
+
return '()';
|
|
49355
|
+
}
|
|
49356
|
+
if (ctx.OPEN_BRACK()) {
|
|
49357
|
+
const testlistComp = ctx.testlist_comp();
|
|
49358
|
+
if (testlistComp) {
|
|
49359
|
+
// Compreensão de lista: resultado já é um vetor, não envolve em []
|
|
49360
|
+
if (testlistComp.comp_for()) {
|
|
49361
|
+
return this.visitTestlist_comp(testlistComp);
|
|
49362
|
+
}
|
|
49363
|
+
return `[${this.visitTestlist_comp(testlistComp)}]`;
|
|
49364
|
+
}
|
|
49365
|
+
return '[]';
|
|
49366
|
+
}
|
|
49367
|
+
if (ctx.OPEN_BRACE()) {
|
|
49368
|
+
const dictorsetmaker = ctx.dictorsetmaker();
|
|
49369
|
+
if (dictorsetmaker)
|
|
49370
|
+
return `{${this.visitDictorsetmaker(dictorsetmaker)}}`;
|
|
49371
|
+
return '{}';
|
|
49372
|
+
}
|
|
49373
|
+
return ctx.text;
|
|
49374
|
+
}
|
|
49375
|
+
visitArglist(ctx) {
|
|
49376
|
+
return ctx.argument().map((a) => this.visit(a)).join(', ');
|
|
49377
|
+
}
|
|
49378
|
+
visitArgument(ctx) {
|
|
49379
|
+
const testes = ctx.test();
|
|
49380
|
+
if (testes.length === 1 && !ctx.ASSIGN()) {
|
|
49381
|
+
return this.visit(testes[0]);
|
|
49382
|
+
}
|
|
49383
|
+
// Argumento nomeado: nome=valor
|
|
49384
|
+
if (testes.length === 2 && ctx.ASSIGN()) {
|
|
49385
|
+
return `${this.visit(testes[0])} = ${this.visit(testes[1])}`;
|
|
49386
|
+
}
|
|
49387
|
+
return this.visitChildren(ctx);
|
|
49388
|
+
}
|
|
49389
|
+
visitTestlist_comp(ctx) {
|
|
49390
|
+
const compFor = ctx.comp_for();
|
|
49391
|
+
if (compFor) {
|
|
49392
|
+
return this.traduzirCompreensao(ctx.test(0), compFor);
|
|
49393
|
+
}
|
|
49394
|
+
return ctx.test().map((t) => this.visit(t)).join(', ');
|
|
49395
|
+
}
|
|
49396
|
+
traduzirCompreensao(exprCtx, compFor) {
|
|
49397
|
+
const variavel = this.visit(compFor.exprlist());
|
|
49398
|
+
const iteravel = this.visit(compFor.or_test());
|
|
49399
|
+
const expr = this.visit(exprCtx);
|
|
49400
|
+
const compIter = compFor.comp_iter();
|
|
49401
|
+
const compIf = compIter?.comp_if();
|
|
49402
|
+
if (compIf) {
|
|
49403
|
+
const cond = this.visitChildren(compIf.test_nocond());
|
|
49404
|
+
return `filtrarPor(${iteravel}, funcao(${variavel}) { retorna ${cond} }).mapear(funcao(${variavel}) { retorna ${expr} })`;
|
|
49405
|
+
}
|
|
49406
|
+
return `${iteravel}.mapear(funcao(${variavel}) { retorna ${expr} })`;
|
|
49407
|
+
}
|
|
49408
|
+
visitLambdef(ctx) {
|
|
49409
|
+
const varargslist = ctx.varargslist();
|
|
49410
|
+
const params = varargslist ? this.visitVarargslist(varargslist) : '';
|
|
49411
|
+
const corpo = this.visit(ctx.test());
|
|
49412
|
+
return `funcao(${params}) { retorna ${corpo} }`;
|
|
49413
|
+
}
|
|
49414
|
+
visitVarargslist(ctx) {
|
|
49415
|
+
const params = [];
|
|
49416
|
+
for (let i = 0; i < ctx.childCount;) {
|
|
49417
|
+
const texto = ctx.getChild(i).text;
|
|
49418
|
+
if (texto === ',') {
|
|
49419
|
+
i++;
|
|
49420
|
+
continue;
|
|
49421
|
+
}
|
|
49422
|
+
if (texto === '*' || texto === '**')
|
|
48582
49423
|
break;
|
|
48583
|
-
|
|
49424
|
+
const nomeParam = texto;
|
|
49425
|
+
if (i + 1 < ctx.childCount && ctx.getChild(i + 1).text === '=') {
|
|
49426
|
+
const valorPadrao = this.visit(ctx.getChild(i + 2));
|
|
49427
|
+
params.push(`${nomeParam} = ${valorPadrao}`);
|
|
49428
|
+
i += 3;
|
|
49429
|
+
}
|
|
49430
|
+
else {
|
|
49431
|
+
params.push(nomeParam);
|
|
49432
|
+
i++;
|
|
49433
|
+
}
|
|
49434
|
+
}
|
|
49435
|
+
return params.join(', ');
|
|
49436
|
+
}
|
|
49437
|
+
visitDictorsetmaker(ctx) {
|
|
49438
|
+
const tests = ctx.test();
|
|
49439
|
+
if (ctx.COLON().length > 0) {
|
|
49440
|
+
// Dicionário: testes alternados como chave/valor
|
|
49441
|
+
const pares = [];
|
|
49442
|
+
for (let i = 0; i + 1 < tests.length; i += 2) {
|
|
49443
|
+
pares.push(`${this.visit(tests[i])}: ${this.visit(tests[i + 1])}`);
|
|
49444
|
+
}
|
|
49445
|
+
return pares.join(', ');
|
|
49446
|
+
}
|
|
49447
|
+
// Conjunto (set) — representado como lista em Delégua
|
|
49448
|
+
return tests.map((t) => this.visit(t)).join(', ');
|
|
49449
|
+
}
|
|
49450
|
+
visitSubscriptlist(ctx) {
|
|
49451
|
+
return ctx.subscript().map((s) => this.visitSubscript(s)).join(', ');
|
|
49452
|
+
}
|
|
49453
|
+
visitSubscript(ctx) {
|
|
49454
|
+
const tests = ctx.test();
|
|
49455
|
+
if (!ctx.COLON()) {
|
|
49456
|
+
// Índice simples
|
|
49457
|
+
return tests.length > 0 ? this.visit(tests[0]) : '';
|
|
49458
|
+
}
|
|
49459
|
+
// Fatia: [inicio]:fim → inicio..fim
|
|
49460
|
+
// Se o primeiro filho é ':', não há início (ex: texto[:3])
|
|
49461
|
+
const temInicio = ctx.childCount > 0 && ctx.getChild(0).text !== ':';
|
|
49462
|
+
const inicio = temInicio ? this.visit(tests[0]) : '';
|
|
49463
|
+
const fimIdx = temInicio ? 1 : 0;
|
|
49464
|
+
const fim = tests.length > fimIdx ? this.visit(tests[fimIdx]) : '';
|
|
49465
|
+
return `${inicio}..${fim}`;
|
|
49466
|
+
}
|
|
49467
|
+
// Retorna as linhas já indentadas de um bloco, sem os colchetes externos.
|
|
49468
|
+
visitLinhasCorpo(ctx) {
|
|
49469
|
+
const linhas = [];
|
|
49470
|
+
const simpleStmt = ctx.simple_stmt();
|
|
49471
|
+
if (simpleStmt) {
|
|
49472
|
+
linhas.push(` ${this.visit(simpleStmt)}`);
|
|
49473
|
+
}
|
|
49474
|
+
else {
|
|
49475
|
+
for (const stmt of ctx.stmt()) {
|
|
49476
|
+
const traduzido = this.visit(stmt);
|
|
49477
|
+
for (const linha of traduzido.split('\n')) {
|
|
49478
|
+
linhas.push(` ${linha}`);
|
|
49479
|
+
}
|
|
49480
|
+
}
|
|
49481
|
+
}
|
|
49482
|
+
return linhas;
|
|
49483
|
+
}
|
|
49484
|
+
// Traduz um bloco indentado (suite) para o corpo entre chaves de Delégua.
|
|
49485
|
+
visitCorpo(ctx) {
|
|
49486
|
+
return `{\n${this.visitLinhasCorpo(ctx).join('\n')}\n}`;
|
|
49487
|
+
}
|
|
49488
|
+
visitTry_stmt(ctx) {
|
|
49489
|
+
const corpoTente = this.visitCorpo(ctx.suite(0));
|
|
49490
|
+
let resultado = `tente ${corpoTente}`;
|
|
49491
|
+
const excepts = ctx.except_clause();
|
|
49492
|
+
if (excepts.length > 0) {
|
|
49493
|
+
// Detecta alias do erro na primeira cláusula except com `as nome`
|
|
49494
|
+
const alias = excepts.find((e) => e.NAME())?.NAME()?.text;
|
|
49495
|
+
// Junta todos os corpos except num único bloco pegue
|
|
49496
|
+
const todasLinhas = [];
|
|
49497
|
+
for (let i = 0; i < excepts.length; i++) {
|
|
49498
|
+
todasLinhas.push(...this.visitLinhasCorpo(ctx.suite(i + 1)));
|
|
49499
|
+
}
|
|
49500
|
+
const corpoPegue = `{\n${todasLinhas.join('\n')}\n}`;
|
|
49501
|
+
resultado += alias ? ` pegue (${alias}) ${corpoPegue}` : ` pegue ${corpoPegue}`;
|
|
49502
|
+
}
|
|
49503
|
+
// Índice da suite do else/finally começa após as suites de except
|
|
49504
|
+
let suiteIdx = 1 + excepts.length;
|
|
49505
|
+
if (ctx.ELSE()) {
|
|
49506
|
+
suiteIdx++; // else não tem equivalente em Delégua — ignora
|
|
49507
|
+
}
|
|
49508
|
+
if (ctx.FINALLY()) {
|
|
49509
|
+
resultado += ` finalmente ${this.visitCorpo(ctx.suite(suiteIdx))}`;
|
|
49510
|
+
}
|
|
49511
|
+
return resultado;
|
|
49512
|
+
}
|
|
49513
|
+
visitRaise_stmt(ctx) {
|
|
49514
|
+
const tests = ctx.test();
|
|
49515
|
+
if (tests.length === 0)
|
|
49516
|
+
return 'levante';
|
|
49517
|
+
return `levante ${this.visit(tests[0])}`;
|
|
49518
|
+
}
|
|
49519
|
+
visitWith_stmt(ctx) {
|
|
49520
|
+
const linhasCorpo = this.visitLinhasCorpo(ctx.suite());
|
|
49521
|
+
// Apenas itens com `as` podem ser traduzidos para `tendo...como`
|
|
49522
|
+
const itemsComAs = ctx.with_item().filter((item) => item.expr());
|
|
49523
|
+
if (itemsComAs.length === 0) {
|
|
49524
|
+
// Nenhum item com `as`: traduz apenas o corpo, sem tendo
|
|
49525
|
+
return linhasCorpo.map((l) => l.trimStart()).join('\n');
|
|
49526
|
+
}
|
|
49527
|
+
return this.construirTendo(itemsComAs, 0, linhasCorpo);
|
|
49528
|
+
}
|
|
49529
|
+
// Constrói blocos `tendo` aninhados para cada item do `with`.
|
|
49530
|
+
// Items sem `as` são ignorados (Delégua exige um identificador).
|
|
49531
|
+
construirTendo(items, i, linhas) {
|
|
49532
|
+
if (i >= items.length) {
|
|
49533
|
+
return `{\n${linhas.join('\n')}\n}`;
|
|
49534
|
+
}
|
|
49535
|
+
const item = items[i];
|
|
49536
|
+
const varExpr = item.expr();
|
|
49537
|
+
const expr = this.visit(item.test());
|
|
49538
|
+
if (!varExpr) {
|
|
49539
|
+
// Sem `as`: sem variável para ligar — pula este item
|
|
49540
|
+
return this.construirTendo(items, i + 1, linhas);
|
|
49541
|
+
}
|
|
49542
|
+
const nomeVar = this.visit(varExpr);
|
|
49543
|
+
// Para múltiplos itens, o próximo nível é indentado dentro deste bloco
|
|
49544
|
+
let linhasInternas;
|
|
49545
|
+
if (i + 1 < items.length) {
|
|
49546
|
+
const blocoInterno = this.construirTendo(items, i + 1, linhas);
|
|
49547
|
+
linhasInternas = blocoInterno.split('\n').map((l) => ` ${l}`);
|
|
49548
|
+
}
|
|
49549
|
+
else {
|
|
49550
|
+
linhasInternas = linhas;
|
|
49551
|
+
}
|
|
49552
|
+
return `tendo ${expr} como ${nomeVar} {\n${linhasInternas.join('\n')}\n}`;
|
|
49553
|
+
}
|
|
49554
|
+
visitIf_stmt(ctx) {
|
|
49555
|
+
const testes = ctx.test();
|
|
49556
|
+
const suites = ctx.suite();
|
|
49557
|
+
const elifs = ctx.ELIF();
|
|
49558
|
+
// Primeiro bloco: se (cond) { ... }
|
|
49559
|
+
let resultado = `se (${this.visit(testes[0])}) ${this.visitCorpo(suites[0])}`;
|
|
49560
|
+
// Blocos elif: senão se (cond) { ... }
|
|
49561
|
+
for (let i = 0; i < elifs.length; i++) {
|
|
49562
|
+
resultado += ` senão se (${this.visit(testes[i + 1])}) ${this.visitCorpo(suites[i + 1])}`;
|
|
49563
|
+
}
|
|
49564
|
+
// Bloco else: senão { ... }
|
|
49565
|
+
if (ctx.ELSE()) {
|
|
49566
|
+
resultado += ` senão ${this.visitCorpo(suites[suites.length - 1])}`;
|
|
49567
|
+
}
|
|
49568
|
+
return resultado;
|
|
49569
|
+
}
|
|
49570
|
+
visitWhile_stmt(ctx) {
|
|
49571
|
+
const cond = this.visit(ctx.test());
|
|
49572
|
+
const corpo = this.visitCorpo(ctx.suite(0));
|
|
49573
|
+
return `enquanto (${cond}) ${corpo}`;
|
|
49574
|
+
}
|
|
49575
|
+
visitFor_stmt(ctx) {
|
|
49576
|
+
const variavel = this.visit(ctx.exprlist());
|
|
49577
|
+
const iteravel = this.visit(ctx.testlist());
|
|
49578
|
+
const corpo = this.visitCorpo(ctx.suite(0));
|
|
49579
|
+
return `para cada ${variavel} em ${iteravel} ${corpo}`;
|
|
49580
|
+
}
|
|
49581
|
+
visitBreak_stmt(_ctx) {
|
|
49582
|
+
return 'sustar';
|
|
49583
|
+
}
|
|
49584
|
+
visitContinue_stmt(_ctx) {
|
|
49585
|
+
return 'continua';
|
|
49586
|
+
}
|
|
49587
|
+
visitReturn_stmt(ctx) {
|
|
49588
|
+
const testlist = ctx.testlist();
|
|
49589
|
+
if (testlist)
|
|
49590
|
+
return `retorna ${this.visit(testlist)}`;
|
|
49591
|
+
return 'retorna';
|
|
49592
|
+
}
|
|
49593
|
+
visitTfpdef(ctx) {
|
|
49594
|
+
// Ignora anotação de tipo (: Tipo) — retorna apenas o nome
|
|
49595
|
+
return ctx.NAME().text;
|
|
49596
|
+
}
|
|
49597
|
+
visitTypedargslist(ctx) {
|
|
49598
|
+
const params = [];
|
|
49599
|
+
for (let i = 0; i < ctx.childCount;) {
|
|
49600
|
+
const filho = ctx.getChild(i);
|
|
49601
|
+
const texto = filho.text;
|
|
49602
|
+
if (texto === ',') {
|
|
49603
|
+
i++;
|
|
49604
|
+
continue;
|
|
49605
|
+
}
|
|
49606
|
+
// Para em *args ou **kwargs — suporte básico suficiente para fase 4
|
|
49607
|
+
if (texto === '*' || texto === '**')
|
|
48584
49608
|
break;
|
|
49609
|
+
const nomeParam = this.visit(filho); // → visitTfpdef → NAME
|
|
49610
|
+
if (nomeParam === 'self') {
|
|
49611
|
+
i++;
|
|
49612
|
+
continue;
|
|
49613
|
+
} // Remove self
|
|
49614
|
+
// Verifica se há valor padrão: tfpdef '=' test
|
|
49615
|
+
if (i + 1 < ctx.childCount && ctx.getChild(i + 1).text === '=') {
|
|
49616
|
+
const valorPadrao = this.visit(ctx.getChild(i + 2));
|
|
49617
|
+
params.push(`${nomeParam} = ${valorPadrao}`);
|
|
49618
|
+
i += 3;
|
|
49619
|
+
}
|
|
49620
|
+
else {
|
|
49621
|
+
params.push(nomeParam);
|
|
49622
|
+
i++;
|
|
49623
|
+
}
|
|
48585
49624
|
}
|
|
49625
|
+
return params.join(', ');
|
|
49626
|
+
}
|
|
49627
|
+
visitParameters(ctx) {
|
|
49628
|
+
const argslist = ctx.typedargslist();
|
|
49629
|
+
if (!argslist)
|
|
49630
|
+
return '';
|
|
49631
|
+
return this.visitTypedargslist(argslist);
|
|
49632
|
+
}
|
|
49633
|
+
visitFuncdef(ctx) {
|
|
49634
|
+
const nomePython = ctx.NAME().text;
|
|
49635
|
+
const params = this.visitParameters(ctx.parameters());
|
|
49636
|
+
const corpo = this.visitCorpo(ctx.suite());
|
|
49637
|
+
if (nomePython === '__init__') {
|
|
49638
|
+
return `construtor(${params}) ${corpo}`;
|
|
49639
|
+
}
|
|
49640
|
+
return `funcao ${nomePython}(${params}) ${corpo}`;
|
|
49641
|
+
}
|
|
49642
|
+
visitClassdef(ctx) {
|
|
49643
|
+
const nome = ctx.NAME().text;
|
|
49644
|
+
const arglist = ctx.arglist();
|
|
49645
|
+
const heranca = arglist ? ` herda ${this.visit(arglist)}` : '';
|
|
49646
|
+
const corpo = this.visitCorpo(ctx.suite());
|
|
49647
|
+
return `classe ${nome}${heranca} ${corpo}`;
|
|
49648
|
+
}
|
|
49649
|
+
visitDecorated(ctx) {
|
|
49650
|
+
// Ignora decoradores — traduz apenas o funcdef ou classdef subjacente
|
|
49651
|
+
const funcdef = ctx.funcdef();
|
|
49652
|
+
if (funcdef)
|
|
49653
|
+
return this.visitFuncdef(funcdef);
|
|
49654
|
+
const classdef = ctx.classdef();
|
|
49655
|
+
if (classdef)
|
|
49656
|
+
return this.visitClassdef(classdef);
|
|
49657
|
+
return this.visitChildren(ctx);
|
|
48586
49658
|
}
|
|
48587
49659
|
traduzir(codigo) {
|
|
48588
|
-
|
|
48589
|
-
|
|
48590
|
-
|
|
48591
|
-
|
|
48592
|
-
|
|
48593
|
-
|
|
48594
|
-
|
|
48595
|
-
|
|
48596
|
-
ParseTreeWalker_1.ParseTreeWalker.DEFAULT.walk(this, tree);
|
|
48597
|
-
return this.resultado;
|
|
49660
|
+
// O lexer Python3 do ANTLR exige NEWLINE ao final de cada instrução.
|
|
49661
|
+
const codigoNormalizado = codigo.endsWith('\n') ? codigo : codigo + '\n';
|
|
49662
|
+
const inputStream = antlr4ts_1.CharStreams.fromString(codigoNormalizado);
|
|
49663
|
+
const lexer = new python3_lexer_1.Python3Lexer(inputStream);
|
|
49664
|
+
const tokenStream = new antlr4ts_1.CommonTokenStream(lexer);
|
|
49665
|
+
const parser = new python3_parser_1.Python3Parser(tokenStream);
|
|
49666
|
+
const tree = parser.file_input();
|
|
49667
|
+
return this.visit(tree);
|
|
48598
49668
|
}
|
|
48599
49669
|
}
|
|
48600
49670
|
exports.TradutorReversoPython = TradutorReversoPython;
|
|
48601
49671
|
|
|
48602
|
-
},{"./python/python3-lexer":
|
|
49672
|
+
},{"./python/python3-lexer":239,"./python/python3-parser":240,"antlr4ts":371,"antlr4ts/tree/AbstractParseTreeVisitor":389}],253:[function(require,module,exports){
|
|
48603
49673
|
"use strict";
|
|
48604
49674
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
48605
49675
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -49190,7 +50260,7 @@ class TradutorReversoTenda {
|
|
|
49190
50260
|
}
|
|
49191
50261
|
exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
49192
50262
|
|
|
49193
|
-
},{"../construtos":62,"../tipos-de-simbolos/tenda":
|
|
50263
|
+
},{"../construtos":62,"../tipos-de-simbolos/tenda":231}],254:[function(require,module,exports){
|
|
49194
50264
|
"use strict";
|
|
49195
50265
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
49196
50266
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -49877,7 +50947,7 @@ class TradutorRuby {
|
|
|
49877
50947
|
}
|
|
49878
50948
|
exports.TradutorRuby = TradutorRuby;
|
|
49879
50949
|
|
|
49880
|
-
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":
|
|
50950
|
+
},{"../construtos":62,"../declaracoes":110,"../tipos-de-simbolos/delegua":224}],255:[function(require,module,exports){
|
|
49881
50951
|
"use strict";
|
|
49882
50952
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
49883
50953
|
exports.TradutorWebAssembly = void 0;
|
|
@@ -50764,7 +51834,7 @@ process.exit(codigoSaida);
|
|
|
50764
51834
|
}
|
|
50765
51835
|
exports.TradutorWebAssembly = TradutorWebAssembly;
|
|
50766
51836
|
|
|
50767
|
-
},{"../construtos":62,"../declaracoes":110}],
|
|
51837
|
+
},{"../construtos":62,"../declaracoes":110}],256:[function(require,module,exports){
|
|
50768
51838
|
"use strict";
|
|
50769
51839
|
/*!
|
|
50770
51840
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50772,7 +51842,7 @@ exports.TradutorWebAssembly = TradutorWebAssembly;
|
|
|
50772
51842
|
*/
|
|
50773
51843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50774
51844
|
|
|
50775
|
-
},{}],
|
|
51845
|
+
},{}],257:[function(require,module,exports){
|
|
50776
51846
|
"use strict";
|
|
50777
51847
|
/*!
|
|
50778
51848
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50780,7 +51850,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
50780
51850
|
*/
|
|
50781
51851
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
50782
51852
|
|
|
50783
|
-
},{}],
|
|
51853
|
+
},{}],258:[function(require,module,exports){
|
|
50784
51854
|
"use strict";
|
|
50785
51855
|
/*!
|
|
50786
51856
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50942,7 +52012,7 @@ __decorate([
|
|
|
50942
52012
|
], ANTLRInputStream.prototype, "toString", null);
|
|
50943
52013
|
exports.ANTLRInputStream = ANTLRInputStream;
|
|
50944
52014
|
|
|
50945
|
-
},{"./Decorators":
|
|
52015
|
+
},{"./Decorators":269,"./IntStream":275,"assert":412}],259:[function(require,module,exports){
|
|
50946
52016
|
"use strict";
|
|
50947
52017
|
/*!
|
|
50948
52018
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51025,7 +52095,7 @@ __decorate([
|
|
|
51025
52095
|
], BailErrorStrategy.prototype, "sync", null);
|
|
51026
52096
|
exports.BailErrorStrategy = BailErrorStrategy;
|
|
51027
52097
|
|
|
51028
|
-
},{"./Decorators":
|
|
52098
|
+
},{"./Decorators":269,"./DefaultErrorStrategy":270,"./InputMismatchException":274,"./misc/ParseCancellationException":386}],260:[function(require,module,exports){
|
|
51029
52099
|
"use strict";
|
|
51030
52100
|
/*!
|
|
51031
52101
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51515,7 +52585,7 @@ BufferedTokenStream = __decorate([
|
|
|
51515
52585
|
], BufferedTokenStream);
|
|
51516
52586
|
exports.BufferedTokenStream = BufferedTokenStream;
|
|
51517
52587
|
|
|
51518
|
-
},{"./CommonToken":
|
|
52588
|
+
},{"./CommonToken":265,"./Decorators":269,"./Lexer":277,"./Token":294,"./misc/Interval":381,"assert":412}],261:[function(require,module,exports){
|
|
51519
52589
|
"use strict";
|
|
51520
52590
|
/*!
|
|
51521
52591
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51523,7 +52593,7 @@ exports.BufferedTokenStream = BufferedTokenStream;
|
|
|
51523
52593
|
*/
|
|
51524
52594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
51525
52595
|
|
|
51526
|
-
},{}],
|
|
52596
|
+
},{}],262:[function(require,module,exports){
|
|
51527
52597
|
"use strict";
|
|
51528
52598
|
/*!
|
|
51529
52599
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51657,7 +52727,7 @@ var CharStreams;
|
|
|
51657
52727
|
// }
|
|
51658
52728
|
})(CharStreams = exports.CharStreams || (exports.CharStreams = {}));
|
|
51659
52729
|
|
|
51660
|
-
},{"./CodePointBuffer":
|
|
52730
|
+
},{"./CodePointBuffer":263,"./CodePointCharStream":264,"./IntStream":275}],263:[function(require,module,exports){
|
|
51661
52731
|
"use strict";
|
|
51662
52732
|
/*!
|
|
51663
52733
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51892,7 +52962,7 @@ exports.CodePointBuffer = CodePointBuffer;
|
|
|
51892
52962
|
CodePointBuffer.Builder = Builder;
|
|
51893
52963
|
})(CodePointBuffer = exports.CodePointBuffer || (exports.CodePointBuffer = {}));
|
|
51894
52964
|
|
|
51895
|
-
},{"./misc/Character":
|
|
52965
|
+
},{"./misc/Character":377,"assert":412}],264:[function(require,module,exports){
|
|
51896
52966
|
"use strict";
|
|
51897
52967
|
/*!
|
|
51898
52968
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52042,7 +53112,7 @@ __decorate([
|
|
|
52042
53112
|
], CodePointCharStream.prototype, "getText", null);
|
|
52043
53113
|
exports.CodePointCharStream = CodePointCharStream;
|
|
52044
53114
|
|
|
52045
|
-
},{"./Decorators":
|
|
53115
|
+
},{"./Decorators":269,"./IntStream":275,"./misc/Interval":381,"assert":412}],265:[function(require,module,exports){
|
|
52046
53116
|
"use strict";
|
|
52047
53117
|
/*!
|
|
52048
53118
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52272,7 +53342,7 @@ CommonToken = __decorate([
|
|
|
52272
53342
|
], CommonToken);
|
|
52273
53343
|
exports.CommonToken = CommonToken;
|
|
52274
53344
|
|
|
52275
|
-
},{"./Decorators":
|
|
53345
|
+
},{"./Decorators":269,"./Token":294,"./misc/Interval":381}],266:[function(require,module,exports){
|
|
52276
53346
|
"use strict";
|
|
52277
53347
|
/*!
|
|
52278
53348
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52336,7 +53406,7 @@ exports.CommonTokenFactory = CommonTokenFactory;
|
|
|
52336
53406
|
CommonTokenFactory.DEFAULT = new CommonTokenFactory();
|
|
52337
53407
|
})(CommonTokenFactory = exports.CommonTokenFactory || (exports.CommonTokenFactory = {}));
|
|
52338
53408
|
|
|
52339
|
-
},{"./CommonToken":
|
|
53409
|
+
},{"./CommonToken":265,"./Decorators":269,"./misc/Interval":381}],267:[function(require,module,exports){
|
|
52340
53410
|
"use strict";
|
|
52341
53411
|
/*!
|
|
52342
53412
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52463,7 +53533,7 @@ CommonTokenStream = __decorate([
|
|
|
52463
53533
|
], CommonTokenStream);
|
|
52464
53534
|
exports.CommonTokenStream = CommonTokenStream;
|
|
52465
53535
|
|
|
52466
|
-
},{"./BufferedTokenStream":
|
|
53536
|
+
},{"./BufferedTokenStream":260,"./Decorators":269,"./Token":294}],268:[function(require,module,exports){
|
|
52467
53537
|
"use strict";
|
|
52468
53538
|
/*!
|
|
52469
53539
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52497,7 +53567,7 @@ exports.ConsoleErrorListener = ConsoleErrorListener;
|
|
|
52497
53567
|
*/
|
|
52498
53568
|
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener();
|
|
52499
53569
|
|
|
52500
|
-
},{}],
|
|
53570
|
+
},{}],269:[function(require,module,exports){
|
|
52501
53571
|
"use strict";
|
|
52502
53572
|
/*!
|
|
52503
53573
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52524,7 +53594,7 @@ function SuppressWarnings(options) {
|
|
|
52524
53594
|
}
|
|
52525
53595
|
exports.SuppressWarnings = SuppressWarnings;
|
|
52526
53596
|
|
|
52527
|
-
},{}],
|
|
53597
|
+
},{}],270:[function(require,module,exports){
|
|
52528
53598
|
"use strict";
|
|
52529
53599
|
/*!
|
|
52530
53600
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53338,7 +54408,7 @@ __decorate([
|
|
|
53338
54408
|
], DefaultErrorStrategy.prototype, "consumeUntil", null);
|
|
53339
54409
|
exports.DefaultErrorStrategy = DefaultErrorStrategy;
|
|
53340
54410
|
|
|
53341
|
-
},{"./Decorators":
|
|
54411
|
+
},{"./Decorators":269,"./FailedPredicateException":273,"./InputMismatchException":274,"./NoViableAltException":281,"./Token":294,"./atn/ATNState":308,"./atn/ATNStateType":309,"./atn/PredictionContext":349,"./misc/IntervalSet":382}],271:[function(require,module,exports){
|
|
53342
54412
|
"use strict";
|
|
53343
54413
|
/*!
|
|
53344
54414
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53414,7 +54484,7 @@ var Dependents;
|
|
|
53414
54484
|
Dependents[Dependents["FOLLOWING"] = 9] = "FOLLOWING";
|
|
53415
54485
|
})(Dependents = exports.Dependents || (exports.Dependents = {}));
|
|
53416
54486
|
|
|
53417
|
-
},{}],
|
|
54487
|
+
},{}],272:[function(require,module,exports){
|
|
53418
54488
|
"use strict";
|
|
53419
54489
|
/*!
|
|
53420
54490
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53562,7 +54632,7 @@ __decorate([
|
|
|
53562
54632
|
], DiagnosticErrorListener.prototype, "getConflictingAlts", null);
|
|
53563
54633
|
exports.DiagnosticErrorListener = DiagnosticErrorListener;
|
|
53564
54634
|
|
|
53565
|
-
},{"./Decorators":
|
|
54635
|
+
},{"./Decorators":269,"./misc/BitSet":376,"./misc/Interval":381}],273:[function(require,module,exports){
|
|
53566
54636
|
"use strict";
|
|
53567
54637
|
/*!
|
|
53568
54638
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53627,7 +54697,7 @@ FailedPredicateException = __decorate([
|
|
|
53627
54697
|
], FailedPredicateException);
|
|
53628
54698
|
exports.FailedPredicateException = FailedPredicateException;
|
|
53629
54699
|
|
|
53630
|
-
},{"./Decorators":
|
|
54700
|
+
},{"./Decorators":269,"./RecognitionException":288,"./atn/PredicateTransition":348}],274:[function(require,module,exports){
|
|
53631
54701
|
"use strict";
|
|
53632
54702
|
/*!
|
|
53633
54703
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53667,7 +54737,7 @@ InputMismatchException = __decorate([
|
|
|
53667
54737
|
], InputMismatchException);
|
|
53668
54738
|
exports.InputMismatchException = InputMismatchException;
|
|
53669
54739
|
|
|
53670
|
-
},{"./Decorators":
|
|
54740
|
+
},{"./Decorators":269,"./RecognitionException":288}],275:[function(require,module,exports){
|
|
53671
54741
|
"use strict";
|
|
53672
54742
|
/*!
|
|
53673
54743
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53690,7 +54760,7 @@ var IntStream;
|
|
|
53690
54760
|
IntStream.UNKNOWN_SOURCE_NAME = "<unknown>";
|
|
53691
54761
|
})(IntStream = exports.IntStream || (exports.IntStream = {}));
|
|
53692
54762
|
|
|
53693
|
-
},{}],
|
|
54763
|
+
},{}],276:[function(require,module,exports){
|
|
53694
54764
|
"use strict";
|
|
53695
54765
|
/*!
|
|
53696
54766
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53737,7 +54807,7 @@ __decorate([
|
|
|
53737
54807
|
], InterpreterRuleContext.prototype, "ruleIndex", null);
|
|
53738
54808
|
exports.InterpreterRuleContext = InterpreterRuleContext;
|
|
53739
54809
|
|
|
53740
|
-
},{"./Decorators":
|
|
54810
|
+
},{"./Decorators":269,"./ParserRuleContext":285}],277:[function(require,module,exports){
|
|
53741
54811
|
"use strict";
|
|
53742
54812
|
/*!
|
|
53743
54813
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54073,7 +55143,7 @@ __decorate([
|
|
|
54073
55143
|
], Lexer.prototype, "charPositionInLine", null);
|
|
54074
55144
|
exports.Lexer = Lexer;
|
|
54075
55145
|
|
|
54076
|
-
},{"./CommonTokenFactory":
|
|
55146
|
+
},{"./CommonTokenFactory":266,"./Decorators":269,"./IntStream":275,"./LexerNoViableAltException":279,"./Recognizer":289,"./Token":294,"./atn/LexerATNSimulator":327,"./misc/IntegerStack":380,"./misc/Interval":381}],278:[function(require,module,exports){
|
|
54077
55147
|
"use strict";
|
|
54078
55148
|
/*!
|
|
54079
55149
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54153,7 +55223,7 @@ LexerInterpreter = __decorate([
|
|
|
54153
55223
|
], LexerInterpreter);
|
|
54154
55224
|
exports.LexerInterpreter = LexerInterpreter;
|
|
54155
55225
|
|
|
54156
|
-
},{"./Decorators":
|
|
55226
|
+
},{"./Decorators":269,"./Lexer":277,"./atn/LexerATNSimulator":327}],279:[function(require,module,exports){
|
|
54157
55227
|
"use strict";
|
|
54158
55228
|
/*!
|
|
54159
55229
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54210,7 +55280,7 @@ LexerNoViableAltException = __decorate([
|
|
|
54210
55280
|
], LexerNoViableAltException);
|
|
54211
55281
|
exports.LexerNoViableAltException = LexerNoViableAltException;
|
|
54212
55282
|
|
|
54213
|
-
},{"./Decorators":
|
|
55283
|
+
},{"./Decorators":269,"./RecognitionException":288,"./misc/Interval":381,"./misc/Utils":388}],280:[function(require,module,exports){
|
|
54214
55284
|
"use strict";
|
|
54215
55285
|
/*!
|
|
54216
55286
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54420,7 +55490,7 @@ ListTokenSource = __decorate([
|
|
|
54420
55490
|
], ListTokenSource);
|
|
54421
55491
|
exports.ListTokenSource = ListTokenSource;
|
|
54422
55492
|
|
|
54423
|
-
},{"./CommonTokenFactory":
|
|
55493
|
+
},{"./CommonTokenFactory":266,"./Decorators":269,"./Token":294}],281:[function(require,module,exports){
|
|
54424
55494
|
"use strict";
|
|
54425
55495
|
/*!
|
|
54426
55496
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54475,7 +55545,7 @@ __decorate([
|
|
|
54475
55545
|
], NoViableAltException.prototype, "_startToken", void 0);
|
|
54476
55546
|
exports.NoViableAltException = NoViableAltException;
|
|
54477
55547
|
|
|
54478
|
-
},{"./Decorators":
|
|
55548
|
+
},{"./Decorators":269,"./Parser":282,"./RecognitionException":288}],282:[function(require,module,exports){
|
|
54479
55549
|
(function (process){(function (){
|
|
54480
55550
|
"use strict";
|
|
54481
55551
|
/*!
|
|
@@ -55321,7 +56391,7 @@ __decorate([
|
|
|
55321
56391
|
exports.Parser = Parser;
|
|
55322
56392
|
|
|
55323
56393
|
}).call(this)}).call(this,require('_process'))
|
|
55324
|
-
},{"./Decorators":
|
|
56394
|
+
},{"./Decorators":269,"./DefaultErrorStrategy":270,"./Lexer":277,"./ProxyParserErrorListener":287,"./Recognizer":289,"./Token":294,"./atn/ATNDeserializationOptions":305,"./atn/ATNDeserializer":306,"./atn/ParseInfo":342,"./atn/ParserATNSimulator":343,"./atn/ProfilingATNSimulator":352,"./misc/IntegerStack":380,"./misc/Utils":388,"./tree/ErrorNode":390,"./tree/TerminalNode":392,"./tree/pattern/ParseTreePatternMatcher":397,"_process":471}],283:[function(require,module,exports){
|
|
55325
56395
|
"use strict";
|
|
55326
56396
|
/*!
|
|
55327
56397
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55329,7 +56399,7 @@ exports.Parser = Parser;
|
|
|
55329
56399
|
*/
|
|
55330
56400
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
55331
56401
|
|
|
55332
|
-
},{}],
|
|
56402
|
+
},{}],284:[function(require,module,exports){
|
|
55333
56403
|
"use strict";
|
|
55334
56404
|
/*!
|
|
55335
56405
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55737,7 +56807,7 @@ ParserInterpreter = __decorate([
|
|
|
55737
56807
|
], ParserInterpreter);
|
|
55738
56808
|
exports.ParserInterpreter = ParserInterpreter;
|
|
55739
56809
|
|
|
55740
|
-
},{"./Decorators":
|
|
56810
|
+
},{"./Decorators":269,"./FailedPredicateException":273,"./InputMismatchException":274,"./InterpreterRuleContext":276,"./Parser":282,"./RecognitionException":288,"./Token":294,"./atn/ATNState":308,"./atn/ATNStateType":309,"./atn/LoopEndState":339,"./atn/ParserATNSimulator":343,"./atn/StarLoopEntryState":361,"./misc/BitSet":376}],285:[function(require,module,exports){
|
|
55741
56811
|
"use strict";
|
|
55742
56812
|
/*!
|
|
55743
56813
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56038,7 +57108,7 @@ __decorate([
|
|
|
56038
57108
|
], ParserRuleContext.prototype, "sourceInterval", null);
|
|
56039
57109
|
exports.ParserRuleContext = ParserRuleContext;
|
|
56040
57110
|
|
|
56041
|
-
},{"./Decorators":
|
|
57111
|
+
},{"./Decorators":269,"./RuleContext":290,"./misc/Interval":381,"./tree/ErrorNode":390,"./tree/TerminalNode":392}],286:[function(require,module,exports){
|
|
56042
57112
|
"use strict";
|
|
56043
57113
|
/*!
|
|
56044
57114
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56088,7 +57158,7 @@ __decorate([
|
|
|
56088
57158
|
], ProxyErrorListener.prototype, "syntaxError", null);
|
|
56089
57159
|
exports.ProxyErrorListener = ProxyErrorListener;
|
|
56090
57160
|
|
|
56091
|
-
},{"./Decorators":
|
|
57161
|
+
},{"./Decorators":269}],287:[function(require,module,exports){
|
|
56092
57162
|
"use strict";
|
|
56093
57163
|
/*!
|
|
56094
57164
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56147,7 +57217,7 @@ __decorate([
|
|
|
56147
57217
|
], ProxyParserErrorListener.prototype, "reportContextSensitivity", null);
|
|
56148
57218
|
exports.ProxyParserErrorListener = ProxyParserErrorListener;
|
|
56149
57219
|
|
|
56150
|
-
},{"./Decorators":
|
|
57220
|
+
},{"./Decorators":269,"./ProxyErrorListener":286}],288:[function(require,module,exports){
|
|
56151
57221
|
"use strict";
|
|
56152
57222
|
/*!
|
|
56153
57223
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56252,7 +57322,7 @@ class RecognitionException extends Error {
|
|
|
56252
57322
|
}
|
|
56253
57323
|
exports.RecognitionException = RecognitionException;
|
|
56254
57324
|
|
|
56255
|
-
},{}],
|
|
57325
|
+
},{}],289:[function(require,module,exports){
|
|
56256
57326
|
"use strict";
|
|
56257
57327
|
/*!
|
|
56258
57328
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56471,7 +57541,7 @@ __decorate([
|
|
|
56471
57541
|
], Recognizer.prototype, "getErrorListeners", null);
|
|
56472
57542
|
exports.Recognizer = Recognizer;
|
|
56473
57543
|
|
|
56474
|
-
},{"./ConsoleErrorListener":
|
|
57544
|
+
},{"./ConsoleErrorListener":268,"./Decorators":269,"./ProxyErrorListener":286,"./Token":294,"./misc/Utils":388}],290:[function(require,module,exports){
|
|
56475
57545
|
"use strict";
|
|
56476
57546
|
/*!
|
|
56477
57547
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56688,7 +57758,7 @@ __decorate([
|
|
|
56688
57758
|
], RuleContext.prototype, "toStringTree", null);
|
|
56689
57759
|
exports.RuleContext = RuleContext;
|
|
56690
57760
|
|
|
56691
|
-
},{"./Decorators":
|
|
57761
|
+
},{"./Decorators":269,"./ParserRuleContext":285,"./Recognizer":289,"./atn/ATN":302,"./misc/Interval":381,"./tree/RuleNode":391,"./tree/Trees":393}],291:[function(require,module,exports){
|
|
56692
57762
|
"use strict";
|
|
56693
57763
|
/*!
|
|
56694
57764
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56739,7 +57809,7 @@ __decorate([
|
|
|
56739
57809
|
], RuleContextWithAltNum.prototype, "altNumber", null);
|
|
56740
57810
|
exports.RuleContextWithAltNum = RuleContextWithAltNum;
|
|
56741
57811
|
|
|
56742
|
-
},{"./Decorators":
|
|
57812
|
+
},{"./Decorators":269,"./ParserRuleContext":285,"./atn/ATN":302}],292:[function(require,module,exports){
|
|
56743
57813
|
"use strict";
|
|
56744
57814
|
/*!
|
|
56745
57815
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56762,7 +57832,7 @@ function RuleDependency(dependency) {
|
|
|
56762
57832
|
}
|
|
56763
57833
|
exports.RuleDependency = RuleDependency;
|
|
56764
57834
|
|
|
56765
|
-
},{}],
|
|
57835
|
+
},{}],293:[function(require,module,exports){
|
|
56766
57836
|
"use strict";
|
|
56767
57837
|
/*!
|
|
56768
57838
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56781,7 +57851,7 @@ function RuleVersion(version) {
|
|
|
56781
57851
|
}
|
|
56782
57852
|
exports.RuleVersion = RuleVersion;
|
|
56783
57853
|
|
|
56784
|
-
},{}],
|
|
57854
|
+
},{}],294:[function(require,module,exports){
|
|
56785
57855
|
"use strict";
|
|
56786
57856
|
/*!
|
|
56787
57857
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56821,7 +57891,7 @@ var Token;
|
|
|
56821
57891
|
Token.MIN_USER_CHANNEL_VALUE = 2;
|
|
56822
57892
|
})(Token = exports.Token || (exports.Token = {}));
|
|
56823
57893
|
|
|
56824
|
-
},{"./IntStream":
|
|
57894
|
+
},{"./IntStream":275}],295:[function(require,module,exports){
|
|
56825
57895
|
"use strict";
|
|
56826
57896
|
/*!
|
|
56827
57897
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56829,7 +57899,7 @@ var Token;
|
|
|
56829
57899
|
*/
|
|
56830
57900
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56831
57901
|
|
|
56832
|
-
},{}],
|
|
57902
|
+
},{}],296:[function(require,module,exports){
|
|
56833
57903
|
"use strict";
|
|
56834
57904
|
/*!
|
|
56835
57905
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56837,7 +57907,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
56837
57907
|
*/
|
|
56838
57908
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56839
57909
|
|
|
56840
|
-
},{}],
|
|
57910
|
+
},{}],297:[function(require,module,exports){
|
|
56841
57911
|
"use strict";
|
|
56842
57912
|
/*!
|
|
56843
57913
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56845,7 +57915,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
56845
57915
|
*/
|
|
56846
57916
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
56847
57917
|
|
|
56848
|
-
},{}],
|
|
57918
|
+
},{}],298:[function(require,module,exports){
|
|
56849
57919
|
"use strict";
|
|
56850
57920
|
/*!
|
|
56851
57921
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57353,7 +58423,7 @@ __decorate([
|
|
|
57353
58423
|
Decorators_1.Override
|
|
57354
58424
|
], ReplaceOp.prototype, "toString", null);
|
|
57355
58425
|
|
|
57356
|
-
},{"./Decorators":
|
|
58426
|
+
},{"./Decorators":269,"./Token":294,"./misc/Interval":381}],299:[function(require,module,exports){
|
|
57357
58427
|
"use strict";
|
|
57358
58428
|
/*!
|
|
57359
58429
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57361,7 +58431,7 @@ __decorate([
|
|
|
57361
58431
|
*/
|
|
57362
58432
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57363
58433
|
|
|
57364
|
-
},{}],
|
|
58434
|
+
},{}],300:[function(require,module,exports){
|
|
57365
58435
|
"use strict";
|
|
57366
58436
|
/*!
|
|
57367
58437
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57481,7 +58551,7 @@ __decorate([
|
|
|
57481
58551
|
], VocabularyImpl, "EMPTY_VOCABULARY", void 0);
|
|
57482
58552
|
exports.VocabularyImpl = VocabularyImpl;
|
|
57483
58553
|
|
|
57484
|
-
},{"./Decorators":
|
|
58554
|
+
},{"./Decorators":269,"./Token":294}],301:[function(require,module,exports){
|
|
57485
58555
|
"use strict";
|
|
57486
58556
|
/*!
|
|
57487
58557
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57489,7 +58559,7 @@ exports.VocabularyImpl = VocabularyImpl;
|
|
|
57489
58559
|
*/
|
|
57490
58560
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
57491
58561
|
|
|
57492
|
-
},{}],
|
|
58562
|
+
},{}],302:[function(require,module,exports){
|
|
57493
58563
|
"use strict";
|
|
57494
58564
|
/*!
|
|
57495
58565
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57711,7 +58781,7 @@ exports.ATN = ATN;
|
|
|
57711
58781
|
})(ATN = exports.ATN || (exports.ATN = {}));
|
|
57712
58782
|
exports.ATN = ATN;
|
|
57713
58783
|
|
|
57714
|
-
},{"../Decorators":
|
|
58784
|
+
},{"../Decorators":269,"../Token":294,"../dfa/DFA":367,"../misc/Array2DHashMap":372,"../misc/IntervalSet":382,"../misc/ObjectEqualityComparator":385,"./InvalidState":325,"./LL1Analyzer":326,"./PredictionContext":349,"assert":412}],303:[function(require,module,exports){
|
|
57715
58785
|
"use strict";
|
|
57716
58786
|
/*!
|
|
57717
58787
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58236,7 +59306,7 @@ ActionSemanticContextATNConfig = __decorate([
|
|
|
58236
59306
|
__param(1, Decorators_1.NotNull), __param(2, Decorators_1.NotNull)
|
|
58237
59307
|
], ActionSemanticContextATNConfig);
|
|
58238
59308
|
|
|
58239
|
-
},{"../Decorators":
|
|
59309
|
+
},{"../Decorators":269,"../misc/Array2DHashMap":372,"../misc/MurmurHash":384,"../misc/ObjectEqualityComparator":385,"./DecisionState":322,"./PredictionContext":349,"./SemanticContext":357,"assert":412}],304:[function(require,module,exports){
|
|
58240
59310
|
"use strict";
|
|
58241
59311
|
/*!
|
|
58242
59312
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58683,7 +59753,7 @@ __decorate([
|
|
|
58683
59753
|
], ATNConfigSet.prototype, "hashCode", null);
|
|
58684
59754
|
exports.ATNConfigSet = ATNConfigSet;
|
|
58685
59755
|
|
|
58686
|
-
},{"../Decorators":
|
|
59756
|
+
},{"../Decorators":269,"../misc/Array2DHashMap":372,"../misc/Array2DHashSet":373,"../misc/ArrayEqualityComparator":374,"../misc/BitSet":376,"../misc/ObjectEqualityComparator":385,"../misc/Utils":388,"./ATN":302,"./ATNConfig":303,"./PredictionContext":349,"./PredictionContextCache":350,"./SemanticContext":357,"assert":412}],305:[function(require,module,exports){
|
|
58687
59757
|
"use strict";
|
|
58688
59758
|
/*!
|
|
58689
59759
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58762,7 +59832,7 @@ __decorate([
|
|
|
58762
59832
|
], ATNDeserializationOptions, "defaultOptions", null);
|
|
58763
59833
|
exports.ATNDeserializationOptions = ATNDeserializationOptions;
|
|
58764
59834
|
|
|
58765
|
-
},{"../Decorators":
|
|
59835
|
+
},{"../Decorators":269}],306:[function(require,module,exports){
|
|
58766
59836
|
"use strict";
|
|
58767
59837
|
/*!
|
|
58768
59838
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59849,7 +60919,7 @@ __decorate([
|
|
|
59849
60919
|
], ATNDeserializer.prototype, "edgeFactory", null);
|
|
59850
60920
|
exports.ATNDeserializer = ATNDeserializer;
|
|
59851
60921
|
|
|
59852
|
-
},{"../Decorators":
|
|
60922
|
+
},{"../Decorators":269,"../Token":294,"../dfa/DFA":367,"../misc/Array2DHashSet":373,"../misc/BitSet":376,"../misc/IntervalSet":382,"../misc/UUID":387,"./ATN":302,"./ATNDeserializationOptions":305,"./ATNStateType":309,"./ActionTransition":311,"./AtomTransition":313,"./BasicBlockStartState":314,"./BasicState":315,"./BlockEndState":316,"./BlockStartState":317,"./DecisionState":322,"./EpsilonTransition":323,"./InvalidState":325,"./LexerChannelAction":329,"./LexerCustomAction":330,"./LexerModeAction":332,"./LexerMoreAction":333,"./LexerPopModeAction":334,"./LexerPushModeAction":335,"./LexerSkipAction":336,"./LexerTypeAction":337,"./LoopEndState":339,"./NotSetTransition":340,"./ParserATNSimulator":343,"./PlusBlockStartState":344,"./PlusLoopbackState":345,"./PrecedencePredicateTransition":346,"./PredicateTransition":348,"./RangeTransition":353,"./RuleStartState":354,"./RuleStopState":355,"./RuleTransition":356,"./SetTransition":358,"./StarBlockStartState":360,"./StarLoopEntryState":361,"./StarLoopbackState":362,"./TokensStartState":363,"./WildcardTransition":365}],307:[function(require,module,exports){
|
|
59853
60923
|
"use strict";
|
|
59854
60924
|
/*!
|
|
59855
60925
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59913,7 +60983,7 @@ exports.ATNSimulator = ATNSimulator;
|
|
|
59913
60983
|
})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
|
|
59914
60984
|
exports.ATNSimulator = ATNSimulator;
|
|
59915
60985
|
|
|
59916
|
-
},{"../Decorators":
|
|
60986
|
+
},{"../Decorators":269,"../dfa/DFAState":369,"./ATNConfigSet":304,"./PredictionContext":349}],308:[function(require,module,exports){
|
|
59917
60987
|
"use strict";
|
|
59918
60988
|
/*!
|
|
59919
60989
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60100,7 +61170,7 @@ exports.ATNState = ATNState;
|
|
|
60100
61170
|
ATNState.INVALID_STATE_NUMBER = -1;
|
|
60101
61171
|
})(ATNState = exports.ATNState || (exports.ATNState = {}));
|
|
60102
61172
|
|
|
60103
|
-
},{"../Decorators":
|
|
61173
|
+
},{"../Decorators":269}],309:[function(require,module,exports){
|
|
60104
61174
|
"use strict";
|
|
60105
61175
|
/*!
|
|
60106
61176
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60126,7 +61196,7 @@ var ATNStateType;
|
|
|
60126
61196
|
ATNStateType[ATNStateType["LOOP_END"] = 12] = "LOOP_END";
|
|
60127
61197
|
})(ATNStateType = exports.ATNStateType || (exports.ATNStateType = {}));
|
|
60128
61198
|
|
|
60129
|
-
},{}],
|
|
61199
|
+
},{}],310:[function(require,module,exports){
|
|
60130
61200
|
"use strict";
|
|
60131
61201
|
/*!
|
|
60132
61202
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60146,7 +61216,7 @@ class AbstractPredicateTransition extends Transition_1.Transition {
|
|
|
60146
61216
|
}
|
|
60147
61217
|
exports.AbstractPredicateTransition = AbstractPredicateTransition;
|
|
60148
61218
|
|
|
60149
|
-
},{"./Transition":
|
|
61219
|
+
},{"./Transition":364}],311:[function(require,module,exports){
|
|
60150
61220
|
"use strict";
|
|
60151
61221
|
/*!
|
|
60152
61222
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60202,7 +61272,7 @@ ActionTransition = __decorate([
|
|
|
60202
61272
|
], ActionTransition);
|
|
60203
61273
|
exports.ActionTransition = ActionTransition;
|
|
60204
61274
|
|
|
60205
|
-
},{"../Decorators":
|
|
61275
|
+
},{"../Decorators":269,"./Transition":364}],312:[function(require,module,exports){
|
|
60206
61276
|
"use strict";
|
|
60207
61277
|
/*!
|
|
60208
61278
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60289,7 +61359,7 @@ AmbiguityInfo = __decorate([
|
|
|
60289
61359
|
], AmbiguityInfo);
|
|
60290
61360
|
exports.AmbiguityInfo = AmbiguityInfo;
|
|
60291
61361
|
|
|
60292
|
-
},{"../Decorators":
|
|
61362
|
+
},{"../Decorators":269,"./DecisionEventInfo":320}],313:[function(require,module,exports){
|
|
60293
61363
|
"use strict";
|
|
60294
61364
|
/*!
|
|
60295
61365
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60347,7 +61417,7 @@ AtomTransition = __decorate([
|
|
|
60347
61417
|
], AtomTransition);
|
|
60348
61418
|
exports.AtomTransition = AtomTransition;
|
|
60349
61419
|
|
|
60350
|
-
},{"../Decorators":
|
|
61420
|
+
},{"../Decorators":269,"../misc/IntervalSet":382,"./Transition":364}],314:[function(require,module,exports){
|
|
60351
61421
|
"use strict";
|
|
60352
61422
|
/*!
|
|
60353
61423
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60379,7 +61449,7 @@ __decorate([
|
|
|
60379
61449
|
], BasicBlockStartState.prototype, "stateType", null);
|
|
60380
61450
|
exports.BasicBlockStartState = BasicBlockStartState;
|
|
60381
61451
|
|
|
60382
|
-
},{"../Decorators":
|
|
61452
|
+
},{"../Decorators":269,"./ATNStateType":309,"./BlockStartState":317}],315:[function(require,module,exports){
|
|
60383
61453
|
"use strict";
|
|
60384
61454
|
/*!
|
|
60385
61455
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60411,7 +61481,7 @@ __decorate([
|
|
|
60411
61481
|
], BasicState.prototype, "stateType", null);
|
|
60412
61482
|
exports.BasicState = BasicState;
|
|
60413
61483
|
|
|
60414
|
-
},{"../Decorators":
|
|
61484
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],316:[function(require,module,exports){
|
|
60415
61485
|
"use strict";
|
|
60416
61486
|
/*!
|
|
60417
61487
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60440,7 +61510,7 @@ __decorate([
|
|
|
60440
61510
|
], BlockEndState.prototype, "stateType", null);
|
|
60441
61511
|
exports.BlockEndState = BlockEndState;
|
|
60442
61512
|
|
|
60443
|
-
},{"../Decorators":
|
|
61513
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],317:[function(require,module,exports){
|
|
60444
61514
|
"use strict";
|
|
60445
61515
|
/*!
|
|
60446
61516
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60454,7 +61524,7 @@ class BlockStartState extends DecisionState_1.DecisionState {
|
|
|
60454
61524
|
}
|
|
60455
61525
|
exports.BlockStartState = BlockStartState;
|
|
60456
61526
|
|
|
60457
|
-
},{"./DecisionState":
|
|
61527
|
+
},{"./DecisionState":322}],318:[function(require,module,exports){
|
|
60458
61528
|
"use strict";
|
|
60459
61529
|
/*!
|
|
60460
61530
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60524,7 +61594,7 @@ __decorate([
|
|
|
60524
61594
|
], ConflictInfo.prototype, "hashCode", null);
|
|
60525
61595
|
exports.ConflictInfo = ConflictInfo;
|
|
60526
61596
|
|
|
60527
|
-
},{"../Decorators":
|
|
61597
|
+
},{"../Decorators":269,"../misc/Utils":388}],319:[function(require,module,exports){
|
|
60528
61598
|
"use strict";
|
|
60529
61599
|
/*!
|
|
60530
61600
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60584,7 +61654,7 @@ ContextSensitivityInfo = __decorate([
|
|
|
60584
61654
|
], ContextSensitivityInfo);
|
|
60585
61655
|
exports.ContextSensitivityInfo = ContextSensitivityInfo;
|
|
60586
61656
|
|
|
60587
|
-
},{"../Decorators":
|
|
61657
|
+
},{"../Decorators":269,"./DecisionEventInfo":320}],320:[function(require,module,exports){
|
|
60588
61658
|
"use strict";
|
|
60589
61659
|
/*!
|
|
60590
61660
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60636,7 +61706,7 @@ DecisionEventInfo = __decorate([
|
|
|
60636
61706
|
], DecisionEventInfo);
|
|
60637
61707
|
exports.DecisionEventInfo = DecisionEventInfo;
|
|
60638
61708
|
|
|
60639
|
-
},{"../Decorators":
|
|
61709
|
+
},{"../Decorators":269}],321:[function(require,module,exports){
|
|
60640
61710
|
"use strict";
|
|
60641
61711
|
/*!
|
|
60642
61712
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60849,7 +61919,7 @@ __decorate([
|
|
|
60849
61919
|
], DecisionInfo.prototype, "toString", null);
|
|
60850
61920
|
exports.DecisionInfo = DecisionInfo;
|
|
60851
61921
|
|
|
60852
|
-
},{"../Decorators":
|
|
61922
|
+
},{"../Decorators":269}],322:[function(require,module,exports){
|
|
60853
61923
|
"use strict";
|
|
60854
61924
|
/*!
|
|
60855
61925
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60869,7 +61939,7 @@ class DecisionState extends ATNState_1.ATNState {
|
|
|
60869
61939
|
}
|
|
60870
61940
|
exports.DecisionState = DecisionState;
|
|
60871
61941
|
|
|
60872
|
-
},{"./ATNState":
|
|
61942
|
+
},{"./ATNState":308}],323:[function(require,module,exports){
|
|
60873
61943
|
"use strict";
|
|
60874
61944
|
/*!
|
|
60875
61945
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60935,7 +62005,7 @@ EpsilonTransition = __decorate([
|
|
|
60935
62005
|
], EpsilonTransition);
|
|
60936
62006
|
exports.EpsilonTransition = EpsilonTransition;
|
|
60937
62007
|
|
|
60938
|
-
},{"../Decorators":
|
|
62008
|
+
},{"../Decorators":269,"./Transition":364}],324:[function(require,module,exports){
|
|
60939
62009
|
"use strict";
|
|
60940
62010
|
/*!
|
|
60941
62011
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60988,7 +62058,7 @@ ErrorInfo = __decorate([
|
|
|
60988
62058
|
], ErrorInfo);
|
|
60989
62059
|
exports.ErrorInfo = ErrorInfo;
|
|
60990
62060
|
|
|
60991
|
-
},{"../Decorators":
|
|
62061
|
+
},{"../Decorators":269,"./DecisionEventInfo":320}],325:[function(require,module,exports){
|
|
60992
62062
|
"use strict";
|
|
60993
62063
|
/*!
|
|
60994
62064
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61019,7 +62089,7 @@ __decorate([
|
|
|
61019
62089
|
], InvalidState.prototype, "stateType", null);
|
|
61020
62090
|
exports.InvalidState = InvalidState;
|
|
61021
62091
|
|
|
61022
|
-
},{"../Decorators":
|
|
62092
|
+
},{"../Decorators":269,"./ATNStateType":309,"./BasicState":315}],326:[function(require,module,exports){
|
|
61023
62093
|
"use strict";
|
|
61024
62094
|
/*!
|
|
61025
62095
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61241,7 +62311,7 @@ LL1Analyzer = __decorate([
|
|
|
61241
62311
|
], LL1Analyzer);
|
|
61242
62312
|
exports.LL1Analyzer = LL1Analyzer;
|
|
61243
62313
|
|
|
61244
|
-
},{"../Decorators":
|
|
62314
|
+
},{"../Decorators":269,"../Token":294,"../misc/Array2DHashSet":373,"../misc/BitSet":376,"../misc/IntervalSet":382,"../misc/ObjectEqualityComparator":385,"./ATNConfig":303,"./AbstractPredicateTransition":310,"./NotSetTransition":340,"./PredictionContext":349,"./RuleStopState":355,"./RuleTransition":356,"./WildcardTransition":365}],327:[function(require,module,exports){
|
|
61245
62315
|
"use strict";
|
|
61246
62316
|
/*!
|
|
61247
62317
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61958,7 +63028,7 @@ exports.LexerATNSimulator = LexerATNSimulator;
|
|
|
61958
63028
|
})(LexerATNSimulator = exports.LexerATNSimulator || (exports.LexerATNSimulator = {}));
|
|
61959
63029
|
exports.LexerATNSimulator = LexerATNSimulator;
|
|
61960
63030
|
|
|
61961
|
-
},{"../Decorators":
|
|
63031
|
+
},{"../Decorators":269,"../IntStream":275,"../Lexer":277,"../LexerNoViableAltException":279,"../Token":294,"../dfa/AcceptStateInfo":366,"../dfa/DFAState":369,"../misc/Interval":381,"./ATN":302,"./ATNConfig":303,"./ATNConfigSet":304,"./ATNSimulator":307,"./LexerActionExecutor":328,"./OrderedATNConfigSet":341,"./PredictionContext":349,"./RuleStopState":355,"assert":412}],328:[function(require,module,exports){
|
|
61962
63032
|
"use strict";
|
|
61963
63033
|
/*!
|
|
61964
63034
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62159,7 +63229,7 @@ LexerActionExecutor = __decorate([
|
|
|
62159
63229
|
], LexerActionExecutor);
|
|
62160
63230
|
exports.LexerActionExecutor = LexerActionExecutor;
|
|
62161
63231
|
|
|
62162
|
-
},{"../Decorators":
|
|
63232
|
+
},{"../Decorators":269,"../misc/ArrayEqualityComparator":374,"../misc/MurmurHash":384,"./LexerIndexedCustomAction":331}],329:[function(require,module,exports){
|
|
62163
63233
|
"use strict";
|
|
62164
63234
|
/*!
|
|
62165
63235
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62264,7 +63334,7 @@ __decorate([
|
|
|
62264
63334
|
], LexerChannelAction.prototype, "toString", null);
|
|
62265
63335
|
exports.LexerChannelAction = LexerChannelAction;
|
|
62266
63336
|
|
|
62267
|
-
},{"../Decorators":
|
|
63337
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],330:[function(require,module,exports){
|
|
62268
63338
|
"use strict";
|
|
62269
63339
|
/*!
|
|
62270
63340
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62393,7 +63463,7 @@ __decorate([
|
|
|
62393
63463
|
], LexerCustomAction.prototype, "equals", null);
|
|
62394
63464
|
exports.LexerCustomAction = LexerCustomAction;
|
|
62395
63465
|
|
|
62396
|
-
},{"../Decorators":
|
|
63466
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],331:[function(require,module,exports){
|
|
62397
63467
|
"use strict";
|
|
62398
63468
|
/*!
|
|
62399
63469
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62528,7 +63598,7 @@ LexerIndexedCustomAction = __decorate([
|
|
|
62528
63598
|
], LexerIndexedCustomAction);
|
|
62529
63599
|
exports.LexerIndexedCustomAction = LexerIndexedCustomAction;
|
|
62530
63600
|
|
|
62531
|
-
},{"../Decorators":
|
|
63601
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],332:[function(require,module,exports){
|
|
62532
63602
|
"use strict";
|
|
62533
63603
|
/*!
|
|
62534
63604
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62633,7 +63703,7 @@ __decorate([
|
|
|
62633
63703
|
], LexerModeAction.prototype, "toString", null);
|
|
62634
63704
|
exports.LexerModeAction = LexerModeAction;
|
|
62635
63705
|
|
|
62636
|
-
},{"../Decorators":
|
|
63706
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],333:[function(require,module,exports){
|
|
62637
63707
|
"use strict";
|
|
62638
63708
|
/*!
|
|
62639
63709
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62729,7 +63799,7 @@ exports.LexerMoreAction = LexerMoreAction;
|
|
|
62729
63799
|
LexerMoreAction.INSTANCE = new LexerMoreAction();
|
|
62730
63800
|
})(LexerMoreAction = exports.LexerMoreAction || (exports.LexerMoreAction = {}));
|
|
62731
63801
|
|
|
62732
|
-
},{"../Decorators":
|
|
63802
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],334:[function(require,module,exports){
|
|
62733
63803
|
"use strict";
|
|
62734
63804
|
/*!
|
|
62735
63805
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62825,7 +63895,7 @@ exports.LexerPopModeAction = LexerPopModeAction;
|
|
|
62825
63895
|
LexerPopModeAction.INSTANCE = new LexerPopModeAction();
|
|
62826
63896
|
})(LexerPopModeAction = exports.LexerPopModeAction || (exports.LexerPopModeAction = {}));
|
|
62827
63897
|
|
|
62828
|
-
},{"../Decorators":
|
|
63898
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],335:[function(require,module,exports){
|
|
62829
63899
|
"use strict";
|
|
62830
63900
|
/*!
|
|
62831
63901
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62930,7 +64000,7 @@ __decorate([
|
|
|
62930
64000
|
], LexerPushModeAction.prototype, "toString", null);
|
|
62931
64001
|
exports.LexerPushModeAction = LexerPushModeAction;
|
|
62932
64002
|
|
|
62933
|
-
},{"../Decorators":
|
|
64003
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],336:[function(require,module,exports){
|
|
62934
64004
|
"use strict";
|
|
62935
64005
|
/*!
|
|
62936
64006
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63026,7 +64096,7 @@ exports.LexerSkipAction = LexerSkipAction;
|
|
|
63026
64096
|
LexerSkipAction.INSTANCE = new LexerSkipAction();
|
|
63027
64097
|
})(LexerSkipAction = exports.LexerSkipAction || (exports.LexerSkipAction = {}));
|
|
63028
64098
|
|
|
63029
|
-
},{"../Decorators":
|
|
64099
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],337:[function(require,module,exports){
|
|
63030
64100
|
"use strict";
|
|
63031
64101
|
/*!
|
|
63032
64102
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63130,7 +64200,7 @@ __decorate([
|
|
|
63130
64200
|
], LexerTypeAction.prototype, "toString", null);
|
|
63131
64201
|
exports.LexerTypeAction = LexerTypeAction;
|
|
63132
64202
|
|
|
63133
|
-
},{"../Decorators":
|
|
64203
|
+
},{"../Decorators":269,"../misc/MurmurHash":384}],338:[function(require,module,exports){
|
|
63134
64204
|
"use strict";
|
|
63135
64205
|
/*!
|
|
63136
64206
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63182,7 +64252,7 @@ LookaheadEventInfo = __decorate([
|
|
|
63182
64252
|
], LookaheadEventInfo);
|
|
63183
64253
|
exports.LookaheadEventInfo = LookaheadEventInfo;
|
|
63184
64254
|
|
|
63185
|
-
},{"../Decorators":
|
|
64255
|
+
},{"../Decorators":269,"./DecisionEventInfo":320}],339:[function(require,module,exports){
|
|
63186
64256
|
"use strict";
|
|
63187
64257
|
/*!
|
|
63188
64258
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63211,7 +64281,7 @@ __decorate([
|
|
|
63211
64281
|
], LoopEndState.prototype, "stateType", null);
|
|
63212
64282
|
exports.LoopEndState = LoopEndState;
|
|
63213
64283
|
|
|
63214
|
-
},{"../Decorators":
|
|
64284
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],340:[function(require,module,exports){
|
|
63215
64285
|
"use strict";
|
|
63216
64286
|
/*!
|
|
63217
64287
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63260,7 +64330,7 @@ NotSetTransition = __decorate([
|
|
|
63260
64330
|
], NotSetTransition);
|
|
63261
64331
|
exports.NotSetTransition = NotSetTransition;
|
|
63262
64332
|
|
|
63263
|
-
},{"../Decorators":
|
|
64333
|
+
},{"../Decorators":269,"./SetTransition":358}],341:[function(require,module,exports){
|
|
63264
64334
|
"use strict";
|
|
63265
64335
|
/*!
|
|
63266
64336
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63315,7 +64385,7 @@ __decorate([
|
|
|
63315
64385
|
], OrderedATNConfigSet.prototype, "canMerge", null);
|
|
63316
64386
|
exports.OrderedATNConfigSet = OrderedATNConfigSet;
|
|
63317
64387
|
|
|
63318
|
-
},{"../Decorators":
|
|
64388
|
+
},{"../Decorators":269,"./ATNConfigSet":304}],342:[function(require,module,exports){
|
|
63319
64389
|
"use strict";
|
|
63320
64390
|
/*!
|
|
63321
64391
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63477,7 +64547,7 @@ ParseInfo = __decorate([
|
|
|
63477
64547
|
], ParseInfo);
|
|
63478
64548
|
exports.ParseInfo = ParseInfo;
|
|
63479
64549
|
|
|
63480
|
-
},{"../Decorators":
|
|
64550
|
+
},{"../Decorators":269}],343:[function(require,module,exports){
|
|
63481
64551
|
"use strict";
|
|
63482
64552
|
/*!
|
|
63483
64553
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65750,7 +66820,7 @@ ParserATNSimulator = __decorate([
|
|
|
65750
66820
|
], ParserATNSimulator);
|
|
65751
66821
|
exports.ParserATNSimulator = ParserATNSimulator;
|
|
65752
66822
|
|
|
65753
|
-
},{"../Decorators":
|
|
66823
|
+
},{"../Decorators":269,"../IntStream":275,"../NoViableAltException":281,"../ParserRuleContext":285,"../Token":294,"../VocabularyImpl":300,"../dfa/AcceptStateInfo":366,"../dfa/DFAState":369,"../misc/Array2DHashSet":373,"../misc/Arrays":375,"../misc/BitSet":376,"../misc/IntegerList":379,"../misc/Interval":381,"../misc/ObjectEqualityComparator":385,"./ATN":302,"./ATNConfig":303,"./ATNConfigSet":304,"./ATNSimulator":307,"./ATNStateType":309,"./ActionTransition":311,"./AtomTransition":313,"./ConflictInfo":318,"./DecisionState":322,"./NotSetTransition":340,"./PredictionContext":349,"./PredictionContextCache":350,"./PredictionMode":351,"./RuleStopState":355,"./RuleTransition":356,"./SemanticContext":357,"./SetTransition":358,"./SimulatorState":359,"assert":412}],344:[function(require,module,exports){
|
|
65754
66824
|
"use strict";
|
|
65755
66825
|
/*!
|
|
65756
66826
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65783,7 +66853,7 @@ __decorate([
|
|
|
65783
66853
|
], PlusBlockStartState.prototype, "stateType", null);
|
|
65784
66854
|
exports.PlusBlockStartState = PlusBlockStartState;
|
|
65785
66855
|
|
|
65786
|
-
},{"../Decorators":
|
|
66856
|
+
},{"../Decorators":269,"./ATNStateType":309,"./BlockStartState":317}],345:[function(require,module,exports){
|
|
65787
66857
|
"use strict";
|
|
65788
66858
|
/*!
|
|
65789
66859
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65814,7 +66884,7 @@ __decorate([
|
|
|
65814
66884
|
], PlusLoopbackState.prototype, "stateType", null);
|
|
65815
66885
|
exports.PlusLoopbackState = PlusLoopbackState;
|
|
65816
66886
|
|
|
65817
|
-
},{"../Decorators":
|
|
66887
|
+
},{"../Decorators":269,"./ATNStateType":309,"./DecisionState":322}],346:[function(require,module,exports){
|
|
65818
66888
|
"use strict";
|
|
65819
66889
|
/*!
|
|
65820
66890
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65877,7 +66947,7 @@ PrecedencePredicateTransition = __decorate([
|
|
|
65877
66947
|
], PrecedencePredicateTransition);
|
|
65878
66948
|
exports.PrecedencePredicateTransition = PrecedencePredicateTransition;
|
|
65879
66949
|
|
|
65880
|
-
},{"../Decorators":
|
|
66950
|
+
},{"../Decorators":269,"./AbstractPredicateTransition":310,"./SemanticContext":357}],347:[function(require,module,exports){
|
|
65881
66951
|
"use strict";
|
|
65882
66952
|
/*!
|
|
65883
66953
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65940,7 +67010,7 @@ PredicateEvalInfo = __decorate([
|
|
|
65940
67010
|
], PredicateEvalInfo);
|
|
65941
67011
|
exports.PredicateEvalInfo = PredicateEvalInfo;
|
|
65942
67012
|
|
|
65943
|
-
},{"../Decorators":
|
|
67013
|
+
},{"../Decorators":269,"./DecisionEventInfo":320}],348:[function(require,module,exports){
|
|
65944
67014
|
"use strict";
|
|
65945
67015
|
/*!
|
|
65946
67016
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -66006,7 +67076,7 @@ PredicateTransition = __decorate([
|
|
|
66006
67076
|
], PredicateTransition);
|
|
66007
67077
|
exports.PredicateTransition = PredicateTransition;
|
|
66008
67078
|
|
|
66009
|
-
},{"../Decorators":
|
|
67079
|
+
},{"../Decorators":269,"./AbstractPredicateTransition":310,"./SemanticContext":357}],349:[function(require,module,exports){
|
|
66010
67080
|
"use strict";
|
|
66011
67081
|
/*!
|
|
66012
67082
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -66697,7 +67767,7 @@ exports.SingletonPredictionContext = SingletonPredictionContext;
|
|
|
66697
67767
|
PredictionContext.IdentityEqualityComparator = IdentityEqualityComparator;
|
|
66698
67768
|
})(PredictionContext = exports.PredictionContext || (exports.PredictionContext = {}));
|
|
66699
67769
|
|
|
66700
|
-
},{"../Decorators":
|
|
67770
|
+
},{"../Decorators":269,"../misc/Array2DHashMap":372,"../misc/Array2DHashSet":373,"../misc/Arrays":375,"../misc/MurmurHash":384,"./PredictionContextCache":350,"assert":412}],350:[function(require,module,exports){
|
|
66701
67771
|
"use strict";
|
|
66702
67772
|
/*!
|
|
66703
67773
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -66838,7 +67908,7 @@ PredictionContextCache.UNCACHED = new PredictionContextCache(false);
|
|
|
66838
67908
|
PredictionContextCache.IdentityCommutativePredictionContextOperands = IdentityCommutativePredictionContextOperands;
|
|
66839
67909
|
})(PredictionContextCache = exports.PredictionContextCache || (exports.PredictionContextCache = {}));
|
|
66840
67910
|
|
|
66841
|
-
},{"../Decorators":
|
|
67911
|
+
},{"../Decorators":269,"../misc/Array2DHashMap":372,"../misc/ObjectEqualityComparator":385,"./PredictionContext":349,"assert":412}],351:[function(require,module,exports){
|
|
66842
67912
|
"use strict";
|
|
66843
67913
|
/*!
|
|
66844
67914
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -66999,7 +68069,7 @@ var PredictionMode;
|
|
|
66999
68069
|
PredictionMode.allConfigsInRuleStopStates = allConfigsInRuleStopStates;
|
|
67000
68070
|
})(PredictionMode = exports.PredictionMode || (exports.PredictionMode = {}));
|
|
67001
68071
|
|
|
67002
|
-
},{"../Decorators":
|
|
68072
|
+
},{"../Decorators":269,"../misc/Array2DHashMap":372,"../misc/MurmurHash":384,"./RuleStopState":355}],352:[function(require,module,exports){
|
|
67003
68073
|
(function (process){(function (){
|
|
67004
68074
|
"use strict";
|
|
67005
68075
|
/*!
|
|
@@ -67268,7 +68338,7 @@ __decorate([
|
|
|
67268
68338
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
67269
68339
|
|
|
67270
68340
|
}).call(this)}).call(this,require('_process'))
|
|
67271
|
-
},{"../Decorators":
|
|
68341
|
+
},{"../Decorators":269,"./ATN":302,"./ATNSimulator":307,"./AmbiguityInfo":312,"./ContextSensitivityInfo":319,"./DecisionInfo":321,"./ErrorInfo":324,"./LookaheadEventInfo":338,"./ParserATNSimulator":343,"./PredicateEvalInfo":347,"./SemanticContext":357,"./SimulatorState":359,"_process":471}],353:[function(require,module,exports){
|
|
67272
68342
|
"use strict";
|
|
67273
68343
|
/*!
|
|
67274
68344
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -67326,7 +68396,7 @@ RangeTransition = __decorate([
|
|
|
67326
68396
|
], RangeTransition);
|
|
67327
68397
|
exports.RangeTransition = RangeTransition;
|
|
67328
68398
|
|
|
67329
|
-
},{"../Decorators":
|
|
68399
|
+
},{"../Decorators":269,"../misc/IntervalSet":382,"./Transition":364}],354:[function(require,module,exports){
|
|
67330
68400
|
"use strict";
|
|
67331
68401
|
/*!
|
|
67332
68402
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -67359,7 +68429,7 @@ __decorate([
|
|
|
67359
68429
|
], RuleStartState.prototype, "stateType", null);
|
|
67360
68430
|
exports.RuleStartState = RuleStartState;
|
|
67361
68431
|
|
|
67362
|
-
},{"../Decorators":
|
|
68432
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],355:[function(require,module,exports){
|
|
67363
68433
|
"use strict";
|
|
67364
68434
|
/*!
|
|
67365
68435
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -67398,7 +68468,7 @@ __decorate([
|
|
|
67398
68468
|
], RuleStopState.prototype, "stateType", null);
|
|
67399
68469
|
exports.RuleStopState = RuleStopState;
|
|
67400
68470
|
|
|
67401
|
-
},{"../Decorators":
|
|
68471
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],356:[function(require,module,exports){
|
|
67402
68472
|
"use strict";
|
|
67403
68473
|
/*!
|
|
67404
68474
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -67454,7 +68524,7 @@ RuleTransition = __decorate([
|
|
|
67454
68524
|
], RuleTransition);
|
|
67455
68525
|
exports.RuleTransition = RuleTransition;
|
|
67456
68526
|
|
|
67457
|
-
},{"../Decorators":
|
|
68527
|
+
},{"../Decorators":269,"./Transition":364}],357:[function(require,module,exports){
|
|
67458
68528
|
"use strict";
|
|
67459
68529
|
/*!
|
|
67460
68530
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -67934,7 +69004,7 @@ exports.SemanticContext = SemanticContext;
|
|
|
67934
69004
|
SemanticContext.OR = OR;
|
|
67935
69005
|
})(SemanticContext = exports.SemanticContext || (exports.SemanticContext = {}));
|
|
67936
69006
|
|
|
67937
|
-
},{"../Decorators":
|
|
69007
|
+
},{"../Decorators":269,"../misc/Array2DHashSet":373,"../misc/ArrayEqualityComparator":374,"../misc/MurmurHash":384,"../misc/ObjectEqualityComparator":385,"../misc/Utils":388}],358:[function(require,module,exports){
|
|
67938
69008
|
"use strict";
|
|
67939
69009
|
/*!
|
|
67940
69010
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68000,7 +69070,7 @@ SetTransition = __decorate([
|
|
|
68000
69070
|
], SetTransition);
|
|
68001
69071
|
exports.SetTransition = SetTransition;
|
|
68002
69072
|
|
|
68003
|
-
},{"../Decorators":
|
|
69073
|
+
},{"../Decorators":269,"../Token":294,"../misc/IntervalSet":382,"./Transition":364}],359:[function(require,module,exports){
|
|
68004
69074
|
"use strict";
|
|
68005
69075
|
/*!
|
|
68006
69076
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68036,7 +69106,7 @@ SimulatorState = __decorate([
|
|
|
68036
69106
|
], SimulatorState);
|
|
68037
69107
|
exports.SimulatorState = SimulatorState;
|
|
68038
69108
|
|
|
68039
|
-
},{"../Decorators":
|
|
69109
|
+
},{"../Decorators":269,"../ParserRuleContext":285}],360:[function(require,module,exports){
|
|
68040
69110
|
"use strict";
|
|
68041
69111
|
/*!
|
|
68042
69112
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68064,7 +69134,7 @@ __decorate([
|
|
|
68064
69134
|
], StarBlockStartState.prototype, "stateType", null);
|
|
68065
69135
|
exports.StarBlockStartState = StarBlockStartState;
|
|
68066
69136
|
|
|
68067
|
-
},{"../Decorators":
|
|
69137
|
+
},{"../Decorators":269,"./ATNStateType":309,"./BlockStartState":317}],361:[function(require,module,exports){
|
|
68068
69138
|
"use strict";
|
|
68069
69139
|
/*!
|
|
68070
69140
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68121,7 +69191,7 @@ __decorate([
|
|
|
68121
69191
|
], StarLoopEntryState.prototype, "stateType", null);
|
|
68122
69192
|
exports.StarLoopEntryState = StarLoopEntryState;
|
|
68123
69193
|
|
|
68124
|
-
},{"../Decorators":
|
|
69194
|
+
},{"../Decorators":269,"../misc/BitSet":376,"./ATNStateType":309,"./DecisionState":322}],362:[function(require,module,exports){
|
|
68125
69195
|
"use strict";
|
|
68126
69196
|
/*!
|
|
68127
69197
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68152,7 +69222,7 @@ __decorate([
|
|
|
68152
69222
|
], StarLoopbackState.prototype, "stateType", null);
|
|
68153
69223
|
exports.StarLoopbackState = StarLoopbackState;
|
|
68154
69224
|
|
|
68155
|
-
},{"../Decorators":
|
|
69225
|
+
},{"../Decorators":269,"./ATNState":308,"./ATNStateType":309}],363:[function(require,module,exports){
|
|
68156
69226
|
"use strict";
|
|
68157
69227
|
/*!
|
|
68158
69228
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68181,7 +69251,7 @@ __decorate([
|
|
|
68181
69251
|
], TokensStartState.prototype, "stateType", null);
|
|
68182
69252
|
exports.TokensStartState = TokensStartState;
|
|
68183
69253
|
|
|
68184
|
-
},{"../Decorators":
|
|
69254
|
+
},{"../Decorators":269,"./ATNStateType":309,"./DecisionState":322}],364:[function(require,module,exports){
|
|
68185
69255
|
"use strict";
|
|
68186
69256
|
/*!
|
|
68187
69257
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68255,7 +69325,7 @@ Transition = __decorate([
|
|
|
68255
69325
|
], Transition);
|
|
68256
69326
|
exports.Transition = Transition;
|
|
68257
69327
|
|
|
68258
|
-
},{"../Decorators":
|
|
69328
|
+
},{"../Decorators":269}],365:[function(require,module,exports){
|
|
68259
69329
|
"use strict";
|
|
68260
69330
|
/*!
|
|
68261
69331
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68303,7 +69373,7 @@ WildcardTransition = __decorate([
|
|
|
68303
69373
|
], WildcardTransition);
|
|
68304
69374
|
exports.WildcardTransition = WildcardTransition;
|
|
68305
69375
|
|
|
68306
|
-
},{"../Decorators":
|
|
69376
|
+
},{"../Decorators":269,"./Transition":364}],366:[function(require,module,exports){
|
|
68307
69377
|
"use strict";
|
|
68308
69378
|
/*!
|
|
68309
69379
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68345,7 +69415,7 @@ class AcceptStateInfo {
|
|
|
68345
69415
|
}
|
|
68346
69416
|
exports.AcceptStateInfo = AcceptStateInfo;
|
|
68347
69417
|
|
|
68348
|
-
},{}],
|
|
69418
|
+
},{}],367:[function(require,module,exports){
|
|
68349
69419
|
"use strict";
|
|
68350
69420
|
/*!
|
|
68351
69421
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68520,7 +69590,7 @@ DFA = __decorate([
|
|
|
68520
69590
|
], DFA);
|
|
68521
69591
|
exports.DFA = DFA;
|
|
68522
69592
|
|
|
68523
|
-
},{"../Decorators":
|
|
69593
|
+
},{"../Decorators":269,"../VocabularyImpl":300,"../atn/ATNConfigSet":304,"../atn/StarLoopEntryState":361,"../misc/Array2DHashSet":373,"../misc/ObjectEqualityComparator":385,"./DFASerializer":368,"./DFAState":369,"./LexerDFASerializer":370}],368:[function(require,module,exports){
|
|
68524
69594
|
"use strict";
|
|
68525
69595
|
/*!
|
|
68526
69596
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68662,7 +69732,7 @@ __decorate([
|
|
|
68662
69732
|
], DFASerializer.prototype, "toString", null);
|
|
68663
69733
|
exports.DFASerializer = DFASerializer;
|
|
68664
69734
|
|
|
68665
|
-
},{"../Decorators":
|
|
69735
|
+
},{"../Decorators":269,"../Recognizer":289,"../VocabularyImpl":300,"../atn/ATNSimulator":307,"../atn/PredictionContext":349}],369:[function(require,module,exports){
|
|
68666
69736
|
"use strict";
|
|
68667
69737
|
/*!
|
|
68668
69738
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68893,7 +69963,7 @@ exports.DFAState = DFAState;
|
|
|
68893
69963
|
DFAState.PredPrediction = PredPrediction;
|
|
68894
69964
|
})(DFAState = exports.DFAState || (exports.DFAState = {}));
|
|
68895
69965
|
|
|
68896
|
-
},{"../Decorators":
|
|
69966
|
+
},{"../Decorators":269,"../atn/ATN":302,"../atn/PredictionContext":349,"../misc/BitSet":376,"../misc/MurmurHash":384,"assert":412}],370:[function(require,module,exports){
|
|
68897
69967
|
"use strict";
|
|
68898
69968
|
/*!
|
|
68899
69969
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68930,7 +70000,7 @@ LexerDFASerializer = __decorate([
|
|
|
68930
70000
|
], LexerDFASerializer);
|
|
68931
70001
|
exports.LexerDFASerializer = LexerDFASerializer;
|
|
68932
70002
|
|
|
68933
|
-
},{"../Decorators":
|
|
70003
|
+
},{"../Decorators":269,"../VocabularyImpl":300,"./DFASerializer":368}],371:[function(require,module,exports){
|
|
68934
70004
|
"use strict";
|
|
68935
70005
|
/*!
|
|
68936
70006
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -68996,7 +70066,7 @@ __exportStar(require("./Vocabulary"), exports);
|
|
|
68996
70066
|
__exportStar(require("./VocabularyImpl"), exports);
|
|
68997
70067
|
__exportStar(require("./WritableToken"), exports);
|
|
68998
70068
|
|
|
68999
|
-
},{"./ANTLRErrorListener":
|
|
70069
|
+
},{"./ANTLRErrorListener":256,"./ANTLRErrorStrategy":257,"./ANTLRInputStream":258,"./BailErrorStrategy":259,"./BufferedTokenStream":260,"./CharStream":261,"./CharStreams":262,"./CodePointBuffer":263,"./CodePointCharStream":264,"./CommonToken":265,"./CommonTokenFactory":266,"./CommonTokenStream":267,"./ConsoleErrorListener":268,"./DefaultErrorStrategy":270,"./Dependents":271,"./DiagnosticErrorListener":272,"./FailedPredicateException":273,"./InputMismatchException":274,"./IntStream":275,"./InterpreterRuleContext":276,"./Lexer":277,"./LexerInterpreter":278,"./LexerNoViableAltException":279,"./ListTokenSource":280,"./NoViableAltException":281,"./Parser":282,"./ParserErrorListener":283,"./ParserInterpreter":284,"./ParserRuleContext":285,"./ProxyErrorListener":286,"./ProxyParserErrorListener":287,"./RecognitionException":288,"./Recognizer":289,"./RuleContext":290,"./RuleContextWithAltNum":291,"./RuleDependency":292,"./RuleVersion":293,"./Token":294,"./TokenFactory":295,"./TokenSource":296,"./TokenStream":297,"./TokenStreamRewriter":298,"./Vocabulary":299,"./VocabularyImpl":300,"./WritableToken":301}],372:[function(require,module,exports){
|
|
69000
70070
|
"use strict";
|
|
69001
70071
|
/*!
|
|
69002
70072
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -69079,7 +70149,7 @@ class Array2DHashMap {
|
|
|
69079
70149
|
}
|
|
69080
70150
|
exports.Array2DHashMap = Array2DHashMap;
|
|
69081
70151
|
|
|
69082
|
-
},{"./Array2DHashSet":
|
|
70152
|
+
},{"./Array2DHashSet":373}],373:[function(require,module,exports){
|
|
69083
70153
|
"use strict";
|
|
69084
70154
|
/*!
|
|
69085
70155
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -69446,7 +70516,7 @@ __decorate([
|
|
|
69446
70516
|
], Array2DHashSet.prototype, "createBuckets", null);
|
|
69447
70517
|
exports.Array2DHashSet = Array2DHashSet;
|
|
69448
70518
|
|
|
69449
|
-
},{"../Decorators":
|
|
70519
|
+
},{"../Decorators":269,"./DefaultEqualityComparator":378,"./MurmurHash":384,"assert":412}],374:[function(require,module,exports){
|
|
69450
70520
|
"use strict";
|
|
69451
70521
|
/*!
|
|
69452
70522
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -69518,7 +70588,7 @@ __decorate([
|
|
|
69518
70588
|
], ArrayEqualityComparator.prototype, "equals", null);
|
|
69519
70589
|
exports.ArrayEqualityComparator = ArrayEqualityComparator;
|
|
69520
70590
|
|
|
69521
|
-
},{"../Decorators":
|
|
70591
|
+
},{"../Decorators":269,"./MurmurHash":384,"./ObjectEqualityComparator":385}],375:[function(require,module,exports){
|
|
69522
70592
|
"use strict";
|
|
69523
70593
|
/*!
|
|
69524
70594
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -69588,7 +70658,7 @@ var Arrays;
|
|
|
69588
70658
|
Arrays.toString = toString;
|
|
69589
70659
|
})(Arrays = exports.Arrays || (exports.Arrays = {}));
|
|
69590
70660
|
|
|
69591
|
-
},{}],
|
|
70661
|
+
},{}],376:[function(require,module,exports){
|
|
69592
70662
|
"use strict";
|
|
69593
70663
|
/*!
|
|
69594
70664
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70260,7 +71330,7 @@ class BitSetIterator {
|
|
|
70260
71330
|
[Symbol.iterator]() { return this; }
|
|
70261
71331
|
}
|
|
70262
71332
|
|
|
70263
|
-
},{"./MurmurHash":
|
|
71333
|
+
},{"./MurmurHash":384,"util":477}],377:[function(require,module,exports){
|
|
70264
71334
|
"use strict";
|
|
70265
71335
|
/*!
|
|
70266
71336
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70281,7 +71351,7 @@ function isSupplementaryCodePoint(ch) {
|
|
|
70281
71351
|
}
|
|
70282
71352
|
exports.isSupplementaryCodePoint = isSupplementaryCodePoint;
|
|
70283
71353
|
|
|
70284
|
-
},{}],
|
|
71354
|
+
},{}],378:[function(require,module,exports){
|
|
70285
71355
|
"use strict";
|
|
70286
71356
|
/*!
|
|
70287
71357
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70352,7 +71422,7 @@ __decorate([
|
|
|
70352
71422
|
], DefaultEqualityComparator.prototype, "equals", null);
|
|
70353
71423
|
exports.DefaultEqualityComparator = DefaultEqualityComparator;
|
|
70354
71424
|
|
|
70355
|
-
},{"../Decorators":
|
|
71425
|
+
},{"../Decorators":269,"./MurmurHash":384,"./ObjectEqualityComparator":385}],379:[function(require,module,exports){
|
|
70356
71426
|
"use strict";
|
|
70357
71427
|
/*!
|
|
70358
71428
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70646,7 +71716,7 @@ __decorate([
|
|
|
70646
71716
|
], IntegerList.prototype, "toString", null);
|
|
70647
71717
|
exports.IntegerList = IntegerList;
|
|
70648
71718
|
|
|
70649
|
-
},{"../Decorators":
|
|
71719
|
+
},{"../Decorators":269,"./Arrays":375}],380:[function(require,module,exports){
|
|
70650
71720
|
"use strict";
|
|
70651
71721
|
/*!
|
|
70652
71722
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70676,7 +71746,7 @@ class IntegerStack extends IntegerList_1.IntegerList {
|
|
|
70676
71746
|
}
|
|
70677
71747
|
exports.IntegerStack = IntegerStack;
|
|
70678
71748
|
|
|
70679
|
-
},{"./IntegerList":
|
|
71749
|
+
},{"./IntegerList":379}],381:[function(require,module,exports){
|
|
70680
71750
|
"use strict";
|
|
70681
71751
|
/*!
|
|
70682
71752
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -70819,7 +71889,7 @@ __decorate([
|
|
|
70819
71889
|
], Interval.prototype, "toString", null);
|
|
70820
71890
|
exports.Interval = Interval;
|
|
70821
71891
|
|
|
70822
|
-
},{"../Decorators":
|
|
71892
|
+
},{"../Decorators":269}],382:[function(require,module,exports){
|
|
70823
71893
|
"use strict";
|
|
70824
71894
|
/*!
|
|
70825
71895
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71465,7 +72535,7 @@ __decorate([
|
|
|
71465
72535
|
], IntervalSet, "subtract", null);
|
|
71466
72536
|
exports.IntervalSet = IntervalSet;
|
|
71467
72537
|
|
|
71468
|
-
},{"../Decorators":
|
|
72538
|
+
},{"../Decorators":269,"../Lexer":277,"../Token":294,"./ArrayEqualityComparator":374,"./IntegerList":379,"./Interval":381,"./MurmurHash":384}],383:[function(require,module,exports){
|
|
71469
72539
|
"use strict";
|
|
71470
72540
|
/*!
|
|
71471
72541
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71498,7 +72568,7 @@ class MultiMap extends Map {
|
|
|
71498
72568
|
}
|
|
71499
72569
|
exports.MultiMap = MultiMap;
|
|
71500
72570
|
|
|
71501
|
-
},{}],
|
|
72571
|
+
},{}],384:[function(require,module,exports){
|
|
71502
72572
|
"use strict";
|
|
71503
72573
|
/*!
|
|
71504
72574
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71613,7 +72683,7 @@ var MurmurHash;
|
|
|
71613
72683
|
}
|
|
71614
72684
|
})(MurmurHash = exports.MurmurHash || (exports.MurmurHash = {}));
|
|
71615
72685
|
|
|
71616
|
-
},{}],
|
|
72686
|
+
},{}],385:[function(require,module,exports){
|
|
71617
72687
|
"use strict";
|
|
71618
72688
|
/*!
|
|
71619
72689
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71672,7 +72742,7 @@ __decorate([
|
|
|
71672
72742
|
], ObjectEqualityComparator.prototype, "equals", null);
|
|
71673
72743
|
exports.ObjectEqualityComparator = ObjectEqualityComparator;
|
|
71674
72744
|
|
|
71675
|
-
},{"../Decorators":
|
|
72745
|
+
},{"../Decorators":269}],386:[function(require,module,exports){
|
|
71676
72746
|
"use strict";
|
|
71677
72747
|
/*!
|
|
71678
72748
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71701,7 +72771,7 @@ class ParseCancellationException extends Error {
|
|
|
71701
72771
|
}
|
|
71702
72772
|
exports.ParseCancellationException = ParseCancellationException;
|
|
71703
72773
|
|
|
71704
|
-
},{}],
|
|
72774
|
+
},{}],387:[function(require,module,exports){
|
|
71705
72775
|
"use strict";
|
|
71706
72776
|
/*!
|
|
71707
72777
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71755,7 +72825,7 @@ class UUID {
|
|
|
71755
72825
|
}
|
|
71756
72826
|
exports.UUID = UUID;
|
|
71757
72827
|
|
|
71758
|
-
},{"./MurmurHash":
|
|
72828
|
+
},{"./MurmurHash":384}],388:[function(require,module,exports){
|
|
71759
72829
|
"use strict";
|
|
71760
72830
|
/*!
|
|
71761
72831
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71930,7 +73000,152 @@ exports.toCharArray = toCharArray;
|
|
|
71930
73000
|
// return s;
|
|
71931
73001
|
// }
|
|
71932
73002
|
|
|
71933
|
-
},{}],
|
|
73003
|
+
},{}],389:[function(require,module,exports){
|
|
73004
|
+
"use strict";
|
|
73005
|
+
/*!
|
|
73006
|
+
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
73007
|
+
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
73008
|
+
*/
|
|
73009
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
73010
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
73011
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
73012
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
73013
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
73014
|
+
};
|
|
73015
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
73016
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
73017
|
+
};
|
|
73018
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
73019
|
+
exports.AbstractParseTreeVisitor = void 0;
|
|
73020
|
+
const Decorators_1 = require("../Decorators");
|
|
73021
|
+
class AbstractParseTreeVisitor {
|
|
73022
|
+
/**
|
|
73023
|
+
* {@inheritDoc}
|
|
73024
|
+
*
|
|
73025
|
+
* The default implementation calls {@link ParseTree#accept} on the
|
|
73026
|
+
* specified tree.
|
|
73027
|
+
*/
|
|
73028
|
+
visit(tree) {
|
|
73029
|
+
return tree.accept(this);
|
|
73030
|
+
}
|
|
73031
|
+
/**
|
|
73032
|
+
* {@inheritDoc}
|
|
73033
|
+
*
|
|
73034
|
+
* The default implementation initializes the aggregate result to
|
|
73035
|
+
* {@link #defaultResult defaultResult()}. Before visiting each child, it
|
|
73036
|
+
* calls {@link #shouldVisitNextChild shouldVisitNextChild}; if the result
|
|
73037
|
+
* is `false` no more children are visited and the current aggregate
|
|
73038
|
+
* result is returned. After visiting a child, the aggregate result is
|
|
73039
|
+
* updated by calling {@link #aggregateResult aggregateResult} with the
|
|
73040
|
+
* previous aggregate result and the result of visiting the child.
|
|
73041
|
+
*
|
|
73042
|
+
* The default implementation is not safe for use in visitors that modify
|
|
73043
|
+
* the tree structure. Visitors that modify the tree should override this
|
|
73044
|
+
* method to behave properly in respect to the specific algorithm in use.
|
|
73045
|
+
*/
|
|
73046
|
+
visitChildren(node) {
|
|
73047
|
+
let result = this.defaultResult();
|
|
73048
|
+
let n = node.childCount;
|
|
73049
|
+
for (let i = 0; i < n; i++) {
|
|
73050
|
+
if (!this.shouldVisitNextChild(node, result)) {
|
|
73051
|
+
break;
|
|
73052
|
+
}
|
|
73053
|
+
let c = node.getChild(i);
|
|
73054
|
+
let childResult = c.accept(this);
|
|
73055
|
+
result = this.aggregateResult(result, childResult);
|
|
73056
|
+
}
|
|
73057
|
+
return result;
|
|
73058
|
+
}
|
|
73059
|
+
/**
|
|
73060
|
+
* {@inheritDoc}
|
|
73061
|
+
*
|
|
73062
|
+
* The default implementation returns the result of
|
|
73063
|
+
* {@link #defaultResult defaultResult}.
|
|
73064
|
+
*/
|
|
73065
|
+
visitTerminal(node) {
|
|
73066
|
+
return this.defaultResult();
|
|
73067
|
+
}
|
|
73068
|
+
/**
|
|
73069
|
+
* {@inheritDoc}
|
|
73070
|
+
*
|
|
73071
|
+
* The default implementation returns the result of
|
|
73072
|
+
* {@link #defaultResult defaultResult}.
|
|
73073
|
+
*/
|
|
73074
|
+
visitErrorNode(node) {
|
|
73075
|
+
return this.defaultResult();
|
|
73076
|
+
}
|
|
73077
|
+
/**
|
|
73078
|
+
* Aggregates the results of visiting multiple children of a node. After
|
|
73079
|
+
* either all children are visited or {@link #shouldVisitNextChild} returns
|
|
73080
|
+
* `false`, the aggregate value is returned as the result of
|
|
73081
|
+
* {@link #visitChildren}.
|
|
73082
|
+
*
|
|
73083
|
+
* The default implementation returns `nextResult`, meaning
|
|
73084
|
+
* {@link #visitChildren} will return the result of the last child visited
|
|
73085
|
+
* (or return the initial value if the node has no children).
|
|
73086
|
+
*
|
|
73087
|
+
* @param aggregate The previous aggregate value. In the default
|
|
73088
|
+
* implementation, the aggregate value is initialized to
|
|
73089
|
+
* {@link #defaultResult}, which is passed as the `aggregate` argument
|
|
73090
|
+
* to this method after the first child node is visited.
|
|
73091
|
+
* @param nextResult The result of the immediately preceeding call to visit
|
|
73092
|
+
* a child node.
|
|
73093
|
+
*
|
|
73094
|
+
* @returns The updated aggregate result.
|
|
73095
|
+
*/
|
|
73096
|
+
aggregateResult(aggregate, nextResult) {
|
|
73097
|
+
return nextResult;
|
|
73098
|
+
}
|
|
73099
|
+
/**
|
|
73100
|
+
* This method is called after visiting each child in
|
|
73101
|
+
* {@link #visitChildren}. This method is first called before the first
|
|
73102
|
+
* child is visited; at that point `currentResult` will be the initial
|
|
73103
|
+
* value (in the default implementation, the initial value is returned by a
|
|
73104
|
+
* call to {@link #defaultResult}. This method is not called after the last
|
|
73105
|
+
* child is visited.
|
|
73106
|
+
*
|
|
73107
|
+
* The default implementation always returns `true`, indicating that
|
|
73108
|
+
* `visitChildren` should only return after all children are visited.
|
|
73109
|
+
* One reason to override this method is to provide a "short circuit"
|
|
73110
|
+
* evaluation option for situations where the result of visiting a single
|
|
73111
|
+
* child has the potential to determine the result of the visit operation as
|
|
73112
|
+
* a whole.
|
|
73113
|
+
*
|
|
73114
|
+
* @param node The {@link RuleNode} whose children are currently being
|
|
73115
|
+
* visited.
|
|
73116
|
+
* @param currentResult The current aggregate result of the children visited
|
|
73117
|
+
* to the current point.
|
|
73118
|
+
*
|
|
73119
|
+
* @returns `true` to continue visiting children. Otherwise return
|
|
73120
|
+
* `false` to stop visiting children and immediately return the
|
|
73121
|
+
* current aggregate result from {@link #visitChildren}.
|
|
73122
|
+
*/
|
|
73123
|
+
shouldVisitNextChild(node, currentResult) {
|
|
73124
|
+
return true;
|
|
73125
|
+
}
|
|
73126
|
+
}
|
|
73127
|
+
__decorate([
|
|
73128
|
+
Decorators_1.Override,
|
|
73129
|
+
__param(0, Decorators_1.NotNull)
|
|
73130
|
+
], AbstractParseTreeVisitor.prototype, "visit", null);
|
|
73131
|
+
__decorate([
|
|
73132
|
+
Decorators_1.Override,
|
|
73133
|
+
__param(0, Decorators_1.NotNull)
|
|
73134
|
+
], AbstractParseTreeVisitor.prototype, "visitChildren", null);
|
|
73135
|
+
__decorate([
|
|
73136
|
+
Decorators_1.Override,
|
|
73137
|
+
__param(0, Decorators_1.NotNull)
|
|
73138
|
+
], AbstractParseTreeVisitor.prototype, "visitTerminal", null);
|
|
73139
|
+
__decorate([
|
|
73140
|
+
Decorators_1.Override,
|
|
73141
|
+
__param(0, Decorators_1.NotNull)
|
|
73142
|
+
], AbstractParseTreeVisitor.prototype, "visitErrorNode", null);
|
|
73143
|
+
__decorate([
|
|
73144
|
+
__param(0, Decorators_1.NotNull)
|
|
73145
|
+
], AbstractParseTreeVisitor.prototype, "shouldVisitNextChild", null);
|
|
73146
|
+
exports.AbstractParseTreeVisitor = AbstractParseTreeVisitor;
|
|
73147
|
+
|
|
73148
|
+
},{"../Decorators":269}],390:[function(require,module,exports){
|
|
71934
73149
|
"use strict";
|
|
71935
73150
|
/*!
|
|
71936
73151
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -71966,112 +73181,7 @@ __decorate([
|
|
|
71966
73181
|
], ErrorNode.prototype, "accept", null);
|
|
71967
73182
|
exports.ErrorNode = ErrorNode;
|
|
71968
73183
|
|
|
71969
|
-
},{"../Decorators":
|
|
71970
|
-
"use strict";
|
|
71971
|
-
/*!
|
|
71972
|
-
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
71973
|
-
* Licensed under the BSD-3-Clause license. See LICENSE file in the project root for license information.
|
|
71974
|
-
*/
|
|
71975
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
71976
|
-
exports.ParseTreeWalker = void 0;
|
|
71977
|
-
const ErrorNode_1 = require("./ErrorNode");
|
|
71978
|
-
const TerminalNode_1 = require("./TerminalNode");
|
|
71979
|
-
const RuleNode_1 = require("./RuleNode");
|
|
71980
|
-
class ParseTreeWalker {
|
|
71981
|
-
/**
|
|
71982
|
-
* Performs a walk on the given parse tree starting at the root and going down recursively
|
|
71983
|
-
* with depth-first search. On each node, {@link ParseTreeWalker#enterRule} is called before
|
|
71984
|
-
* recursively walking down into child nodes, then
|
|
71985
|
-
* {@link ParseTreeWalker#exitRule} is called after the recursive call to wind up.
|
|
71986
|
-
* @param listener The listener used by the walker to process grammar rules
|
|
71987
|
-
* @param t The parse tree to be walked on
|
|
71988
|
-
*/
|
|
71989
|
-
walk(listener, t) {
|
|
71990
|
-
let nodeStack = [];
|
|
71991
|
-
let indexStack = [];
|
|
71992
|
-
let currentNode = t;
|
|
71993
|
-
let currentIndex = 0;
|
|
71994
|
-
while (currentNode) {
|
|
71995
|
-
// pre-order visit
|
|
71996
|
-
if (currentNode instanceof ErrorNode_1.ErrorNode) {
|
|
71997
|
-
if (listener.visitErrorNode) {
|
|
71998
|
-
listener.visitErrorNode(currentNode);
|
|
71999
|
-
}
|
|
72000
|
-
}
|
|
72001
|
-
else if (currentNode instanceof TerminalNode_1.TerminalNode) {
|
|
72002
|
-
if (listener.visitTerminal) {
|
|
72003
|
-
listener.visitTerminal(currentNode);
|
|
72004
|
-
}
|
|
72005
|
-
}
|
|
72006
|
-
else {
|
|
72007
|
-
this.enterRule(listener, currentNode);
|
|
72008
|
-
}
|
|
72009
|
-
// Move down to first child, if exists
|
|
72010
|
-
if (currentNode.childCount > 0) {
|
|
72011
|
-
nodeStack.push(currentNode);
|
|
72012
|
-
indexStack.push(currentIndex);
|
|
72013
|
-
currentIndex = 0;
|
|
72014
|
-
currentNode = currentNode.getChild(0);
|
|
72015
|
-
continue;
|
|
72016
|
-
}
|
|
72017
|
-
// No child nodes, so walk tree
|
|
72018
|
-
do {
|
|
72019
|
-
// post-order visit
|
|
72020
|
-
if (currentNode instanceof RuleNode_1.RuleNode) {
|
|
72021
|
-
this.exitRule(listener, currentNode);
|
|
72022
|
-
}
|
|
72023
|
-
// No parent, so no siblings
|
|
72024
|
-
if (nodeStack.length === 0) {
|
|
72025
|
-
currentNode = undefined;
|
|
72026
|
-
currentIndex = 0;
|
|
72027
|
-
break;
|
|
72028
|
-
}
|
|
72029
|
-
// Move to next sibling if possible
|
|
72030
|
-
let last = nodeStack[nodeStack.length - 1];
|
|
72031
|
-
currentIndex++;
|
|
72032
|
-
currentNode = currentIndex < last.childCount ? last.getChild(currentIndex) : undefined;
|
|
72033
|
-
if (currentNode) {
|
|
72034
|
-
break;
|
|
72035
|
-
}
|
|
72036
|
-
// No next sibling, so move up
|
|
72037
|
-
currentNode = nodeStack.pop();
|
|
72038
|
-
currentIndex = indexStack.pop();
|
|
72039
|
-
} while (currentNode);
|
|
72040
|
-
}
|
|
72041
|
-
}
|
|
72042
|
-
/**
|
|
72043
|
-
* Enters a grammar rule by first triggering the generic event {@link ParseTreeListener#enterEveryRule}
|
|
72044
|
-
* then by triggering the event specific to the given parse tree node
|
|
72045
|
-
* @param listener The listener responding to the trigger events
|
|
72046
|
-
* @param r The grammar rule containing the rule context
|
|
72047
|
-
*/
|
|
72048
|
-
enterRule(listener, r) {
|
|
72049
|
-
let ctx = r.ruleContext;
|
|
72050
|
-
if (listener.enterEveryRule) {
|
|
72051
|
-
listener.enterEveryRule(ctx);
|
|
72052
|
-
}
|
|
72053
|
-
ctx.enterRule(listener);
|
|
72054
|
-
}
|
|
72055
|
-
/**
|
|
72056
|
-
* Exits a grammar rule by first triggering the event specific to the given parse tree node
|
|
72057
|
-
* then by triggering the generic event {@link ParseTreeListener#exitEveryRule}
|
|
72058
|
-
* @param listener The listener responding to the trigger events
|
|
72059
|
-
* @param r The grammar rule containing the rule context
|
|
72060
|
-
*/
|
|
72061
|
-
exitRule(listener, r) {
|
|
72062
|
-
let ctx = r.ruleContext;
|
|
72063
|
-
ctx.exitRule(listener);
|
|
72064
|
-
if (listener.exitEveryRule) {
|
|
72065
|
-
listener.exitEveryRule(ctx);
|
|
72066
|
-
}
|
|
72067
|
-
}
|
|
72068
|
-
}
|
|
72069
|
-
exports.ParseTreeWalker = ParseTreeWalker;
|
|
72070
|
-
(function (ParseTreeWalker) {
|
|
72071
|
-
ParseTreeWalker.DEFAULT = new ParseTreeWalker();
|
|
72072
|
-
})(ParseTreeWalker = exports.ParseTreeWalker || (exports.ParseTreeWalker = {}));
|
|
72073
|
-
|
|
72074
|
-
},{"./ErrorNode":388,"./RuleNode":390,"./TerminalNode":391}],390:[function(require,module,exports){
|
|
73184
|
+
},{"../Decorators":269,"./TerminalNode":392}],391:[function(require,module,exports){
|
|
72075
73185
|
"use strict";
|
|
72076
73186
|
/*!
|
|
72077
73187
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72083,7 +73193,7 @@ class RuleNode {
|
|
|
72083
73193
|
}
|
|
72084
73194
|
exports.RuleNode = RuleNode;
|
|
72085
73195
|
|
|
72086
|
-
},{}],
|
|
73196
|
+
},{}],392:[function(require,module,exports){
|
|
72087
73197
|
"use strict";
|
|
72088
73198
|
/*!
|
|
72089
73199
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72175,7 +73285,7 @@ __decorate([
|
|
|
72175
73285
|
], TerminalNode.prototype, "toString", null);
|
|
72176
73286
|
exports.TerminalNode = TerminalNode;
|
|
72177
73287
|
|
|
72178
|
-
},{"../Decorators":
|
|
73288
|
+
},{"../Decorators":269,"../Token":294,"../misc/Interval":381}],393:[function(require,module,exports){
|
|
72179
73289
|
"use strict";
|
|
72180
73290
|
/*!
|
|
72181
73291
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72419,7 +73529,7 @@ __decorate([
|
|
|
72419
73529
|
], Trees, "getRootOfSubtreeEnclosingRegion", null);
|
|
72420
73530
|
exports.Trees = Trees;
|
|
72421
73531
|
|
|
72422
|
-
},{"../CommonToken":
|
|
73532
|
+
},{"../CommonToken":265,"../Decorators":269,"../Parser":282,"../ParserRuleContext":285,"../Token":294,"../atn/ATN":302,"../misc/Utils":388,"./ErrorNode":390,"./RuleNode":391,"./TerminalNode":392}],394:[function(require,module,exports){
|
|
72423
73533
|
"use strict";
|
|
72424
73534
|
/*!
|
|
72425
73535
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72443,7 +73553,7 @@ class Chunk {
|
|
|
72443
73553
|
}
|
|
72444
73554
|
exports.Chunk = Chunk;
|
|
72445
73555
|
|
|
72446
|
-
},{}],
|
|
73556
|
+
},{}],395:[function(require,module,exports){
|
|
72447
73557
|
"use strict";
|
|
72448
73558
|
/*!
|
|
72449
73559
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72623,7 +73733,7 @@ ParseTreeMatch = __decorate([
|
|
|
72623
73733
|
], ParseTreeMatch);
|
|
72624
73734
|
exports.ParseTreeMatch = ParseTreeMatch;
|
|
72625
73735
|
|
|
72626
|
-
},{"../../Decorators":
|
|
73736
|
+
},{"../../Decorators":269}],396:[function(require,module,exports){
|
|
72627
73737
|
"use strict";
|
|
72628
73738
|
/*!
|
|
72629
73739
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -72781,7 +73891,7 @@ ParseTreePattern = __decorate([
|
|
|
72781
73891
|
], ParseTreePattern);
|
|
72782
73892
|
exports.ParseTreePattern = ParseTreePattern;
|
|
72783
73893
|
|
|
72784
|
-
},{"../../Decorators":
|
|
73894
|
+
},{"../../Decorators":269,"../xpath/XPath":402}],397:[function(require,module,exports){
|
|
72785
73895
|
"use strict";
|
|
72786
73896
|
/*!
|
|
72787
73897
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73259,7 +74369,7 @@ exports.ParseTreePatternMatcher = ParseTreePatternMatcher;
|
|
|
73259
74369
|
ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern = StartRuleDoesNotConsumeFullPattern;
|
|
73260
74370
|
})(ParseTreePatternMatcher = exports.ParseTreePatternMatcher || (exports.ParseTreePatternMatcher = {}));
|
|
73261
74371
|
|
|
73262
|
-
},{"../../BailErrorStrategy":
|
|
74372
|
+
},{"../../BailErrorStrategy":259,"../../CharStreams":262,"../../CommonTokenStream":267,"../../Decorators":269,"../../ListTokenSource":280,"../../ParserInterpreter":284,"../../ParserRuleContext":285,"../../RecognitionException":288,"../../Token":294,"../../misc/MultiMap":383,"../../misc/ParseCancellationException":386,"../RuleNode":391,"../TerminalNode":392,"./ParseTreeMatch":395,"./ParseTreePattern":396,"./RuleTagToken":398,"./TagChunk":399,"./TextChunk":400,"./TokenTagToken":401}],398:[function(require,module,exports){
|
|
73263
74373
|
"use strict";
|
|
73264
74374
|
/*!
|
|
73265
74375
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73457,7 +74567,7 @@ RuleTagToken = __decorate([
|
|
|
73457
74567
|
], RuleTagToken);
|
|
73458
74568
|
exports.RuleTagToken = RuleTagToken;
|
|
73459
74569
|
|
|
73460
|
-
},{"../../Decorators":
|
|
74570
|
+
},{"../../Decorators":269,"../../Token":294}],399:[function(require,module,exports){
|
|
73461
74571
|
"use strict";
|
|
73462
74572
|
/*!
|
|
73463
74573
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73544,7 +74654,7 @@ __decorate([
|
|
|
73544
74654
|
], TagChunk.prototype, "toString", null);
|
|
73545
74655
|
exports.TagChunk = TagChunk;
|
|
73546
74656
|
|
|
73547
|
-
},{"../../Decorators":
|
|
74657
|
+
},{"../../Decorators":269,"./Chunk":394}],400:[function(require,module,exports){
|
|
73548
74658
|
"use strict";
|
|
73549
74659
|
/*!
|
|
73550
74660
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73614,7 +74724,7 @@ TextChunk = __decorate([
|
|
|
73614
74724
|
], TextChunk);
|
|
73615
74725
|
exports.TextChunk = TextChunk;
|
|
73616
74726
|
|
|
73617
|
-
},{"../../Decorators":
|
|
74727
|
+
},{"../../Decorators":269,"./Chunk":394}],401:[function(require,module,exports){
|
|
73618
74728
|
"use strict";
|
|
73619
74729
|
/*!
|
|
73620
74730
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73709,7 +74819,7 @@ TokenTagToken = __decorate([
|
|
|
73709
74819
|
], TokenTagToken);
|
|
73710
74820
|
exports.TokenTagToken = TokenTagToken;
|
|
73711
74821
|
|
|
73712
|
-
},{"../../CommonToken":
|
|
74822
|
+
},{"../../CommonToken":265,"../../Decorators":269}],402:[function(require,module,exports){
|
|
73713
74823
|
"use strict";
|
|
73714
74824
|
/*!
|
|
73715
74825
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73906,7 +75016,7 @@ exports.XPath = XPath;
|
|
|
73906
75016
|
XPath.WILDCARD = "*"; // word not operator/separator
|
|
73907
75017
|
XPath.NOT = "!"; // word for invert operator
|
|
73908
75018
|
|
|
73909
|
-
},{"../../CharStreams":
|
|
75019
|
+
},{"../../CharStreams":262,"../../CommonTokenStream":267,"../../LexerNoViableAltException":279,"../../ParserRuleContext":285,"../../Token":294,"./XPathLexer":404,"./XPathLexerErrorListener":405,"./XPathRuleAnywhereElement":406,"./XPathRuleElement":407,"./XPathTokenAnywhereElement":408,"./XPathTokenElement":409,"./XPathWildcardAnywhereElement":410,"./XPathWildcardElement":411}],403:[function(require,module,exports){
|
|
73910
75020
|
"use strict";
|
|
73911
75021
|
/*!
|
|
73912
75022
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -73941,7 +75051,7 @@ __decorate([
|
|
|
73941
75051
|
], XPathElement.prototype, "toString", null);
|
|
73942
75052
|
exports.XPathElement = XPathElement;
|
|
73943
75053
|
|
|
73944
|
-
},{"../../Decorators":
|
|
75054
|
+
},{"../../Decorators":269}],404:[function(require,module,exports){
|
|
73945
75055
|
"use strict";
|
|
73946
75056
|
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
73947
75057
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -74416,7 +75526,7 @@ XPathLexer._serializedATN = Utils.join([
|
|
|
74416
75526
|
XPathLexer._serializedATNSegment1,
|
|
74417
75527
|
], "");
|
|
74418
75528
|
|
|
74419
|
-
},{"../../Lexer":
|
|
75529
|
+
},{"../../Lexer":277,"../../VocabularyImpl":300,"../../atn/ATNDeserializer":306,"../../atn/LexerATNSimulator":327,"../../misc/Utils":388}],405:[function(require,module,exports){
|
|
74420
75530
|
"use strict";
|
|
74421
75531
|
/*!
|
|
74422
75532
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74441,7 +75551,7 @@ __decorate([
|
|
|
74441
75551
|
], XPathLexerErrorListener.prototype, "syntaxError", null);
|
|
74442
75552
|
exports.XPathLexerErrorListener = XPathLexerErrorListener;
|
|
74443
75553
|
|
|
74444
|
-
},{"../../Decorators":
|
|
75554
|
+
},{"../../Decorators":269}],406:[function(require,module,exports){
|
|
74445
75555
|
"use strict";
|
|
74446
75556
|
/*!
|
|
74447
75557
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74475,7 +75585,7 @@ __decorate([
|
|
|
74475
75585
|
], XPathRuleAnywhereElement.prototype, "evaluate", null);
|
|
74476
75586
|
exports.XPathRuleAnywhereElement = XPathRuleAnywhereElement;
|
|
74477
75587
|
|
|
74478
|
-
},{"../../Decorators":
|
|
75588
|
+
},{"../../Decorators":269,"../Trees":393,"./XPathElement":403}],407:[function(require,module,exports){
|
|
74479
75589
|
"use strict";
|
|
74480
75590
|
/*!
|
|
74481
75591
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74518,7 +75628,7 @@ __decorate([
|
|
|
74518
75628
|
], XPathRuleElement.prototype, "evaluate", null);
|
|
74519
75629
|
exports.XPathRuleElement = XPathRuleElement;
|
|
74520
75630
|
|
|
74521
|
-
},{"../../Decorators":
|
|
75631
|
+
},{"../../Decorators":269,"../../ParserRuleContext":285,"../Trees":393,"./XPathElement":403}],408:[function(require,module,exports){
|
|
74522
75632
|
"use strict";
|
|
74523
75633
|
/*!
|
|
74524
75634
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74550,7 +75660,7 @@ __decorate([
|
|
|
74550
75660
|
], XPathTokenAnywhereElement.prototype, "evaluate", null);
|
|
74551
75661
|
exports.XPathTokenAnywhereElement = XPathTokenAnywhereElement;
|
|
74552
75662
|
|
|
74553
|
-
},{"../../Decorators":
|
|
75663
|
+
},{"../../Decorators":269,"../Trees":393,"./XPathElement":403}],409:[function(require,module,exports){
|
|
74554
75664
|
"use strict";
|
|
74555
75665
|
/*!
|
|
74556
75666
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74593,7 +75703,7 @@ __decorate([
|
|
|
74593
75703
|
], XPathTokenElement.prototype, "evaluate", null);
|
|
74594
75704
|
exports.XPathTokenElement = XPathTokenElement;
|
|
74595
75705
|
|
|
74596
|
-
},{"../../Decorators":
|
|
75706
|
+
},{"../../Decorators":269,"../TerminalNode":392,"../Trees":393,"./XPathElement":403}],410:[function(require,module,exports){
|
|
74597
75707
|
"use strict";
|
|
74598
75708
|
/*!
|
|
74599
75709
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74629,7 +75739,7 @@ __decorate([
|
|
|
74629
75739
|
], XPathWildcardAnywhereElement.prototype, "evaluate", null);
|
|
74630
75740
|
exports.XPathWildcardAnywhereElement = XPathWildcardAnywhereElement;
|
|
74631
75741
|
|
|
74632
|
-
},{"../../Decorators":
|
|
75742
|
+
},{"../../Decorators":269,"../Trees":393,"./XPath":402,"./XPathElement":403}],411:[function(require,module,exports){
|
|
74633
75743
|
"use strict";
|
|
74634
75744
|
/*!
|
|
74635
75745
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -74669,7 +75779,7 @@ __decorate([
|
|
|
74669
75779
|
], XPathWildcardElement.prototype, "evaluate", null);
|
|
74670
75780
|
exports.XPathWildcardElement = XPathWildcardElement;
|
|
74671
75781
|
|
|
74672
|
-
},{"../../Decorators":
|
|
75782
|
+
},{"../../Decorators":269,"../Trees":393,"./XPath":402,"./XPathElement":403}],412:[function(require,module,exports){
|
|
74673
75783
|
(function (global){(function (){
|
|
74674
75784
|
'use strict';
|
|
74675
75785
|
|
|
@@ -75179,7 +76289,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
75179
76289
|
};
|
|
75180
76290
|
|
|
75181
76291
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
75182
|
-
},{"object.assign/polyfill":
|
|
76292
|
+
},{"object.assign/polyfill":469,"util/":415}],413:[function(require,module,exports){
|
|
75183
76293
|
if (typeof Object.create === 'function') {
|
|
75184
76294
|
// implementation from standard node.js 'util' module
|
|
75185
76295
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -75204,14 +76314,14 @@ if (typeof Object.create === 'function') {
|
|
|
75204
76314
|
}
|
|
75205
76315
|
}
|
|
75206
76316
|
|
|
75207
|
-
},{}],
|
|
76317
|
+
},{}],414:[function(require,module,exports){
|
|
75208
76318
|
module.exports = function isBuffer(arg) {
|
|
75209
76319
|
return arg && typeof arg === 'object'
|
|
75210
76320
|
&& typeof arg.copy === 'function'
|
|
75211
76321
|
&& typeof arg.fill === 'function'
|
|
75212
76322
|
&& typeof arg.readUInt8 === 'function';
|
|
75213
76323
|
}
|
|
75214
|
-
},{}],
|
|
76324
|
+
},{}],415:[function(require,module,exports){
|
|
75215
76325
|
(function (process,global){(function (){
|
|
75216
76326
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
75217
76327
|
//
|
|
@@ -75801,7 +76911,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
75801
76911
|
}
|
|
75802
76912
|
|
|
75803
76913
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
75804
|
-
},{"./support/isBuffer":
|
|
76914
|
+
},{"./support/isBuffer":414,"_process":471,"inherits":413}],416:[function(require,module,exports){
|
|
75805
76915
|
(function (global){(function (){
|
|
75806
76916
|
'use strict';
|
|
75807
76917
|
|
|
@@ -75822,7 +76932,7 @@ module.exports = function availableTypedArrays() {
|
|
|
75822
76932
|
};
|
|
75823
76933
|
|
|
75824
76934
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
75825
|
-
},{"possible-typed-array-names":
|
|
76935
|
+
},{"possible-typed-array-names":470}],417:[function(require,module,exports){
|
|
75826
76936
|
(function (process,global){(function (){
|
|
75827
76937
|
module.exports = process.hrtime || hrtime
|
|
75828
76938
|
|
|
@@ -75853,7 +76963,7 @@ function hrtime(previousTimestamp){
|
|
|
75853
76963
|
return [seconds,nanoseconds]
|
|
75854
76964
|
}
|
|
75855
76965
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
75856
|
-
},{"_process":
|
|
76966
|
+
},{"_process":471}],418:[function(require,module,exports){
|
|
75857
76967
|
'use strict';
|
|
75858
76968
|
|
|
75859
76969
|
var bind = require('function-bind');
|
|
@@ -75865,7 +76975,7 @@ var $reflectApply = require('./reflectApply');
|
|
|
75865
76975
|
/** @type {import('./actualApply')} */
|
|
75866
76976
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
75867
76977
|
|
|
75868
|
-
},{"./functionApply":
|
|
76978
|
+
},{"./functionApply":420,"./functionCall":421,"./reflectApply":423,"function-bind":439}],419:[function(require,module,exports){
|
|
75869
76979
|
'use strict';
|
|
75870
76980
|
|
|
75871
76981
|
var bind = require('function-bind');
|
|
@@ -75877,19 +76987,19 @@ module.exports = function applyBind() {
|
|
|
75877
76987
|
return actualApply(bind, $apply, arguments);
|
|
75878
76988
|
};
|
|
75879
76989
|
|
|
75880
|
-
},{"./actualApply":
|
|
76990
|
+
},{"./actualApply":418,"./functionApply":420,"function-bind":439}],420:[function(require,module,exports){
|
|
75881
76991
|
'use strict';
|
|
75882
76992
|
|
|
75883
76993
|
/** @type {import('./functionApply')} */
|
|
75884
76994
|
module.exports = Function.prototype.apply;
|
|
75885
76995
|
|
|
75886
|
-
},{}],
|
|
76996
|
+
},{}],421:[function(require,module,exports){
|
|
75887
76997
|
'use strict';
|
|
75888
76998
|
|
|
75889
76999
|
/** @type {import('./functionCall')} */
|
|
75890
77000
|
module.exports = Function.prototype.call;
|
|
75891
77001
|
|
|
75892
|
-
},{}],
|
|
77002
|
+
},{}],422:[function(require,module,exports){
|
|
75893
77003
|
'use strict';
|
|
75894
77004
|
|
|
75895
77005
|
var bind = require('function-bind');
|
|
@@ -75906,13 +77016,13 @@ module.exports = function callBindBasic(args) {
|
|
|
75906
77016
|
return $actualApply(bind, $call, args);
|
|
75907
77017
|
};
|
|
75908
77018
|
|
|
75909
|
-
},{"./actualApply":
|
|
77019
|
+
},{"./actualApply":418,"./functionCall":421,"es-errors/type":434,"function-bind":439}],423:[function(require,module,exports){
|
|
75910
77020
|
'use strict';
|
|
75911
77021
|
|
|
75912
77022
|
/** @type {import('./reflectApply')} */
|
|
75913
77023
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
75914
77024
|
|
|
75915
|
-
},{}],
|
|
77025
|
+
},{}],424:[function(require,module,exports){
|
|
75916
77026
|
'use strict';
|
|
75917
77027
|
|
|
75918
77028
|
var setFunctionLength = require('set-function-length');
|
|
@@ -75938,7 +77048,7 @@ if ($defineProperty) {
|
|
|
75938
77048
|
module.exports.apply = applyBind;
|
|
75939
77049
|
}
|
|
75940
77050
|
|
|
75941
|
-
},{"call-bind-apply-helpers":
|
|
77051
|
+
},{"call-bind-apply-helpers":422,"call-bind-apply-helpers/applyBind":419,"es-define-property":428,"set-function-length":473}],425:[function(require,module,exports){
|
|
75942
77052
|
'use strict';
|
|
75943
77053
|
|
|
75944
77054
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -75959,7 +77069,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
75959
77069
|
return intrinsic;
|
|
75960
77070
|
};
|
|
75961
77071
|
|
|
75962
|
-
},{"call-bind-apply-helpers":
|
|
77072
|
+
},{"call-bind-apply-helpers":422,"get-intrinsic":440}],426:[function(require,module,exports){
|
|
75963
77073
|
'use strict';
|
|
75964
77074
|
|
|
75965
77075
|
var $defineProperty = require('es-define-property');
|
|
@@ -76017,7 +77127,7 @@ module.exports = function defineDataProperty(
|
|
|
76017
77127
|
}
|
|
76018
77128
|
};
|
|
76019
77129
|
|
|
76020
|
-
},{"es-define-property":
|
|
77130
|
+
},{"es-define-property":428,"es-errors/syntax":433,"es-errors/type":434,"gopd":445}],427:[function(require,module,exports){
|
|
76021
77131
|
'use strict';
|
|
76022
77132
|
|
|
76023
77133
|
var callBind = require('call-bind-apply-helpers');
|
|
@@ -76049,7 +77159,7 @@ module.exports = desc && typeof desc.get === 'function'
|
|
|
76049
77159
|
}
|
|
76050
77160
|
: false;
|
|
76051
77161
|
|
|
76052
|
-
},{"call-bind-apply-helpers":
|
|
77162
|
+
},{"call-bind-apply-helpers":422,"gopd":445}],428:[function(require,module,exports){
|
|
76053
77163
|
'use strict';
|
|
76054
77164
|
|
|
76055
77165
|
/** @type {import('.')} */
|
|
@@ -76065,55 +77175,55 @@ if ($defineProperty) {
|
|
|
76065
77175
|
|
|
76066
77176
|
module.exports = $defineProperty;
|
|
76067
77177
|
|
|
76068
|
-
},{}],
|
|
77178
|
+
},{}],429:[function(require,module,exports){
|
|
76069
77179
|
'use strict';
|
|
76070
77180
|
|
|
76071
77181
|
/** @type {import('./eval')} */
|
|
76072
77182
|
module.exports = EvalError;
|
|
76073
77183
|
|
|
76074
|
-
},{}],
|
|
77184
|
+
},{}],430:[function(require,module,exports){
|
|
76075
77185
|
'use strict';
|
|
76076
77186
|
|
|
76077
77187
|
/** @type {import('.')} */
|
|
76078
77188
|
module.exports = Error;
|
|
76079
77189
|
|
|
76080
|
-
},{}],
|
|
77190
|
+
},{}],431:[function(require,module,exports){
|
|
76081
77191
|
'use strict';
|
|
76082
77192
|
|
|
76083
77193
|
/** @type {import('./range')} */
|
|
76084
77194
|
module.exports = RangeError;
|
|
76085
77195
|
|
|
76086
|
-
},{}],
|
|
77196
|
+
},{}],432:[function(require,module,exports){
|
|
76087
77197
|
'use strict';
|
|
76088
77198
|
|
|
76089
77199
|
/** @type {import('./ref')} */
|
|
76090
77200
|
module.exports = ReferenceError;
|
|
76091
77201
|
|
|
76092
|
-
},{}],
|
|
77202
|
+
},{}],433:[function(require,module,exports){
|
|
76093
77203
|
'use strict';
|
|
76094
77204
|
|
|
76095
77205
|
/** @type {import('./syntax')} */
|
|
76096
77206
|
module.exports = SyntaxError;
|
|
76097
77207
|
|
|
76098
|
-
},{}],
|
|
77208
|
+
},{}],434:[function(require,module,exports){
|
|
76099
77209
|
'use strict';
|
|
76100
77210
|
|
|
76101
77211
|
/** @type {import('./type')} */
|
|
76102
77212
|
module.exports = TypeError;
|
|
76103
77213
|
|
|
76104
|
-
},{}],
|
|
77214
|
+
},{}],435:[function(require,module,exports){
|
|
76105
77215
|
'use strict';
|
|
76106
77216
|
|
|
76107
77217
|
/** @type {import('./uri')} */
|
|
76108
77218
|
module.exports = URIError;
|
|
76109
77219
|
|
|
76110
|
-
},{}],
|
|
77220
|
+
},{}],436:[function(require,module,exports){
|
|
76111
77221
|
'use strict';
|
|
76112
77222
|
|
|
76113
77223
|
/** @type {import('.')} */
|
|
76114
77224
|
module.exports = Object;
|
|
76115
77225
|
|
|
76116
|
-
},{}],
|
|
77226
|
+
},{}],437:[function(require,module,exports){
|
|
76117
77227
|
'use strict';
|
|
76118
77228
|
|
|
76119
77229
|
var isCallable = require('is-callable');
|
|
@@ -76184,7 +77294,7 @@ module.exports = function forEach(list, iterator, thisArg) {
|
|
|
76184
77294
|
}
|
|
76185
77295
|
};
|
|
76186
77296
|
|
|
76187
|
-
},{"is-callable":
|
|
77297
|
+
},{"is-callable":453}],438:[function(require,module,exports){
|
|
76188
77298
|
'use strict';
|
|
76189
77299
|
|
|
76190
77300
|
/* eslint no-invalid-this: 1 */
|
|
@@ -76270,14 +77380,14 @@ module.exports = function bind(that) {
|
|
|
76270
77380
|
return bound;
|
|
76271
77381
|
};
|
|
76272
77382
|
|
|
76273
|
-
},{}],
|
|
77383
|
+
},{}],439:[function(require,module,exports){
|
|
76274
77384
|
'use strict';
|
|
76275
77385
|
|
|
76276
77386
|
var implementation = require('./implementation');
|
|
76277
77387
|
|
|
76278
77388
|
module.exports = Function.prototype.bind || implementation;
|
|
76279
77389
|
|
|
76280
|
-
},{"./implementation":
|
|
77390
|
+
},{"./implementation":438}],440:[function(require,module,exports){
|
|
76281
77391
|
'use strict';
|
|
76282
77392
|
|
|
76283
77393
|
var undefined;
|
|
@@ -76657,7 +77767,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
76657
77767
|
return value;
|
|
76658
77768
|
};
|
|
76659
77769
|
|
|
76660
|
-
},{"call-bind-apply-helpers/functionApply":
|
|
77770
|
+
},{"call-bind-apply-helpers/functionApply":420,"call-bind-apply-helpers/functionCall":421,"es-define-property":428,"es-errors":430,"es-errors/eval":429,"es-errors/range":431,"es-errors/ref":432,"es-errors/syntax":433,"es-errors/type":434,"es-errors/uri":435,"es-object-atoms":436,"function-bind":439,"get-proto":443,"get-proto/Object.getPrototypeOf":441,"get-proto/Reflect.getPrototypeOf":442,"gopd":445,"has-symbols":447,"hasown":450,"math-intrinsics/abs":457,"math-intrinsics/floor":458,"math-intrinsics/max":460,"math-intrinsics/min":461,"math-intrinsics/pow":462,"math-intrinsics/round":463,"math-intrinsics/sign":464}],441:[function(require,module,exports){
|
|
76661
77771
|
'use strict';
|
|
76662
77772
|
|
|
76663
77773
|
var $Object = require('es-object-atoms');
|
|
@@ -76665,13 +77775,13 @@ var $Object = require('es-object-atoms');
|
|
|
76665
77775
|
/** @type {import('./Object.getPrototypeOf')} */
|
|
76666
77776
|
module.exports = $Object.getPrototypeOf || null;
|
|
76667
77777
|
|
|
76668
|
-
},{"es-object-atoms":
|
|
77778
|
+
},{"es-object-atoms":436}],442:[function(require,module,exports){
|
|
76669
77779
|
'use strict';
|
|
76670
77780
|
|
|
76671
77781
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
76672
77782
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
76673
77783
|
|
|
76674
|
-
},{}],
|
|
77784
|
+
},{}],443:[function(require,module,exports){
|
|
76675
77785
|
'use strict';
|
|
76676
77786
|
|
|
76677
77787
|
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
@@ -76700,13 +77810,13 @@ module.exports = reflectGetProto
|
|
|
76700
77810
|
}
|
|
76701
77811
|
: null;
|
|
76702
77812
|
|
|
76703
|
-
},{"./Object.getPrototypeOf":
|
|
77813
|
+
},{"./Object.getPrototypeOf":441,"./Reflect.getPrototypeOf":442,"dunder-proto/get":427}],444:[function(require,module,exports){
|
|
76704
77814
|
'use strict';
|
|
76705
77815
|
|
|
76706
77816
|
/** @type {import('./gOPD')} */
|
|
76707
77817
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
76708
77818
|
|
|
76709
|
-
},{}],
|
|
77819
|
+
},{}],445:[function(require,module,exports){
|
|
76710
77820
|
'use strict';
|
|
76711
77821
|
|
|
76712
77822
|
/** @type {import('.')} */
|
|
@@ -76723,7 +77833,7 @@ if ($gOPD) {
|
|
|
76723
77833
|
|
|
76724
77834
|
module.exports = $gOPD;
|
|
76725
77835
|
|
|
76726
|
-
},{"./gOPD":
|
|
77836
|
+
},{"./gOPD":444}],446:[function(require,module,exports){
|
|
76727
77837
|
'use strict';
|
|
76728
77838
|
|
|
76729
77839
|
var $defineProperty = require('es-define-property');
|
|
@@ -76747,7 +77857,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
76747
77857
|
|
|
76748
77858
|
module.exports = hasPropertyDescriptors;
|
|
76749
77859
|
|
|
76750
|
-
},{"es-define-property":
|
|
77860
|
+
},{"es-define-property":428}],447:[function(require,module,exports){
|
|
76751
77861
|
'use strict';
|
|
76752
77862
|
|
|
76753
77863
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -76763,7 +77873,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
76763
77873
|
return hasSymbolSham();
|
|
76764
77874
|
};
|
|
76765
77875
|
|
|
76766
|
-
},{"./shams":
|
|
77876
|
+
},{"./shams":448}],448:[function(require,module,exports){
|
|
76767
77877
|
'use strict';
|
|
76768
77878
|
|
|
76769
77879
|
/** @type {import('./shams')} */
|
|
@@ -76810,7 +77920,7 @@ module.exports = function hasSymbols() {
|
|
|
76810
77920
|
return true;
|
|
76811
77921
|
};
|
|
76812
77922
|
|
|
76813
|
-
},{}],
|
|
77923
|
+
},{}],449:[function(require,module,exports){
|
|
76814
77924
|
'use strict';
|
|
76815
77925
|
|
|
76816
77926
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -76820,7 +77930,7 @@ module.exports = function hasToStringTagShams() {
|
|
|
76820
77930
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
76821
77931
|
};
|
|
76822
77932
|
|
|
76823
|
-
},{"has-symbols/shams":
|
|
77933
|
+
},{"has-symbols/shams":448}],450:[function(require,module,exports){
|
|
76824
77934
|
'use strict';
|
|
76825
77935
|
|
|
76826
77936
|
var call = Function.prototype.call;
|
|
@@ -76830,7 +77940,7 @@ var bind = require('function-bind');
|
|
|
76830
77940
|
/** @type {import('.')} */
|
|
76831
77941
|
module.exports = bind.call(call, $hasOwn);
|
|
76832
77942
|
|
|
76833
|
-
},{"function-bind":
|
|
77943
|
+
},{"function-bind":439}],451:[function(require,module,exports){
|
|
76834
77944
|
if (typeof Object.create === 'function') {
|
|
76835
77945
|
// implementation from standard node.js 'util' module
|
|
76836
77946
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -76859,7 +77969,7 @@ if (typeof Object.create === 'function') {
|
|
|
76859
77969
|
}
|
|
76860
77970
|
}
|
|
76861
77971
|
|
|
76862
|
-
},{}],
|
|
77972
|
+
},{}],452:[function(require,module,exports){
|
|
76863
77973
|
'use strict';
|
|
76864
77974
|
|
|
76865
77975
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
@@ -76905,7 +78015,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
76905
78015
|
/** @type {import('.')} */
|
|
76906
78016
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
76907
78017
|
|
|
76908
|
-
},{"call-bound":
|
|
78018
|
+
},{"call-bound":425,"has-tostringtag/shams":449}],453:[function(require,module,exports){
|
|
76909
78019
|
'use strict';
|
|
76910
78020
|
|
|
76911
78021
|
var fnToStr = Function.prototype.toString;
|
|
@@ -77008,7 +78118,7 @@ module.exports = reflectApply
|
|
|
77008
78118
|
return tryFunctionObject(value);
|
|
77009
78119
|
};
|
|
77010
78120
|
|
|
77011
|
-
},{}],
|
|
78121
|
+
},{}],454:[function(require,module,exports){
|
|
77012
78122
|
'use strict';
|
|
77013
78123
|
|
|
77014
78124
|
var callBound = require('call-bound');
|
|
@@ -77057,7 +78167,7 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
77057
78167
|
return getProto(fn) === GeneratorFunction;
|
|
77058
78168
|
};
|
|
77059
78169
|
|
|
77060
|
-
},{"call-bound":
|
|
78170
|
+
},{"call-bound":425,"get-proto":443,"has-tostringtag/shams":449,"safe-regex-test":472}],455:[function(require,module,exports){
|
|
77061
78171
|
'use strict';
|
|
77062
78172
|
|
|
77063
78173
|
var callBound = require('call-bound');
|
|
@@ -77128,7 +78238,7 @@ if (hasToStringTag) {
|
|
|
77128
78238
|
|
|
77129
78239
|
module.exports = fn;
|
|
77130
78240
|
|
|
77131
|
-
},{"call-bound":
|
|
78241
|
+
},{"call-bound":425,"gopd":445,"has-tostringtag/shams":449,"hasown":450}],456:[function(require,module,exports){
|
|
77132
78242
|
'use strict';
|
|
77133
78243
|
|
|
77134
78244
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -77138,19 +78248,19 @@ module.exports = function isTypedArray(value) {
|
|
|
77138
78248
|
return !!whichTypedArray(value);
|
|
77139
78249
|
};
|
|
77140
78250
|
|
|
77141
|
-
},{"which-typed-array":
|
|
78251
|
+
},{"which-typed-array":478}],457:[function(require,module,exports){
|
|
77142
78252
|
'use strict';
|
|
77143
78253
|
|
|
77144
78254
|
/** @type {import('./abs')} */
|
|
77145
78255
|
module.exports = Math.abs;
|
|
77146
78256
|
|
|
77147
|
-
},{}],
|
|
78257
|
+
},{}],458:[function(require,module,exports){
|
|
77148
78258
|
'use strict';
|
|
77149
78259
|
|
|
77150
78260
|
/** @type {import('./floor')} */
|
|
77151
78261
|
module.exports = Math.floor;
|
|
77152
78262
|
|
|
77153
|
-
},{}],
|
|
78263
|
+
},{}],459:[function(require,module,exports){
|
|
77154
78264
|
'use strict';
|
|
77155
78265
|
|
|
77156
78266
|
/** @type {import('./isNaN')} */
|
|
@@ -77158,31 +78268,31 @@ module.exports = Number.isNaN || function isNaN(a) {
|
|
|
77158
78268
|
return a !== a;
|
|
77159
78269
|
};
|
|
77160
78270
|
|
|
77161
|
-
},{}],
|
|
78271
|
+
},{}],460:[function(require,module,exports){
|
|
77162
78272
|
'use strict';
|
|
77163
78273
|
|
|
77164
78274
|
/** @type {import('./max')} */
|
|
77165
78275
|
module.exports = Math.max;
|
|
77166
78276
|
|
|
77167
|
-
},{}],
|
|
78277
|
+
},{}],461:[function(require,module,exports){
|
|
77168
78278
|
'use strict';
|
|
77169
78279
|
|
|
77170
78280
|
/** @type {import('./min')} */
|
|
77171
78281
|
module.exports = Math.min;
|
|
77172
78282
|
|
|
77173
|
-
},{}],
|
|
78283
|
+
},{}],462:[function(require,module,exports){
|
|
77174
78284
|
'use strict';
|
|
77175
78285
|
|
|
77176
78286
|
/** @type {import('./pow')} */
|
|
77177
78287
|
module.exports = Math.pow;
|
|
77178
78288
|
|
|
77179
|
-
},{}],
|
|
78289
|
+
},{}],463:[function(require,module,exports){
|
|
77180
78290
|
'use strict';
|
|
77181
78291
|
|
|
77182
78292
|
/** @type {import('./round')} */
|
|
77183
78293
|
module.exports = Math.round;
|
|
77184
78294
|
|
|
77185
|
-
},{}],
|
|
78295
|
+
},{}],464:[function(require,module,exports){
|
|
77186
78296
|
'use strict';
|
|
77187
78297
|
|
|
77188
78298
|
var $isNaN = require('./isNaN');
|
|
@@ -77195,7 +78305,7 @@ module.exports = function sign(number) {
|
|
|
77195
78305
|
return number < 0 ? -1 : +1;
|
|
77196
78306
|
};
|
|
77197
78307
|
|
|
77198
|
-
},{"./isNaN":
|
|
78308
|
+
},{"./isNaN":459}],465:[function(require,module,exports){
|
|
77199
78309
|
'use strict';
|
|
77200
78310
|
|
|
77201
78311
|
var keysShim;
|
|
@@ -77319,7 +78429,7 @@ if (!Object.keys) {
|
|
|
77319
78429
|
}
|
|
77320
78430
|
module.exports = keysShim;
|
|
77321
78431
|
|
|
77322
|
-
},{"./isArguments":
|
|
78432
|
+
},{"./isArguments":467}],466:[function(require,module,exports){
|
|
77323
78433
|
'use strict';
|
|
77324
78434
|
|
|
77325
78435
|
var slice = Array.prototype.slice;
|
|
@@ -77353,7 +78463,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
77353
78463
|
|
|
77354
78464
|
module.exports = keysShim;
|
|
77355
78465
|
|
|
77356
|
-
},{"./implementation":
|
|
78466
|
+
},{"./implementation":465,"./isArguments":467}],467:[function(require,module,exports){
|
|
77357
78467
|
'use strict';
|
|
77358
78468
|
|
|
77359
78469
|
var toStr = Object.prototype.toString;
|
|
@@ -77372,7 +78482,7 @@ module.exports = function isArguments(value) {
|
|
|
77372
78482
|
return isArgs;
|
|
77373
78483
|
};
|
|
77374
78484
|
|
|
77375
|
-
},{}],
|
|
78485
|
+
},{}],468:[function(require,module,exports){
|
|
77376
78486
|
'use strict';
|
|
77377
78487
|
|
|
77378
78488
|
// modified from https://github.com/es-shims/es6-shim
|
|
@@ -77420,7 +78530,7 @@ module.exports = function assign(target, source1) {
|
|
|
77420
78530
|
return to; // step 4
|
|
77421
78531
|
};
|
|
77422
78532
|
|
|
77423
|
-
},{"call-bound":
|
|
78533
|
+
},{"call-bound":425,"es-object-atoms":436,"has-symbols/shams":448,"object-keys":466}],469:[function(require,module,exports){
|
|
77424
78534
|
'use strict';
|
|
77425
78535
|
|
|
77426
78536
|
var implementation = require('./implementation');
|
|
@@ -77477,7 +78587,7 @@ module.exports = function getPolyfill() {
|
|
|
77477
78587
|
return Object.assign;
|
|
77478
78588
|
};
|
|
77479
78589
|
|
|
77480
|
-
},{"./implementation":
|
|
78590
|
+
},{"./implementation":468}],470:[function(require,module,exports){
|
|
77481
78591
|
'use strict';
|
|
77482
78592
|
|
|
77483
78593
|
/** @type {import('.')} */
|
|
@@ -77496,7 +78606,7 @@ module.exports = [
|
|
|
77496
78606
|
'BigUint64Array'
|
|
77497
78607
|
];
|
|
77498
78608
|
|
|
77499
|
-
},{}],
|
|
78609
|
+
},{}],471:[function(require,module,exports){
|
|
77500
78610
|
// shim for using process in browser
|
|
77501
78611
|
var process = module.exports = {};
|
|
77502
78612
|
|
|
@@ -77682,7 +78792,7 @@ process.chdir = function (dir) {
|
|
|
77682
78792
|
};
|
|
77683
78793
|
process.umask = function() { return 0; };
|
|
77684
78794
|
|
|
77685
|
-
},{}],
|
|
78795
|
+
},{}],472:[function(require,module,exports){
|
|
77686
78796
|
'use strict';
|
|
77687
78797
|
|
|
77688
78798
|
var callBound = require('call-bound');
|
|
@@ -77701,7 +78811,7 @@ module.exports = function regexTester(regex) {
|
|
|
77701
78811
|
};
|
|
77702
78812
|
};
|
|
77703
78813
|
|
|
77704
|
-
},{"call-bound":
|
|
78814
|
+
},{"call-bound":425,"es-errors/type":434,"is-regex":455}],473:[function(require,module,exports){
|
|
77705
78815
|
'use strict';
|
|
77706
78816
|
|
|
77707
78817
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -77745,7 +78855,7 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
77745
78855
|
return fn;
|
|
77746
78856
|
};
|
|
77747
78857
|
|
|
77748
|
-
},{"define-data-property":
|
|
78858
|
+
},{"define-data-property":426,"es-errors/type":434,"get-intrinsic":440,"gopd":445,"has-property-descriptors":446}],474:[function(require,module,exports){
|
|
77749
78859
|
(function (setImmediate,clearImmediate){(function (){
|
|
77750
78860
|
var nextTick = require('process/browser.js').nextTick;
|
|
77751
78861
|
var apply = Function.prototype.apply;
|
|
@@ -77824,9 +78934,9 @@ exports.clearImmediate = typeof clearImmediate === "function" ? clearImmediate :
|
|
|
77824
78934
|
delete immediateIds[id];
|
|
77825
78935
|
};
|
|
77826
78936
|
}).call(this)}).call(this,require("timers").setImmediate,require("timers").clearImmediate)
|
|
77827
|
-
},{"process/browser.js":
|
|
77828
|
-
arguments[4][
|
|
77829
|
-
},{"dup":
|
|
78937
|
+
},{"process/browser.js":471,"timers":474}],475:[function(require,module,exports){
|
|
78938
|
+
arguments[4][414][0].apply(exports,arguments)
|
|
78939
|
+
},{"dup":414}],476:[function(require,module,exports){
|
|
77830
78940
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
77831
78941
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
77832
78942
|
|
|
@@ -78162,7 +79272,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
78162
79272
|
});
|
|
78163
79273
|
});
|
|
78164
79274
|
|
|
78165
|
-
},{"is-arguments":
|
|
79275
|
+
},{"is-arguments":452,"is-generator-function":454,"is-typed-array":456,"which-typed-array":478}],477:[function(require,module,exports){
|
|
78166
79276
|
(function (process){(function (){
|
|
78167
79277
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
78168
79278
|
//
|
|
@@ -78881,7 +79991,7 @@ function callbackify(original) {
|
|
|
78881
79991
|
exports.callbackify = callbackify;
|
|
78882
79992
|
|
|
78883
79993
|
}).call(this)}).call(this,require('_process'))
|
|
78884
|
-
},{"./support/isBuffer":
|
|
79994
|
+
},{"./support/isBuffer":475,"./support/types":476,"_process":471,"inherits":451}],478:[function(require,module,exports){
|
|
78885
79995
|
(function (global){(function (){
|
|
78886
79996
|
'use strict';
|
|
78887
79997
|
|
|
@@ -79002,5 +80112,5 @@ module.exports = function whichTypedArray(value) {
|
|
|
79002
80112
|
};
|
|
79003
80113
|
|
|
79004
80114
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
79005
|
-
},{"available-typed-arrays":
|
|
80115
|
+
},{"available-typed-arrays":416,"call-bind":424,"call-bound":425,"for-each":437,"get-proto":443,"gopd":445,"has-tostringtag/shams":449}]},{},[137])(137)
|
|
79006
80116
|
});
|