@designliquido/delegua 0.61.3 → 0.63.0
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/README.md +17 -9
- package/analisador-semantico/analisador-semantico.d.ts.map +1 -1
- package/analisador-semantico/analisador-semantico.js +22 -24
- package/analisador-semantico/analisador-semantico.js.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.js +7 -7
- package/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/avaliador-sintatico/comum.js +11 -10
- package/avaliador-sintatico/comum.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts +13 -2
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js +43 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.js +32 -34
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.js.map +1 -1
- package/bibliotecas/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/biblioteca-global.js +11 -13
- package/bibliotecas/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/egua-classico/biblioteca-global.js +9 -9
- package/bibliotecas/dialetos/egua-classico/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js +9 -11
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js.map +1 -1
- package/bin/package.json +1 -1
- package/formatadores/formatador-delegua.js +1 -1
- package/formatadores/formatador-delegua.js.map +1 -1
- package/interfaces/retornos/retorno-lexador.d.ts +2 -2
- package/interfaces/retornos/retorno-lexador.d.ts.map +1 -1
- package/interpretador/dialetos/pitugues/comum.js +2 -2
- package/interpretador/dialetos/pitugues/comum.js.map +1 -1
- package/interpretador/interpretador-base.js +10 -10
- package/interpretador/interpretador-base.js.map +1 -1
- package/interpretador/interpretador.d.ts.map +1 -1
- package/interpretador/interpretador.js +7 -8
- package/interpretador/interpretador.js.map +1 -1
- package/lexador/dialetos/lexador-pitugues.d.ts +3 -3
- package/lexador/dialetos/lexador-pitugues.d.ts.map +1 -1
- package/lexador/dialetos/lexador-pitugues.js +7 -6
- package/lexador/dialetos/lexador-pitugues.js.map +1 -1
- package/lexador/dialetos/lexador-tenda.d.ts +2 -2
- package/lexador/dialetos/lexador-tenda.d.ts.map +1 -1
- package/lexador/dialetos/localizacao.d.ts +9 -0
- package/lexador/dialetos/localizacao.d.ts.map +1 -0
- package/lexador/dialetos/{pragma.js → localizacao.js} +1 -1
- package/lexador/dialetos/localizacao.js.map +1 -0
- package/package.json +1 -1
- package/tradutores/index.d.ts +2 -0
- package/tradutores/index.d.ts.map +1 -1
- package/tradutores/index.js +2 -0
- package/tradutores/index.js.map +1 -1
- package/tradutores/mermaid/aresta-fluxograma.d.ts +7 -0
- package/tradutores/mermaid/aresta-fluxograma.d.ts.map +1 -0
- package/tradutores/mermaid/aresta-fluxograma.js +11 -0
- package/tradutores/mermaid/aresta-fluxograma.js.map +1 -0
- package/tradutores/mermaid/diagrama-classe.d.ts +16 -0
- package/tradutores/mermaid/diagrama-classe.d.ts.map +1 -0
- package/tradutores/mermaid/diagrama-classe.js +33 -0
- package/tradutores/mermaid/diagrama-classe.js.map +1 -0
- package/tradutores/mermaid/index.d.ts +5 -0
- package/tradutores/mermaid/index.d.ts.map +1 -0
- package/tradutores/mermaid/index.js +21 -0
- package/tradutores/mermaid/index.js.map +1 -0
- package/tradutores/mermaid/subgrafo-classe.d.ts +14 -0
- package/tradutores/mermaid/subgrafo-classe.d.ts.map +1 -0
- package/tradutores/mermaid/subgrafo-classe.js +45 -0
- package/tradutores/mermaid/subgrafo-classe.js.map +1 -0
- package/tradutores/mermaid/vertice-fluxograma.d.ts +9 -0
- package/tradutores/mermaid/vertice-fluxograma.d.ts.map +1 -0
- package/tradutores/mermaid/vertice-fluxograma.js +16 -0
- package/tradutores/mermaid/vertice-fluxograma.js.map +1 -0
- package/tradutores/tradutor-assembly-arm.d.ts +98 -0
- package/tradutores/tradutor-assembly-arm.d.ts.map +1 -0
- package/tradutores/tradutor-assembly-arm.js +715 -0
- package/tradutores/tradutor-assembly-arm.js.map +1 -0
- package/tradutores/tradutor-assembly-x64.d.ts +82 -4
- package/tradutores/tradutor-assembly-x64.d.ts.map +1 -1
- package/tradutores/tradutor-assembly-x64.js +612 -87
- package/tradutores/tradutor-assembly-x64.js.map +1 -1
- package/tradutores/tradutor-mermaidjs.d.ts +10 -16
- package/tradutores/tradutor-mermaidjs.d.ts.map +1 -1
- package/tradutores/tradutor-mermaidjs.js +107 -43
- package/tradutores/tradutor-mermaidjs.js.map +1 -1
- package/umd/delegua.js +1998 -378
- package/lexador/dialetos/pragma.d.ts +0 -9
- package/lexador/dialetos/pragma.d.ts.map +0 -1
- package/lexador/dialetos/pragma.js.map +0 -1
package/umd/delegua.js
CHANGED
|
@@ -540,7 +540,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
540
540
|
elementoSeparador = true;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
const valoresSemSeparadores = valoresSemComentarios.filter((v) => v.constructor
|
|
543
|
+
const valoresSemSeparadores = valoresSemComentarios.filter((v) => v.constructor !== construtos_1.Separador);
|
|
544
544
|
const tipoVetor = (0, inferenciador_1.inferirTipoVariavel)(valoresSemSeparadores);
|
|
545
545
|
return new construtos_1.Vetor(this.hashArquivo, Number(simboloAtual.linha), valores, valores.length, tipoVetor);
|
|
546
546
|
case delegua_2.default.ENQUANTO:
|
|
@@ -648,7 +648,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
648
648
|
else {
|
|
649
649
|
construto = this.expressao();
|
|
650
650
|
}
|
|
651
|
-
if (construto.constructor
|
|
651
|
+
if (construto.constructor === construtos_1.AcessoMetodoOuPropriedade) {
|
|
652
652
|
const construtoTipado = construto;
|
|
653
653
|
switch (construtoTipado.tipo) {
|
|
654
654
|
case delegua_1.default.DICIONARIO:
|
|
@@ -1638,11 +1638,11 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1638
1638
|
const simboloNomeVariavel = this.consumir(delegua_2.default.IDENTIFICADOR, "Esperado nome do identificador em declaração 'tendo'.");
|
|
1639
1639
|
this.consumir(delegua_2.default.CHAVE_ESQUERDA, "Esperado chave esquerda para abertura de bloco em declaração 'tendo'.");
|
|
1640
1640
|
let tipoInicializacao = 'qualquer';
|
|
1641
|
-
switch (expressaoInicializacao.constructor
|
|
1642
|
-
case
|
|
1641
|
+
switch (expressaoInicializacao.constructor) {
|
|
1642
|
+
case construtos_1.Chamada:
|
|
1643
1643
|
const construtoChamada = expressaoInicializacao;
|
|
1644
|
-
switch (construtoChamada.entidadeChamada.constructor
|
|
1645
|
-
case
|
|
1644
|
+
switch (construtoChamada.entidadeChamada.constructor) {
|
|
1645
|
+
case construtos_1.Variavel:
|
|
1646
1646
|
const entidadeChamadaVariavel = construtoChamada.entidadeChamada;
|
|
1647
1647
|
tipoInicializacao = entidadeChamadaVariavel.tipo;
|
|
1648
1648
|
break;
|
|
@@ -1777,7 +1777,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1777
1777
|
if (construto instanceof construtos_1.Literal) {
|
|
1778
1778
|
return construto.valor;
|
|
1779
1779
|
}
|
|
1780
|
-
throw this.erro({ hashArquivo: construto.hashArquivo, linha: construto.linha }, `Construto do tipo ${construto.constructor
|
|
1780
|
+
throw this.erro({ hashArquivo: construto.hashArquivo, linha: construto.linha }, `Construto do tipo ${construto.constructor} não possui um mapeamento de valor.`);
|
|
1781
1781
|
}
|
|
1782
1782
|
resolverInformacaoElementoSintaticoDeDicionario(construto) {
|
|
1783
1783
|
let retorno;
|
|
@@ -2260,16 +2260,17 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
2260
2260
|
}
|
|
2261
2261
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
2262
2262
|
|
|
2263
|
-
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../construtos/tuplas":68,"../declaracoes":96,"../inferenciador":116,"../informacao-elemento-sintatico":117,"../tipos-de-dados/delegua":185,"../tipos-de-simbolos/delegua":190,"./avaliador-sintatico-base":1,"./comum":3,"./elemento-montao-tipos":11,"./erro-avaliador-sintatico":12,"./informacao-escopo":14,"./montao-tipos":17,"./pilha-escopos":18,"browser-process-hrtime":
|
|
2263
|
+
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../construtos/tuplas":68,"../declaracoes":96,"../inferenciador":116,"../informacao-elemento-sintatico":117,"../tipos-de-dados/delegua":185,"../tipos-de-simbolos/delegua":190,"./avaliador-sintatico-base":1,"./comum":3,"./elemento-montao-tipos":11,"./erro-avaliador-sintatico":12,"./informacao-escopo":14,"./montao-tipos":17,"./pilha-escopos":18,"browser-process-hrtime":378}],3:[function(require,module,exports){
|
|
2264
2264
|
"use strict";
|
|
2265
2265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2266
2266
|
exports.buscarRetornos = buscarRetornos;
|
|
2267
2267
|
exports.logicaDescobertaRetornoFuncao = logicaDescobertaRetornoFuncao;
|
|
2268
2268
|
exports.registrarPrimitiva = registrarPrimitiva;
|
|
2269
|
+
const declaracoes_1 = require("../declaracoes");
|
|
2269
2270
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
2270
2271
|
function* buscarRetornosEmBloco(construtoBloco) {
|
|
2271
2272
|
for (const declaracao of construtoBloco.declaracoes) {
|
|
2272
|
-
if (declaracao.constructor
|
|
2273
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2273
2274
|
yield declaracao;
|
|
2274
2275
|
}
|
|
2275
2276
|
}
|
|
@@ -2277,25 +2278,25 @@ function* buscarRetornosEmBloco(construtoBloco) {
|
|
|
2277
2278
|
function* buscarRetornosEmSe(construtoSe) {
|
|
2278
2279
|
const blocoEntao = construtoSe.caminhoEntao;
|
|
2279
2280
|
for (const declaracao of buscarRetornosEmBloco(blocoEntao)) {
|
|
2280
|
-
if (declaracao.constructor
|
|
2281
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2281
2282
|
yield declaracao;
|
|
2282
2283
|
}
|
|
2283
2284
|
}
|
|
2284
2285
|
if (!construtoSe.caminhoSenao)
|
|
2285
2286
|
return;
|
|
2286
|
-
switch (construtoSe.caminhoSenao.constructor
|
|
2287
|
-
case
|
|
2287
|
+
switch (construtoSe.caminhoSenao.constructor) {
|
|
2288
|
+
case declaracoes_1.Bloco:
|
|
2288
2289
|
const blocoSenao = construtoSe.caminhoSenao;
|
|
2289
2290
|
for (const declaracao of blocoSenao.declaracoes) {
|
|
2290
|
-
if (declaracao.constructor
|
|
2291
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2291
2292
|
yield declaracao;
|
|
2292
2293
|
}
|
|
2293
2294
|
}
|
|
2294
2295
|
break;
|
|
2295
|
-
case
|
|
2296
|
+
case declaracoes_1.Se:
|
|
2296
2297
|
const senaoSe = construtoSe.caminhoSenao;
|
|
2297
2298
|
for (const declaracao of buscarRetornosEmSe(senaoSe)) {
|
|
2298
|
-
if (declaracao.constructor
|
|
2299
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2299
2300
|
yield declaracao;
|
|
2300
2301
|
}
|
|
2301
2302
|
}
|
|
@@ -2304,11 +2305,11 @@ function* buscarRetornosEmSe(construtoSe) {
|
|
|
2304
2305
|
}
|
|
2305
2306
|
function buscarRetornos(declaracao) {
|
|
2306
2307
|
let retornasEncontrados = [];
|
|
2307
|
-
switch (declaracao.constructor
|
|
2308
|
-
case
|
|
2308
|
+
switch (declaracao.constructor) {
|
|
2309
|
+
case declaracoes_1.Retorna:
|
|
2309
2310
|
retornasEncontrados.push(declaracao);
|
|
2310
2311
|
break;
|
|
2311
|
-
case
|
|
2312
|
+
case declaracoes_1.Se:
|
|
2312
2313
|
for (const retorna of buscarRetornosEmSe(declaracao)) {
|
|
2313
2314
|
retornasEncontrados.push(retorna);
|
|
2314
2315
|
}
|
|
@@ -2360,7 +2361,7 @@ function registrarPrimitiva(primitivasConhecidas, tipo, catalogoPrimitivas) {
|
|
|
2360
2361
|
}
|
|
2361
2362
|
}
|
|
2362
2363
|
|
|
2363
|
-
},{"../informacao-elemento-sintatico":117}],4:[function(require,module,exports){
|
|
2364
|
+
},{"../declaracoes":96,"../informacao-elemento-sintatico":117}],4:[function(require,module,exports){
|
|
2364
2365
|
"use strict";
|
|
2365
2366
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2366
2367
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3300,7 +3301,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
3300
3301
|
const entidadeChamadaAcessoIndiceVariavel = inicializador
|
|
3301
3302
|
.entidadeChamada;
|
|
3302
3303
|
// Este condicional ocorre com chamadas aninhadas. Por exemplo, `vetor[1][2]`.
|
|
3303
|
-
if (entidadeChamadaAcessoIndiceVariavel.constructor
|
|
3304
|
+
if (entidadeChamadaAcessoIndiceVariavel.constructor === construtos_1.AcessoIndiceVariavel) {
|
|
3304
3305
|
return this.logicaComumInferenciaTiposVariaveisEConstantes(entidadeChamadaAcessoIndiceVariavel, tipo);
|
|
3305
3306
|
}
|
|
3306
3307
|
if (entidadeChamadaAcessoIndiceVariavel.tipo.endsWith('[]')) {
|
|
@@ -4183,6 +4184,34 @@ class AvaliadorSintaticoPitugues {
|
|
|
4183
4184
|
const textoFalha = this.consumir(pitugues_2.default.TEXTO, 'Esperado texto para explicar falha.');
|
|
4184
4185
|
return new declaracoes_1.Falhar(simboloFalha, textoFalha.literal);
|
|
4185
4186
|
}
|
|
4187
|
+
/**
|
|
4188
|
+
* Verifica se há pontos e vírgula no final de sentenças.
|
|
4189
|
+
* Em Pituguês, ; só é permitido para separar múltiplos comandos na mesma linha,
|
|
4190
|
+
* mas não no final de uma sentença/linha.
|
|
4191
|
+
*/
|
|
4192
|
+
verificarPontosEVirgulasInvalidos() {
|
|
4193
|
+
for (let i = 0; i < this.simbolos.length; i++) {
|
|
4194
|
+
const simboloAtual = this.simbolos[i];
|
|
4195
|
+
if (simboloAtual.tipo === pitugues_2.default.PONTO_E_VIRGULA) {
|
|
4196
|
+
const proximoSimbolo = this.encontrarProximoSimboloNaoComentario(i + 1);
|
|
4197
|
+
if (!proximoSimbolo || proximoSimbolo.linha > simboloAtual.linha) {
|
|
4198
|
+
this.erros.push(new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(simboloAtual, 'Ponto e vírgula (;) não é permitido no final da sentença de código.'));
|
|
4199
|
+
}
|
|
4200
|
+
}
|
|
4201
|
+
}
|
|
4202
|
+
}
|
|
4203
|
+
/**
|
|
4204
|
+
* Encontra o próximo símbolo que não seja comentário.
|
|
4205
|
+
* Isso é importante porque comentários não afetam a validade do ponto e vírgula.
|
|
4206
|
+
*/
|
|
4207
|
+
encontrarProximoSimboloNaoComentario(inicio) {
|
|
4208
|
+
for (let i = inicio; i < this.simbolos.length; i++) {
|
|
4209
|
+
if (this.simbolos[i].tipo !== pitugues_2.default.COMENTARIO) {
|
|
4210
|
+
return this.simbolos[i];
|
|
4211
|
+
}
|
|
4212
|
+
}
|
|
4213
|
+
return null;
|
|
4214
|
+
}
|
|
4186
4215
|
/**
|
|
4187
4216
|
* Consome o símbolo atual, verificando se é uma declaração de função, variável, classe
|
|
4188
4217
|
* ou uma expressão.
|
|
@@ -4360,15 +4389,29 @@ class AvaliadorSintaticoPitugues {
|
|
|
4360
4389
|
this.hashArquivo = hashArquivo || 0;
|
|
4361
4390
|
this.simbolos = (retornoLexador === null || retornoLexador === void 0 ? void 0 : retornoLexador.simbolos) || [];
|
|
4362
4391
|
this.localizacoes = (retornoLexador === null || retornoLexador === void 0 ? void 0 : retornoLexador.pragmas) || {};
|
|
4392
|
+
this.verificarPontosEVirgulasInvalidos();
|
|
4363
4393
|
let declaracoes = [];
|
|
4364
4394
|
while (!this.estaNoFinal()) {
|
|
4365
4395
|
const retornoDeclaracao = this.resolverDeclaracaoForaDeBloco();
|
|
4396
|
+
if (retornoDeclaracao === null) {
|
|
4397
|
+
continue;
|
|
4398
|
+
}
|
|
4366
4399
|
if (Array.isArray(retornoDeclaracao)) {
|
|
4367
4400
|
declaracoes = declaracoes.concat(retornoDeclaracao);
|
|
4368
4401
|
}
|
|
4369
4402
|
else {
|
|
4370
4403
|
declaracoes.push(retornoDeclaracao);
|
|
4371
4404
|
}
|
|
4405
|
+
if (!this.estaNoFinal() && this.verificarTipoSimboloAtual(pitugues_2.default.PONTO_E_VIRGULA)) {
|
|
4406
|
+
// Verificar se este ; está na mesma linha da declaração anterior
|
|
4407
|
+
const declaracaoAnterior = declaracoes[declaracoes.length - 1];
|
|
4408
|
+
const linhaDeclaraoAnterior = declaracaoAnterior.linha || 0;
|
|
4409
|
+
const linhaPontoVirgula = this.simboloAtual().linha;
|
|
4410
|
+
if (linhaPontoVirgula === linhaDeclaraoAnterior) {
|
|
4411
|
+
// Está na mesma linha, então é um separador válido
|
|
4412
|
+
this.avancarEDevolverAnterior();
|
|
4413
|
+
}
|
|
4414
|
+
}
|
|
4372
4415
|
}
|
|
4373
4416
|
if (this.performance) {
|
|
4374
4417
|
const deltaAnalise = (0, browser_process_hrtime_1.default)(inicioAnalise);
|
|
@@ -4383,7 +4426,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
4383
4426
|
}
|
|
4384
4427
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
4385
4428
|
|
|
4386
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-dados/dialetos/pitugues":186,"../../tipos-de-simbolos/pitugues":194,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":
|
|
4429
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-dados/dialetos/pitugues":186,"../../tipos-de-simbolos/pitugues":194,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":378}],7:[function(require,module,exports){
|
|
4387
4430
|
"use strict";
|
|
4388
4431
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4389
4432
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -5272,7 +5315,7 @@ class AvaliadorSintaticoPrisma extends avaliador_sintatico_base_1.AvaliadorSinta
|
|
|
5272
5315
|
}
|
|
5273
5316
|
exports.AvaliadorSintaticoPrisma = AvaliadorSintaticoPrisma;
|
|
5274
5317
|
|
|
5275
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-simbolos/prisma":196,"../avaliador-sintatico-base":1,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":
|
|
5318
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-simbolos/prisma":196,"../avaliador-sintatico-base":1,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":378}],9:[function(require,module,exports){
|
|
5276
5319
|
"use strict";
|
|
5277
5320
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5278
5321
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -5626,7 +5669,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5626
5669
|
* @returns A entidade chamada resolvida, se as validações passarem.
|
|
5627
5670
|
*/
|
|
5628
5671
|
resolverEntidadeChamada(entidadeChamada, argumentos, tipoPrimitiva = undefined) {
|
|
5629
|
-
if (entidadeChamada.constructor
|
|
5672
|
+
if (entidadeChamada.constructor === construtos_1.Variavel) {
|
|
5630
5673
|
const entidadeChamadaResolvidaVariavel = entidadeChamada;
|
|
5631
5674
|
if (tipoPrimitiva === undefined) {
|
|
5632
5675
|
// Provavelmente uma chamada a alguma função da biblioteca global.
|
|
@@ -5657,7 +5700,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5657
5700
|
}
|
|
5658
5701
|
return new construtos_1.ArgumentoReferenciaFuncao(entidadeChamada.hashArquivo, entidadeChamada.linha, entidadeChamadaResolvidaVariavel.simbolo);
|
|
5659
5702
|
}
|
|
5660
|
-
if (entidadeChamada.constructor
|
|
5703
|
+
if (entidadeChamada.constructor === construtos_1.AcessoMetodoOuPropriedade) {
|
|
5661
5704
|
return this.resolverEntidadeChamadaAcessoMetodoOuPropriedade(entidadeChamada);
|
|
5662
5705
|
}
|
|
5663
5706
|
return entidadeChamada;
|
|
@@ -5800,13 +5843,13 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5800
5843
|
if (this.verificarSeSimboloAtualEIgualA(tenda_1.default.IGUAL)) {
|
|
5801
5844
|
const igual = this.simbolos[this.atual - 1];
|
|
5802
5845
|
const valor = this.expressao();
|
|
5803
|
-
switch (expressao.constructor
|
|
5804
|
-
case
|
|
5846
|
+
switch (expressao.constructor) {
|
|
5847
|
+
case construtos_1.Variavel:
|
|
5805
5848
|
return new construtos_1.Atribuir(this.hashArquivo, expressao, valor);
|
|
5806
|
-
case
|
|
5849
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
5807
5850
|
const expressaoAcessoMetodoOuPropriedade = expressao;
|
|
5808
5851
|
return new construtos_1.DefinirValor(this.hashArquivo, igual.linha, expressaoAcessoMetodoOuPropriedade.objeto, expressaoAcessoMetodoOuPropriedade.simbolo, valor);
|
|
5809
|
-
case
|
|
5852
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
5810
5853
|
const expressaoAcessoIndiceVariavel = expressao;
|
|
5811
5854
|
return new construtos_1.AtribuicaoPorIndice(this.hashArquivo, expressaoAcessoIndiceVariavel.linha, expressaoAcessoIndiceVariavel.entidadeChamada, expressaoAcessoIndiceVariavel.indice, valor);
|
|
5812
5855
|
}
|
|
@@ -5905,12 +5948,10 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5905
5948
|
// tradicional de Delégua, com variável de controle e passo positivo, incrementado em 1.
|
|
5906
5949
|
const literalOuVariavelInicio = this.adicaoOuSubtracao();
|
|
5907
5950
|
this.blocos -= 1;
|
|
5908
|
-
switch (literalOuVariavelInicio.constructor
|
|
5909
|
-
case
|
|
5951
|
+
switch (literalOuVariavelInicio.constructor) {
|
|
5952
|
+
case construtos_1.Literal:
|
|
5910
5953
|
return this.declaracaoParaTradicional(simboloPara, nomeVariavelIteracao, literalOuVariavelInicio);
|
|
5911
5954
|
// TODO: Terminar
|
|
5912
|
-
case 'Variavel':
|
|
5913
|
-
case 'Vetor':
|
|
5914
5955
|
default:
|
|
5915
5956
|
return this.declaracaoParaCada(simboloPara, nomeVariavelIteracao, literalOuVariavelInicio);
|
|
5916
5957
|
}
|
|
@@ -6051,18 +6092,18 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6051
6092
|
return this.declaracaoExpressao();
|
|
6052
6093
|
}
|
|
6053
6094
|
logicaComumInferenciaTiposVariaveis(inicializador) {
|
|
6054
|
-
switch (inicializador.constructor
|
|
6055
|
-
case
|
|
6095
|
+
switch (inicializador.constructor) {
|
|
6096
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
6056
6097
|
const entidadeChamadaAcessoIndiceVariavel = inicializador
|
|
6057
6098
|
.entidadeChamada;
|
|
6058
6099
|
return entidadeChamadaAcessoIndiceVariavel.tipo.slice(0, -2);
|
|
6059
|
-
case
|
|
6100
|
+
case construtos_1.Chamada:
|
|
6060
6101
|
const entidadeChamadaChamada = inicializador.entidadeChamada;
|
|
6061
|
-
switch (entidadeChamadaChamada.constructor
|
|
6062
|
-
case
|
|
6102
|
+
switch (entidadeChamadaChamada.constructor) {
|
|
6103
|
+
case construtos_1.AcessoMetodo:
|
|
6063
6104
|
const entidadeChamadaAcessoMetodo = entidadeChamadaChamada;
|
|
6064
6105
|
return entidadeChamadaAcessoMetodo.tipoRetornoMetodo;
|
|
6065
|
-
case
|
|
6106
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
6066
6107
|
// Este caso ocorre quando a variável/constante é do tipo 'qualquer',
|
|
6067
6108
|
// e a chamada normalmente é feita para uma primitiva.
|
|
6068
6109
|
// A inferência, portanto, ocorre pelo uso da primitiva.
|
|
@@ -6071,38 +6112,38 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6071
6112
|
return this.primitivasConhecidas[entidadeChamadaAcessoMetodoOuPropriedade.simbolo.lexema].tipo;
|
|
6072
6113
|
}
|
|
6073
6114
|
throw new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(entidadeChamadaAcessoMetodoOuPropriedade.simbolo, `Primitiva '${entidadeChamadaAcessoMetodoOuPropriedade.simbolo.lexema}' não existe.`);
|
|
6074
|
-
case
|
|
6115
|
+
case construtos_1.AcessoPropriedade:
|
|
6075
6116
|
const entidadeChamadaAcessoPropriedade = entidadeChamadaChamada;
|
|
6076
6117
|
return entidadeChamadaAcessoPropriedade.tipoRetornoPropriedade;
|
|
6077
|
-
case
|
|
6118
|
+
case construtos_1.ArgumentoReferenciaFuncao:
|
|
6078
6119
|
// TODO: Voltar aqui se necessário.
|
|
6079
6120
|
return 'qualquer';
|
|
6080
|
-
case
|
|
6121
|
+
case construtos_1.ReferenciaFuncao:
|
|
6081
6122
|
const entidadeChamadaReferenciaFuncao = entidadeChamadaChamada;
|
|
6082
6123
|
return entidadeChamadaReferenciaFuncao.tipo;
|
|
6083
|
-
case
|
|
6124
|
+
case construtos_1.Variavel:
|
|
6084
6125
|
const entidadeChamadaVariavel = entidadeChamadaChamada;
|
|
6085
6126
|
return entidadeChamadaVariavel.tipo;
|
|
6086
6127
|
}
|
|
6087
6128
|
break;
|
|
6088
|
-
case
|
|
6129
|
+
case construtos_1.FuncaoConstruto:
|
|
6089
6130
|
const funcaoConstruto = inicializador;
|
|
6090
6131
|
return `função<${funcaoConstruto.tipo}>`;
|
|
6091
|
-
case
|
|
6132
|
+
case construtos_1.Leia:
|
|
6092
6133
|
return 'texto';
|
|
6093
|
-
case
|
|
6094
|
-
case
|
|
6095
|
-
case
|
|
6096
|
-
case
|
|
6097
|
-
case
|
|
6098
|
-
case
|
|
6099
|
-
case
|
|
6100
|
-
case
|
|
6101
|
-
case
|
|
6134
|
+
case tuplas_1.Dupla:
|
|
6135
|
+
case tuplas_1.Trio:
|
|
6136
|
+
case tuplas_1.Quarteto:
|
|
6137
|
+
case tuplas_1.Quinteto:
|
|
6138
|
+
case tuplas_1.Sexteto:
|
|
6139
|
+
case tuplas_1.Septeto:
|
|
6140
|
+
case tuplas_1.Octeto:
|
|
6141
|
+
case tuplas_1.Noneto:
|
|
6142
|
+
case tuplas_1.Deceto:
|
|
6102
6143
|
return delegua_1.default.TUPLA;
|
|
6103
|
-
case 'ImportarBiblioteca':
|
|
6144
|
+
/* case 'ImportarBiblioteca':
|
|
6104
6145
|
case 'ModuloDeclaracoes':
|
|
6105
|
-
return 'módulo';
|
|
6146
|
+
return 'módulo'; */
|
|
6106
6147
|
default:
|
|
6107
6148
|
return inicializador.tipo;
|
|
6108
6149
|
}
|
|
@@ -6166,7 +6207,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6166
6207
|
// Se o corpo for uma `Expressao`, corpo é convertido para `Retorna`.
|
|
6167
6208
|
// Tenda trabalha com retornos implícitos.
|
|
6168
6209
|
let corpoResolvido = [];
|
|
6169
|
-
if (corpo.constructor
|
|
6210
|
+
if (corpo.constructor === declaracoes_1.Expressao) {
|
|
6170
6211
|
const expressaoComoRetorna = new declaracoes_1.Retorna(new simbolo_1.Simbolo(tenda_1.default.RETORNA, 'retorna', 'retorna', parenteseEsquerdo.linha, this.hashArquivo), corpo.expressao);
|
|
6171
6212
|
corpoResolvido.push(expressaoComoRetorna);
|
|
6172
6213
|
}
|
|
@@ -6260,7 +6301,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6260
6301
|
}
|
|
6261
6302
|
exports.AvaliadorSintaticoTenda = AvaliadorSintaticoTenda;
|
|
6262
6303
|
|
|
6263
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../construtos/tuplas":68,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador/simbolo":183,"../../tipos-de-dados/delegua":185,"../../tipos-de-simbolos/tenda":197,"../avaliador-sintatico-base":1,"./../erro-avaliador-sintatico":12,"./../informacao-escopo":14,"./../pilha-escopos":18,"browser-process-hrtime":
|
|
6304
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../construtos/tuplas":68,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador/simbolo":183,"../../tipos-de-dados/delegua":185,"../../tipos-de-simbolos/tenda":197,"../avaliador-sintatico-base":1,"./../erro-avaliador-sintatico":12,"./../informacao-escopo":14,"./../pilha-escopos":18,"browser-process-hrtime":378}],10:[function(require,module,exports){
|
|
6264
6305
|
"use strict";
|
|
6265
6306
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6266
6307
|
if (k2 === undefined) k2 = k;
|
|
@@ -6910,7 +6951,7 @@ async function algum(interpretador, vetor, funcaoPesquisa) {
|
|
|
6910
6951
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
6911
6952
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
6912
6953
|
}
|
|
6913
|
-
if (valorFuncaoPesquisa.constructor
|
|
6954
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
6914
6955
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
6915
6956
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
6916
6957
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7147,7 +7188,7 @@ async function encontrar(interpretador, vetor, funcaoPesquisa) {
|
|
|
7147
7188
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7148
7189
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7149
7190
|
}
|
|
7150
|
-
if (valorFuncaoPesquisa.constructor
|
|
7191
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7151
7192
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7152
7193
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7153
7194
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7179,7 +7220,7 @@ async function encontrarIndice(interpretador, vetor, funcaoPesquisa) {
|
|
|
7179
7220
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7180
7221
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7181
7222
|
}
|
|
7182
|
-
if (valorFuncaoPesquisa.constructor
|
|
7223
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7183
7224
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7184
7225
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7185
7226
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7211,7 +7252,7 @@ async function encontrarUltimo(interpretador, vetor, funcaoPesquisa) {
|
|
|
7211
7252
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7212
7253
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7213
7254
|
}
|
|
7214
|
-
if (valorFuncaoPesquisa.constructor
|
|
7255
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7215
7256
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7216
7257
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7217
7258
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7242,7 +7283,7 @@ async function encontrarUltimoIndice(interpretador, vetor, funcaoPesquisa) {
|
|
|
7242
7283
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7243
7284
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7244
7285
|
}
|
|
7245
|
-
if (valorFuncaoPesquisa.constructor
|
|
7286
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7246
7287
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7247
7288
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7248
7289
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7278,8 +7319,7 @@ async function filtrarPor(interpretador, vetor, funcaoFiltragem) {
|
|
|
7278
7319
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7279
7320
|
}, 'Parâmetro inválido. O primeiro parâmetro da função filtrarPor() deve ser um vetor.'));
|
|
7280
7321
|
}
|
|
7281
|
-
|
|
7282
|
-
if (construtorResolvido !== 'DeleguaFuncao') {
|
|
7322
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7283
7323
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7284
7324
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7285
7325
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7400,8 +7440,7 @@ async function mapear(interpretador, vetor, funcaoMapeamento) {
|
|
|
7400
7440
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7401
7441
|
}, 'Parâmetro inválido. O primeiro parâmetro da função mapear() deve ser um vetor.'));
|
|
7402
7442
|
}
|
|
7403
|
-
|
|
7404
|
-
if (nomeConstrutorFuncaoMapeamento !== 'DeleguaFuncao') {
|
|
7443
|
+
if (valorFuncaoMapeamento.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7405
7444
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7406
7445
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7407
7446
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7495,7 +7534,7 @@ async function paraCada(interpretador, vetor, funcaoFiltragem) {
|
|
|
7495
7534
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7496
7535
|
}, 'Parâmetro inválido. O primeiro parâmetro da função paraCada() deve ser um vetor.'));
|
|
7497
7536
|
}
|
|
7498
|
-
if (valorFuncaoFiltragem.constructor
|
|
7537
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7499
7538
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7500
7539
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7501
7540
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7528,7 +7567,7 @@ async function primeiroEmCondicao(interpretador, vetor, funcaoFiltragem) {
|
|
|
7528
7567
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7529
7568
|
}, 'Parâmetro inválido. O primeiro parâmetro da função primeiroEmCondicao() deve ser um vetor.'));
|
|
7530
7569
|
}
|
|
7531
|
-
if (valorFuncaoFiltragem.constructor
|
|
7570
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7532
7571
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7533
7572
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7534
7573
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7582,7 +7621,7 @@ async function reduzir(interpretador, vetor, funcaoReducao, valorInicial = null)
|
|
|
7582
7621
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7583
7622
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7584
7623
|
}
|
|
7585
|
-
if (valorFuncaoReducao.constructor
|
|
7624
|
+
if (valorFuncaoReducao.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7586
7625
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7587
7626
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7588
7627
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7669,7 +7708,7 @@ async function todosEmCondicao(interpretador, vetor, funcaoCondicional) {
|
|
|
7669
7708
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7670
7709
|
}, 'Parâmetro inválido. O primeiro parâmetro da função todosEmCondicao() deve ser um vetor.'));
|
|
7671
7710
|
}
|
|
7672
|
-
if (valorFuncaoCondicional.constructor
|
|
7711
|
+
if (valorFuncaoCondicional.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7673
7712
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7674
7713
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7675
7714
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -11460,7 +11499,7 @@ class FormatadorDelegua {
|
|
|
11460
11499
|
this.codigoFormatado += `${' '.repeat(this.indentacaoAtual)}retorna`;
|
|
11461
11500
|
if (declaracao.valor) {
|
|
11462
11501
|
this.codigoFormatado += ` `;
|
|
11463
|
-
if (declaracao.valor.constructor
|
|
11502
|
+
if (declaracao.valor.constructor === construtos_1.FuncaoConstruto) {
|
|
11464
11503
|
this.codigoFormatado += `função`;
|
|
11465
11504
|
}
|
|
11466
11505
|
this.formatarDeclaracaoOuConstruto(declaracao.valor);
|
|
@@ -13830,24 +13869,24 @@ class InterpretadorBase {
|
|
|
13830
13869
|
if (expressao.indice) {
|
|
13831
13870
|
indice = await this.avaliar(expressao.indice);
|
|
13832
13871
|
}
|
|
13833
|
-
switch (expressao.alvo.constructor
|
|
13834
|
-
case
|
|
13872
|
+
switch (expressao.alvo.constructor) {
|
|
13873
|
+
case construtos_1.Variavel:
|
|
13835
13874
|
const alvoVariavel = expressao.alvo;
|
|
13836
13875
|
this.pilhaEscoposExecucao.atribuirVariavel(alvoVariavel.simbolo, valorResolvido, indice);
|
|
13837
13876
|
break;
|
|
13838
|
-
case
|
|
13877
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
13839
13878
|
// Nunca será método aqui: apenas propriedade.
|
|
13840
13879
|
const alvoPropriedade = expressao.alvo;
|
|
13841
13880
|
const variavelObjeto = await this.avaliar(alvoPropriedade.objeto);
|
|
13842
13881
|
const objeto = this.resolverValor(variavelObjeto);
|
|
13843
13882
|
const valor = await this.avaliar(expressao.valor);
|
|
13844
|
-
if (objeto.constructor
|
|
13883
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
13845
13884
|
const objetoDeleguaClasse = objeto;
|
|
13846
13885
|
objetoDeleguaClasse.definir(alvoPropriedade.simbolo, valor);
|
|
13847
13886
|
}
|
|
13848
13887
|
break;
|
|
13849
13888
|
default:
|
|
13850
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${expressao
|
|
13889
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${JSON.stringify(expressao)}.`);
|
|
13851
13890
|
}
|
|
13852
13891
|
return valorResolvido;
|
|
13853
13892
|
}
|
|
@@ -14360,11 +14399,11 @@ class InterpretadorBase {
|
|
|
14360
14399
|
async visitarExpressaoDefinirValor(expressao) {
|
|
14361
14400
|
const variavelObjeto = await this.avaliar(expressao.objeto);
|
|
14362
14401
|
const objeto = this.resolverValor(variavelObjeto);
|
|
14363
|
-
if (objeto.constructor
|
|
14402
|
+
if (objeto.constructor !== estruturas_1.ObjetoDeleguaClasse && objeto.constructor !== Object) {
|
|
14364
14403
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(expressao.nome, 'Somente instâncias e dicionários podem possuir campos.', expressao.linha));
|
|
14365
14404
|
}
|
|
14366
14405
|
const valor = await this.avaliar(expressao.valor);
|
|
14367
|
-
if (objeto.constructor
|
|
14406
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
14368
14407
|
objeto.definir(expressao.nome, valor);
|
|
14369
14408
|
return valor;
|
|
14370
14409
|
}
|
|
@@ -14426,7 +14465,7 @@ class InterpretadorBase {
|
|
|
14426
14465
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
14427
14466
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
14428
14467
|
// valor dele primeiro.
|
|
14429
|
-
if (variavelObjeto.constructor
|
|
14468
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
14430
14469
|
variavelObjeto = variavelObjeto.valor;
|
|
14431
14470
|
}
|
|
14432
14471
|
const objeto = this.resolverValor(variavelObjeto);
|
|
@@ -14586,8 +14625,8 @@ class InterpretadorBase {
|
|
|
14586
14625
|
retornoVetor += ']';
|
|
14587
14626
|
return retornoVetor;
|
|
14588
14627
|
}
|
|
14589
|
-
switch (objeto.constructor
|
|
14590
|
-
case
|
|
14628
|
+
switch (objeto.constructor) {
|
|
14629
|
+
case Object:
|
|
14591
14630
|
if ('tipo' in objeto) {
|
|
14592
14631
|
switch (objeto.tipo) {
|
|
14593
14632
|
case 'dicionário':
|
|
@@ -14744,7 +14783,7 @@ class InterpretadorBase {
|
|
|
14744
14783
|
exports.InterpretadorBase = InterpretadorBase;
|
|
14745
14784
|
|
|
14746
14785
|
}).call(this)}).call(this,require('_process'))
|
|
14747
|
-
},{"../avaliador-sintatico":13,"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../excecoes":110,"../inferenciador":116,"../lexador":177,"../quebras":184,"../tipos-de-dados/delegua":185,"../tipos-de-dados/primitivos":187,"../tipos-de-simbolos/delegua":190,"./espaco-memoria":144,"./estruturas":151,"./estruturas/metodo-primitiva":152,"./pilha-escopos-execucao":161,"_process":
|
|
14786
|
+
},{"../avaliador-sintatico":13,"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../excecoes":110,"../inferenciador":116,"../lexador":177,"../quebras":184,"../tipos-de-dados/delegua":185,"../tipos-de-dados/primitivos":187,"../tipos-de-simbolos/delegua":190,"./espaco-memoria":144,"./estruturas":151,"./estruturas/metodo-primitiva":152,"./pilha-escopos-execucao":161,"_process":432,"browser-process-hrtime":378}],159:[function(require,module,exports){
|
|
14748
14787
|
"use strict";
|
|
14749
14788
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14750
14789
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -14892,8 +14931,8 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14892
14931
|
}
|
|
14893
14932
|
return JSON.stringify(objetoEscrita);
|
|
14894
14933
|
}
|
|
14895
|
-
switch (objeto.constructor
|
|
14896
|
-
case
|
|
14934
|
+
switch (objeto.constructor) {
|
|
14935
|
+
case Object:
|
|
14897
14936
|
if ('tipo' in objeto) {
|
|
14898
14937
|
switch (objeto.tipo) {
|
|
14899
14938
|
case 'dicionário':
|
|
@@ -15190,7 +15229,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15190
15229
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
15191
15230
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
15192
15231
|
// valor dele primeiro.
|
|
15193
|
-
if (variavelObjeto.constructor
|
|
15232
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
15194
15233
|
variavelObjeto = variavelObjeto.valor;
|
|
15195
15234
|
}
|
|
15196
15235
|
const objeto = this.resolverValor(variavelObjeto);
|
|
@@ -15367,14 +15406,13 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15367
15406
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
15368
15407
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
15369
15408
|
// valor dele primeiro.
|
|
15370
|
-
if (variavelObjeto.constructor
|
|
15409
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
15371
15410
|
variavelObjeto = variavelObjeto.valor;
|
|
15372
15411
|
}
|
|
15373
15412
|
const objeto = this.resolverValor(variavelObjeto);
|
|
15374
15413
|
// Outro caso que `instanceof` simplesmente não funciona para casos em Liquido,
|
|
15375
15414
|
// então testamos também o nome do construtor.
|
|
15376
|
-
if (objeto
|
|
15377
|
-
(objeto.constructor && objeto.constructor.name === 'ObjetoDeleguaClasse')) {
|
|
15415
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
15378
15416
|
return objeto.obterMetodo(expressao.nomePropriedade) || null;
|
|
15379
15417
|
}
|
|
15380
15418
|
// Objeto simples do JavaScript, ou dicionário de Delégua.
|
|
@@ -15498,7 +15536,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15498
15536
|
const variavelObjeto = await this.avaliar(alvoPropriedade.objeto);
|
|
15499
15537
|
const objeto = this.resolverValor(variavelObjeto);
|
|
15500
15538
|
const valor = await this.avaliar(expressao.valor);
|
|
15501
|
-
if (objeto.constructor
|
|
15539
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
15502
15540
|
const objetoDeleguaClasse = objeto;
|
|
15503
15541
|
objetoDeleguaClasse.definir(alvoPropriedade.simbolo, valor);
|
|
15504
15542
|
}
|
|
@@ -15508,7 +15546,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15508
15546
|
}
|
|
15509
15547
|
break;
|
|
15510
15548
|
default:
|
|
15511
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${expressao
|
|
15549
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${JSON.stringify(expressao)}.`);
|
|
15512
15550
|
}
|
|
15513
15551
|
return valorResolvido;
|
|
15514
15552
|
}
|
|
@@ -16783,7 +16821,7 @@ class LexadorPitugues {
|
|
|
16783
16821
|
this.performance = performance;
|
|
16784
16822
|
this.simbolos = [];
|
|
16785
16823
|
this.erros = [];
|
|
16786
|
-
this.
|
|
16824
|
+
this.localizacoes = {};
|
|
16787
16825
|
this.inicioSimbolo = 0;
|
|
16788
16826
|
this.atual = 0;
|
|
16789
16827
|
this.linha = 0;
|
|
@@ -16965,7 +17003,7 @@ class LexadorPitugues {
|
|
|
16965
17003
|
espacos++;
|
|
16966
17004
|
this.avancar();
|
|
16967
17005
|
}
|
|
16968
|
-
this.
|
|
17006
|
+
this.localizacoes[this.linha + 1] = {
|
|
16969
17007
|
linha: this.linha + 1,
|
|
16970
17008
|
espacosIndentacao: espacos,
|
|
16971
17009
|
};
|
|
@@ -16991,12 +17029,13 @@ class LexadorPitugues {
|
|
|
16991
17029
|
switch (caractere) {
|
|
16992
17030
|
case ' ':
|
|
16993
17031
|
case '\t':
|
|
16994
|
-
this.avancar();
|
|
16995
|
-
break;
|
|
16996
17032
|
case '\r':
|
|
16997
17033
|
case '\n':
|
|
16998
17034
|
case '\0':
|
|
17035
|
+
this.avancar();
|
|
17036
|
+
break;
|
|
16999
17037
|
case ';':
|
|
17038
|
+
this.adicionarSimbolo(pitugues_2.default.PONTO_E_VIRGULA);
|
|
17000
17039
|
this.avancar();
|
|
17001
17040
|
break;
|
|
17002
17041
|
case '=':
|
|
@@ -17182,7 +17221,7 @@ class LexadorPitugues {
|
|
|
17182
17221
|
const inicioMapeamento = (0, browser_process_hrtime_1.default)();
|
|
17183
17222
|
this.simbolos = [];
|
|
17184
17223
|
this.erros = [];
|
|
17185
|
-
this.
|
|
17224
|
+
this.localizacoes = {};
|
|
17186
17225
|
this.inicioSimbolo = 0;
|
|
17187
17226
|
this.atual = 0;
|
|
17188
17227
|
this.linha = 0;
|
|
@@ -17202,13 +17241,13 @@ class LexadorPitugues {
|
|
|
17202
17241
|
return {
|
|
17203
17242
|
simbolos: this.simbolos,
|
|
17204
17243
|
erros: this.erros,
|
|
17205
|
-
pragmas: this.
|
|
17244
|
+
pragmas: this.localizacoes,
|
|
17206
17245
|
};
|
|
17207
17246
|
}
|
|
17208
17247
|
}
|
|
17209
17248
|
exports.LexadorPitugues = LexadorPitugues;
|
|
17210
17249
|
|
|
17211
|
-
},{"../../tipos-de-simbolos/pitugues":194,"../simbolo":183,"./palavras-reservadas/pitugues":173,"browser-process-hrtime":
|
|
17250
|
+
},{"../../tipos-de-simbolos/pitugues":194,"../simbolo":183,"./palavras-reservadas/pitugues":173,"browser-process-hrtime":378}],167:[function(require,module,exports){
|
|
17212
17251
|
"use strict";
|
|
17213
17252
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17214
17253
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17818,7 +17857,7 @@ class LexadorPrisma {
|
|
|
17818
17857
|
}
|
|
17819
17858
|
exports.LexadorPrisma = LexadorPrisma;
|
|
17820
17859
|
|
|
17821
|
-
},{"../../tipos-de-simbolos/prisma":196,"../simbolo":183,"./palavras-reservadas/prisma":175,"browser-process-hrtime":
|
|
17860
|
+
},{"../../tipos-de-simbolos/prisma":196,"../simbolo":183,"./palavras-reservadas/prisma":175,"browser-process-hrtime":378}],169:[function(require,module,exports){
|
|
17822
17861
|
"use strict";
|
|
17823
17862
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17824
17863
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18209,7 +18248,7 @@ class LexadorTenda {
|
|
|
18209
18248
|
}
|
|
18210
18249
|
exports.LexadorTenda = LexadorTenda;
|
|
18211
18250
|
|
|
18212
|
-
},{"../../tipos-de-simbolos/tenda":197,"../simbolo":183,"./palavras-reservadas/tenda":176,"browser-process-hrtime":
|
|
18251
|
+
},{"../../tipos-de-simbolos/tenda":197,"../simbolo":183,"./palavras-reservadas/tenda":176,"browser-process-hrtime":378}],170:[function(require,module,exports){
|
|
18213
18252
|
"use strict";
|
|
18214
18253
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18215
18254
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -19168,7 +19207,7 @@ class Lexador {
|
|
|
19168
19207
|
}
|
|
19169
19208
|
exports.Lexador = Lexador;
|
|
19170
19209
|
|
|
19171
|
-
},{"../tipos-de-simbolos/delegua":190,"./palavras-reservadas":182,"./simbolo":183,"browser-process-hrtime":
|
|
19210
|
+
},{"../tipos-de-simbolos/delegua":190,"./palavras-reservadas":182,"./simbolo":183,"browser-process-hrtime":378}],181:[function(require,module,exports){
|
|
19172
19211
|
"use strict";
|
|
19173
19212
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19174
19213
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -20230,6 +20269,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
20230
20269
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20231
20270
|
};
|
|
20232
20271
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20272
|
+
__exportStar(require("./tradutor-assembly-arm"), exports);
|
|
20273
|
+
__exportStar(require("./tradutor-assembly-x64"), exports);
|
|
20233
20274
|
__exportStar(require("./tradutor-assemblyscript"), exports);
|
|
20234
20275
|
__exportStar(require("./tradutor-calango"), exports);
|
|
20235
20276
|
__exportStar(require("./tradutor-javascript"), exports);
|
|
@@ -20240,7 +20281,138 @@ __exportStar(require("./tradutor-reverso-javascript"), exports);
|
|
|
20240
20281
|
__exportStar(require("./tradutor-reverso-python"), exports);
|
|
20241
20282
|
__exportStar(require("./tradutor-reverso-tenda"), exports);
|
|
20242
20283
|
|
|
20243
|
-
},{"./tradutor-assemblyscript":
|
|
20284
|
+
},{"./tradutor-assembly-arm":206,"./tradutor-assembly-x64":207,"./tradutor-assemblyscript":208,"./tradutor-calango":209,"./tradutor-javascript":210,"./tradutor-mermaidjs":211,"./tradutor-portugol-ipt":212,"./tradutor-python":213,"./tradutor-reverso-javascript":214,"./tradutor-reverso-python":215,"./tradutor-reverso-tenda":216}],199:[function(require,module,exports){
|
|
20285
|
+
"use strict";
|
|
20286
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20287
|
+
exports.ArestaFluxograma = void 0;
|
|
20288
|
+
class ArestaFluxograma {
|
|
20289
|
+
constructor(declaracao, texto) {
|
|
20290
|
+
this.declaracao = declaracao;
|
|
20291
|
+
this.texto = texto;
|
|
20292
|
+
}
|
|
20293
|
+
}
|
|
20294
|
+
exports.ArestaFluxograma = ArestaFluxograma;
|
|
20295
|
+
|
|
20296
|
+
},{}],200:[function(require,module,exports){
|
|
20297
|
+
"use strict";
|
|
20298
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20299
|
+
exports.DiagramaClasse = void 0;
|
|
20300
|
+
class DiagramaClasse {
|
|
20301
|
+
constructor(nome, superClasse) {
|
|
20302
|
+
this.nome = nome;
|
|
20303
|
+
this.superClasse = superClasse;
|
|
20304
|
+
this.metodos = [];
|
|
20305
|
+
this.propriedades = [];
|
|
20306
|
+
}
|
|
20307
|
+
paraTexto() {
|
|
20308
|
+
let resultado = ` classe ${this.nome} {\n`;
|
|
20309
|
+
// Adiciona propriedades (se houver)
|
|
20310
|
+
for (const prop of this.propriedades) {
|
|
20311
|
+
const tipo = prop.tipo ? `: ${prop.tipo}` : '';
|
|
20312
|
+
resultado += ` +${prop.nome}${tipo}\n`;
|
|
20313
|
+
}
|
|
20314
|
+
// Adiciona métodos
|
|
20315
|
+
for (const metodo of this.metodos) {
|
|
20316
|
+
const params = metodo.parametros.join(', ');
|
|
20317
|
+
const retorno = metodo.tipoRetorno ? `: ${metodo.tipoRetorno}` : '';
|
|
20318
|
+
resultado += ` +${metodo.nome}(${params})${retorno}\n`;
|
|
20319
|
+
}
|
|
20320
|
+
resultado += ` }\n`;
|
|
20321
|
+
// Adiciona herança se houver
|
|
20322
|
+
if (this.superClasse) {
|
|
20323
|
+
resultado += ` ${this.superClasse} <|-- ${this.nome}\n`;
|
|
20324
|
+
}
|
|
20325
|
+
return resultado;
|
|
20326
|
+
}
|
|
20327
|
+
}
|
|
20328
|
+
exports.DiagramaClasse = DiagramaClasse;
|
|
20329
|
+
|
|
20330
|
+
},{}],201:[function(require,module,exports){
|
|
20331
|
+
"use strict";
|
|
20332
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
20333
|
+
if (k2 === undefined) k2 = k;
|
|
20334
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20335
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
20336
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
20337
|
+
}
|
|
20338
|
+
Object.defineProperty(o, k2, desc);
|
|
20339
|
+
}) : (function(o, m, k, k2) {
|
|
20340
|
+
if (k2 === undefined) k2 = k;
|
|
20341
|
+
o[k2] = m[k];
|
|
20342
|
+
}));
|
|
20343
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
20344
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20345
|
+
};
|
|
20346
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20347
|
+
__exportStar(require("./aresta-fluxograma"), exports);
|
|
20348
|
+
__exportStar(require("./diagrama-classe"), exports);
|
|
20349
|
+
__exportStar(require("./subgrafo-classe"), exports);
|
|
20350
|
+
__exportStar(require("./vertice-fluxograma"), exports);
|
|
20351
|
+
|
|
20352
|
+
},{"./aresta-fluxograma":199,"./diagrama-classe":200,"./subgrafo-classe":202,"./vertice-fluxograma":203}],202:[function(require,module,exports){
|
|
20353
|
+
"use strict";
|
|
20354
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20355
|
+
exports.SubgrafoClasse = void 0;
|
|
20356
|
+
class SubgrafoClasse {
|
|
20357
|
+
constructor(nomeClasse, linha, superClasse) {
|
|
20358
|
+
this.nomeClasse = nomeClasse;
|
|
20359
|
+
this.linha = linha;
|
|
20360
|
+
this.superClasse = superClasse;
|
|
20361
|
+
this.vertices = [];
|
|
20362
|
+
this.metodos = [];
|
|
20363
|
+
}
|
|
20364
|
+
paraTexto() {
|
|
20365
|
+
let resultado = ` subgraph Classe_${this.nomeClasse}_${this.linha}["Classe: ${this.nomeClasse}`;
|
|
20366
|
+
if (this.superClasse) {
|
|
20367
|
+
resultado += ` (estende ${this.superClasse})`;
|
|
20368
|
+
}
|
|
20369
|
+
resultado += `"]\n`;
|
|
20370
|
+
resultado += ` direction TB\n`;
|
|
20371
|
+
// Nó de início da classe
|
|
20372
|
+
resultado += ` ClasseInicio_${this.nomeClasse}_${this.linha}((Início da Classe))\n`;
|
|
20373
|
+
// Adiciona os métodos como sub-subgrafos
|
|
20374
|
+
for (const metodo of this.metodos) {
|
|
20375
|
+
resultado += ` subgraph Metodo_${metodo.nome}_${this.nomeClasse}_${this.linha}["Método: ${metodo.nome}"]\n`;
|
|
20376
|
+
resultado += ` direction TB\n`;
|
|
20377
|
+
for (const vertice of metodo.vertices) {
|
|
20378
|
+
// Adiciona indentação extra para vértices dentro do método
|
|
20379
|
+
const textoVertice = vertice.paraTexto().replace(/^ {4}/, ' ');
|
|
20380
|
+
resultado += textoVertice;
|
|
20381
|
+
}
|
|
20382
|
+
resultado += ` end\n`;
|
|
20383
|
+
}
|
|
20384
|
+
// Conecta o início da classe aos métodos
|
|
20385
|
+
if (this.metodos.length > 0) {
|
|
20386
|
+
const primeiroMetodo = this.metodos[0];
|
|
20387
|
+
if (primeiroMetodo.vertices.length > 0) {
|
|
20388
|
+
const primeiraAresta = primeiroMetodo.vertices[0].origem.texto;
|
|
20389
|
+
resultado += ` ClasseInicio_${this.nomeClasse}_${this.linha} --> ${primeiraAresta}\n`;
|
|
20390
|
+
}
|
|
20391
|
+
}
|
|
20392
|
+
resultado += ` end\n`;
|
|
20393
|
+
return resultado;
|
|
20394
|
+
}
|
|
20395
|
+
}
|
|
20396
|
+
exports.SubgrafoClasse = SubgrafoClasse;
|
|
20397
|
+
|
|
20398
|
+
},{}],203:[function(require,module,exports){
|
|
20399
|
+
"use strict";
|
|
20400
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20401
|
+
exports.VerticeFluxograma = void 0;
|
|
20402
|
+
class VerticeFluxograma {
|
|
20403
|
+
constructor(origem, destino, texto) {
|
|
20404
|
+
this.origem = origem;
|
|
20405
|
+
this.destino = destino;
|
|
20406
|
+
this.texto = texto;
|
|
20407
|
+
}
|
|
20408
|
+
paraTexto() {
|
|
20409
|
+
const seta = this.texto ? `-->|${this.texto}|` : '-->';
|
|
20410
|
+
return ` ${this.origem.texto}${seta}${this.destino.texto};\n`;
|
|
20411
|
+
}
|
|
20412
|
+
}
|
|
20413
|
+
exports.VerticeFluxograma = VerticeFluxograma;
|
|
20414
|
+
|
|
20415
|
+
},{}],204:[function(require,module,exports){
|
|
20244
20416
|
"use strict";
|
|
20245
20417
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
20246
20418
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -21480,7 +21652,7 @@ __decorate([
|
|
|
21480
21652
|
Decorators_1.Override
|
|
21481
21653
|
], Python3Lexer.prototype, "nextToken", null);
|
|
21482
21654
|
|
|
21483
|
-
},{"./python3-parser":
|
|
21655
|
+
},{"./python3-parser":205,"antlr4ts/CommonToken":226,"antlr4ts/Decorators":230,"antlr4ts/Lexer":238,"antlr4ts/Token":255,"antlr4ts/VocabularyImpl":261,"antlr4ts/atn/ATNDeserializer":267,"antlr4ts/atn/LexerATNSimulator":288,"antlr4ts/misc/Utils":349}],205:[function(require,module,exports){
|
|
21484
21656
|
"use strict";
|
|
21485
21657
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
21486
21658
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -32727,7 +32899,1391 @@ class Yield_argContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
32727
32899
|
}
|
|
32728
32900
|
exports.Yield_argContext = Yield_argContext;
|
|
32729
32901
|
|
|
32730
|
-
},{"antlr4ts/FailedPredicateException":
|
|
32902
|
+
},{"antlr4ts/FailedPredicateException":234,"antlr4ts/NoViableAltException":242,"antlr4ts/Parser":243,"antlr4ts/ParserRuleContext":246,"antlr4ts/RecognitionException":249,"antlr4ts/Token":255,"antlr4ts/VocabularyImpl":261,"antlr4ts/atn/ATN":263,"antlr4ts/atn/ATNDeserializer":267,"antlr4ts/atn/ParserATNSimulator":304,"antlr4ts/misc/Utils":349}],206:[function(require,module,exports){
|
|
32903
|
+
"use strict";
|
|
32904
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32905
|
+
exports.TradutorAssemblyARM = void 0;
|
|
32906
|
+
const construtos_1 = require("../construtos");
|
|
32907
|
+
const declaracoes_1 = require("../declaracoes");
|
|
32908
|
+
class TradutorAssemblyARM {
|
|
32909
|
+
constructor(alvo = 'linux-arm') {
|
|
32910
|
+
this.alvo = alvo;
|
|
32911
|
+
this.indentacao = 0;
|
|
32912
|
+
this.contadorLabels = 0;
|
|
32913
|
+
this.variaveis = new Map();
|
|
32914
|
+
this.registradoresDisponiveis = ['r4', 'r5', 'r6', 'r7', 'r8', 'r9', 'r10'];
|
|
32915
|
+
this.pilhaRegistradores = [];
|
|
32916
|
+
this.bss = '.bss\n';
|
|
32917
|
+
this.data = '.data\n';
|
|
32918
|
+
this.dicionarioConstrutos = {
|
|
32919
|
+
AcessoIndiceVariavel: this.traduzirAcessoIndiceVariavel.bind(this),
|
|
32920
|
+
AcessoMetodoOuPropriedade: this.trazudirConstrutoAcessoMetodo.bind(this),
|
|
32921
|
+
Agrupamento: this.traduzirConstrutoAgrupamento.bind(this),
|
|
32922
|
+
AtribuicaoPorIndice: this.traduzirConstrutoAtribuicaoPorIndice.bind(this),
|
|
32923
|
+
Atribuir: this.traduzirConstrutoAtribuir.bind(this),
|
|
32924
|
+
Binario: this.traduzirConstrutoBinario.bind(this),
|
|
32925
|
+
Chamada: this.traduzirConstrutoChamada.bind(this),
|
|
32926
|
+
DefinirValor: this.traduzirConstrutoDefinirValor.bind(this),
|
|
32927
|
+
FuncaoConstruto: this.traduzirFuncaoConstruto.bind(this),
|
|
32928
|
+
Isto: () => 'this',
|
|
32929
|
+
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
32930
|
+
Logico: this.traduzirConstrutoLogico.bind(this),
|
|
32931
|
+
TipoDe: this.traduzirConstrutoTipoDe.bind(this),
|
|
32932
|
+
Unario: this.traduzirConstrutoUnario.bind(this),
|
|
32933
|
+
Variavel: this.traduzirConstrutoVariavel.bind(this),
|
|
32934
|
+
Vetor: this.traduzirConstrutoVetor.bind(this),
|
|
32935
|
+
};
|
|
32936
|
+
this.dicionarioDeclaracoes = {
|
|
32937
|
+
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
32938
|
+
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
32939
|
+
Continua: () => 'b .continue_label',
|
|
32940
|
+
Escolha: this.traduzirDeclaracaoEscolha.bind(this),
|
|
32941
|
+
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
32942
|
+
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
32943
|
+
Fazer: this.traduzirDeclaracaoFazer.bind(this),
|
|
32944
|
+
Falhar: this.traduzirDeclaracaoFalhar.bind(this),
|
|
32945
|
+
FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
32946
|
+
Importar: this.traduzirDeclaracaoImportar.bind(this),
|
|
32947
|
+
Leia: this.traduzirDeclaracaoLeia.bind(this),
|
|
32948
|
+
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
32949
|
+
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
32950
|
+
Retorna: this.traduzirDeclaracaoRetorna.bind(this),
|
|
32951
|
+
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
32952
|
+
Sustar: () => 'b .break_label',
|
|
32953
|
+
Classe: this.traduzirDeclaracaoClasse.bind(this),
|
|
32954
|
+
Tente: this.traduzirDeclaracaoTente.bind(this),
|
|
32955
|
+
Const: this.traduzirDeclaracaoConst.bind(this),
|
|
32956
|
+
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
32957
|
+
};
|
|
32958
|
+
this.indentacao = 0;
|
|
32959
|
+
// Seleciona o símbolo de entrada conforme a plataforma alvo.
|
|
32960
|
+
// Para linux-arm: programa standalone com _start.
|
|
32961
|
+
// Para android: ainda é um binário standalone, mas com rótulo Delegua_main
|
|
32962
|
+
// para deixar claro que não é o _start do CRT padrão.
|
|
32963
|
+
const entryLabel = this.alvo === 'android' ? 'Delegua_main' : '_start';
|
|
32964
|
+
this.text = `
|
|
32965
|
+
.text
|
|
32966
|
+
.global ${entryLabel}
|
|
32967
|
+
|
|
32968
|
+
${entryLabel}:`;
|
|
32969
|
+
}
|
|
32970
|
+
gerarDigitoAleatorio() {
|
|
32971
|
+
let result = '';
|
|
32972
|
+
const digits = '0123456789';
|
|
32973
|
+
for (let i = 0; i < 5; i++) {
|
|
32974
|
+
const randomIndex = Math.floor(Math.random() * digits.length);
|
|
32975
|
+
result += digits.charAt(randomIndex);
|
|
32976
|
+
}
|
|
32977
|
+
return result;
|
|
32978
|
+
}
|
|
32979
|
+
gerarLabel() {
|
|
32980
|
+
return `.L${this.contadorLabels++}`;
|
|
32981
|
+
}
|
|
32982
|
+
obterRegistrador() {
|
|
32983
|
+
if (this.registradoresDisponiveis.length > 0) {
|
|
32984
|
+
const reg = this.registradoresDisponiveis.pop();
|
|
32985
|
+
this.pilhaRegistradores.push(reg);
|
|
32986
|
+
return reg;
|
|
32987
|
+
}
|
|
32988
|
+
return 'r0'; // fallback
|
|
32989
|
+
}
|
|
32990
|
+
liberarRegistrador(reg) {
|
|
32991
|
+
const index = this.pilhaRegistradores.indexOf(reg);
|
|
32992
|
+
if (index > -1) {
|
|
32993
|
+
this.pilhaRegistradores.splice(index, 1);
|
|
32994
|
+
this.registradoresDisponiveis.push(reg);
|
|
32995
|
+
}
|
|
32996
|
+
}
|
|
32997
|
+
// Implementação dos Construtos
|
|
32998
|
+
traduzirAcessoIndiceVariavel(construto) {
|
|
32999
|
+
var _a;
|
|
33000
|
+
let nomeVar;
|
|
33001
|
+
if (construto.entidadeChamada instanceof construtos_1.Variavel) {
|
|
33002
|
+
nomeVar = (_a = construto.entidadeChamada.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33003
|
+
}
|
|
33004
|
+
if (!nomeVar) {
|
|
33005
|
+
nomeVar = 'unknown';
|
|
33006
|
+
}
|
|
33007
|
+
const indice = this.dicionarioConstrutos[construto.indice.constructor.name](construto.indice);
|
|
33008
|
+
const reg = this.obterRegistrador();
|
|
33009
|
+
this.text += `
|
|
33010
|
+
ldr ${reg}, =${nomeVar}
|
|
33011
|
+
ldr r0, =${indice}
|
|
33012
|
+
lsl r0, r0, #2 @ multiply index by 4 (word size)
|
|
33013
|
+
add ${reg}, ${reg}, r0
|
|
33014
|
+
ldr r0, [${reg}]`;
|
|
33015
|
+
this.liberarRegistrador(reg);
|
|
33016
|
+
return 'r0';
|
|
33017
|
+
}
|
|
33018
|
+
trazudirConstrutoAcessoMetodo(construto) {
|
|
33019
|
+
const objeto = this.dicionarioConstrutos[construto.objeto.constructor.name](construto.objeto);
|
|
33020
|
+
return `${objeto}_${construto.nomeMetodo}`;
|
|
33021
|
+
}
|
|
33022
|
+
traduzirConstrutoAgrupamento(construto) {
|
|
33023
|
+
return this.dicionarioConstrutos[construto.expressao.constructor.name](construto.expressao);
|
|
33024
|
+
}
|
|
33025
|
+
traduzirConstrutoAtribuicaoPorIndice(construto) {
|
|
33026
|
+
var _a;
|
|
33027
|
+
let nomeVar;
|
|
33028
|
+
if (construto.objeto instanceof construtos_1.Variavel) {
|
|
33029
|
+
nomeVar = (_a = construto.objeto.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33030
|
+
}
|
|
33031
|
+
if (!nomeVar) {
|
|
33032
|
+
nomeVar = 'unknown';
|
|
33033
|
+
}
|
|
33034
|
+
const indice = this.dicionarioConstrutos[construto.indice.constructor.name](construto.indice);
|
|
33035
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33036
|
+
const reg = this.obterRegistrador();
|
|
33037
|
+
this.text += `
|
|
33038
|
+
ldr ${reg}, =${nomeVar}
|
|
33039
|
+
ldr r1, =${indice}
|
|
33040
|
+
lsl r1, r1, #2 @ multiply by 4
|
|
33041
|
+
add ${reg}, ${reg}, r1
|
|
33042
|
+
ldr r1, =${valor}
|
|
33043
|
+
str r1, [${reg}]`;
|
|
33044
|
+
this.liberarRegistrador(reg);
|
|
33045
|
+
}
|
|
33046
|
+
traduzirConstrutoAtribuir(construto) {
|
|
33047
|
+
var _a;
|
|
33048
|
+
let nomeVar;
|
|
33049
|
+
if (construto.alvo instanceof construtos_1.Variavel) {
|
|
33050
|
+
nomeVar = (_a = construto.alvo.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33051
|
+
}
|
|
33052
|
+
if (!nomeVar) {
|
|
33053
|
+
return;
|
|
33054
|
+
}
|
|
33055
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33056
|
+
if (!this.variaveis.has(nomeVar)) {
|
|
33057
|
+
const varLabel = `var_${nomeVar}`;
|
|
33058
|
+
this.bss += ` ${varLabel}: .space 4\n`;
|
|
33059
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
33060
|
+
}
|
|
33061
|
+
this.text += `
|
|
33062
|
+
ldr r0, =${valor}
|
|
33063
|
+
ldr r1, =${this.variaveis.get(nomeVar)}
|
|
33064
|
+
str r0, [r1]`;
|
|
33065
|
+
}
|
|
33066
|
+
traduzirConstrutoBinario(construto) {
|
|
33067
|
+
const esquerda = this.dicionarioConstrutos[construto.esquerda.constructor.name](construto.esquerda);
|
|
33068
|
+
const direita = this.dicionarioConstrutos[construto.direita.constructor.name](construto.direita);
|
|
33069
|
+
const operador = construto.operador.lexema;
|
|
33070
|
+
const reg = this.obterRegistrador();
|
|
33071
|
+
// Load left operand into r0
|
|
33072
|
+
if (esquerda !== 'r0') {
|
|
33073
|
+
this.text += `
|
|
33074
|
+
ldr r0, =${esquerda}`;
|
|
33075
|
+
}
|
|
33076
|
+
// Load right operand into reg
|
|
33077
|
+
this.text += `
|
|
33078
|
+
ldr ${reg}, =${direita}`;
|
|
33079
|
+
switch (operador) {
|
|
33080
|
+
case '+':
|
|
33081
|
+
this.text += `
|
|
33082
|
+
add r0, r0, ${reg}`;
|
|
33083
|
+
break;
|
|
33084
|
+
case '-':
|
|
33085
|
+
this.text += `
|
|
33086
|
+
sub r0, r0, ${reg}`;
|
|
33087
|
+
break;
|
|
33088
|
+
case '*':
|
|
33089
|
+
this.text += `
|
|
33090
|
+
mul r0, r0, ${reg}`;
|
|
33091
|
+
break;
|
|
33092
|
+
case '/':
|
|
33093
|
+
this.text += `
|
|
33094
|
+
sdiv r0, r0, ${reg}`;
|
|
33095
|
+
break;
|
|
33096
|
+
case '%':
|
|
33097
|
+
this.text += `
|
|
33098
|
+
sdiv r1, r0, ${reg}
|
|
33099
|
+
mul r1, r1, ${reg}
|
|
33100
|
+
sub r0, r0, r1 @ r0 = r0 - (r0/reg)*reg`;
|
|
33101
|
+
break;
|
|
33102
|
+
case '<':
|
|
33103
|
+
this.text += `
|
|
33104
|
+
cmp r0, ${reg}
|
|
33105
|
+
movlt r0, #1
|
|
33106
|
+
movge r0, #0`;
|
|
33107
|
+
break;
|
|
33108
|
+
case '>':
|
|
33109
|
+
this.text += `
|
|
33110
|
+
cmp r0, ${reg}
|
|
33111
|
+
movgt r0, #1
|
|
33112
|
+
movle r0, #0`;
|
|
33113
|
+
break;
|
|
33114
|
+
case '<=':
|
|
33115
|
+
this.text += `
|
|
33116
|
+
cmp r0, ${reg}
|
|
33117
|
+
movle r0, #1
|
|
33118
|
+
movgt r0, #0`;
|
|
33119
|
+
break;
|
|
33120
|
+
case '>=':
|
|
33121
|
+
this.text += `
|
|
33122
|
+
cmp r0, ${reg}
|
|
33123
|
+
movge r0, #1
|
|
33124
|
+
movlt r0, #0`;
|
|
33125
|
+
break;
|
|
33126
|
+
case '==':
|
|
33127
|
+
case '===':
|
|
33128
|
+
this.text += `
|
|
33129
|
+
cmp r0, ${reg}
|
|
33130
|
+
moveq r0, #1
|
|
33131
|
+
movne r0, #0`;
|
|
33132
|
+
break;
|
|
33133
|
+
case '!=':
|
|
33134
|
+
case '!==':
|
|
33135
|
+
this.text += `
|
|
33136
|
+
cmp r0, ${reg}
|
|
33137
|
+
movne r0, #1
|
|
33138
|
+
moveq r0, #0`;
|
|
33139
|
+
break;
|
|
33140
|
+
default:
|
|
33141
|
+
this.text += `
|
|
33142
|
+
@ Operador ${operador} não implementado`;
|
|
33143
|
+
}
|
|
33144
|
+
this.liberarRegistrador(reg);
|
|
33145
|
+
return 'r0';
|
|
33146
|
+
}
|
|
33147
|
+
traduzirConstrutoChamada(construto) {
|
|
33148
|
+
var _a;
|
|
33149
|
+
let nomeFuncao = 'funcao';
|
|
33150
|
+
if (construto.entidadeChamada instanceof construtos_1.Variavel) {
|
|
33151
|
+
nomeFuncao = ((_a = construto.entidadeChamada.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'funcao';
|
|
33152
|
+
}
|
|
33153
|
+
// ARM calling convention: r0-r3 for first 4 args, rest on stack
|
|
33154
|
+
const registrosArgs = ['r0', 'r1', 'r2', 'r3'];
|
|
33155
|
+
construto.argumentos.forEach((arg, index) => {
|
|
33156
|
+
if (index < registrosArgs.length) {
|
|
33157
|
+
const valorArg = this.dicionarioConstrutos[arg.constructor.name](arg);
|
|
33158
|
+
if (valorArg !== registrosArgs[index]) {
|
|
33159
|
+
this.text += `
|
|
33160
|
+
ldr ${registrosArgs[index]}, =${valorArg}`;
|
|
33161
|
+
}
|
|
33162
|
+
}
|
|
33163
|
+
else {
|
|
33164
|
+
// Push extra args on stack
|
|
33165
|
+
const valorArg = this.dicionarioConstrutos[arg.constructor.name](arg);
|
|
33166
|
+
this.text += `
|
|
33167
|
+
ldr r0, =${valorArg}
|
|
33168
|
+
push {r0}`;
|
|
33169
|
+
}
|
|
33170
|
+
});
|
|
33171
|
+
this.text += `
|
|
33172
|
+
bl ${nomeFuncao}`;
|
|
33173
|
+
}
|
|
33174
|
+
traduzirConstrutoDefinirValor(construto) {
|
|
33175
|
+
const objeto = this.dicionarioConstrutos[construto.objeto.constructor.name](construto.objeto);
|
|
33176
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33177
|
+
this.text += `
|
|
33178
|
+
ldr r0, =${valor}
|
|
33179
|
+
ldr r1, =${objeto}
|
|
33180
|
+
str r0, [r1]`;
|
|
33181
|
+
}
|
|
33182
|
+
traduzirFuncaoConstruto(construto) {
|
|
33183
|
+
const labelFuncao = `func_${this.gerarDigitoAleatorio()}`;
|
|
33184
|
+
this.text += `
|
|
33185
|
+
|
|
33186
|
+
${labelFuncao}:
|
|
33187
|
+
push {fp, lr}
|
|
33188
|
+
mov fp, sp`;
|
|
33189
|
+
// Traduzir corpo da função
|
|
33190
|
+
if (construto.corpo && Array.isArray(construto.corpo)) {
|
|
33191
|
+
construto.corpo.forEach((declaracao) => {
|
|
33192
|
+
if (this.dicionarioDeclaracoes[declaracao.constructor.name]) {
|
|
33193
|
+
this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao);
|
|
33194
|
+
}
|
|
33195
|
+
});
|
|
33196
|
+
}
|
|
33197
|
+
this.text += `
|
|
33198
|
+
mov sp, fp
|
|
33199
|
+
pop {fp, pc}`;
|
|
33200
|
+
}
|
|
33201
|
+
traduzirConstrutoLiteral(construto) {
|
|
33202
|
+
if (typeof construto.valor === 'string') {
|
|
33203
|
+
return this.criaStringLiteral(construto);
|
|
33204
|
+
}
|
|
33205
|
+
return String(construto.valor);
|
|
33206
|
+
}
|
|
33207
|
+
traduzirConstrutoLogico(construto) {
|
|
33208
|
+
const esquerda = this.dicionarioConstrutos[construto.esquerda.constructor.name](construto.esquerda);
|
|
33209
|
+
const direita = this.dicionarioConstrutos[construto.direita.constructor.name](construto.direita);
|
|
33210
|
+
const operador = construto.operador.lexema;
|
|
33211
|
+
const labelVerdadeiro = this.gerarLabel();
|
|
33212
|
+
const labelFim = this.gerarLabel();
|
|
33213
|
+
this.text += `
|
|
33214
|
+
ldr r0, =${esquerda}
|
|
33215
|
+
cmp r0, #0`;
|
|
33216
|
+
if (operador === 'e' || operador === '&&') {
|
|
33217
|
+
this.text += `
|
|
33218
|
+
beq ${labelFim}
|
|
33219
|
+
ldr r0, =${direita}
|
|
33220
|
+
cmp r0, #0
|
|
33221
|
+
beq ${labelFim}
|
|
33222
|
+
${labelVerdadeiro}:
|
|
33223
|
+
mov r0, #1
|
|
33224
|
+
${labelFim}:`;
|
|
33225
|
+
}
|
|
33226
|
+
else if (operador === 'ou' || operador === '||') {
|
|
33227
|
+
this.text += `
|
|
33228
|
+
bne ${labelVerdadeiro}
|
|
33229
|
+
ldr r0, =${direita}
|
|
33230
|
+
cmp r0, #0
|
|
33231
|
+
bne ${labelVerdadeiro}
|
|
33232
|
+
mov r0, #0
|
|
33233
|
+
b ${labelFim}
|
|
33234
|
+
${labelVerdadeiro}:
|
|
33235
|
+
mov r0, #1
|
|
33236
|
+
${labelFim}:`;
|
|
33237
|
+
}
|
|
33238
|
+
return 'r0';
|
|
33239
|
+
}
|
|
33240
|
+
traduzirConstrutoTipoDe(construto) {
|
|
33241
|
+
const expressao = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33242
|
+
return expressao;
|
|
33243
|
+
}
|
|
33244
|
+
traduzirConstrutoUnario(construto) {
|
|
33245
|
+
const operando = this.dicionarioConstrutos[construto.operando.constructor.name](construto.operando);
|
|
33246
|
+
const operador = construto.operador.lexema;
|
|
33247
|
+
this.text += `
|
|
33248
|
+
ldr r0, =${operando}`;
|
|
33249
|
+
if (operador === '-') {
|
|
33250
|
+
this.text += `
|
|
33251
|
+
neg r0, r0`;
|
|
33252
|
+
}
|
|
33253
|
+
else if (operador === '!' || operador === 'nao') {
|
|
33254
|
+
this.text += `
|
|
33255
|
+
cmp r0, #0
|
|
33256
|
+
moveq r0, #1
|
|
33257
|
+
movne r0, #0`;
|
|
33258
|
+
}
|
|
33259
|
+
return 'r0';
|
|
33260
|
+
}
|
|
33261
|
+
traduzirConstrutoVariavel(construto) {
|
|
33262
|
+
var _a;
|
|
33263
|
+
const nomeVar = (_a = construto.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33264
|
+
if (nomeVar && this.variaveis.has(nomeVar)) {
|
|
33265
|
+
const varLabel = this.variaveis.get(nomeVar);
|
|
33266
|
+
this.text += `
|
|
33267
|
+
ldr r0, =${varLabel}
|
|
33268
|
+
ldr r0, [r0]`;
|
|
33269
|
+
return 'r0';
|
|
33270
|
+
}
|
|
33271
|
+
return nomeVar || 'unknown';
|
|
33272
|
+
}
|
|
33273
|
+
traduzirConstrutoVetor(construto) {
|
|
33274
|
+
var _a;
|
|
33275
|
+
const labelVetor = `vetor_${this.gerarDigitoAleatorio()}`;
|
|
33276
|
+
const tamanho = ((_a = construto.valores) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
33277
|
+
this.bss += ` ${labelVetor}: .space ${tamanho * 4}\n`;
|
|
33278
|
+
if (construto.valores && Array.isArray(construto.valores)) {
|
|
33279
|
+
construto.valores.forEach((valor, index) => {
|
|
33280
|
+
if (this.dicionarioConstrutos[valor.constructor.name]) {
|
|
33281
|
+
const valorTraduzido = this.dicionarioConstrutos[valor.constructor.name](valor);
|
|
33282
|
+
this.text += `
|
|
33283
|
+
ldr r0, =${valorTraduzido}
|
|
33284
|
+
ldr r1, =${labelVetor}
|
|
33285
|
+
str r0, [r1, #${index * 4}]`;
|
|
33286
|
+
}
|
|
33287
|
+
});
|
|
33288
|
+
}
|
|
33289
|
+
return labelVetor;
|
|
33290
|
+
}
|
|
33291
|
+
// Implementação das Declarações
|
|
33292
|
+
traduzirDeclaracaoBloco(declaracao) {
|
|
33293
|
+
if (declaracao.declaracoes && Array.isArray(declaracao.declaracoes)) {
|
|
33294
|
+
declaracao.declaracoes.forEach((decl) => {
|
|
33295
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33296
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33297
|
+
}
|
|
33298
|
+
});
|
|
33299
|
+
}
|
|
33300
|
+
}
|
|
33301
|
+
traduzirDeclaracaoEnquanto(declaracao) {
|
|
33302
|
+
const labelInicio = this.gerarLabel();
|
|
33303
|
+
const labelFim = this.gerarLabel();
|
|
33304
|
+
this.text += `
|
|
33305
|
+
${labelInicio}:`;
|
|
33306
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
33307
|
+
this.text += `
|
|
33308
|
+
cmp ${condicao}, #0
|
|
33309
|
+
beq ${labelFim}`;
|
|
33310
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
33311
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
33312
|
+
}
|
|
33313
|
+
this.text += `
|
|
33314
|
+
b ${labelInicio}
|
|
33315
|
+
${labelFim}:`;
|
|
33316
|
+
}
|
|
33317
|
+
traduzirDeclaracaoEscolha(declaracao) {
|
|
33318
|
+
const labelFim = this.gerarLabel();
|
|
33319
|
+
const valorEscolha = this.dicionarioConstrutos[declaracao.identificadorOuLiteral.constructor.name](declaracao.identificadorOuLiteral);
|
|
33320
|
+
if (declaracao.caminhos && Array.isArray(declaracao.caminhos)) {
|
|
33321
|
+
declaracao.caminhos.forEach((caminho) => {
|
|
33322
|
+
const labelProximo = this.gerarLabel();
|
|
33323
|
+
if (caminho.condicoes && caminho.condicoes[0]) {
|
|
33324
|
+
const valorCaso = this.dicionarioConstrutos[caminho.condicoes[0].constructor.name](caminho.condicoes[0]);
|
|
33325
|
+
this.text += `
|
|
33326
|
+
ldr r0, =${valorEscolha}
|
|
33327
|
+
ldr r1, =${valorCaso}
|
|
33328
|
+
cmp r0, r1
|
|
33329
|
+
bne ${labelProximo}`;
|
|
33330
|
+
if (caminho.declaracoes && Array.isArray(caminho.declaracoes)) {
|
|
33331
|
+
caminho.declaracoes.forEach((decl) => {
|
|
33332
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33333
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33334
|
+
}
|
|
33335
|
+
});
|
|
33336
|
+
}
|
|
33337
|
+
this.text += `
|
|
33338
|
+
b ${labelFim}
|
|
33339
|
+
${labelProximo}:`;
|
|
33340
|
+
}
|
|
33341
|
+
});
|
|
33342
|
+
}
|
|
33343
|
+
this.text += `
|
|
33344
|
+
${labelFim}:`;
|
|
33345
|
+
}
|
|
33346
|
+
traduzirDeclaracaoExpressao(declaracao) {
|
|
33347
|
+
if (declaracao.expressao && this.dicionarioConstrutos[declaracao.expressao.constructor.name]) {
|
|
33348
|
+
this.dicionarioConstrutos[declaracao.expressao.constructor.name](declaracao.expressao);
|
|
33349
|
+
}
|
|
33350
|
+
}
|
|
33351
|
+
traduzirDeclaracaoFazer(declaracao) {
|
|
33352
|
+
const labelInicio = this.gerarLabel();
|
|
33353
|
+
this.text += `
|
|
33354
|
+
${labelInicio}:`;
|
|
33355
|
+
if (declaracao.caminhoFazer && declaracao.caminhoFazer.declaracoes) {
|
|
33356
|
+
declaracao.caminhoFazer.declaracoes.forEach((decl) => {
|
|
33357
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33358
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33359
|
+
}
|
|
33360
|
+
});
|
|
33361
|
+
}
|
|
33362
|
+
if (declaracao.condicaoEnquanto) {
|
|
33363
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicaoEnquanto.constructor.name](declaracao.condicaoEnquanto);
|
|
33364
|
+
this.text += `
|
|
33365
|
+
cmp ${condicao}, #0
|
|
33366
|
+
bne ${labelInicio}`;
|
|
33367
|
+
}
|
|
33368
|
+
}
|
|
33369
|
+
traduzirDeclaracaoFalhar(declaracao) {
|
|
33370
|
+
let mensagem = '"Erro"';
|
|
33371
|
+
if (declaracao.explicacao && typeof declaracao.explicacao === 'object' && 'constructor' in declaracao.explicacao) {
|
|
33372
|
+
const explicacao = declaracao.explicacao;
|
|
33373
|
+
if (explicacao.constructor && this.dicionarioConstrutos[explicacao.constructor.name]) {
|
|
33374
|
+
mensagem = this.dicionarioConstrutos[explicacao.constructor.name](explicacao);
|
|
33375
|
+
}
|
|
33376
|
+
}
|
|
33377
|
+
this.text += `
|
|
33378
|
+
@ Falhar com mensagem: ${mensagem}
|
|
33379
|
+
mov r0, #1
|
|
33380
|
+
mov r7, #1 @ sys_exit
|
|
33381
|
+
swi 0`;
|
|
33382
|
+
}
|
|
33383
|
+
traduzirDeclaracaoFuncao(declaracao) {
|
|
33384
|
+
var _a;
|
|
33385
|
+
const nomeFuncao = ((_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'funcao';
|
|
33386
|
+
this.text += `
|
|
33387
|
+
|
|
33388
|
+
${nomeFuncao}:
|
|
33389
|
+
push {fp, lr}
|
|
33390
|
+
mov fp, sp`;
|
|
33391
|
+
if (declaracao.funcao && declaracao.funcao.corpo && Array.isArray(declaracao.funcao.corpo)) {
|
|
33392
|
+
declaracao.funcao.corpo.forEach((decl) => {
|
|
33393
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33394
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33395
|
+
}
|
|
33396
|
+
});
|
|
33397
|
+
}
|
|
33398
|
+
this.text += `
|
|
33399
|
+
mov sp, fp
|
|
33400
|
+
pop {fp, pc}`;
|
|
33401
|
+
}
|
|
33402
|
+
traduzirDeclaracaoImportar(declaracao) {
|
|
33403
|
+
this.text += `
|
|
33404
|
+
@ Importar: ${declaracao.caminho || 'unknown'}`;
|
|
33405
|
+
}
|
|
33406
|
+
traduzirDeclaracaoLeia(declaracao) {
|
|
33407
|
+
var _a;
|
|
33408
|
+
let nomeVar;
|
|
33409
|
+
if (declaracao.argumentos && declaracao.argumentos[0] && declaracao.argumentos[0] instanceof construtos_1.Variavel) {
|
|
33410
|
+
nomeVar = (_a = declaracao.argumentos[0].simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33411
|
+
}
|
|
33412
|
+
if (!nomeVar)
|
|
33413
|
+
return;
|
|
33414
|
+
if (!this.variaveis.has(nomeVar)) {
|
|
33415
|
+
const varLabel = `var_${nomeVar}`;
|
|
33416
|
+
this.bss += ` ${varLabel}: .space 256\n`;
|
|
33417
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
33418
|
+
}
|
|
33419
|
+
this.text += `
|
|
33420
|
+
ldr r1, =${this.variaveis.get(nomeVar)}
|
|
33421
|
+
mov r2, #256
|
|
33422
|
+
mov r0, #0 @ stdin
|
|
33423
|
+
mov r7, #3 @ sys_read
|
|
33424
|
+
swi 0`;
|
|
33425
|
+
}
|
|
33426
|
+
traduzirDeclaracaoPara(declaracao) {
|
|
33427
|
+
const labelInicio = this.gerarLabel();
|
|
33428
|
+
const labelFim = this.gerarLabel();
|
|
33429
|
+
if (declaracao.inicializador) {
|
|
33430
|
+
const tipoInicializador = declaracao.inicializador.constructor.name;
|
|
33431
|
+
if (this.dicionarioDeclaracoes[tipoInicializador]) {
|
|
33432
|
+
this.dicionarioDeclaracoes[tipoInicializador](declaracao.inicializador);
|
|
33433
|
+
}
|
|
33434
|
+
else if (this.dicionarioConstrutos[tipoInicializador]) {
|
|
33435
|
+
this.dicionarioConstrutos[tipoInicializador](declaracao.inicializador);
|
|
33436
|
+
}
|
|
33437
|
+
}
|
|
33438
|
+
this.text += `
|
|
33439
|
+
${labelInicio}:`;
|
|
33440
|
+
if (declaracao.condicao) {
|
|
33441
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
33442
|
+
this.text += `
|
|
33443
|
+
cmp ${condicao}, #0
|
|
33444
|
+
beq ${labelFim}`;
|
|
33445
|
+
}
|
|
33446
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
33447
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
33448
|
+
}
|
|
33449
|
+
if (declaracao.incrementar) {
|
|
33450
|
+
if (this.dicionarioConstrutos[declaracao.incrementar.constructor.name]) {
|
|
33451
|
+
this.dicionarioConstrutos[declaracao.incrementar.constructor.name](declaracao.incrementar);
|
|
33452
|
+
}
|
|
33453
|
+
}
|
|
33454
|
+
this.text += `
|
|
33455
|
+
b ${labelInicio}
|
|
33456
|
+
${labelFim}:`;
|
|
33457
|
+
}
|
|
33458
|
+
traduzirDeclaracaoParaCada(declaracao) {
|
|
33459
|
+
var _a;
|
|
33460
|
+
const labelInicio = this.gerarLabel();
|
|
33461
|
+
const labelFim = this.gerarLabel();
|
|
33462
|
+
let nomeVar;
|
|
33463
|
+
if (declaracao.variavelIteracao instanceof construtos_1.Variavel) {
|
|
33464
|
+
nomeVar = (_a = declaracao.variavelIteracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33465
|
+
}
|
|
33466
|
+
const vetor = declaracao.vetorOuDicionario;
|
|
33467
|
+
let tamanhoVetor = 0;
|
|
33468
|
+
if (vetor instanceof construtos_1.Vetor) {
|
|
33469
|
+
tamanhoVetor = vetor.tamanho || 0;
|
|
33470
|
+
}
|
|
33471
|
+
this.text += `
|
|
33472
|
+
mov r4, #0 @ counter
|
|
33473
|
+
${labelInicio}:
|
|
33474
|
+
cmp r4, #${tamanhoVetor}
|
|
33475
|
+
bge ${labelFim}`;
|
|
33476
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
33477
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
33478
|
+
}
|
|
33479
|
+
this.text += `
|
|
33480
|
+
add r4, r4, #1
|
|
33481
|
+
b ${labelInicio}
|
|
33482
|
+
${labelFim}:`;
|
|
33483
|
+
}
|
|
33484
|
+
traduzirDeclaracaoRetorna(declaracao) {
|
|
33485
|
+
if (declaracao.valor) {
|
|
33486
|
+
const valor = this.dicionarioConstrutos[declaracao.valor.constructor.name](declaracao.valor);
|
|
33487
|
+
this.text += `
|
|
33488
|
+
ldr r0, =${valor}`;
|
|
33489
|
+
}
|
|
33490
|
+
this.text += `
|
|
33491
|
+
mov sp, fp
|
|
33492
|
+
pop {fp, pc}`;
|
|
33493
|
+
}
|
|
33494
|
+
traduzirDeclaracaoSe(declaracao) {
|
|
33495
|
+
const labelSenao = this.gerarLabel();
|
|
33496
|
+
const labelFim = this.gerarLabel();
|
|
33497
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
33498
|
+
this.text += `
|
|
33499
|
+
cmp ${condicao}, #0
|
|
33500
|
+
beq ${labelSenao}`;
|
|
33501
|
+
if (this.dicionarioDeclaracoes[declaracao.caminhoEntao.constructor.name]) {
|
|
33502
|
+
this.dicionarioDeclaracoes[declaracao.caminhoEntao.constructor.name](declaracao.caminhoEntao);
|
|
33503
|
+
}
|
|
33504
|
+
this.text += `
|
|
33505
|
+
b ${labelFim}
|
|
33506
|
+
${labelSenao}:`;
|
|
33507
|
+
if (declaracao.caminhoSenao && this.dicionarioDeclaracoes[declaracao.caminhoSenao.constructor.name]) {
|
|
33508
|
+
this.dicionarioDeclaracoes[declaracao.caminhoSenao.constructor.name](declaracao.caminhoSenao);
|
|
33509
|
+
}
|
|
33510
|
+
this.text += `
|
|
33511
|
+
${labelFim}:`;
|
|
33512
|
+
}
|
|
33513
|
+
traduzirDeclaracaoClasse(declaracao) {
|
|
33514
|
+
var _a;
|
|
33515
|
+
this.text += `
|
|
33516
|
+
@ Classe: ${((_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'unknown'}`;
|
|
33517
|
+
}
|
|
33518
|
+
traduzirDeclaracaoTente(declaracao) {
|
|
33519
|
+
this.text += `
|
|
33520
|
+
@ Tente-pegue`;
|
|
33521
|
+
if (declaracao.caminhoTente && Array.isArray(declaracao.caminhoTente)) {
|
|
33522
|
+
declaracao.caminhoTente.forEach((decl) => {
|
|
33523
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33524
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33525
|
+
}
|
|
33526
|
+
});
|
|
33527
|
+
}
|
|
33528
|
+
}
|
|
33529
|
+
traduzirDeclaracaoConst(declaracao) {
|
|
33530
|
+
var _a;
|
|
33531
|
+
const nomeVar = (_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33532
|
+
if (!nomeVar)
|
|
33533
|
+
return;
|
|
33534
|
+
const valor = this.dicionarioConstrutos[declaracao.inicializador.constructor.name](declaracao.inicializador);
|
|
33535
|
+
const varLabel = `const_${nomeVar}`;
|
|
33536
|
+
this.data += ` ${varLabel}: .word ${valor}\n`;
|
|
33537
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
33538
|
+
}
|
|
33539
|
+
traduzirDeclaracaoVar(declaracao) {
|
|
33540
|
+
var _a;
|
|
33541
|
+
const nomeVar = (_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33542
|
+
if (!nomeVar)
|
|
33543
|
+
return;
|
|
33544
|
+
const varLabel = `var_${nomeVar}`;
|
|
33545
|
+
this.bss += ` ${varLabel}: .space 4\n`;
|
|
33546
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
33547
|
+
if (declaracao.inicializador && declaracao.inicializador.valor !== null) {
|
|
33548
|
+
const tipoInicializador = declaracao.inicializador.constructor.name;
|
|
33549
|
+
// Verificar se é um vetor
|
|
33550
|
+
if (declaracao.inicializador instanceof construtos_1.Vetor) {
|
|
33551
|
+
// Vetor precisa de tratamento especial
|
|
33552
|
+
const labelVetor = this.traduzirConstrutoVetor(declaracao.inicializador);
|
|
33553
|
+
// Associar o nome da variável com o label do vetor
|
|
33554
|
+
this.variaveis.set(nomeVar, labelVetor);
|
|
33555
|
+
}
|
|
33556
|
+
else if (this.dicionarioConstrutos[tipoInicializador]) {
|
|
33557
|
+
const valor = this.dicionarioConstrutos[tipoInicializador](declaracao.inicializador);
|
|
33558
|
+
this.text += `
|
|
33559
|
+
ldr r0, =${valor}
|
|
33560
|
+
ldr r1, =${varLabel}
|
|
33561
|
+
str r0, [r1]`;
|
|
33562
|
+
}
|
|
33563
|
+
}
|
|
33564
|
+
}
|
|
33565
|
+
criaStringLiteral(literal) {
|
|
33566
|
+
const varLiteral = `Delegua_${this.gerarDigitoAleatorio()}`;
|
|
33567
|
+
this.data += ` ${varLiteral}: .asciz "${literal.valor}"\n`;
|
|
33568
|
+
return varLiteral;
|
|
33569
|
+
}
|
|
33570
|
+
criaTamanhoNaMemoriaReferenteAVar(nomeStringLiteral) {
|
|
33571
|
+
const varTamanho = `tam_${nomeStringLiteral}`;
|
|
33572
|
+
// Em ARM, calculamos o tamanho de forma diferente
|
|
33573
|
+
// Podemos usar uma diretiva ou calcular em tempo de execução
|
|
33574
|
+
return varTamanho;
|
|
33575
|
+
}
|
|
33576
|
+
traduzirDeclaracaoEscreva(declaracaoEscreva) {
|
|
33577
|
+
let tam_string_literal = '';
|
|
33578
|
+
let nome_string_literal = '';
|
|
33579
|
+
if (declaracaoEscreva.argumentos[0] instanceof construtos_1.Literal) {
|
|
33580
|
+
nome_string_literal = this.criaStringLiteral(declaracaoEscreva.argumentos[0]);
|
|
33581
|
+
const stringValue = declaracaoEscreva.argumentos[0].valor;
|
|
33582
|
+
tam_string_literal = String(stringValue.length);
|
|
33583
|
+
}
|
|
33584
|
+
// Para ambos linux-arm e android, continuamos usando a convenção
|
|
33585
|
+
// de syscall Linux ARM (write). Em Android típico, esse binário
|
|
33586
|
+
// seria executado via adb/Termux, onde essa convenção ainda é válida.
|
|
33587
|
+
this.text += `
|
|
33588
|
+
ldr r1, =${nome_string_literal}
|
|
33589
|
+
mov r2, #${tam_string_literal}
|
|
33590
|
+
mov r0, #1 @ fd stdout
|
|
33591
|
+
mov r7, #4 @ sys_write
|
|
33592
|
+
swi 0`;
|
|
33593
|
+
}
|
|
33594
|
+
saidaSistema() {
|
|
33595
|
+
// Mesmo comentário da função Escreva: usamos sys_exit Linux.
|
|
33596
|
+
// Em um futuro modo Android "NDK/JNI", esta função deveria
|
|
33597
|
+
// apenas retornar ao chamador em vez de fazer syscall direta.
|
|
33598
|
+
this.text += `
|
|
33599
|
+
mov r0, #1 @ exit status
|
|
33600
|
+
mov r7, #1 @ sys_exit
|
|
33601
|
+
swi 0`;
|
|
33602
|
+
}
|
|
33603
|
+
traduzir(declaracoes) {
|
|
33604
|
+
let resultado = '';
|
|
33605
|
+
this.declaracoesDeClasses = declaracoes.filter((declaracao) => declaracao instanceof declaracoes_1.Classe);
|
|
33606
|
+
for (const declaracao of declaracoes) {
|
|
33607
|
+
if (this.dicionarioDeclaracoes[declaracao.constructor.name]) {
|
|
33608
|
+
this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao);
|
|
33609
|
+
}
|
|
33610
|
+
}
|
|
33611
|
+
this.saidaSistema();
|
|
33612
|
+
resultado += this.bss + '\n' + this.data + '\n' + this.text;
|
|
33613
|
+
return resultado;
|
|
33614
|
+
}
|
|
33615
|
+
}
|
|
33616
|
+
exports.TradutorAssemblyARM = TradutorAssemblyARM;
|
|
33617
|
+
|
|
33618
|
+
},{"../construtos":51,"../declaracoes":96}],207:[function(require,module,exports){
|
|
33619
|
+
"use strict";
|
|
33620
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33621
|
+
exports.TradutorAssemblyX64 = void 0;
|
|
33622
|
+
const construtos_1 = require("../construtos");
|
|
33623
|
+
const declaracoes_1 = require("../declaracoes");
|
|
33624
|
+
class TradutorAssemblyX64 {
|
|
33625
|
+
constructor(alvo = 'linux') {
|
|
33626
|
+
this.alvo = alvo;
|
|
33627
|
+
this.indentacao = 0;
|
|
33628
|
+
this.contadorLabels = 0;
|
|
33629
|
+
this.variaveis = new Map();
|
|
33630
|
+
this.registradoresDisponiveis = ['rbx', 'r12', 'r13', 'r14', 'r15'];
|
|
33631
|
+
this.pilhaRegistradores = [];
|
|
33632
|
+
this.bss = 'section .bss\n';
|
|
33633
|
+
this.data = 'section .data\n';
|
|
33634
|
+
this.dicionarioConstrutos = {
|
|
33635
|
+
AcessoIndiceVariavel: this.traduzirAcessoIndiceVariavel.bind(this),
|
|
33636
|
+
AcessoMetodoOuPropriedade: this.trazudirConstrutoAcessoMetodo.bind(this),
|
|
33637
|
+
Agrupamento: this.traduzirConstrutoAgrupamento.bind(this),
|
|
33638
|
+
AtribuicaoPorIndice: this.traduzirConstrutoAtribuicaoPorIndice.bind(this),
|
|
33639
|
+
Atribuir: this.traduzirConstrutoAtribuir.bind(this),
|
|
33640
|
+
Binario: this.traduzirConstrutoBinario.bind(this),
|
|
33641
|
+
Chamada: this.traduzirConstrutoChamada.bind(this),
|
|
33642
|
+
DefinirValor: this.traduzirConstrutoDefinirValor.bind(this),
|
|
33643
|
+
FuncaoConstruto: this.traduzirFuncaoConstruto.bind(this),
|
|
33644
|
+
Isto: () => 'this',
|
|
33645
|
+
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
33646
|
+
Logico: this.traduzirConstrutoLogico.bind(this),
|
|
33647
|
+
TipoDe: this.traduzirConstrutoTipoDe.bind(this),
|
|
33648
|
+
Unario: this.traduzirConstrutoUnario.bind(this),
|
|
33649
|
+
Variavel: this.traduzirConstrutoVariavel.bind(this),
|
|
33650
|
+
Vetor: this.traduzirConstrutoVetor.bind(this),
|
|
33651
|
+
};
|
|
33652
|
+
this.dicionarioDeclaracoes = {
|
|
33653
|
+
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
33654
|
+
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
33655
|
+
Continua: () => 'continue',
|
|
33656
|
+
Escolha: this.traduzirDeclaracaoEscolha.bind(this),
|
|
33657
|
+
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
33658
|
+
Fazer: this.traduzirDeclaracaoFazer.bind(this),
|
|
33659
|
+
Falhar: this.traduzirDeclaracaoFalhar.bind(this),
|
|
33660
|
+
FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
33661
|
+
Importar: this.traduzirDeclaracaoImportar.bind(this),
|
|
33662
|
+
Leia: this.traduzirDeclaracaoLeia.bind(this),
|
|
33663
|
+
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
33664
|
+
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
33665
|
+
Retorna: this.traduzirDeclaracaoRetorna.bind(this),
|
|
33666
|
+
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
33667
|
+
Sustar: () => 'break',
|
|
33668
|
+
Classe: this.traduzirDeclaracaoClasse.bind(this),
|
|
33669
|
+
Tente: this.traduzirDeclaracaoTente.bind(this),
|
|
33670
|
+
Const: this.traduzirDeclaracaoConst.bind(this),
|
|
33671
|
+
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
33672
|
+
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
33673
|
+
};
|
|
33674
|
+
this.indentacao = 0;
|
|
33675
|
+
this.text = `
|
|
33676
|
+
section .text
|
|
33677
|
+
${this.alvo === 'linux' ? 'global _start' : 'global main'}
|
|
33678
|
+
${this.alvo === 'linux' ? '_start:' : 'main:'}`;
|
|
33679
|
+
if (this.alvo === 'windows') {
|
|
33680
|
+
this.text = `
|
|
33681
|
+
extern printf
|
|
33682
|
+
` + this.text;
|
|
33683
|
+
}
|
|
33684
|
+
}
|
|
33685
|
+
gerarDigitoAleatorio() {
|
|
33686
|
+
let result = '';
|
|
33687
|
+
const digits = '0123456789';
|
|
33688
|
+
for (let i = 0; i < 5; i++) {
|
|
33689
|
+
const randomIndex = Math.floor(Math.random() * digits.length);
|
|
33690
|
+
result += digits.charAt(randomIndex);
|
|
33691
|
+
}
|
|
33692
|
+
return result;
|
|
33693
|
+
}
|
|
33694
|
+
gerarLabel() {
|
|
33695
|
+
return `L${this.contadorLabels++}`;
|
|
33696
|
+
}
|
|
33697
|
+
obterRegistrador() {
|
|
33698
|
+
if (this.registradoresDisponiveis.length > 0) {
|
|
33699
|
+
const reg = this.registradoresDisponiveis.pop();
|
|
33700
|
+
this.pilhaRegistradores.push(reg);
|
|
33701
|
+
return reg;
|
|
33702
|
+
}
|
|
33703
|
+
return 'rax'; // fallback
|
|
33704
|
+
}
|
|
33705
|
+
liberarRegistrador(reg) {
|
|
33706
|
+
const index = this.pilhaRegistradores.indexOf(reg);
|
|
33707
|
+
if (index > -1) {
|
|
33708
|
+
this.pilhaRegistradores.splice(index, 1);
|
|
33709
|
+
this.registradoresDisponiveis.push(reg);
|
|
33710
|
+
}
|
|
33711
|
+
}
|
|
33712
|
+
// Implementação dos Construtos
|
|
33713
|
+
traduzirAcessoIndiceVariavel(construto) {
|
|
33714
|
+
var _a;
|
|
33715
|
+
let nomeVar;
|
|
33716
|
+
if (construto.entidadeChamada instanceof construtos_1.Variavel) {
|
|
33717
|
+
nomeVar = (_a = construto.entidadeChamada.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33718
|
+
}
|
|
33719
|
+
if (!nomeVar) {
|
|
33720
|
+
nomeVar = 'unknown';
|
|
33721
|
+
}
|
|
33722
|
+
const indice = this.dicionarioConstrutos[construto.indice.constructor.name](construto.indice);
|
|
33723
|
+
return `[${nomeVar} + ${indice} * 8]`;
|
|
33724
|
+
}
|
|
33725
|
+
trazudirConstrutoAcessoMetodo(construto) {
|
|
33726
|
+
const objeto = this.dicionarioConstrutos[construto.objeto.constructor.name](construto.objeto);
|
|
33727
|
+
return `${objeto}.${construto.nomeMetodo}`;
|
|
33728
|
+
}
|
|
33729
|
+
traduzirConstrutoAgrupamento(construto) {
|
|
33730
|
+
return this.dicionarioConstrutos[construto.expressao.constructor.name](construto.expressao);
|
|
33731
|
+
}
|
|
33732
|
+
traduzirConstrutoAtribuicaoPorIndice(construto) {
|
|
33733
|
+
var _a;
|
|
33734
|
+
let nomeVar;
|
|
33735
|
+
if (construto.objeto instanceof construtos_1.Variavel) {
|
|
33736
|
+
nomeVar = (_a = construto.objeto.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33737
|
+
}
|
|
33738
|
+
if (!nomeVar) {
|
|
33739
|
+
nomeVar = 'unknown';
|
|
33740
|
+
}
|
|
33741
|
+
const indice = this.dicionarioConstrutos[construto.indice.constructor.name](construto.indice);
|
|
33742
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33743
|
+
this.text += `
|
|
33744
|
+
mov rax, ${valor}
|
|
33745
|
+
mov [${nomeVar} + ${indice} * 8], rax`;
|
|
33746
|
+
}
|
|
33747
|
+
traduzirConstrutoAtribuir(construto) {
|
|
33748
|
+
var _a;
|
|
33749
|
+
// Atribuir tem a estrutura: { alvo, valor }
|
|
33750
|
+
let nomeVar;
|
|
33751
|
+
if (construto.alvo instanceof construtos_1.Variavel) {
|
|
33752
|
+
nomeVar = (_a = construto.alvo.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33753
|
+
}
|
|
33754
|
+
if (!nomeVar) {
|
|
33755
|
+
return;
|
|
33756
|
+
}
|
|
33757
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33758
|
+
if (!this.variaveis.has(nomeVar)) {
|
|
33759
|
+
const varLabel = `var_${nomeVar}`;
|
|
33760
|
+
this.bss += ` ${varLabel} resq 1\n`;
|
|
33761
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
33762
|
+
}
|
|
33763
|
+
this.text += `
|
|
33764
|
+
mov rax, ${valor}
|
|
33765
|
+
mov [${this.variaveis.get(nomeVar)}], rax`;
|
|
33766
|
+
}
|
|
33767
|
+
traduzirConstrutoBinario(construto) {
|
|
33768
|
+
const esquerda = this.dicionarioConstrutos[construto.esquerda.constructor.name](construto.esquerda);
|
|
33769
|
+
const direita = this.dicionarioConstrutos[construto.direita.constructor.name](construto.direita);
|
|
33770
|
+
const operador = construto.operador.lexema;
|
|
33771
|
+
const reg = this.obterRegistrador();
|
|
33772
|
+
this.text += `
|
|
33773
|
+
mov rax, ${esquerda}
|
|
33774
|
+
mov ${reg}, ${direita}`;
|
|
33775
|
+
switch (operador) {
|
|
33776
|
+
case '+':
|
|
33777
|
+
this.text += `
|
|
33778
|
+
add rax, ${reg}`;
|
|
33779
|
+
break;
|
|
33780
|
+
case '-':
|
|
33781
|
+
this.text += `
|
|
33782
|
+
sub rax, ${reg}`;
|
|
33783
|
+
break;
|
|
33784
|
+
case '*':
|
|
33785
|
+
this.text += `
|
|
33786
|
+
imul rax, ${reg}`;
|
|
33787
|
+
break;
|
|
33788
|
+
case '/':
|
|
33789
|
+
this.text += `
|
|
33790
|
+
xor rdx, rdx
|
|
33791
|
+
idiv ${reg}`;
|
|
33792
|
+
break;
|
|
33793
|
+
case '%':
|
|
33794
|
+
this.text += `
|
|
33795
|
+
xor rdx, rdx
|
|
33796
|
+
idiv ${reg}
|
|
33797
|
+
mov rax, rdx`;
|
|
33798
|
+
break;
|
|
33799
|
+
default:
|
|
33800
|
+
this.text += `
|
|
33801
|
+
; Operador ${operador} não implementado`;
|
|
33802
|
+
}
|
|
33803
|
+
this.liberarRegistrador(reg);
|
|
33804
|
+
return 'rax';
|
|
33805
|
+
}
|
|
33806
|
+
traduzirConstrutoChamada(construto) {
|
|
33807
|
+
var _a;
|
|
33808
|
+
let nomeFuncao = 'funcao';
|
|
33809
|
+
if (construto.entidadeChamada instanceof construtos_1.Variavel) {
|
|
33810
|
+
nomeFuncao = ((_a = construto.entidadeChamada.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'funcao';
|
|
33811
|
+
}
|
|
33812
|
+
// Preparar argumentos (convenção de chamada System V AMD64)
|
|
33813
|
+
const registrosArgs = this.alvo === 'linux'
|
|
33814
|
+
? ['rdi', 'rsi', 'rdx', 'rcx', 'r8', 'r9'] // System V AMD64 [web:8]
|
|
33815
|
+
: ['rcx', 'rdx', 'r8', 'r9']; // Windows x64 [web:2]
|
|
33816
|
+
construto.argumentos.forEach((arg, index) => {
|
|
33817
|
+
if (index < registrosArgs.length) {
|
|
33818
|
+
const valorArg = this.dicionarioConstrutos[arg.constructor.name](arg);
|
|
33819
|
+
this.text += `
|
|
33820
|
+
mov ${registrosArgs[index]}, ${valorArg}`;
|
|
33821
|
+
}
|
|
33822
|
+
else {
|
|
33823
|
+
// TODO: push extra args on stack according to target ABI
|
|
33824
|
+
}
|
|
33825
|
+
});
|
|
33826
|
+
this.text += `
|
|
33827
|
+
call ${nomeFuncao}`;
|
|
33828
|
+
}
|
|
33829
|
+
traduzirConstrutoDefinirValor(construto) {
|
|
33830
|
+
const objeto = this.dicionarioConstrutos[construto.objeto.constructor.name](construto.objeto);
|
|
33831
|
+
const valor = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33832
|
+
this.text += `
|
|
33833
|
+
mov rax, ${valor}
|
|
33834
|
+
mov [${objeto}], rax`;
|
|
33835
|
+
}
|
|
33836
|
+
traduzirFuncaoConstruto(construto) {
|
|
33837
|
+
const labelFuncao = `func_${this.gerarDigitoAleatorio()}`;
|
|
33838
|
+
this.text += `
|
|
33839
|
+
${labelFuncao}:
|
|
33840
|
+
push rbp
|
|
33841
|
+
mov rbp, rsp`;
|
|
33842
|
+
// Traduzir corpo da função
|
|
33843
|
+
if (construto.corpo && Array.isArray(construto.corpo)) {
|
|
33844
|
+
construto.corpo.forEach((declaracao) => {
|
|
33845
|
+
if (this.dicionarioDeclaracoes[declaracao.constructor.name]) {
|
|
33846
|
+
this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao);
|
|
33847
|
+
}
|
|
33848
|
+
});
|
|
33849
|
+
}
|
|
33850
|
+
this.text += `
|
|
33851
|
+
pop rbp
|
|
33852
|
+
ret`;
|
|
33853
|
+
}
|
|
33854
|
+
traduzirConstrutoLiteral(construto) {
|
|
33855
|
+
if (typeof construto.valor === 'string') {
|
|
33856
|
+
return this.criaStringLiteral(construto);
|
|
33857
|
+
}
|
|
33858
|
+
return String(construto.valor);
|
|
33859
|
+
}
|
|
33860
|
+
traduzirConstrutoLogico(construto) {
|
|
33861
|
+
const esquerda = this.dicionarioConstrutos[construto.esquerda.constructor.name](construto.esquerda);
|
|
33862
|
+
const direita = this.dicionarioConstrutos[construto.direita.constructor.name](construto.direita);
|
|
33863
|
+
const operador = construto.operador.lexema;
|
|
33864
|
+
const labelVerdadeiro = this.gerarLabel();
|
|
33865
|
+
const labelFim = this.gerarLabel();
|
|
33866
|
+
this.text += `
|
|
33867
|
+
mov rax, ${esquerda}
|
|
33868
|
+
cmp rax, 0`;
|
|
33869
|
+
if (operador === 'e' || operador === '&&') {
|
|
33870
|
+
this.text += `
|
|
33871
|
+
je ${labelFim}
|
|
33872
|
+
mov rax, ${direita}
|
|
33873
|
+
cmp rax, 0
|
|
33874
|
+
je ${labelFim}
|
|
33875
|
+
${labelVerdadeiro}:
|
|
33876
|
+
mov rax, 1
|
|
33877
|
+
${labelFim}:`;
|
|
33878
|
+
}
|
|
33879
|
+
else if (operador === 'ou' || operador === '||') {
|
|
33880
|
+
this.text += `
|
|
33881
|
+
jne ${labelVerdadeiro}
|
|
33882
|
+
mov rax, ${direita}
|
|
33883
|
+
cmp rax, 0
|
|
33884
|
+
jne ${labelVerdadeiro}
|
|
33885
|
+
mov rax, 0
|
|
33886
|
+
jmp ${labelFim}
|
|
33887
|
+
${labelVerdadeiro}:
|
|
33888
|
+
mov rax, 1
|
|
33889
|
+
${labelFim}:`;
|
|
33890
|
+
}
|
|
33891
|
+
return 'rax';
|
|
33892
|
+
}
|
|
33893
|
+
traduzirConstrutoTipoDe(construto) {
|
|
33894
|
+
// Simplificado - retorna tipo como número
|
|
33895
|
+
const expressao = this.dicionarioConstrutos[construto.valor.constructor.name](construto.valor);
|
|
33896
|
+
return expressao;
|
|
33897
|
+
}
|
|
33898
|
+
traduzirConstrutoUnario(construto) {
|
|
33899
|
+
const operando = this.dicionarioConstrutos[construto.operando.constructor.name](construto.operando);
|
|
33900
|
+
const operador = construto.operador.lexema;
|
|
33901
|
+
this.text += `
|
|
33902
|
+
mov rax, ${operando}`;
|
|
33903
|
+
if (operador === '-') {
|
|
33904
|
+
this.text += `
|
|
33905
|
+
neg rax`;
|
|
33906
|
+
}
|
|
33907
|
+
else if (operador === '!' || operador === 'nao') {
|
|
33908
|
+
this.text += `
|
|
33909
|
+
cmp rax, 0
|
|
33910
|
+
sete al
|
|
33911
|
+
movzx rax, al`;
|
|
33912
|
+
}
|
|
33913
|
+
return 'rax';
|
|
33914
|
+
}
|
|
33915
|
+
traduzirConstrutoVariavel(construto) {
|
|
33916
|
+
var _a;
|
|
33917
|
+
const nomeVar = (_a = construto.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
33918
|
+
if (nomeVar && this.variaveis.has(nomeVar)) {
|
|
33919
|
+
return `[${this.variaveis.get(nomeVar)}]`;
|
|
33920
|
+
}
|
|
33921
|
+
return nomeVar || 'unknown';
|
|
33922
|
+
}
|
|
33923
|
+
traduzirConstrutoVetor(construto) {
|
|
33924
|
+
var _a;
|
|
33925
|
+
const labelVetor = `vetor_${this.gerarDigitoAleatorio()}`;
|
|
33926
|
+
const tamanho = ((_a = construto.valores) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
33927
|
+
this.bss += ` ${labelVetor} resq ${tamanho}\n`;
|
|
33928
|
+
if (construto.valores && Array.isArray(construto.valores)) {
|
|
33929
|
+
construto.valores.forEach((valor, index) => {
|
|
33930
|
+
if (this.dicionarioConstrutos[valor.constructor.name]) {
|
|
33931
|
+
const valorTraduzido = this.dicionarioConstrutos[valor.constructor.name](valor);
|
|
33932
|
+
this.text += `
|
|
33933
|
+
mov rax, ${valorTraduzido}
|
|
33934
|
+
mov [${labelVetor} + ${index * 8}], rax`;
|
|
33935
|
+
}
|
|
33936
|
+
});
|
|
33937
|
+
}
|
|
33938
|
+
return labelVetor;
|
|
33939
|
+
}
|
|
33940
|
+
// Implementação das Declarações
|
|
33941
|
+
traduzirDeclaracaoBloco(declaracao) {
|
|
33942
|
+
if (declaracao.declaracoes && Array.isArray(declaracao.declaracoes)) {
|
|
33943
|
+
declaracao.declaracoes.forEach((decl) => {
|
|
33944
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33945
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33946
|
+
}
|
|
33947
|
+
});
|
|
33948
|
+
}
|
|
33949
|
+
}
|
|
33950
|
+
traduzirDeclaracaoEnquanto(declaracao) {
|
|
33951
|
+
const labelInicio = this.gerarLabel();
|
|
33952
|
+
const labelFim = this.gerarLabel();
|
|
33953
|
+
this.text += `
|
|
33954
|
+
${labelInicio}:`;
|
|
33955
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
33956
|
+
this.text += `
|
|
33957
|
+
cmp ${condicao}, 0
|
|
33958
|
+
je ${labelFim}`;
|
|
33959
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
33960
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
33961
|
+
}
|
|
33962
|
+
this.text += `
|
|
33963
|
+
jmp ${labelInicio}
|
|
33964
|
+
${labelFim}:`;
|
|
33965
|
+
}
|
|
33966
|
+
traduzirDeclaracaoEscolha(declaracao) {
|
|
33967
|
+
const labelFim = this.gerarLabel();
|
|
33968
|
+
const valorEscolha = this.dicionarioConstrutos[declaracao.identificadorOuLiteral.constructor.name](declaracao.identificadorOuLiteral);
|
|
33969
|
+
if (declaracao.caminhos && Array.isArray(declaracao.caminhos)) {
|
|
33970
|
+
declaracao.caminhos.forEach((caminho) => {
|
|
33971
|
+
const labelProximo = this.gerarLabel();
|
|
33972
|
+
if (caminho.condicoes && caminho.condicoes[0]) {
|
|
33973
|
+
const valorCaso = this.dicionarioConstrutos[caminho.condicoes[0].constructor.name](caminho.condicoes[0]);
|
|
33974
|
+
this.text += `
|
|
33975
|
+
mov rax, ${valorEscolha}
|
|
33976
|
+
cmp rax, ${valorCaso}
|
|
33977
|
+
jne ${labelProximo}`;
|
|
33978
|
+
if (caminho.declaracoes && Array.isArray(caminho.declaracoes)) {
|
|
33979
|
+
caminho.declaracoes.forEach((decl) => {
|
|
33980
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
33981
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
33982
|
+
}
|
|
33983
|
+
});
|
|
33984
|
+
}
|
|
33985
|
+
this.text += `
|
|
33986
|
+
jmp ${labelFim}
|
|
33987
|
+
${labelProximo}:`;
|
|
33988
|
+
}
|
|
33989
|
+
});
|
|
33990
|
+
}
|
|
33991
|
+
this.text += `
|
|
33992
|
+
${labelFim}:`;
|
|
33993
|
+
}
|
|
33994
|
+
traduzirDeclaracaoExpressao(declaracao) {
|
|
33995
|
+
if (declaracao.expressao && this.dicionarioConstrutos[declaracao.expressao.constructor.name]) {
|
|
33996
|
+
this.dicionarioConstrutos[declaracao.expressao.constructor.name](declaracao.expressao);
|
|
33997
|
+
}
|
|
33998
|
+
}
|
|
33999
|
+
traduzirDeclaracaoFazer(declaracao) {
|
|
34000
|
+
const labelInicio = this.gerarLabel();
|
|
34001
|
+
this.text += `
|
|
34002
|
+
${labelInicio}:`;
|
|
34003
|
+
// Em Delégua, fazer-enquanto tem caminhoFazer que é um Bloco
|
|
34004
|
+
if (declaracao.caminhoFazer && declaracao.caminhoFazer.declaracoes) {
|
|
34005
|
+
declaracao.caminhoFazer.declaracoes.forEach((decl) => {
|
|
34006
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
34007
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
34008
|
+
}
|
|
34009
|
+
});
|
|
34010
|
+
}
|
|
34011
|
+
if (declaracao.condicaoEnquanto) {
|
|
34012
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicaoEnquanto.constructor.name](declaracao.condicaoEnquanto);
|
|
34013
|
+
this.text += `
|
|
34014
|
+
cmp ${condicao}, 0
|
|
34015
|
+
jne ${labelInicio}`;
|
|
34016
|
+
}
|
|
34017
|
+
}
|
|
34018
|
+
traduzirDeclaracaoFalhar(declaracao) {
|
|
34019
|
+
let mensagem = '"Erro"';
|
|
34020
|
+
if (declaracao.explicacao && typeof declaracao.explicacao === 'object' && 'constructor' in declaracao.explicacao) {
|
|
34021
|
+
const explicacao = declaracao.explicacao;
|
|
34022
|
+
if (explicacao.constructor && this.dicionarioConstrutos[explicacao.constructor.name]) {
|
|
34023
|
+
mensagem = this.dicionarioConstrutos[explicacao.constructor.name](explicacao);
|
|
34024
|
+
}
|
|
34025
|
+
}
|
|
34026
|
+
if (this.alvo === 'linux') {
|
|
34027
|
+
this.text += `
|
|
34028
|
+
; Falhar com mensagem: ${mensagem}
|
|
34029
|
+
mov eax, 1
|
|
34030
|
+
mov ebx, 1
|
|
34031
|
+
int 0x80`;
|
|
34032
|
+
}
|
|
34033
|
+
else {
|
|
34034
|
+
this.text += `
|
|
34035
|
+
; Falhar com mensagem: ${mensagem}
|
|
34036
|
+
mov eax, 1
|
|
34037
|
+
ret`;
|
|
34038
|
+
}
|
|
34039
|
+
}
|
|
34040
|
+
traduzirDeclaracaoFuncao(declaracao) {
|
|
34041
|
+
var _a;
|
|
34042
|
+
const nomeFuncao = ((_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'funcao';
|
|
34043
|
+
this.text += `
|
|
34044
|
+
${nomeFuncao}:
|
|
34045
|
+
push rbp
|
|
34046
|
+
mov rbp, rsp`;
|
|
34047
|
+
if (declaracao.funcao && declaracao.funcao.corpo && Array.isArray(declaracao.funcao.corpo)) {
|
|
34048
|
+
declaracao.funcao.corpo.forEach((decl) => {
|
|
34049
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
34050
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
34051
|
+
}
|
|
34052
|
+
});
|
|
34053
|
+
}
|
|
34054
|
+
this.text += `
|
|
34055
|
+
pop rbp
|
|
34056
|
+
ret`;
|
|
34057
|
+
}
|
|
34058
|
+
traduzirDeclaracaoImportar(declaracao) {
|
|
34059
|
+
// Importação é tratada em tempo de linkagem
|
|
34060
|
+
this.text += `
|
|
34061
|
+
; Importar: ${declaracao.caminho || 'unknown'}`;
|
|
34062
|
+
}
|
|
34063
|
+
traduzirDeclaracaoLeia(declaracao) {
|
|
34064
|
+
var _a;
|
|
34065
|
+
let nomeVar;
|
|
34066
|
+
if (declaracao.argumentos && declaracao.argumentos[0] && declaracao.argumentos[0] instanceof construtos_1.Variavel) {
|
|
34067
|
+
nomeVar = (_a = declaracao.argumentos[0].simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
34068
|
+
}
|
|
34069
|
+
if (!nomeVar)
|
|
34070
|
+
return;
|
|
34071
|
+
if (!this.variaveis.has(nomeVar)) {
|
|
34072
|
+
const varLabel = `var_${nomeVar}`;
|
|
34073
|
+
this.bss += ` ${varLabel} resb 256\n`;
|
|
34074
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
34075
|
+
}
|
|
34076
|
+
this.text += `
|
|
34077
|
+
mov eax, 3
|
|
34078
|
+
mov ebx, 0
|
|
34079
|
+
mov ecx, ${this.variaveis.get(nomeVar)}
|
|
34080
|
+
mov edx, 256
|
|
34081
|
+
int 0x80`;
|
|
34082
|
+
}
|
|
34083
|
+
traduzirDeclaracaoPara(declaracao) {
|
|
34084
|
+
const labelInicio = this.gerarLabel();
|
|
34085
|
+
const labelFim = this.gerarLabel();
|
|
34086
|
+
// Inicializador pode ser uma declaração ou construto
|
|
34087
|
+
if (declaracao.inicializador) {
|
|
34088
|
+
const tipoInicializador = declaracao.inicializador.constructor.name;
|
|
34089
|
+
if (this.dicionarioDeclaracoes[tipoInicializador]) {
|
|
34090
|
+
this.dicionarioDeclaracoes[tipoInicializador](declaracao.inicializador);
|
|
34091
|
+
}
|
|
34092
|
+
else if (this.dicionarioConstrutos[tipoInicializador]) {
|
|
34093
|
+
this.dicionarioConstrutos[tipoInicializador](declaracao.inicializador);
|
|
34094
|
+
}
|
|
34095
|
+
}
|
|
34096
|
+
this.text += `
|
|
34097
|
+
${labelInicio}:`;
|
|
34098
|
+
if (declaracao.condicao) {
|
|
34099
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
34100
|
+
this.text += `
|
|
34101
|
+
cmp ${condicao}, 0
|
|
34102
|
+
je ${labelFim}`;
|
|
34103
|
+
}
|
|
34104
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
34105
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
34106
|
+
}
|
|
34107
|
+
if (declaracao.incrementar) {
|
|
34108
|
+
if (this.dicionarioConstrutos[declaracao.incrementar.constructor.name]) {
|
|
34109
|
+
this.dicionarioConstrutos[declaracao.incrementar.constructor.name](declaracao.incrementar);
|
|
34110
|
+
}
|
|
34111
|
+
}
|
|
34112
|
+
this.text += `
|
|
34113
|
+
jmp ${labelInicio}
|
|
34114
|
+
${labelFim}:`;
|
|
34115
|
+
}
|
|
34116
|
+
traduzirDeclaracaoParaCada(declaracao) {
|
|
34117
|
+
var _a;
|
|
34118
|
+
const labelInicio = this.gerarLabel();
|
|
34119
|
+
const labelFim = this.gerarLabel();
|
|
34120
|
+
let nomeVar;
|
|
34121
|
+
if (declaracao.variavelIteracao instanceof construtos_1.Variavel) {
|
|
34122
|
+
nomeVar = (_a = declaracao.variavelIteracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
34123
|
+
}
|
|
34124
|
+
const vetor = declaracao.vetorOuDicionario;
|
|
34125
|
+
let tamanhoVetor = 0;
|
|
34126
|
+
if (vetor instanceof construtos_1.Vetor) {
|
|
34127
|
+
tamanhoVetor = vetor.tamanho || 0;
|
|
34128
|
+
}
|
|
34129
|
+
this.text += `
|
|
34130
|
+
xor rcx, rcx
|
|
34131
|
+
${labelInicio}:
|
|
34132
|
+
cmp rcx, ${tamanhoVetor}
|
|
34133
|
+
jge ${labelFim}`;
|
|
34134
|
+
if (this.dicionarioDeclaracoes[declaracao.corpo.constructor.name]) {
|
|
34135
|
+
this.dicionarioDeclaracoes[declaracao.corpo.constructor.name](declaracao.corpo);
|
|
34136
|
+
}
|
|
34137
|
+
this.text += `
|
|
34138
|
+
inc rcx
|
|
34139
|
+
jmp ${labelInicio}
|
|
34140
|
+
${labelFim}:`;
|
|
34141
|
+
}
|
|
34142
|
+
traduzirDeclaracaoRetorna(declaracao) {
|
|
34143
|
+
if (declaracao.valor) {
|
|
34144
|
+
const valor = this.dicionarioConstrutos[declaracao.valor.constructor.name](declaracao.valor);
|
|
34145
|
+
this.text += `
|
|
34146
|
+
mov rax, ${valor}`;
|
|
34147
|
+
}
|
|
34148
|
+
this.text += `
|
|
34149
|
+
pop rbp
|
|
34150
|
+
ret`;
|
|
34151
|
+
}
|
|
34152
|
+
traduzirDeclaracaoSe(declaracao) {
|
|
34153
|
+
const labelSenao = this.gerarLabel();
|
|
34154
|
+
const labelFim = this.gerarLabel();
|
|
34155
|
+
const condicao = this.dicionarioConstrutos[declaracao.condicao.constructor.name](declaracao.condicao);
|
|
34156
|
+
this.text += `
|
|
34157
|
+
cmp ${condicao}, 0
|
|
34158
|
+
je ${labelSenao}`;
|
|
34159
|
+
if (this.dicionarioDeclaracoes[declaracao.caminhoEntao.constructor.name]) {
|
|
34160
|
+
this.dicionarioDeclaracoes[declaracao.caminhoEntao.constructor.name](declaracao.caminhoEntao);
|
|
34161
|
+
}
|
|
34162
|
+
this.text += `
|
|
34163
|
+
jmp ${labelFim}
|
|
34164
|
+
${labelSenao}:`;
|
|
34165
|
+
if (declaracao.caminhoSenao && this.dicionarioDeclaracoes[declaracao.caminhoSenao.constructor.name]) {
|
|
34166
|
+
this.dicionarioDeclaracoes[declaracao.caminhoSenao.constructor.name](declaracao.caminhoSenao);
|
|
34167
|
+
}
|
|
34168
|
+
this.text += `
|
|
34169
|
+
${labelFim}:`;
|
|
34170
|
+
}
|
|
34171
|
+
traduzirDeclaracaoClasse(declaracao) {
|
|
34172
|
+
var _a;
|
|
34173
|
+
// Classes em assembly são complexas - implementação básica
|
|
34174
|
+
this.text += `
|
|
34175
|
+
; Classe: ${((_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || 'unknown'}`;
|
|
34176
|
+
}
|
|
34177
|
+
traduzirDeclaracaoTente(declaracao) {
|
|
34178
|
+
// Try-catch em assembly requer handler complexo
|
|
34179
|
+
this.text += `
|
|
34180
|
+
; Tente-pegue`;
|
|
34181
|
+
if (declaracao.caminhoTente && Array.isArray(declaracao.caminhoTente)) {
|
|
34182
|
+
declaracao.caminhoTente.forEach((decl) => {
|
|
34183
|
+
if (this.dicionarioDeclaracoes[decl.constructor.name]) {
|
|
34184
|
+
this.dicionarioDeclaracoes[decl.constructor.name](decl);
|
|
34185
|
+
}
|
|
34186
|
+
});
|
|
34187
|
+
}
|
|
34188
|
+
}
|
|
34189
|
+
traduzirDeclaracaoConst(declaracao) {
|
|
34190
|
+
var _a;
|
|
34191
|
+
const nomeVar = (_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
34192
|
+
if (!nomeVar)
|
|
34193
|
+
return;
|
|
34194
|
+
const valor = this.dicionarioConstrutos[declaracao.inicializador.constructor.name](declaracao.inicializador);
|
|
34195
|
+
const varLabel = `const_${nomeVar}`;
|
|
34196
|
+
this.data += ` ${varLabel} dq ${valor}\n`;
|
|
34197
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
34198
|
+
}
|
|
34199
|
+
traduzirDeclaracaoVar(declaracao) {
|
|
34200
|
+
var _a;
|
|
34201
|
+
const nomeVar = (_a = declaracao.simbolo) === null || _a === void 0 ? void 0 : _a.lexema;
|
|
34202
|
+
if (!nomeVar)
|
|
34203
|
+
return;
|
|
34204
|
+
const varLabel = `var_${nomeVar}`;
|
|
34205
|
+
this.bss += ` ${varLabel} resq 1\n`;
|
|
34206
|
+
this.variaveis.set(nomeVar, varLabel);
|
|
34207
|
+
if (declaracao.inicializador) {
|
|
34208
|
+
const tipoInicializador = declaracao.inicializador.constructor.name;
|
|
34209
|
+
// Verificar se é um vetor
|
|
34210
|
+
if (declaracao.inicializador instanceof construtos_1.Vetor) {
|
|
34211
|
+
// Vetor precisa de tratamento especial
|
|
34212
|
+
const labelVetor = this.traduzirConstrutoVetor(declaracao.inicializador);
|
|
34213
|
+
// Associar o nome da variável com o label do vetor
|
|
34214
|
+
this.variaveis.set(nomeVar, labelVetor);
|
|
34215
|
+
}
|
|
34216
|
+
else if (this.dicionarioConstrutos[tipoInicializador]) {
|
|
34217
|
+
const valor = this.dicionarioConstrutos[tipoInicializador](declaracao.inicializador);
|
|
34218
|
+
this.text += `
|
|
34219
|
+
mov rax, ${valor}
|
|
34220
|
+
mov [${varLabel}], rax`;
|
|
34221
|
+
}
|
|
34222
|
+
}
|
|
34223
|
+
}
|
|
34224
|
+
criaStringLiteral(literal) {
|
|
34225
|
+
const varLiteral = `Delegua_${this.gerarDigitoAleatorio()}`;
|
|
34226
|
+
this.data += ` ${varLiteral} db '${literal.valor}', 0\n`;
|
|
34227
|
+
return varLiteral;
|
|
34228
|
+
}
|
|
34229
|
+
criaTamanhoNaMemoriaReferenteAVar(nomeStringLiteral) {
|
|
34230
|
+
const varTamanho = `tam_${nomeStringLiteral}`;
|
|
34231
|
+
this.data += ` ${varTamanho} equ $ - ${nomeStringLiteral}\n`;
|
|
34232
|
+
return varTamanho;
|
|
34233
|
+
}
|
|
34234
|
+
traduzirDeclaracaoEscreva(declaracaoEscreva) {
|
|
34235
|
+
let tam_string_literal = '';
|
|
34236
|
+
let nome_string_literal = '';
|
|
34237
|
+
if (declaracaoEscreva.argumentos[0] instanceof construtos_1.Literal) {
|
|
34238
|
+
nome_string_literal = this.criaStringLiteral(declaracaoEscreva.argumentos[0]);
|
|
34239
|
+
tam_string_literal = this.criaTamanhoNaMemoriaReferenteAVar(nome_string_literal);
|
|
34240
|
+
}
|
|
34241
|
+
if (this.alvo === 'linux') {
|
|
34242
|
+
this.text += `
|
|
34243
|
+
mov edx, ${tam_string_literal}
|
|
34244
|
+
mov ecx, ${nome_string_literal}
|
|
34245
|
+
mov ebx, 1 ; fd stdout
|
|
34246
|
+
mov eax, 4 ; sys_write
|
|
34247
|
+
int 0x80`;
|
|
34248
|
+
}
|
|
34249
|
+
else {
|
|
34250
|
+
// Windows: prototype `extern printf` and follow Win64 calling convention
|
|
34251
|
+
// RCX = format pointer; here we use the literal directly as a C string
|
|
34252
|
+
this.text += `
|
|
34253
|
+
lea rcx, [rel ${nome_string_literal}]
|
|
34254
|
+
call printf`;
|
|
34255
|
+
}
|
|
34256
|
+
}
|
|
34257
|
+
saidaSistema() {
|
|
34258
|
+
if (this.alvo === 'linux') {
|
|
34259
|
+
this.text += `
|
|
34260
|
+
mov eax, 1 ; sys_exit
|
|
34261
|
+
xor ebx, ebx ; status 0
|
|
34262
|
+
int 0x80`;
|
|
34263
|
+
}
|
|
34264
|
+
else {
|
|
34265
|
+
// Windows: return from main with 0 in EAX
|
|
34266
|
+
this.text += `
|
|
34267
|
+
xor eax, eax
|
|
34268
|
+
ret`;
|
|
34269
|
+
}
|
|
34270
|
+
}
|
|
34271
|
+
traduzir(declaracoes) {
|
|
34272
|
+
let resultado = '';
|
|
34273
|
+
this.declaracoesDeClasses = declaracoes.filter((declaracao) => declaracao instanceof declaracoes_1.Classe);
|
|
34274
|
+
for (const declaracao of declaracoes) {
|
|
34275
|
+
if (this.dicionarioDeclaracoes[declaracao.constructor.name]) {
|
|
34276
|
+
this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao);
|
|
34277
|
+
}
|
|
34278
|
+
}
|
|
34279
|
+
this.saidaSistema();
|
|
34280
|
+
resultado += this.bss + '\n' + this.data + '\n' + this.text;
|
|
34281
|
+
return resultado;
|
|
34282
|
+
}
|
|
34283
|
+
}
|
|
34284
|
+
exports.TradutorAssemblyX64 = TradutorAssemblyX64;
|
|
34285
|
+
|
|
34286
|
+
},{"../construtos":51,"../declaracoes":96}],208:[function(require,module,exports){
|
|
32731
34287
|
"use strict";
|
|
32732
34288
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32733
34289
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -33362,7 +34918,7 @@ class TradutorAssemblyScript {
|
|
|
33362
34918
|
}
|
|
33363
34919
|
exports.TradutorAssemblyScript = TradutorAssemblyScript;
|
|
33364
34920
|
|
|
33365
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],
|
|
34921
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],209:[function(require,module,exports){
|
|
33366
34922
|
"use strict";
|
|
33367
34923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33368
34924
|
exports.TradutorCalango = void 0;
|
|
@@ -33424,7 +34980,7 @@ class TradutorCalango {
|
|
|
33424
34980
|
}
|
|
33425
34981
|
exports.TradutorCalango = TradutorCalango;
|
|
33426
34982
|
|
|
33427
|
-
},{"../avaliador-sintatico/dialetos/avaliador-sintatico-calango":4,"../lexador/dialetos":162}],
|
|
34983
|
+
},{"../avaliador-sintatico/dialetos/avaliador-sintatico-calango":4,"../lexador/dialetos":162}],210:[function(require,module,exports){
|
|
33428
34984
|
"use strict";
|
|
33429
34985
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33430
34986
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -34177,7 +35733,7 @@ class TradutorJavaScript {
|
|
|
34177
35733
|
}
|
|
34178
35734
|
exports.TradutorJavaScript = TradutorJavaScript;
|
|
34179
35735
|
|
|
34180
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],
|
|
35736
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],211:[function(require,module,exports){
|
|
34181
35737
|
"use strict";
|
|
34182
35738
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34183
35739
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -34185,23 +35741,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
34185
35741
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34186
35742
|
exports.TradutorMermaidJs = void 0;
|
|
34187
35743
|
const delegua_1 = __importDefault(require("../tipos-de-simbolos/delegua"));
|
|
34188
|
-
|
|
34189
|
-
constructor(declaracao, texto) {
|
|
34190
|
-
this.declaracao = declaracao;
|
|
34191
|
-
this.texto = texto;
|
|
34192
|
-
}
|
|
34193
|
-
}
|
|
34194
|
-
class VerticeFluxograma {
|
|
34195
|
-
constructor(origem, destino, texto) {
|
|
34196
|
-
this.origem = origem;
|
|
34197
|
-
this.destino = destino;
|
|
34198
|
-
this.texto = texto;
|
|
34199
|
-
}
|
|
34200
|
-
paraTexto() {
|
|
34201
|
-
const seta = this.texto ? `-->|${this.texto}|` : '-->';
|
|
34202
|
-
return ` ${this.origem.texto}${seta}${this.destino.texto};\n`;
|
|
34203
|
-
}
|
|
34204
|
-
}
|
|
35744
|
+
const mermaid_1 = require("./mermaid");
|
|
34205
35745
|
/**
|
|
34206
35746
|
* [MermaidJs](https://mermaid.js.org/) é uma especificação que nos permite
|
|
34207
35747
|
* criar fluxogramas através de uma notação por texto.
|
|
@@ -34228,7 +35768,8 @@ class TradutorMermaidJs {
|
|
|
34228
35768
|
ComentarioComoConstruto: () => '',
|
|
34229
35769
|
DefinirValor: this.traduzirConstrutoDefinirValor.bind(this),
|
|
34230
35770
|
Dicionario: this.traduzirConstrutoDicionario.bind(this),
|
|
34231
|
-
FuncaoConstruto: this.traduzirFuncaoConstruto.bind(this),
|
|
35771
|
+
// FuncaoConstruto: this.traduzirFuncaoConstruto.bind(this),
|
|
35772
|
+
FuncaoConstruto: () => { throw new Error("Fluxogramas de funções ainda não é suportado."); },
|
|
34232
35773
|
Isto: () => 'this',
|
|
34233
35774
|
Leia: this.traduzirConstrutoLeia.bind(this),
|
|
34234
35775
|
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
@@ -34239,6 +35780,8 @@ class TradutorMermaidJs {
|
|
|
34239
35780
|
};
|
|
34240
35781
|
this.dicionarioDeclaracoes = {
|
|
34241
35782
|
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
35783
|
+
// Classe: this.traduzirDeclaracaoClasse.bind(this),
|
|
35784
|
+
Classe: () => { throw new Error("Fluxogramas de classes ainda não é suportado."); },
|
|
34242
35785
|
Comentario: () => '',
|
|
34243
35786
|
Const: this.traduzirDeclaracaoConst.bind(this),
|
|
34244
35787
|
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
@@ -34246,6 +35789,8 @@ class TradutorMermaidJs {
|
|
|
34246
35789
|
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
34247
35790
|
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
34248
35791
|
Fazer: this.traduzirDeclaracaoFazerEnquanto.bind(this),
|
|
35792
|
+
// FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
35793
|
+
FuncaoDeclaracao: () => { throw new Error("Fluxogramas de funções ainda não é suportado."); },
|
|
34249
35794
|
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
34250
35795
|
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
34251
35796
|
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
@@ -34319,7 +35864,19 @@ class TradutorMermaidJs {
|
|
|
34319
35864
|
return texto;
|
|
34320
35865
|
}
|
|
34321
35866
|
traduzirFuncaoConstruto(funcaoConstruto) {
|
|
34322
|
-
|
|
35867
|
+
let vertices = [];
|
|
35868
|
+
if (funcaoConstruto.corpo && funcaoConstruto.corpo.length > 0) {
|
|
35869
|
+
for (const declaracaoCorpo of funcaoConstruto.corpo) {
|
|
35870
|
+
// Usa o mesmo caminho de outras declarações,
|
|
35871
|
+
// então todas as arestas passam por logicaComumConexaoArestas.
|
|
35872
|
+
const verticesCorpo = this.dicionarioDeclaracoes[declaracaoCorpo.constructor.name](declaracaoCorpo);
|
|
35873
|
+
vertices = vertices.concat(verticesCorpo);
|
|
35874
|
+
}
|
|
35875
|
+
}
|
|
35876
|
+
/* if (this.anteriores.length > 0) {
|
|
35877
|
+
vertices = vertices.concat(this.anteriores)
|
|
35878
|
+
} */
|
|
35879
|
+
return vertices;
|
|
34323
35880
|
}
|
|
34324
35881
|
traduzirConstrutoLeia(leia) {
|
|
34325
35882
|
let texto = 'leia da entrada';
|
|
@@ -34379,7 +35936,7 @@ class TradutorMermaidJs {
|
|
|
34379
35936
|
textoVertice = String(this.ultimaDicaVertice);
|
|
34380
35937
|
this.ultimaDicaVertice = undefined;
|
|
34381
35938
|
}
|
|
34382
|
-
vertices.push(new VerticeFluxograma(anterior, aresta, textoVertice));
|
|
35939
|
+
vertices.push(new mermaid_1.VerticeFluxograma(anterior, aresta, textoVertice));
|
|
34383
35940
|
}
|
|
34384
35941
|
return vertices;
|
|
34385
35942
|
}
|
|
@@ -34391,10 +35948,45 @@ class TradutorMermaidJs {
|
|
|
34391
35948
|
}
|
|
34392
35949
|
return vertices;
|
|
34393
35950
|
}
|
|
35951
|
+
traduzirDeclaracaoClasse(declaracaoClasse) {
|
|
35952
|
+
const nomeClasse = declaracaoClasse.simbolo.lexema;
|
|
35953
|
+
const superClasse = declaracaoClasse.superClasse
|
|
35954
|
+
? declaracaoClasse.superClasse.nome.lexema
|
|
35955
|
+
: undefined;
|
|
35956
|
+
// Cria o diagrama de classe
|
|
35957
|
+
const diagramaClasse = new mermaid_1.DiagramaClasse(nomeClasse, superClasse);
|
|
35958
|
+
// Adiciona métodos ao diagrama
|
|
35959
|
+
if (declaracaoClasse.metodos && declaracaoClasse.metodos.length > 0) {
|
|
35960
|
+
for (const metodo of declaracaoClasse.metodos) {
|
|
35961
|
+
const parametros = [];
|
|
35962
|
+
if (metodo.funcao.parametros && metodo.funcao.parametros.length > 0) {
|
|
35963
|
+
for (const param of metodo.funcao.parametros) {
|
|
35964
|
+
const nomeParam = param.nome.lexema;
|
|
35965
|
+
const tipoParam = param.tipoDado || 'qualquer';
|
|
35966
|
+
parametros.push(`${nomeParam}: ${tipoParam}`);
|
|
35967
|
+
}
|
|
35968
|
+
}
|
|
35969
|
+
const tipoRetorno = metodo.funcao.tipo;
|
|
35970
|
+
diagramaClasse.metodos.push({
|
|
35971
|
+
nome: metodo.simbolo.lexema,
|
|
35972
|
+
parametros,
|
|
35973
|
+
tipoRetorno
|
|
35974
|
+
});
|
|
35975
|
+
}
|
|
35976
|
+
}
|
|
35977
|
+
// Adiciona o diagrama à lista
|
|
35978
|
+
this.diagramasClasses.push(diagramaClasse);
|
|
35979
|
+
// No fluxograma principal, apenas mostra a definição da classe
|
|
35980
|
+
const texto = `Linha${declaracaoClasse.linha}[Classe ${nomeClasse}${superClasse ? ` herda ${superClasse}` : ''}]`;
|
|
35981
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoClasse, texto);
|
|
35982
|
+
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
35983
|
+
this.anteriores.push(aresta);
|
|
35984
|
+
return vertices;
|
|
35985
|
+
}
|
|
34394
35986
|
traduzirDeclaracaoConst(declaracaoConst) {
|
|
34395
35987
|
let texto = `Linha${declaracaoConst.linha}(variável: ${declaracaoConst.simbolo.lexema}`;
|
|
34396
35988
|
texto += this.logicaComumTraducaoVarEConst(declaracaoConst, texto);
|
|
34397
|
-
const aresta = new ArestaFluxograma(declaracaoConst, texto);
|
|
35989
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoConst, texto);
|
|
34398
35990
|
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
34399
35991
|
this.anteriores.push(aresta);
|
|
34400
35992
|
return vertices;
|
|
@@ -34403,14 +35995,14 @@ class TradutorMermaidJs {
|
|
|
34403
35995
|
let texto = `Linha${declaracaoEnquanto.linha}(enquanto `;
|
|
34404
35996
|
const condicao = this.dicionarioConstrutos[declaracaoEnquanto.condicao.constructor.name](declaracaoEnquanto.condicao);
|
|
34405
35997
|
texto += condicao + ')';
|
|
34406
|
-
const aresta = new ArestaFluxograma(declaracaoEnquanto, texto);
|
|
35998
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoEnquanto, texto);
|
|
34407
35999
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34408
36000
|
this.anteriores.push(aresta);
|
|
34409
36001
|
// Corpo, normalmente um `Bloco`.
|
|
34410
36002
|
const verticesCorpo = this.dicionarioDeclaracoes[declaracaoEnquanto.corpo.constructor.name](declaracaoEnquanto.corpo);
|
|
34411
36003
|
vertices = vertices.concat(verticesCorpo);
|
|
34412
36004
|
const ultimaArestaCorpo = verticesCorpo[verticesCorpo.length - 1].destino;
|
|
34413
|
-
const verticeLaco = new VerticeFluxograma(ultimaArestaCorpo, aresta);
|
|
36005
|
+
const verticeLaco = new mermaid_1.VerticeFluxograma(ultimaArestaCorpo, aresta);
|
|
34414
36006
|
vertices.push(verticeLaco);
|
|
34415
36007
|
return vertices;
|
|
34416
36008
|
}
|
|
@@ -34429,7 +36021,7 @@ class TradutorMermaidJs {
|
|
|
34429
36021
|
textoCaso = `caso ${textoIdentificadorOuLiteral} tenha qualquer outro valor:`;
|
|
34430
36022
|
}
|
|
34431
36023
|
let textoCaminho = `Linha${linha}(${textoCaso})`;
|
|
34432
|
-
const arestaCondicaoCaminho = new ArestaFluxograma(declaracaoEscolha, textoCaminho);
|
|
36024
|
+
const arestaCondicaoCaminho = new mermaid_1.ArestaFluxograma(declaracaoEscolha, textoCaminho);
|
|
34433
36025
|
this.anteriores.push(arestaCondicaoCaminho);
|
|
34434
36026
|
let verticesResolvidos = [];
|
|
34435
36027
|
for (const declaracaoCaminho of caminhoEscolha.declaracoes) {
|
|
@@ -34448,7 +36040,7 @@ class TradutorMermaidJs {
|
|
|
34448
36040
|
let texto = `Linha${declaracaoEscolha.linha}(escolha um caminho pelo valor de `;
|
|
34449
36041
|
const textoIdentificadorOuLiteral = this.dicionarioConstrutos[declaracaoEscolha.identificadorOuLiteral.constructor.name](declaracaoEscolha.identificadorOuLiteral);
|
|
34450
36042
|
texto += textoIdentificadorOuLiteral + ')';
|
|
34451
|
-
const aresta = new ArestaFluxograma(declaracaoEscolha, texto);
|
|
36043
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoEscolha, texto);
|
|
34452
36044
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34453
36045
|
const arestasCaminho = [];
|
|
34454
36046
|
for (const caminho of declaracaoEscolha.caminhos) {
|
|
@@ -34458,7 +36050,7 @@ class TradutorMermaidJs {
|
|
|
34458
36050
|
arestasCaminho.push(this.logicaComumCaminhoEscolha(declaracaoEscolha, declaracaoEscolha.caminhoPadrao, declaracaoEscolha.caminhoPadrao.declaracoes[0].linha - 1, textoIdentificadorOuLiteral, true));
|
|
34459
36051
|
}
|
|
34460
36052
|
for (const conjunto of Object.values(arestasCaminho)) {
|
|
34461
|
-
const verticeEscolhaECaminho = new VerticeFluxograma(aresta, conjunto.caminho);
|
|
36053
|
+
const verticeEscolhaECaminho = new mermaid_1.VerticeFluxograma(aresta, conjunto.caminho);
|
|
34462
36054
|
vertices.push(verticeEscolhaECaminho);
|
|
34463
36055
|
vertices = vertices.concat(conjunto.declaracoesCaminho);
|
|
34464
36056
|
this.anteriores.push(conjunto.declaracoesCaminho[conjunto.declaracoesCaminho.length - 1].destino);
|
|
@@ -34473,7 +36065,7 @@ class TradutorMermaidJs {
|
|
|
34473
36065
|
}
|
|
34474
36066
|
texto = texto.slice(0, -2);
|
|
34475
36067
|
texto += ')';
|
|
34476
|
-
const aresta = new ArestaFluxograma(declaracaoEscreva, texto);
|
|
36068
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoEscreva, texto);
|
|
34477
36069
|
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
34478
36070
|
this.anteriores.push(aresta);
|
|
34479
36071
|
return vertices;
|
|
@@ -34482,14 +36074,14 @@ class TradutorMermaidJs {
|
|
|
34482
36074
|
let texto = `Linha${declaracaoExpressao.linha}(`;
|
|
34483
36075
|
const textoConstruto = this.dicionarioConstrutos[declaracaoExpressao.expressao.constructor.name](declaracaoExpressao.expressao);
|
|
34484
36076
|
texto += textoConstruto + ')';
|
|
34485
|
-
const aresta = new ArestaFluxograma(declaracaoExpressao, texto);
|
|
36077
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoExpressao, texto);
|
|
34486
36078
|
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
34487
36079
|
this.anteriores.push(aresta);
|
|
34488
36080
|
return vertices;
|
|
34489
36081
|
}
|
|
34490
36082
|
traduzirDeclaracaoFazerEnquanto(declaracaoFazerEnquanto) {
|
|
34491
36083
|
const texto = `Linha${declaracaoFazerEnquanto.linha}(fazer)`;
|
|
34492
|
-
const aresta = new ArestaFluxograma(declaracaoFazerEnquanto, texto);
|
|
36084
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoFazerEnquanto, texto);
|
|
34493
36085
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34494
36086
|
this.anteriores.push(aresta);
|
|
34495
36087
|
// Corpo, normalmente um `Bloco`.
|
|
@@ -34498,15 +36090,37 @@ class TradutorMermaidJs {
|
|
|
34498
36090
|
const ultimaArestaCorpo = verticesCorpo[verticesCorpo.length - 1].destino;
|
|
34499
36091
|
const condicao = this.dicionarioConstrutos[declaracaoFazerEnquanto.condicaoEnquanto.constructor.name](declaracaoFazerEnquanto.condicaoEnquanto);
|
|
34500
36092
|
let textoEnquanto = `Linha${declaracaoFazerEnquanto.condicaoEnquanto.linha}(enquanto ${condicao})`;
|
|
34501
|
-
const arestaEnquanto = new ArestaFluxograma(declaracaoFazerEnquanto, textoEnquanto);
|
|
34502
|
-
const verticeEnquanto = new VerticeFluxograma(ultimaArestaCorpo, arestaEnquanto);
|
|
36093
|
+
const arestaEnquanto = new mermaid_1.ArestaFluxograma(declaracaoFazerEnquanto, textoEnquanto);
|
|
36094
|
+
const verticeEnquanto = new mermaid_1.VerticeFluxograma(ultimaArestaCorpo, arestaEnquanto);
|
|
34503
36095
|
vertices.push(verticeEnquanto);
|
|
34504
|
-
const verticeCondicaoComFazer = new VerticeFluxograma(arestaEnquanto, aresta);
|
|
36096
|
+
const verticeCondicaoComFazer = new mermaid_1.VerticeFluxograma(arestaEnquanto, aresta);
|
|
34505
36097
|
vertices.push(verticeCondicaoComFazer);
|
|
34506
36098
|
this.anteriores.pop();
|
|
34507
36099
|
this.anteriores.push(arestaEnquanto);
|
|
34508
36100
|
return vertices;
|
|
34509
36101
|
}
|
|
36102
|
+
traduzirDeclaracaoFuncao(declaracaoFuncao) {
|
|
36103
|
+
// Gera o corpo como vértices, mas não conecta nada ao fluxo principal
|
|
36104
|
+
const verticesCorpo = this.traduzirFuncaoConstruto(declaracaoFuncao.funcao);
|
|
36105
|
+
if (verticesCorpo.length === 0) {
|
|
36106
|
+
return [];
|
|
36107
|
+
}
|
|
36108
|
+
// Descobre o texto dos nós do corpo
|
|
36109
|
+
let textoSubgraph = `subgraph função ${declaracaoFuncao.simbolo.lexema}\n`;
|
|
36110
|
+
for (const vertice of verticesCorpo) {
|
|
36111
|
+
textoSubgraph += vertice.paraTexto();
|
|
36112
|
+
}
|
|
36113
|
+
textoSubgraph += `end;\n`;
|
|
36114
|
+
// Armazena o subgraph para imprimir depois de graph TD;
|
|
36115
|
+
this.subgrafosFuncoes.push(textoSubgraph);
|
|
36116
|
+
// IMPORTANTE: não altera this.anteriores aqui, para a função
|
|
36117
|
+
// não entrar no fluxo principal. O fluxo principal continua
|
|
36118
|
+
// sendo só as declarações "top-level" (como a chamada em Linha4).
|
|
36119
|
+
// Também não precisa devolver vértices, porque eles já
|
|
36120
|
+
// foram adicionados em this.vertices pelos próprios tradutores
|
|
36121
|
+
// das declarações do corpo (via dicionarioDeclaracoes).
|
|
36122
|
+
return [];
|
|
36123
|
+
}
|
|
34510
36124
|
traduzirDeclaracaoPara(declaracaoPara) {
|
|
34511
36125
|
let texto = `Linha${declaracaoPara.linha}(para `;
|
|
34512
36126
|
if (declaracaoPara.inicializador) {
|
|
@@ -34519,13 +36133,13 @@ class TradutorMermaidJs {
|
|
|
34519
36133
|
texto = texto.slice(0, -2);
|
|
34520
36134
|
}
|
|
34521
36135
|
texto += ')';
|
|
34522
|
-
const aresta = new ArestaFluxograma(declaracaoPara, texto);
|
|
36136
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoPara, texto);
|
|
34523
36137
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34524
36138
|
this.anteriores.push(aresta);
|
|
34525
36139
|
// Condição
|
|
34526
36140
|
const textoCondicao = this.dicionarioConstrutos[declaracaoPara.condicao.constructor.name](declaracaoPara.condicao);
|
|
34527
36141
|
const textoArestaCondicao = `Linha${declaracaoPara.linha}Condicao{se ${textoCondicao}}`;
|
|
34528
|
-
const arestaCondicao = new ArestaFluxograma(declaracaoPara, textoArestaCondicao);
|
|
36142
|
+
const arestaCondicao = new mermaid_1.ArestaFluxograma(declaracaoPara, textoArestaCondicao);
|
|
34529
36143
|
vertices = vertices.concat(this.logicaComumConexaoArestas(arestaCondicao));
|
|
34530
36144
|
this.anteriores.push(arestaCondicao);
|
|
34531
36145
|
this.ultimaDicaVertice = 'Sim';
|
|
@@ -34535,10 +36149,10 @@ class TradutorMermaidJs {
|
|
|
34535
36149
|
// Incremento
|
|
34536
36150
|
const ultimaArestaCorpo = verticesCorpo[verticesCorpo.length - 1].destino;
|
|
34537
36151
|
const textoIncremento = this.dicionarioConstrutos[declaracaoPara.incrementar.constructor.name](declaracaoPara.incrementar);
|
|
34538
|
-
const arestaIncremento = new ArestaFluxograma(declaracaoPara, `Linha${declaracaoPara.linha}Incremento(${textoIncremento})`);
|
|
34539
|
-
const verticeIncremento = new VerticeFluxograma(ultimaArestaCorpo, arestaIncremento);
|
|
36152
|
+
const arestaIncremento = new mermaid_1.ArestaFluxograma(declaracaoPara, `Linha${declaracaoPara.linha}Incremento(${textoIncremento})`);
|
|
36153
|
+
const verticeIncremento = new mermaid_1.VerticeFluxograma(ultimaArestaCorpo, arestaIncremento);
|
|
34540
36154
|
vertices.push(verticeIncremento);
|
|
34541
|
-
const verticeLaco = new VerticeFluxograma(arestaIncremento, arestaCondicao);
|
|
36155
|
+
const verticeLaco = new mermaid_1.VerticeFluxograma(arestaIncremento, arestaCondicao);
|
|
34542
36156
|
vertices.push(verticeLaco);
|
|
34543
36157
|
// Configura a condição como anterior
|
|
34544
36158
|
this.anteriores.pop();
|
|
@@ -34551,14 +36165,14 @@ class TradutorMermaidJs {
|
|
|
34551
36165
|
let texto = `Linha${declaracaoParaCada.linha}(para cada ${textoVariavelIteracao} em `;
|
|
34552
36166
|
const textoVariavelIterada = this.dicionarioConstrutos[declaracaoParaCada.vetorOuDicionario.constructor.name](declaracaoParaCada.vetorOuDicionario);
|
|
34553
36167
|
texto += textoVariavelIterada + ')';
|
|
34554
|
-
const aresta = new ArestaFluxograma(declaracaoParaCada, texto);
|
|
36168
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoParaCada, texto);
|
|
34555
36169
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34556
36170
|
this.anteriores.push(aresta);
|
|
34557
36171
|
// Corpo, normalmente um `Bloco`.
|
|
34558
36172
|
const verticesCorpo = this.dicionarioDeclaracoes[declaracaoParaCada.corpo.constructor.name](declaracaoParaCada.corpo);
|
|
34559
36173
|
vertices = vertices.concat(verticesCorpo);
|
|
34560
36174
|
const ultimaArestaCorpo = verticesCorpo[verticesCorpo.length - 1].destino;
|
|
34561
|
-
vertices.push(new VerticeFluxograma(ultimaArestaCorpo, aresta));
|
|
36175
|
+
vertices.push(new mermaid_1.VerticeFluxograma(ultimaArestaCorpo, aresta));
|
|
34562
36176
|
return vertices;
|
|
34563
36177
|
}
|
|
34564
36178
|
traduzirDeclaracaoSe(declaracaoSe) {
|
|
@@ -34566,7 +36180,7 @@ class TradutorMermaidJs {
|
|
|
34566
36180
|
const condicao = this.dicionarioConstrutos[declaracaoSe.condicao.constructor.name](declaracaoSe.condicao);
|
|
34567
36181
|
texto += condicao;
|
|
34568
36182
|
texto += `}`;
|
|
34569
|
-
const aresta = new ArestaFluxograma(declaracaoSe, texto);
|
|
36183
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoSe, texto);
|
|
34570
36184
|
let vertices = this.logicaComumConexaoArestas(aresta);
|
|
34571
36185
|
this.anteriores.push(aresta);
|
|
34572
36186
|
this.ultimaDicaVertice = 'Sim';
|
|
@@ -34576,8 +36190,8 @@ class TradutorMermaidJs {
|
|
|
34576
36190
|
const ultimaArestaEntao = verticesEntao[verticesEntao.length - 1].destino;
|
|
34577
36191
|
if (declaracaoSe.caminhoSenao) {
|
|
34578
36192
|
this.anteriores = [];
|
|
34579
|
-
const arestaSenao = new ArestaFluxograma(declaracaoSe, `Linha${declaracaoSe.caminhoSenao.linha}(senão)`);
|
|
34580
|
-
vertices.push(new VerticeFluxograma(aresta, arestaSenao, 'Não'));
|
|
36193
|
+
const arestaSenao = new mermaid_1.ArestaFluxograma(declaracaoSe, `Linha${declaracaoSe.caminhoSenao.linha}(senão)`);
|
|
36194
|
+
vertices.push(new mermaid_1.VerticeFluxograma(aresta, arestaSenao, 'Não'));
|
|
34581
36195
|
this.anteriores.push(arestaSenao);
|
|
34582
36196
|
const verticesSenao = this.dicionarioDeclaracoes[declaracaoSe.caminhoSenao.constructor.name](declaracaoSe.caminhoSenao);
|
|
34583
36197
|
vertices = vertices.concat(verticesSenao);
|
|
@@ -34595,7 +36209,7 @@ class TradutorMermaidJs {
|
|
|
34595
36209
|
traduzirDeclaracaoVar(declaracaoVar) {
|
|
34596
36210
|
let texto = `Linha${declaracaoVar.linha}(variável: ${declaracaoVar.simbolo.lexema}`;
|
|
34597
36211
|
texto += this.logicaComumTraducaoVarEConst(declaracaoVar, texto);
|
|
34598
|
-
const aresta = new ArestaFluxograma(declaracaoVar, texto);
|
|
36212
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoVar, texto);
|
|
34599
36213
|
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
34600
36214
|
this.anteriores.push(aresta);
|
|
34601
36215
|
return vertices;
|
|
@@ -34604,9 +36218,15 @@ class TradutorMermaidJs {
|
|
|
34604
36218
|
this.anteriores = [];
|
|
34605
36219
|
this.vertices = [];
|
|
34606
36220
|
let resultado = 'graph TD;\n';
|
|
36221
|
+
this.subgrafosFuncoes = [];
|
|
34607
36222
|
for (const declaracao of declaracoes) {
|
|
34608
36223
|
this.vertices = this.vertices.concat(this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao));
|
|
34609
36224
|
}
|
|
36225
|
+
if (this.subgrafosFuncoes.length > 0) {
|
|
36226
|
+
for (const sub of this.subgrafosFuncoes) {
|
|
36227
|
+
resultado += sub;
|
|
36228
|
+
}
|
|
36229
|
+
}
|
|
34610
36230
|
if (this.vertices.length === 0 && this.anteriores.length === 0) {
|
|
34611
36231
|
resultado += ` Vazio;\n`;
|
|
34612
36232
|
}
|
|
@@ -34631,7 +36251,7 @@ class TradutorMermaidJs {
|
|
|
34631
36251
|
}
|
|
34632
36252
|
exports.TradutorMermaidJs = TradutorMermaidJs;
|
|
34633
36253
|
|
|
34634
|
-
},{"../tipos-de-simbolos/delegua":190}],
|
|
36254
|
+
},{"../tipos-de-simbolos/delegua":190,"./mermaid":201}],212:[function(require,module,exports){
|
|
34635
36255
|
"use strict";
|
|
34636
36256
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34637
36257
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -34693,7 +36313,7 @@ class TradutorPortugolIpt {
|
|
|
34693
36313
|
}
|
|
34694
36314
|
exports.TradutorPortugolIpt = TradutorPortugolIpt;
|
|
34695
36315
|
|
|
34696
|
-
},{"../avaliador-sintatico/dialetos":10,"../lexador/dialetos":162}],
|
|
36316
|
+
},{"../avaliador-sintatico/dialetos":10,"../lexador/dialetos":162}],213:[function(require,module,exports){
|
|
34697
36317
|
"use strict";
|
|
34698
36318
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34699
36319
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -35342,7 +36962,7 @@ class TradutorPython {
|
|
|
35342
36962
|
}
|
|
35343
36963
|
exports.TradutorPython = TradutorPython;
|
|
35344
36964
|
|
|
35345
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],
|
|
36965
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],214:[function(require,module,exports){
|
|
35346
36966
|
"use strict";
|
|
35347
36967
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35348
36968
|
exports.TradutorReversoJavaScript = void 0;
|
|
@@ -35739,7 +37359,7 @@ class TradutorReversoJavaScript {
|
|
|
35739
37359
|
}
|
|
35740
37360
|
exports.TradutorReversoJavaScript = TradutorReversoJavaScript;
|
|
35741
37361
|
|
|
35742
|
-
},{}],
|
|
37362
|
+
},{}],215:[function(require,module,exports){
|
|
35743
37363
|
"use strict";
|
|
35744
37364
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35745
37365
|
exports.TradutorReversoPython = void 0;
|
|
@@ -35812,7 +37432,7 @@ class TradutorReversoPython {
|
|
|
35812
37432
|
}
|
|
35813
37433
|
exports.TradutorReversoPython = TradutorReversoPython;
|
|
35814
37434
|
|
|
35815
|
-
},{"./python/python3-lexer":
|
|
37435
|
+
},{"./python/python3-lexer":204,"./python/python3-parser":205,"antlr4ts":332,"antlr4ts/tree/ParseTreeWalker":351}],216:[function(require,module,exports){
|
|
35816
37436
|
"use strict";
|
|
35817
37437
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35818
37438
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -36406,7 +38026,7 @@ class TradutorReversoTenda {
|
|
|
36406
38026
|
}
|
|
36407
38027
|
exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
36408
38028
|
|
|
36409
|
-
},{"../construtos":51,"../tipos-de-simbolos/tenda":197}],
|
|
38029
|
+
},{"../construtos":51,"../tipos-de-simbolos/tenda":197}],217:[function(require,module,exports){
|
|
36410
38030
|
"use strict";
|
|
36411
38031
|
/*!
|
|
36412
38032
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36414,7 +38034,7 @@ exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
|
36414
38034
|
*/
|
|
36415
38035
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36416
38036
|
|
|
36417
|
-
},{}],
|
|
38037
|
+
},{}],218:[function(require,module,exports){
|
|
36418
38038
|
"use strict";
|
|
36419
38039
|
/*!
|
|
36420
38040
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36422,7 +38042,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36422
38042
|
*/
|
|
36423
38043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36424
38044
|
|
|
36425
|
-
},{}],
|
|
38045
|
+
},{}],219:[function(require,module,exports){
|
|
36426
38046
|
"use strict";
|
|
36427
38047
|
/*!
|
|
36428
38048
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36584,7 +38204,7 @@ __decorate([
|
|
|
36584
38204
|
], ANTLRInputStream.prototype, "toString", null);
|
|
36585
38205
|
exports.ANTLRInputStream = ANTLRInputStream;
|
|
36586
38206
|
|
|
36587
|
-
},{"./Decorators":
|
|
38207
|
+
},{"./Decorators":230,"./IntStream":236,"assert":373}],220:[function(require,module,exports){
|
|
36588
38208
|
"use strict";
|
|
36589
38209
|
/*!
|
|
36590
38210
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36667,7 +38287,7 @@ __decorate([
|
|
|
36667
38287
|
], BailErrorStrategy.prototype, "sync", null);
|
|
36668
38288
|
exports.BailErrorStrategy = BailErrorStrategy;
|
|
36669
38289
|
|
|
36670
|
-
},{"./Decorators":
|
|
38290
|
+
},{"./Decorators":230,"./DefaultErrorStrategy":231,"./InputMismatchException":235,"./misc/ParseCancellationException":347}],221:[function(require,module,exports){
|
|
36671
38291
|
"use strict";
|
|
36672
38292
|
/*!
|
|
36673
38293
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37157,7 +38777,7 @@ BufferedTokenStream = __decorate([
|
|
|
37157
38777
|
], BufferedTokenStream);
|
|
37158
38778
|
exports.BufferedTokenStream = BufferedTokenStream;
|
|
37159
38779
|
|
|
37160
|
-
},{"./CommonToken":
|
|
38780
|
+
},{"./CommonToken":226,"./Decorators":230,"./Lexer":238,"./Token":255,"./misc/Interval":342,"assert":373}],222:[function(require,module,exports){
|
|
37161
38781
|
"use strict";
|
|
37162
38782
|
/*!
|
|
37163
38783
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37165,7 +38785,7 @@ exports.BufferedTokenStream = BufferedTokenStream;
|
|
|
37165
38785
|
*/
|
|
37166
38786
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
37167
38787
|
|
|
37168
|
-
},{}],
|
|
38788
|
+
},{}],223:[function(require,module,exports){
|
|
37169
38789
|
"use strict";
|
|
37170
38790
|
/*!
|
|
37171
38791
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37299,7 +38919,7 @@ var CharStreams;
|
|
|
37299
38919
|
// }
|
|
37300
38920
|
})(CharStreams = exports.CharStreams || (exports.CharStreams = {}));
|
|
37301
38921
|
|
|
37302
|
-
},{"./CodePointBuffer":
|
|
38922
|
+
},{"./CodePointBuffer":224,"./CodePointCharStream":225,"./IntStream":236}],224:[function(require,module,exports){
|
|
37303
38923
|
"use strict";
|
|
37304
38924
|
/*!
|
|
37305
38925
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37534,7 +39154,7 @@ exports.CodePointBuffer = CodePointBuffer;
|
|
|
37534
39154
|
CodePointBuffer.Builder = Builder;
|
|
37535
39155
|
})(CodePointBuffer = exports.CodePointBuffer || (exports.CodePointBuffer = {}));
|
|
37536
39156
|
|
|
37537
|
-
},{"./misc/Character":
|
|
39157
|
+
},{"./misc/Character":338,"assert":373}],225:[function(require,module,exports){
|
|
37538
39158
|
"use strict";
|
|
37539
39159
|
/*!
|
|
37540
39160
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37684,7 +39304,7 @@ __decorate([
|
|
|
37684
39304
|
], CodePointCharStream.prototype, "getText", null);
|
|
37685
39305
|
exports.CodePointCharStream = CodePointCharStream;
|
|
37686
39306
|
|
|
37687
|
-
},{"./Decorators":
|
|
39307
|
+
},{"./Decorators":230,"./IntStream":236,"./misc/Interval":342,"assert":373}],226:[function(require,module,exports){
|
|
37688
39308
|
"use strict";
|
|
37689
39309
|
/*!
|
|
37690
39310
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37914,7 +39534,7 @@ CommonToken = __decorate([
|
|
|
37914
39534
|
], CommonToken);
|
|
37915
39535
|
exports.CommonToken = CommonToken;
|
|
37916
39536
|
|
|
37917
|
-
},{"./Decorators":
|
|
39537
|
+
},{"./Decorators":230,"./Token":255,"./misc/Interval":342}],227:[function(require,module,exports){
|
|
37918
39538
|
"use strict";
|
|
37919
39539
|
/*!
|
|
37920
39540
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37978,7 +39598,7 @@ exports.CommonTokenFactory = CommonTokenFactory;
|
|
|
37978
39598
|
CommonTokenFactory.DEFAULT = new CommonTokenFactory();
|
|
37979
39599
|
})(CommonTokenFactory = exports.CommonTokenFactory || (exports.CommonTokenFactory = {}));
|
|
37980
39600
|
|
|
37981
|
-
},{"./CommonToken":
|
|
39601
|
+
},{"./CommonToken":226,"./Decorators":230,"./misc/Interval":342}],228:[function(require,module,exports){
|
|
37982
39602
|
"use strict";
|
|
37983
39603
|
/*!
|
|
37984
39604
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38105,7 +39725,7 @@ CommonTokenStream = __decorate([
|
|
|
38105
39725
|
], CommonTokenStream);
|
|
38106
39726
|
exports.CommonTokenStream = CommonTokenStream;
|
|
38107
39727
|
|
|
38108
|
-
},{"./BufferedTokenStream":
|
|
39728
|
+
},{"./BufferedTokenStream":221,"./Decorators":230,"./Token":255}],229:[function(require,module,exports){
|
|
38109
39729
|
"use strict";
|
|
38110
39730
|
/*!
|
|
38111
39731
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38139,7 +39759,7 @@ exports.ConsoleErrorListener = ConsoleErrorListener;
|
|
|
38139
39759
|
*/
|
|
38140
39760
|
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener();
|
|
38141
39761
|
|
|
38142
|
-
},{}],
|
|
39762
|
+
},{}],230:[function(require,module,exports){
|
|
38143
39763
|
"use strict";
|
|
38144
39764
|
/*!
|
|
38145
39765
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38166,7 +39786,7 @@ function SuppressWarnings(options) {
|
|
|
38166
39786
|
}
|
|
38167
39787
|
exports.SuppressWarnings = SuppressWarnings;
|
|
38168
39788
|
|
|
38169
|
-
},{}],
|
|
39789
|
+
},{}],231:[function(require,module,exports){
|
|
38170
39790
|
"use strict";
|
|
38171
39791
|
/*!
|
|
38172
39792
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38980,7 +40600,7 @@ __decorate([
|
|
|
38980
40600
|
], DefaultErrorStrategy.prototype, "consumeUntil", null);
|
|
38981
40601
|
exports.DefaultErrorStrategy = DefaultErrorStrategy;
|
|
38982
40602
|
|
|
38983
|
-
},{"./Decorators":
|
|
40603
|
+
},{"./Decorators":230,"./FailedPredicateException":234,"./InputMismatchException":235,"./NoViableAltException":242,"./Token":255,"./atn/ATNState":269,"./atn/ATNStateType":270,"./atn/PredictionContext":310,"./misc/IntervalSet":343}],232:[function(require,module,exports){
|
|
38984
40604
|
"use strict";
|
|
38985
40605
|
/*!
|
|
38986
40606
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39056,7 +40676,7 @@ var Dependents;
|
|
|
39056
40676
|
Dependents[Dependents["FOLLOWING"] = 9] = "FOLLOWING";
|
|
39057
40677
|
})(Dependents = exports.Dependents || (exports.Dependents = {}));
|
|
39058
40678
|
|
|
39059
|
-
},{}],
|
|
40679
|
+
},{}],233:[function(require,module,exports){
|
|
39060
40680
|
"use strict";
|
|
39061
40681
|
/*!
|
|
39062
40682
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39204,7 +40824,7 @@ __decorate([
|
|
|
39204
40824
|
], DiagnosticErrorListener.prototype, "getConflictingAlts", null);
|
|
39205
40825
|
exports.DiagnosticErrorListener = DiagnosticErrorListener;
|
|
39206
40826
|
|
|
39207
|
-
},{"./Decorators":
|
|
40827
|
+
},{"./Decorators":230,"./misc/BitSet":337,"./misc/Interval":342}],234:[function(require,module,exports){
|
|
39208
40828
|
"use strict";
|
|
39209
40829
|
/*!
|
|
39210
40830
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39269,7 +40889,7 @@ FailedPredicateException = __decorate([
|
|
|
39269
40889
|
], FailedPredicateException);
|
|
39270
40890
|
exports.FailedPredicateException = FailedPredicateException;
|
|
39271
40891
|
|
|
39272
|
-
},{"./Decorators":
|
|
40892
|
+
},{"./Decorators":230,"./RecognitionException":249,"./atn/PredicateTransition":309}],235:[function(require,module,exports){
|
|
39273
40893
|
"use strict";
|
|
39274
40894
|
/*!
|
|
39275
40895
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39309,7 +40929,7 @@ InputMismatchException = __decorate([
|
|
|
39309
40929
|
], InputMismatchException);
|
|
39310
40930
|
exports.InputMismatchException = InputMismatchException;
|
|
39311
40931
|
|
|
39312
|
-
},{"./Decorators":
|
|
40932
|
+
},{"./Decorators":230,"./RecognitionException":249}],236:[function(require,module,exports){
|
|
39313
40933
|
"use strict";
|
|
39314
40934
|
/*!
|
|
39315
40935
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39332,7 +40952,7 @@ var IntStream;
|
|
|
39332
40952
|
IntStream.UNKNOWN_SOURCE_NAME = "<unknown>";
|
|
39333
40953
|
})(IntStream = exports.IntStream || (exports.IntStream = {}));
|
|
39334
40954
|
|
|
39335
|
-
},{}],
|
|
40955
|
+
},{}],237:[function(require,module,exports){
|
|
39336
40956
|
"use strict";
|
|
39337
40957
|
/*!
|
|
39338
40958
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39379,7 +40999,7 @@ __decorate([
|
|
|
39379
40999
|
], InterpreterRuleContext.prototype, "ruleIndex", null);
|
|
39380
41000
|
exports.InterpreterRuleContext = InterpreterRuleContext;
|
|
39381
41001
|
|
|
39382
|
-
},{"./Decorators":
|
|
41002
|
+
},{"./Decorators":230,"./ParserRuleContext":246}],238:[function(require,module,exports){
|
|
39383
41003
|
"use strict";
|
|
39384
41004
|
/*!
|
|
39385
41005
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39715,7 +41335,7 @@ __decorate([
|
|
|
39715
41335
|
], Lexer.prototype, "charPositionInLine", null);
|
|
39716
41336
|
exports.Lexer = Lexer;
|
|
39717
41337
|
|
|
39718
|
-
},{"./CommonTokenFactory":
|
|
41338
|
+
},{"./CommonTokenFactory":227,"./Decorators":230,"./IntStream":236,"./LexerNoViableAltException":240,"./Recognizer":250,"./Token":255,"./atn/LexerATNSimulator":288,"./misc/IntegerStack":341,"./misc/Interval":342}],239:[function(require,module,exports){
|
|
39719
41339
|
"use strict";
|
|
39720
41340
|
/*!
|
|
39721
41341
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39795,7 +41415,7 @@ LexerInterpreter = __decorate([
|
|
|
39795
41415
|
], LexerInterpreter);
|
|
39796
41416
|
exports.LexerInterpreter = LexerInterpreter;
|
|
39797
41417
|
|
|
39798
|
-
},{"./Decorators":
|
|
41418
|
+
},{"./Decorators":230,"./Lexer":238,"./atn/LexerATNSimulator":288}],240:[function(require,module,exports){
|
|
39799
41419
|
"use strict";
|
|
39800
41420
|
/*!
|
|
39801
41421
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39852,7 +41472,7 @@ LexerNoViableAltException = __decorate([
|
|
|
39852
41472
|
], LexerNoViableAltException);
|
|
39853
41473
|
exports.LexerNoViableAltException = LexerNoViableAltException;
|
|
39854
41474
|
|
|
39855
|
-
},{"./Decorators":
|
|
41475
|
+
},{"./Decorators":230,"./RecognitionException":249,"./misc/Interval":342,"./misc/Utils":349}],241:[function(require,module,exports){
|
|
39856
41476
|
"use strict";
|
|
39857
41477
|
/*!
|
|
39858
41478
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40062,7 +41682,7 @@ ListTokenSource = __decorate([
|
|
|
40062
41682
|
], ListTokenSource);
|
|
40063
41683
|
exports.ListTokenSource = ListTokenSource;
|
|
40064
41684
|
|
|
40065
|
-
},{"./CommonTokenFactory":
|
|
41685
|
+
},{"./CommonTokenFactory":227,"./Decorators":230,"./Token":255}],242:[function(require,module,exports){
|
|
40066
41686
|
"use strict";
|
|
40067
41687
|
/*!
|
|
40068
41688
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40117,7 +41737,7 @@ __decorate([
|
|
|
40117
41737
|
], NoViableAltException.prototype, "_startToken", void 0);
|
|
40118
41738
|
exports.NoViableAltException = NoViableAltException;
|
|
40119
41739
|
|
|
40120
|
-
},{"./Decorators":
|
|
41740
|
+
},{"./Decorators":230,"./Parser":243,"./RecognitionException":249}],243:[function(require,module,exports){
|
|
40121
41741
|
(function (process){(function (){
|
|
40122
41742
|
"use strict";
|
|
40123
41743
|
/*!
|
|
@@ -40963,7 +42583,7 @@ __decorate([
|
|
|
40963
42583
|
exports.Parser = Parser;
|
|
40964
42584
|
|
|
40965
42585
|
}).call(this)}).call(this,require('_process'))
|
|
40966
|
-
},{"./Decorators":
|
|
42586
|
+
},{"./Decorators":230,"./DefaultErrorStrategy":231,"./Lexer":238,"./ProxyParserErrorListener":248,"./Recognizer":250,"./Token":255,"./atn/ATNDeserializationOptions":266,"./atn/ATNDeserializer":267,"./atn/ParseInfo":303,"./atn/ParserATNSimulator":304,"./atn/ProfilingATNSimulator":313,"./misc/IntegerStack":341,"./misc/Utils":349,"./tree/ErrorNode":350,"./tree/TerminalNode":353,"./tree/pattern/ParseTreePatternMatcher":358,"_process":432}],244:[function(require,module,exports){
|
|
40967
42587
|
"use strict";
|
|
40968
42588
|
/*!
|
|
40969
42589
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40971,7 +42591,7 @@ exports.Parser = Parser;
|
|
|
40971
42591
|
*/
|
|
40972
42592
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40973
42593
|
|
|
40974
|
-
},{}],
|
|
42594
|
+
},{}],245:[function(require,module,exports){
|
|
40975
42595
|
"use strict";
|
|
40976
42596
|
/*!
|
|
40977
42597
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41379,7 +42999,7 @@ ParserInterpreter = __decorate([
|
|
|
41379
42999
|
], ParserInterpreter);
|
|
41380
43000
|
exports.ParserInterpreter = ParserInterpreter;
|
|
41381
43001
|
|
|
41382
|
-
},{"./Decorators":
|
|
43002
|
+
},{"./Decorators":230,"./FailedPredicateException":234,"./InputMismatchException":235,"./InterpreterRuleContext":237,"./Parser":243,"./RecognitionException":249,"./Token":255,"./atn/ATNState":269,"./atn/ATNStateType":270,"./atn/LoopEndState":300,"./atn/ParserATNSimulator":304,"./atn/StarLoopEntryState":322,"./misc/BitSet":337}],246:[function(require,module,exports){
|
|
41383
43003
|
"use strict";
|
|
41384
43004
|
/*!
|
|
41385
43005
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41680,7 +43300,7 @@ __decorate([
|
|
|
41680
43300
|
], ParserRuleContext.prototype, "sourceInterval", null);
|
|
41681
43301
|
exports.ParserRuleContext = ParserRuleContext;
|
|
41682
43302
|
|
|
41683
|
-
},{"./Decorators":
|
|
43303
|
+
},{"./Decorators":230,"./RuleContext":251,"./misc/Interval":342,"./tree/ErrorNode":350,"./tree/TerminalNode":353}],247:[function(require,module,exports){
|
|
41684
43304
|
"use strict";
|
|
41685
43305
|
/*!
|
|
41686
43306
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41730,7 +43350,7 @@ __decorate([
|
|
|
41730
43350
|
], ProxyErrorListener.prototype, "syntaxError", null);
|
|
41731
43351
|
exports.ProxyErrorListener = ProxyErrorListener;
|
|
41732
43352
|
|
|
41733
|
-
},{"./Decorators":
|
|
43353
|
+
},{"./Decorators":230}],248:[function(require,module,exports){
|
|
41734
43354
|
"use strict";
|
|
41735
43355
|
/*!
|
|
41736
43356
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41789,7 +43409,7 @@ __decorate([
|
|
|
41789
43409
|
], ProxyParserErrorListener.prototype, "reportContextSensitivity", null);
|
|
41790
43410
|
exports.ProxyParserErrorListener = ProxyParserErrorListener;
|
|
41791
43411
|
|
|
41792
|
-
},{"./Decorators":
|
|
43412
|
+
},{"./Decorators":230,"./ProxyErrorListener":247}],249:[function(require,module,exports){
|
|
41793
43413
|
"use strict";
|
|
41794
43414
|
/*!
|
|
41795
43415
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41894,7 +43514,7 @@ class RecognitionException extends Error {
|
|
|
41894
43514
|
}
|
|
41895
43515
|
exports.RecognitionException = RecognitionException;
|
|
41896
43516
|
|
|
41897
|
-
},{}],
|
|
43517
|
+
},{}],250:[function(require,module,exports){
|
|
41898
43518
|
"use strict";
|
|
41899
43519
|
/*!
|
|
41900
43520
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42113,7 +43733,7 @@ __decorate([
|
|
|
42113
43733
|
], Recognizer.prototype, "getErrorListeners", null);
|
|
42114
43734
|
exports.Recognizer = Recognizer;
|
|
42115
43735
|
|
|
42116
|
-
},{"./ConsoleErrorListener":
|
|
43736
|
+
},{"./ConsoleErrorListener":229,"./Decorators":230,"./ProxyErrorListener":247,"./Token":255,"./misc/Utils":349}],251:[function(require,module,exports){
|
|
42117
43737
|
"use strict";
|
|
42118
43738
|
/*!
|
|
42119
43739
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42330,7 +43950,7 @@ __decorate([
|
|
|
42330
43950
|
], RuleContext.prototype, "toStringTree", null);
|
|
42331
43951
|
exports.RuleContext = RuleContext;
|
|
42332
43952
|
|
|
42333
|
-
},{"./Decorators":
|
|
43953
|
+
},{"./Decorators":230,"./ParserRuleContext":246,"./Recognizer":250,"./atn/ATN":263,"./misc/Interval":342,"./tree/RuleNode":352,"./tree/Trees":354}],252:[function(require,module,exports){
|
|
42334
43954
|
"use strict";
|
|
42335
43955
|
/*!
|
|
42336
43956
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42381,7 +44001,7 @@ __decorate([
|
|
|
42381
44001
|
], RuleContextWithAltNum.prototype, "altNumber", null);
|
|
42382
44002
|
exports.RuleContextWithAltNum = RuleContextWithAltNum;
|
|
42383
44003
|
|
|
42384
|
-
},{"./Decorators":
|
|
44004
|
+
},{"./Decorators":230,"./ParserRuleContext":246,"./atn/ATN":263}],253:[function(require,module,exports){
|
|
42385
44005
|
"use strict";
|
|
42386
44006
|
/*!
|
|
42387
44007
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42404,7 +44024,7 @@ function RuleDependency(dependency) {
|
|
|
42404
44024
|
}
|
|
42405
44025
|
exports.RuleDependency = RuleDependency;
|
|
42406
44026
|
|
|
42407
|
-
},{}],
|
|
44027
|
+
},{}],254:[function(require,module,exports){
|
|
42408
44028
|
"use strict";
|
|
42409
44029
|
/*!
|
|
42410
44030
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42423,7 +44043,7 @@ function RuleVersion(version) {
|
|
|
42423
44043
|
}
|
|
42424
44044
|
exports.RuleVersion = RuleVersion;
|
|
42425
44045
|
|
|
42426
|
-
},{}],
|
|
44046
|
+
},{}],255:[function(require,module,exports){
|
|
42427
44047
|
"use strict";
|
|
42428
44048
|
/*!
|
|
42429
44049
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42463,7 +44083,7 @@ var Token;
|
|
|
42463
44083
|
Token.MIN_USER_CHANNEL_VALUE = 2;
|
|
42464
44084
|
})(Token = exports.Token || (exports.Token = {}));
|
|
42465
44085
|
|
|
42466
|
-
},{"./IntStream":
|
|
44086
|
+
},{"./IntStream":236}],256:[function(require,module,exports){
|
|
42467
44087
|
"use strict";
|
|
42468
44088
|
/*!
|
|
42469
44089
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42471,7 +44091,7 @@ var Token;
|
|
|
42471
44091
|
*/
|
|
42472
44092
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42473
44093
|
|
|
42474
|
-
},{}],
|
|
44094
|
+
},{}],257:[function(require,module,exports){
|
|
42475
44095
|
"use strict";
|
|
42476
44096
|
/*!
|
|
42477
44097
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42479,7 +44099,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42479
44099
|
*/
|
|
42480
44100
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42481
44101
|
|
|
42482
|
-
},{}],
|
|
44102
|
+
},{}],258:[function(require,module,exports){
|
|
42483
44103
|
"use strict";
|
|
42484
44104
|
/*!
|
|
42485
44105
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42487,7 +44107,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42487
44107
|
*/
|
|
42488
44108
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42489
44109
|
|
|
42490
|
-
},{}],
|
|
44110
|
+
},{}],259:[function(require,module,exports){
|
|
42491
44111
|
"use strict";
|
|
42492
44112
|
/*!
|
|
42493
44113
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42995,7 +44615,7 @@ __decorate([
|
|
|
42995
44615
|
Decorators_1.Override
|
|
42996
44616
|
], ReplaceOp.prototype, "toString", null);
|
|
42997
44617
|
|
|
42998
|
-
},{"./Decorators":
|
|
44618
|
+
},{"./Decorators":230,"./Token":255,"./misc/Interval":342}],260:[function(require,module,exports){
|
|
42999
44619
|
"use strict";
|
|
43000
44620
|
/*!
|
|
43001
44621
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43003,7 +44623,7 @@ __decorate([
|
|
|
43003
44623
|
*/
|
|
43004
44624
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43005
44625
|
|
|
43006
|
-
},{}],
|
|
44626
|
+
},{}],261:[function(require,module,exports){
|
|
43007
44627
|
"use strict";
|
|
43008
44628
|
/*!
|
|
43009
44629
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43123,7 +44743,7 @@ __decorate([
|
|
|
43123
44743
|
], VocabularyImpl, "EMPTY_VOCABULARY", void 0);
|
|
43124
44744
|
exports.VocabularyImpl = VocabularyImpl;
|
|
43125
44745
|
|
|
43126
|
-
},{"./Decorators":
|
|
44746
|
+
},{"./Decorators":230,"./Token":255}],262:[function(require,module,exports){
|
|
43127
44747
|
"use strict";
|
|
43128
44748
|
/*!
|
|
43129
44749
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43131,7 +44751,7 @@ exports.VocabularyImpl = VocabularyImpl;
|
|
|
43131
44751
|
*/
|
|
43132
44752
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43133
44753
|
|
|
43134
|
-
},{}],
|
|
44754
|
+
},{}],263:[function(require,module,exports){
|
|
43135
44755
|
"use strict";
|
|
43136
44756
|
/*!
|
|
43137
44757
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43353,7 +44973,7 @@ exports.ATN = ATN;
|
|
|
43353
44973
|
})(ATN = exports.ATN || (exports.ATN = {}));
|
|
43354
44974
|
exports.ATN = ATN;
|
|
43355
44975
|
|
|
43356
|
-
},{"../Decorators":
|
|
44976
|
+
},{"../Decorators":230,"../Token":255,"../dfa/DFA":328,"../misc/Array2DHashMap":333,"../misc/IntervalSet":343,"../misc/ObjectEqualityComparator":346,"./InvalidState":286,"./LL1Analyzer":287,"./PredictionContext":310,"assert":373}],264:[function(require,module,exports){
|
|
43357
44977
|
"use strict";
|
|
43358
44978
|
/*!
|
|
43359
44979
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43878,7 +45498,7 @@ ActionSemanticContextATNConfig = __decorate([
|
|
|
43878
45498
|
__param(1, Decorators_1.NotNull), __param(2, Decorators_1.NotNull)
|
|
43879
45499
|
], ActionSemanticContextATNConfig);
|
|
43880
45500
|
|
|
43881
|
-
},{"../Decorators":
|
|
45501
|
+
},{"../Decorators":230,"../misc/Array2DHashMap":333,"../misc/MurmurHash":345,"../misc/ObjectEqualityComparator":346,"./DecisionState":283,"./PredictionContext":310,"./SemanticContext":318,"assert":373}],265:[function(require,module,exports){
|
|
43882
45502
|
"use strict";
|
|
43883
45503
|
/*!
|
|
43884
45504
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44325,7 +45945,7 @@ __decorate([
|
|
|
44325
45945
|
], ATNConfigSet.prototype, "hashCode", null);
|
|
44326
45946
|
exports.ATNConfigSet = ATNConfigSet;
|
|
44327
45947
|
|
|
44328
|
-
},{"../Decorators":
|
|
45948
|
+
},{"../Decorators":230,"../misc/Array2DHashMap":333,"../misc/Array2DHashSet":334,"../misc/ArrayEqualityComparator":335,"../misc/BitSet":337,"../misc/ObjectEqualityComparator":346,"../misc/Utils":349,"./ATN":263,"./ATNConfig":264,"./PredictionContext":310,"./PredictionContextCache":311,"./SemanticContext":318,"assert":373}],266:[function(require,module,exports){
|
|
44329
45949
|
"use strict";
|
|
44330
45950
|
/*!
|
|
44331
45951
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44404,7 +46024,7 @@ __decorate([
|
|
|
44404
46024
|
], ATNDeserializationOptions, "defaultOptions", null);
|
|
44405
46025
|
exports.ATNDeserializationOptions = ATNDeserializationOptions;
|
|
44406
46026
|
|
|
44407
|
-
},{"../Decorators":
|
|
46027
|
+
},{"../Decorators":230}],267:[function(require,module,exports){
|
|
44408
46028
|
"use strict";
|
|
44409
46029
|
/*!
|
|
44410
46030
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45491,7 +47111,7 @@ __decorate([
|
|
|
45491
47111
|
], ATNDeserializer.prototype, "edgeFactory", null);
|
|
45492
47112
|
exports.ATNDeserializer = ATNDeserializer;
|
|
45493
47113
|
|
|
45494
|
-
},{"../Decorators":
|
|
47114
|
+
},{"../Decorators":230,"../Token":255,"../dfa/DFA":328,"../misc/Array2DHashSet":334,"../misc/BitSet":337,"../misc/IntervalSet":343,"../misc/UUID":348,"./ATN":263,"./ATNDeserializationOptions":266,"./ATNStateType":270,"./ActionTransition":272,"./AtomTransition":274,"./BasicBlockStartState":275,"./BasicState":276,"./BlockEndState":277,"./BlockStartState":278,"./DecisionState":283,"./EpsilonTransition":284,"./InvalidState":286,"./LexerChannelAction":290,"./LexerCustomAction":291,"./LexerModeAction":293,"./LexerMoreAction":294,"./LexerPopModeAction":295,"./LexerPushModeAction":296,"./LexerSkipAction":297,"./LexerTypeAction":298,"./LoopEndState":300,"./NotSetTransition":301,"./ParserATNSimulator":304,"./PlusBlockStartState":305,"./PlusLoopbackState":306,"./PrecedencePredicateTransition":307,"./PredicateTransition":309,"./RangeTransition":314,"./RuleStartState":315,"./RuleStopState":316,"./RuleTransition":317,"./SetTransition":319,"./StarBlockStartState":321,"./StarLoopEntryState":322,"./StarLoopbackState":323,"./TokensStartState":324,"./WildcardTransition":326}],268:[function(require,module,exports){
|
|
45495
47115
|
"use strict";
|
|
45496
47116
|
/*!
|
|
45497
47117
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45555,7 +47175,7 @@ exports.ATNSimulator = ATNSimulator;
|
|
|
45555
47175
|
})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
|
|
45556
47176
|
exports.ATNSimulator = ATNSimulator;
|
|
45557
47177
|
|
|
45558
|
-
},{"../Decorators":
|
|
47178
|
+
},{"../Decorators":230,"../dfa/DFAState":330,"./ATNConfigSet":265,"./PredictionContext":310}],269:[function(require,module,exports){
|
|
45559
47179
|
"use strict";
|
|
45560
47180
|
/*!
|
|
45561
47181
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45742,7 +47362,7 @@ exports.ATNState = ATNState;
|
|
|
45742
47362
|
ATNState.INVALID_STATE_NUMBER = -1;
|
|
45743
47363
|
})(ATNState = exports.ATNState || (exports.ATNState = {}));
|
|
45744
47364
|
|
|
45745
|
-
},{"../Decorators":
|
|
47365
|
+
},{"../Decorators":230}],270:[function(require,module,exports){
|
|
45746
47366
|
"use strict";
|
|
45747
47367
|
/*!
|
|
45748
47368
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45768,7 +47388,7 @@ var ATNStateType;
|
|
|
45768
47388
|
ATNStateType[ATNStateType["LOOP_END"] = 12] = "LOOP_END";
|
|
45769
47389
|
})(ATNStateType = exports.ATNStateType || (exports.ATNStateType = {}));
|
|
45770
47390
|
|
|
45771
|
-
},{}],
|
|
47391
|
+
},{}],271:[function(require,module,exports){
|
|
45772
47392
|
"use strict";
|
|
45773
47393
|
/*!
|
|
45774
47394
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45788,7 +47408,7 @@ class AbstractPredicateTransition extends Transition_1.Transition {
|
|
|
45788
47408
|
}
|
|
45789
47409
|
exports.AbstractPredicateTransition = AbstractPredicateTransition;
|
|
45790
47410
|
|
|
45791
|
-
},{"./Transition":
|
|
47411
|
+
},{"./Transition":325}],272:[function(require,module,exports){
|
|
45792
47412
|
"use strict";
|
|
45793
47413
|
/*!
|
|
45794
47414
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45844,7 +47464,7 @@ ActionTransition = __decorate([
|
|
|
45844
47464
|
], ActionTransition);
|
|
45845
47465
|
exports.ActionTransition = ActionTransition;
|
|
45846
47466
|
|
|
45847
|
-
},{"../Decorators":
|
|
47467
|
+
},{"../Decorators":230,"./Transition":325}],273:[function(require,module,exports){
|
|
45848
47468
|
"use strict";
|
|
45849
47469
|
/*!
|
|
45850
47470
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45931,7 +47551,7 @@ AmbiguityInfo = __decorate([
|
|
|
45931
47551
|
], AmbiguityInfo);
|
|
45932
47552
|
exports.AmbiguityInfo = AmbiguityInfo;
|
|
45933
47553
|
|
|
45934
|
-
},{"../Decorators":
|
|
47554
|
+
},{"../Decorators":230,"./DecisionEventInfo":281}],274:[function(require,module,exports){
|
|
45935
47555
|
"use strict";
|
|
45936
47556
|
/*!
|
|
45937
47557
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45989,7 +47609,7 @@ AtomTransition = __decorate([
|
|
|
45989
47609
|
], AtomTransition);
|
|
45990
47610
|
exports.AtomTransition = AtomTransition;
|
|
45991
47611
|
|
|
45992
|
-
},{"../Decorators":
|
|
47612
|
+
},{"../Decorators":230,"../misc/IntervalSet":343,"./Transition":325}],275:[function(require,module,exports){
|
|
45993
47613
|
"use strict";
|
|
45994
47614
|
/*!
|
|
45995
47615
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46021,7 +47641,7 @@ __decorate([
|
|
|
46021
47641
|
], BasicBlockStartState.prototype, "stateType", null);
|
|
46022
47642
|
exports.BasicBlockStartState = BasicBlockStartState;
|
|
46023
47643
|
|
|
46024
|
-
},{"../Decorators":
|
|
47644
|
+
},{"../Decorators":230,"./ATNStateType":270,"./BlockStartState":278}],276:[function(require,module,exports){
|
|
46025
47645
|
"use strict";
|
|
46026
47646
|
/*!
|
|
46027
47647
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46053,7 +47673,7 @@ __decorate([
|
|
|
46053
47673
|
], BasicState.prototype, "stateType", null);
|
|
46054
47674
|
exports.BasicState = BasicState;
|
|
46055
47675
|
|
|
46056
|
-
},{"../Decorators":
|
|
47676
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],277:[function(require,module,exports){
|
|
46057
47677
|
"use strict";
|
|
46058
47678
|
/*!
|
|
46059
47679
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46082,7 +47702,7 @@ __decorate([
|
|
|
46082
47702
|
], BlockEndState.prototype, "stateType", null);
|
|
46083
47703
|
exports.BlockEndState = BlockEndState;
|
|
46084
47704
|
|
|
46085
|
-
},{"../Decorators":
|
|
47705
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],278:[function(require,module,exports){
|
|
46086
47706
|
"use strict";
|
|
46087
47707
|
/*!
|
|
46088
47708
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46096,7 +47716,7 @@ class BlockStartState extends DecisionState_1.DecisionState {
|
|
|
46096
47716
|
}
|
|
46097
47717
|
exports.BlockStartState = BlockStartState;
|
|
46098
47718
|
|
|
46099
|
-
},{"./DecisionState":
|
|
47719
|
+
},{"./DecisionState":283}],279:[function(require,module,exports){
|
|
46100
47720
|
"use strict";
|
|
46101
47721
|
/*!
|
|
46102
47722
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46166,7 +47786,7 @@ __decorate([
|
|
|
46166
47786
|
], ConflictInfo.prototype, "hashCode", null);
|
|
46167
47787
|
exports.ConflictInfo = ConflictInfo;
|
|
46168
47788
|
|
|
46169
|
-
},{"../Decorators":
|
|
47789
|
+
},{"../Decorators":230,"../misc/Utils":349}],280:[function(require,module,exports){
|
|
46170
47790
|
"use strict";
|
|
46171
47791
|
/*!
|
|
46172
47792
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46226,7 +47846,7 @@ ContextSensitivityInfo = __decorate([
|
|
|
46226
47846
|
], ContextSensitivityInfo);
|
|
46227
47847
|
exports.ContextSensitivityInfo = ContextSensitivityInfo;
|
|
46228
47848
|
|
|
46229
|
-
},{"../Decorators":
|
|
47849
|
+
},{"../Decorators":230,"./DecisionEventInfo":281}],281:[function(require,module,exports){
|
|
46230
47850
|
"use strict";
|
|
46231
47851
|
/*!
|
|
46232
47852
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46278,7 +47898,7 @@ DecisionEventInfo = __decorate([
|
|
|
46278
47898
|
], DecisionEventInfo);
|
|
46279
47899
|
exports.DecisionEventInfo = DecisionEventInfo;
|
|
46280
47900
|
|
|
46281
|
-
},{"../Decorators":
|
|
47901
|
+
},{"../Decorators":230}],282:[function(require,module,exports){
|
|
46282
47902
|
"use strict";
|
|
46283
47903
|
/*!
|
|
46284
47904
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46491,7 +48111,7 @@ __decorate([
|
|
|
46491
48111
|
], DecisionInfo.prototype, "toString", null);
|
|
46492
48112
|
exports.DecisionInfo = DecisionInfo;
|
|
46493
48113
|
|
|
46494
|
-
},{"../Decorators":
|
|
48114
|
+
},{"../Decorators":230}],283:[function(require,module,exports){
|
|
46495
48115
|
"use strict";
|
|
46496
48116
|
/*!
|
|
46497
48117
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46511,7 +48131,7 @@ class DecisionState extends ATNState_1.ATNState {
|
|
|
46511
48131
|
}
|
|
46512
48132
|
exports.DecisionState = DecisionState;
|
|
46513
48133
|
|
|
46514
|
-
},{"./ATNState":
|
|
48134
|
+
},{"./ATNState":269}],284:[function(require,module,exports){
|
|
46515
48135
|
"use strict";
|
|
46516
48136
|
/*!
|
|
46517
48137
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46577,7 +48197,7 @@ EpsilonTransition = __decorate([
|
|
|
46577
48197
|
], EpsilonTransition);
|
|
46578
48198
|
exports.EpsilonTransition = EpsilonTransition;
|
|
46579
48199
|
|
|
46580
|
-
},{"../Decorators":
|
|
48200
|
+
},{"../Decorators":230,"./Transition":325}],285:[function(require,module,exports){
|
|
46581
48201
|
"use strict";
|
|
46582
48202
|
/*!
|
|
46583
48203
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46630,7 +48250,7 @@ ErrorInfo = __decorate([
|
|
|
46630
48250
|
], ErrorInfo);
|
|
46631
48251
|
exports.ErrorInfo = ErrorInfo;
|
|
46632
48252
|
|
|
46633
|
-
},{"../Decorators":
|
|
48253
|
+
},{"../Decorators":230,"./DecisionEventInfo":281}],286:[function(require,module,exports){
|
|
46634
48254
|
"use strict";
|
|
46635
48255
|
/*!
|
|
46636
48256
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46661,7 +48281,7 @@ __decorate([
|
|
|
46661
48281
|
], InvalidState.prototype, "stateType", null);
|
|
46662
48282
|
exports.InvalidState = InvalidState;
|
|
46663
48283
|
|
|
46664
|
-
},{"../Decorators":
|
|
48284
|
+
},{"../Decorators":230,"./ATNStateType":270,"./BasicState":276}],287:[function(require,module,exports){
|
|
46665
48285
|
"use strict";
|
|
46666
48286
|
/*!
|
|
46667
48287
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46883,7 +48503,7 @@ LL1Analyzer = __decorate([
|
|
|
46883
48503
|
], LL1Analyzer);
|
|
46884
48504
|
exports.LL1Analyzer = LL1Analyzer;
|
|
46885
48505
|
|
|
46886
|
-
},{"../Decorators":
|
|
48506
|
+
},{"../Decorators":230,"../Token":255,"../misc/Array2DHashSet":334,"../misc/BitSet":337,"../misc/IntervalSet":343,"../misc/ObjectEqualityComparator":346,"./ATNConfig":264,"./AbstractPredicateTransition":271,"./NotSetTransition":301,"./PredictionContext":310,"./RuleStopState":316,"./RuleTransition":317,"./WildcardTransition":326}],288:[function(require,module,exports){
|
|
46887
48507
|
"use strict";
|
|
46888
48508
|
/*!
|
|
46889
48509
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47600,7 +49220,7 @@ exports.LexerATNSimulator = LexerATNSimulator;
|
|
|
47600
49220
|
})(LexerATNSimulator = exports.LexerATNSimulator || (exports.LexerATNSimulator = {}));
|
|
47601
49221
|
exports.LexerATNSimulator = LexerATNSimulator;
|
|
47602
49222
|
|
|
47603
|
-
},{"../Decorators":
|
|
49223
|
+
},{"../Decorators":230,"../IntStream":236,"../Lexer":238,"../LexerNoViableAltException":240,"../Token":255,"../dfa/AcceptStateInfo":327,"../dfa/DFAState":330,"../misc/Interval":342,"./ATN":263,"./ATNConfig":264,"./ATNConfigSet":265,"./ATNSimulator":268,"./LexerActionExecutor":289,"./OrderedATNConfigSet":302,"./PredictionContext":310,"./RuleStopState":316,"assert":373}],289:[function(require,module,exports){
|
|
47604
49224
|
"use strict";
|
|
47605
49225
|
/*!
|
|
47606
49226
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47801,7 +49421,7 @@ LexerActionExecutor = __decorate([
|
|
|
47801
49421
|
], LexerActionExecutor);
|
|
47802
49422
|
exports.LexerActionExecutor = LexerActionExecutor;
|
|
47803
49423
|
|
|
47804
|
-
},{"../Decorators":
|
|
49424
|
+
},{"../Decorators":230,"../misc/ArrayEqualityComparator":335,"../misc/MurmurHash":345,"./LexerIndexedCustomAction":292}],290:[function(require,module,exports){
|
|
47805
49425
|
"use strict";
|
|
47806
49426
|
/*!
|
|
47807
49427
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47906,7 +49526,7 @@ __decorate([
|
|
|
47906
49526
|
], LexerChannelAction.prototype, "toString", null);
|
|
47907
49527
|
exports.LexerChannelAction = LexerChannelAction;
|
|
47908
49528
|
|
|
47909
|
-
},{"../Decorators":
|
|
49529
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],291:[function(require,module,exports){
|
|
47910
49530
|
"use strict";
|
|
47911
49531
|
/*!
|
|
47912
49532
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48035,7 +49655,7 @@ __decorate([
|
|
|
48035
49655
|
], LexerCustomAction.prototype, "equals", null);
|
|
48036
49656
|
exports.LexerCustomAction = LexerCustomAction;
|
|
48037
49657
|
|
|
48038
|
-
},{"../Decorators":
|
|
49658
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],292:[function(require,module,exports){
|
|
48039
49659
|
"use strict";
|
|
48040
49660
|
/*!
|
|
48041
49661
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48170,7 +49790,7 @@ LexerIndexedCustomAction = __decorate([
|
|
|
48170
49790
|
], LexerIndexedCustomAction);
|
|
48171
49791
|
exports.LexerIndexedCustomAction = LexerIndexedCustomAction;
|
|
48172
49792
|
|
|
48173
|
-
},{"../Decorators":
|
|
49793
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],293:[function(require,module,exports){
|
|
48174
49794
|
"use strict";
|
|
48175
49795
|
/*!
|
|
48176
49796
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48275,7 +49895,7 @@ __decorate([
|
|
|
48275
49895
|
], LexerModeAction.prototype, "toString", null);
|
|
48276
49896
|
exports.LexerModeAction = LexerModeAction;
|
|
48277
49897
|
|
|
48278
|
-
},{"../Decorators":
|
|
49898
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],294:[function(require,module,exports){
|
|
48279
49899
|
"use strict";
|
|
48280
49900
|
/*!
|
|
48281
49901
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48371,7 +49991,7 @@ exports.LexerMoreAction = LexerMoreAction;
|
|
|
48371
49991
|
LexerMoreAction.INSTANCE = new LexerMoreAction();
|
|
48372
49992
|
})(LexerMoreAction = exports.LexerMoreAction || (exports.LexerMoreAction = {}));
|
|
48373
49993
|
|
|
48374
|
-
},{"../Decorators":
|
|
49994
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],295:[function(require,module,exports){
|
|
48375
49995
|
"use strict";
|
|
48376
49996
|
/*!
|
|
48377
49997
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48467,7 +50087,7 @@ exports.LexerPopModeAction = LexerPopModeAction;
|
|
|
48467
50087
|
LexerPopModeAction.INSTANCE = new LexerPopModeAction();
|
|
48468
50088
|
})(LexerPopModeAction = exports.LexerPopModeAction || (exports.LexerPopModeAction = {}));
|
|
48469
50089
|
|
|
48470
|
-
},{"../Decorators":
|
|
50090
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],296:[function(require,module,exports){
|
|
48471
50091
|
"use strict";
|
|
48472
50092
|
/*!
|
|
48473
50093
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48572,7 +50192,7 @@ __decorate([
|
|
|
48572
50192
|
], LexerPushModeAction.prototype, "toString", null);
|
|
48573
50193
|
exports.LexerPushModeAction = LexerPushModeAction;
|
|
48574
50194
|
|
|
48575
|
-
},{"../Decorators":
|
|
50195
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],297:[function(require,module,exports){
|
|
48576
50196
|
"use strict";
|
|
48577
50197
|
/*!
|
|
48578
50198
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48668,7 +50288,7 @@ exports.LexerSkipAction = LexerSkipAction;
|
|
|
48668
50288
|
LexerSkipAction.INSTANCE = new LexerSkipAction();
|
|
48669
50289
|
})(LexerSkipAction = exports.LexerSkipAction || (exports.LexerSkipAction = {}));
|
|
48670
50290
|
|
|
48671
|
-
},{"../Decorators":
|
|
50291
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],298:[function(require,module,exports){
|
|
48672
50292
|
"use strict";
|
|
48673
50293
|
/*!
|
|
48674
50294
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48772,7 +50392,7 @@ __decorate([
|
|
|
48772
50392
|
], LexerTypeAction.prototype, "toString", null);
|
|
48773
50393
|
exports.LexerTypeAction = LexerTypeAction;
|
|
48774
50394
|
|
|
48775
|
-
},{"../Decorators":
|
|
50395
|
+
},{"../Decorators":230,"../misc/MurmurHash":345}],299:[function(require,module,exports){
|
|
48776
50396
|
"use strict";
|
|
48777
50397
|
/*!
|
|
48778
50398
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48824,7 +50444,7 @@ LookaheadEventInfo = __decorate([
|
|
|
48824
50444
|
], LookaheadEventInfo);
|
|
48825
50445
|
exports.LookaheadEventInfo = LookaheadEventInfo;
|
|
48826
50446
|
|
|
48827
|
-
},{"../Decorators":
|
|
50447
|
+
},{"../Decorators":230,"./DecisionEventInfo":281}],300:[function(require,module,exports){
|
|
48828
50448
|
"use strict";
|
|
48829
50449
|
/*!
|
|
48830
50450
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48853,7 +50473,7 @@ __decorate([
|
|
|
48853
50473
|
], LoopEndState.prototype, "stateType", null);
|
|
48854
50474
|
exports.LoopEndState = LoopEndState;
|
|
48855
50475
|
|
|
48856
|
-
},{"../Decorators":
|
|
50476
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],301:[function(require,module,exports){
|
|
48857
50477
|
"use strict";
|
|
48858
50478
|
/*!
|
|
48859
50479
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48902,7 +50522,7 @@ NotSetTransition = __decorate([
|
|
|
48902
50522
|
], NotSetTransition);
|
|
48903
50523
|
exports.NotSetTransition = NotSetTransition;
|
|
48904
50524
|
|
|
48905
|
-
},{"../Decorators":
|
|
50525
|
+
},{"../Decorators":230,"./SetTransition":319}],302:[function(require,module,exports){
|
|
48906
50526
|
"use strict";
|
|
48907
50527
|
/*!
|
|
48908
50528
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48957,7 +50577,7 @@ __decorate([
|
|
|
48957
50577
|
], OrderedATNConfigSet.prototype, "canMerge", null);
|
|
48958
50578
|
exports.OrderedATNConfigSet = OrderedATNConfigSet;
|
|
48959
50579
|
|
|
48960
|
-
},{"../Decorators":
|
|
50580
|
+
},{"../Decorators":230,"./ATNConfigSet":265}],303:[function(require,module,exports){
|
|
48961
50581
|
"use strict";
|
|
48962
50582
|
/*!
|
|
48963
50583
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49119,7 +50739,7 @@ ParseInfo = __decorate([
|
|
|
49119
50739
|
], ParseInfo);
|
|
49120
50740
|
exports.ParseInfo = ParseInfo;
|
|
49121
50741
|
|
|
49122
|
-
},{"../Decorators":
|
|
50742
|
+
},{"../Decorators":230}],304:[function(require,module,exports){
|
|
49123
50743
|
"use strict";
|
|
49124
50744
|
/*!
|
|
49125
50745
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51392,7 +53012,7 @@ ParserATNSimulator = __decorate([
|
|
|
51392
53012
|
], ParserATNSimulator);
|
|
51393
53013
|
exports.ParserATNSimulator = ParserATNSimulator;
|
|
51394
53014
|
|
|
51395
|
-
},{"../Decorators":
|
|
53015
|
+
},{"../Decorators":230,"../IntStream":236,"../NoViableAltException":242,"../ParserRuleContext":246,"../Token":255,"../VocabularyImpl":261,"../dfa/AcceptStateInfo":327,"../dfa/DFAState":330,"../misc/Array2DHashSet":334,"../misc/Arrays":336,"../misc/BitSet":337,"../misc/IntegerList":340,"../misc/Interval":342,"../misc/ObjectEqualityComparator":346,"./ATN":263,"./ATNConfig":264,"./ATNConfigSet":265,"./ATNSimulator":268,"./ATNStateType":270,"./ActionTransition":272,"./AtomTransition":274,"./ConflictInfo":279,"./DecisionState":283,"./NotSetTransition":301,"./PredictionContext":310,"./PredictionContextCache":311,"./PredictionMode":312,"./RuleStopState":316,"./RuleTransition":317,"./SemanticContext":318,"./SetTransition":319,"./SimulatorState":320,"assert":373}],305:[function(require,module,exports){
|
|
51396
53016
|
"use strict";
|
|
51397
53017
|
/*!
|
|
51398
53018
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51425,7 +53045,7 @@ __decorate([
|
|
|
51425
53045
|
], PlusBlockStartState.prototype, "stateType", null);
|
|
51426
53046
|
exports.PlusBlockStartState = PlusBlockStartState;
|
|
51427
53047
|
|
|
51428
|
-
},{"../Decorators":
|
|
53048
|
+
},{"../Decorators":230,"./ATNStateType":270,"./BlockStartState":278}],306:[function(require,module,exports){
|
|
51429
53049
|
"use strict";
|
|
51430
53050
|
/*!
|
|
51431
53051
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51456,7 +53076,7 @@ __decorate([
|
|
|
51456
53076
|
], PlusLoopbackState.prototype, "stateType", null);
|
|
51457
53077
|
exports.PlusLoopbackState = PlusLoopbackState;
|
|
51458
53078
|
|
|
51459
|
-
},{"../Decorators":
|
|
53079
|
+
},{"../Decorators":230,"./ATNStateType":270,"./DecisionState":283}],307:[function(require,module,exports){
|
|
51460
53080
|
"use strict";
|
|
51461
53081
|
/*!
|
|
51462
53082
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51519,7 +53139,7 @@ PrecedencePredicateTransition = __decorate([
|
|
|
51519
53139
|
], PrecedencePredicateTransition);
|
|
51520
53140
|
exports.PrecedencePredicateTransition = PrecedencePredicateTransition;
|
|
51521
53141
|
|
|
51522
|
-
},{"../Decorators":
|
|
53142
|
+
},{"../Decorators":230,"./AbstractPredicateTransition":271,"./SemanticContext":318}],308:[function(require,module,exports){
|
|
51523
53143
|
"use strict";
|
|
51524
53144
|
/*!
|
|
51525
53145
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51582,7 +53202,7 @@ PredicateEvalInfo = __decorate([
|
|
|
51582
53202
|
], PredicateEvalInfo);
|
|
51583
53203
|
exports.PredicateEvalInfo = PredicateEvalInfo;
|
|
51584
53204
|
|
|
51585
|
-
},{"../Decorators":
|
|
53205
|
+
},{"../Decorators":230,"./DecisionEventInfo":281}],309:[function(require,module,exports){
|
|
51586
53206
|
"use strict";
|
|
51587
53207
|
/*!
|
|
51588
53208
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51648,7 +53268,7 @@ PredicateTransition = __decorate([
|
|
|
51648
53268
|
], PredicateTransition);
|
|
51649
53269
|
exports.PredicateTransition = PredicateTransition;
|
|
51650
53270
|
|
|
51651
|
-
},{"../Decorators":
|
|
53271
|
+
},{"../Decorators":230,"./AbstractPredicateTransition":271,"./SemanticContext":318}],310:[function(require,module,exports){
|
|
51652
53272
|
"use strict";
|
|
51653
53273
|
/*!
|
|
51654
53274
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52339,7 +53959,7 @@ exports.SingletonPredictionContext = SingletonPredictionContext;
|
|
|
52339
53959
|
PredictionContext.IdentityEqualityComparator = IdentityEqualityComparator;
|
|
52340
53960
|
})(PredictionContext = exports.PredictionContext || (exports.PredictionContext = {}));
|
|
52341
53961
|
|
|
52342
|
-
},{"../Decorators":
|
|
53962
|
+
},{"../Decorators":230,"../misc/Array2DHashMap":333,"../misc/Array2DHashSet":334,"../misc/Arrays":336,"../misc/MurmurHash":345,"./PredictionContextCache":311,"assert":373}],311:[function(require,module,exports){
|
|
52343
53963
|
"use strict";
|
|
52344
53964
|
/*!
|
|
52345
53965
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52480,7 +54100,7 @@ PredictionContextCache.UNCACHED = new PredictionContextCache(false);
|
|
|
52480
54100
|
PredictionContextCache.IdentityCommutativePredictionContextOperands = IdentityCommutativePredictionContextOperands;
|
|
52481
54101
|
})(PredictionContextCache = exports.PredictionContextCache || (exports.PredictionContextCache = {}));
|
|
52482
54102
|
|
|
52483
|
-
},{"../Decorators":
|
|
54103
|
+
},{"../Decorators":230,"../misc/Array2DHashMap":333,"../misc/ObjectEqualityComparator":346,"./PredictionContext":310,"assert":373}],312:[function(require,module,exports){
|
|
52484
54104
|
"use strict";
|
|
52485
54105
|
/*!
|
|
52486
54106
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52641,7 +54261,7 @@ var PredictionMode;
|
|
|
52641
54261
|
PredictionMode.allConfigsInRuleStopStates = allConfigsInRuleStopStates;
|
|
52642
54262
|
})(PredictionMode = exports.PredictionMode || (exports.PredictionMode = {}));
|
|
52643
54263
|
|
|
52644
|
-
},{"../Decorators":
|
|
54264
|
+
},{"../Decorators":230,"../misc/Array2DHashMap":333,"../misc/MurmurHash":345,"./RuleStopState":316}],313:[function(require,module,exports){
|
|
52645
54265
|
(function (process){(function (){
|
|
52646
54266
|
"use strict";
|
|
52647
54267
|
/*!
|
|
@@ -52910,7 +54530,7 @@ __decorate([
|
|
|
52910
54530
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
52911
54531
|
|
|
52912
54532
|
}).call(this)}).call(this,require('_process'))
|
|
52913
|
-
},{"../Decorators":
|
|
54533
|
+
},{"../Decorators":230,"./ATN":263,"./ATNSimulator":268,"./AmbiguityInfo":273,"./ContextSensitivityInfo":280,"./DecisionInfo":282,"./ErrorInfo":285,"./LookaheadEventInfo":299,"./ParserATNSimulator":304,"./PredicateEvalInfo":308,"./SemanticContext":318,"./SimulatorState":320,"_process":432}],314:[function(require,module,exports){
|
|
52914
54534
|
"use strict";
|
|
52915
54535
|
/*!
|
|
52916
54536
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52968,7 +54588,7 @@ RangeTransition = __decorate([
|
|
|
52968
54588
|
], RangeTransition);
|
|
52969
54589
|
exports.RangeTransition = RangeTransition;
|
|
52970
54590
|
|
|
52971
|
-
},{"../Decorators":
|
|
54591
|
+
},{"../Decorators":230,"../misc/IntervalSet":343,"./Transition":325}],315:[function(require,module,exports){
|
|
52972
54592
|
"use strict";
|
|
52973
54593
|
/*!
|
|
52974
54594
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53001,7 +54621,7 @@ __decorate([
|
|
|
53001
54621
|
], RuleStartState.prototype, "stateType", null);
|
|
53002
54622
|
exports.RuleStartState = RuleStartState;
|
|
53003
54623
|
|
|
53004
|
-
},{"../Decorators":
|
|
54624
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],316:[function(require,module,exports){
|
|
53005
54625
|
"use strict";
|
|
53006
54626
|
/*!
|
|
53007
54627
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53040,7 +54660,7 @@ __decorate([
|
|
|
53040
54660
|
], RuleStopState.prototype, "stateType", null);
|
|
53041
54661
|
exports.RuleStopState = RuleStopState;
|
|
53042
54662
|
|
|
53043
|
-
},{"../Decorators":
|
|
54663
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],317:[function(require,module,exports){
|
|
53044
54664
|
"use strict";
|
|
53045
54665
|
/*!
|
|
53046
54666
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53096,7 +54716,7 @@ RuleTransition = __decorate([
|
|
|
53096
54716
|
], RuleTransition);
|
|
53097
54717
|
exports.RuleTransition = RuleTransition;
|
|
53098
54718
|
|
|
53099
|
-
},{"../Decorators":
|
|
54719
|
+
},{"../Decorators":230,"./Transition":325}],318:[function(require,module,exports){
|
|
53100
54720
|
"use strict";
|
|
53101
54721
|
/*!
|
|
53102
54722
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53576,7 +55196,7 @@ exports.SemanticContext = SemanticContext;
|
|
|
53576
55196
|
SemanticContext.OR = OR;
|
|
53577
55197
|
})(SemanticContext = exports.SemanticContext || (exports.SemanticContext = {}));
|
|
53578
55198
|
|
|
53579
|
-
},{"../Decorators":
|
|
55199
|
+
},{"../Decorators":230,"../misc/Array2DHashSet":334,"../misc/ArrayEqualityComparator":335,"../misc/MurmurHash":345,"../misc/ObjectEqualityComparator":346,"../misc/Utils":349}],319:[function(require,module,exports){
|
|
53580
55200
|
"use strict";
|
|
53581
55201
|
/*!
|
|
53582
55202
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53642,7 +55262,7 @@ SetTransition = __decorate([
|
|
|
53642
55262
|
], SetTransition);
|
|
53643
55263
|
exports.SetTransition = SetTransition;
|
|
53644
55264
|
|
|
53645
|
-
},{"../Decorators":
|
|
55265
|
+
},{"../Decorators":230,"../Token":255,"../misc/IntervalSet":343,"./Transition":325}],320:[function(require,module,exports){
|
|
53646
55266
|
"use strict";
|
|
53647
55267
|
/*!
|
|
53648
55268
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53678,7 +55298,7 @@ SimulatorState = __decorate([
|
|
|
53678
55298
|
], SimulatorState);
|
|
53679
55299
|
exports.SimulatorState = SimulatorState;
|
|
53680
55300
|
|
|
53681
|
-
},{"../Decorators":
|
|
55301
|
+
},{"../Decorators":230,"../ParserRuleContext":246}],321:[function(require,module,exports){
|
|
53682
55302
|
"use strict";
|
|
53683
55303
|
/*!
|
|
53684
55304
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53706,7 +55326,7 @@ __decorate([
|
|
|
53706
55326
|
], StarBlockStartState.prototype, "stateType", null);
|
|
53707
55327
|
exports.StarBlockStartState = StarBlockStartState;
|
|
53708
55328
|
|
|
53709
|
-
},{"../Decorators":
|
|
55329
|
+
},{"../Decorators":230,"./ATNStateType":270,"./BlockStartState":278}],322:[function(require,module,exports){
|
|
53710
55330
|
"use strict";
|
|
53711
55331
|
/*!
|
|
53712
55332
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53763,7 +55383,7 @@ __decorate([
|
|
|
53763
55383
|
], StarLoopEntryState.prototype, "stateType", null);
|
|
53764
55384
|
exports.StarLoopEntryState = StarLoopEntryState;
|
|
53765
55385
|
|
|
53766
|
-
},{"../Decorators":
|
|
55386
|
+
},{"../Decorators":230,"../misc/BitSet":337,"./ATNStateType":270,"./DecisionState":283}],323:[function(require,module,exports){
|
|
53767
55387
|
"use strict";
|
|
53768
55388
|
/*!
|
|
53769
55389
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53794,7 +55414,7 @@ __decorate([
|
|
|
53794
55414
|
], StarLoopbackState.prototype, "stateType", null);
|
|
53795
55415
|
exports.StarLoopbackState = StarLoopbackState;
|
|
53796
55416
|
|
|
53797
|
-
},{"../Decorators":
|
|
55417
|
+
},{"../Decorators":230,"./ATNState":269,"./ATNStateType":270}],324:[function(require,module,exports){
|
|
53798
55418
|
"use strict";
|
|
53799
55419
|
/*!
|
|
53800
55420
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53823,7 +55443,7 @@ __decorate([
|
|
|
53823
55443
|
], TokensStartState.prototype, "stateType", null);
|
|
53824
55444
|
exports.TokensStartState = TokensStartState;
|
|
53825
55445
|
|
|
53826
|
-
},{"../Decorators":
|
|
55446
|
+
},{"../Decorators":230,"./ATNStateType":270,"./DecisionState":283}],325:[function(require,module,exports){
|
|
53827
55447
|
"use strict";
|
|
53828
55448
|
/*!
|
|
53829
55449
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53897,7 +55517,7 @@ Transition = __decorate([
|
|
|
53897
55517
|
], Transition);
|
|
53898
55518
|
exports.Transition = Transition;
|
|
53899
55519
|
|
|
53900
|
-
},{"../Decorators":
|
|
55520
|
+
},{"../Decorators":230}],326:[function(require,module,exports){
|
|
53901
55521
|
"use strict";
|
|
53902
55522
|
/*!
|
|
53903
55523
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53945,7 +55565,7 @@ WildcardTransition = __decorate([
|
|
|
53945
55565
|
], WildcardTransition);
|
|
53946
55566
|
exports.WildcardTransition = WildcardTransition;
|
|
53947
55567
|
|
|
53948
|
-
},{"../Decorators":
|
|
55568
|
+
},{"../Decorators":230,"./Transition":325}],327:[function(require,module,exports){
|
|
53949
55569
|
"use strict";
|
|
53950
55570
|
/*!
|
|
53951
55571
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53987,7 +55607,7 @@ class AcceptStateInfo {
|
|
|
53987
55607
|
}
|
|
53988
55608
|
exports.AcceptStateInfo = AcceptStateInfo;
|
|
53989
55609
|
|
|
53990
|
-
},{}],
|
|
55610
|
+
},{}],328:[function(require,module,exports){
|
|
53991
55611
|
"use strict";
|
|
53992
55612
|
/*!
|
|
53993
55613
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54162,7 +55782,7 @@ DFA = __decorate([
|
|
|
54162
55782
|
], DFA);
|
|
54163
55783
|
exports.DFA = DFA;
|
|
54164
55784
|
|
|
54165
|
-
},{"../Decorators":
|
|
55785
|
+
},{"../Decorators":230,"../VocabularyImpl":261,"../atn/ATNConfigSet":265,"../atn/StarLoopEntryState":322,"../misc/Array2DHashSet":334,"../misc/ObjectEqualityComparator":346,"./DFASerializer":329,"./DFAState":330,"./LexerDFASerializer":331}],329:[function(require,module,exports){
|
|
54166
55786
|
"use strict";
|
|
54167
55787
|
/*!
|
|
54168
55788
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54304,7 +55924,7 @@ __decorate([
|
|
|
54304
55924
|
], DFASerializer.prototype, "toString", null);
|
|
54305
55925
|
exports.DFASerializer = DFASerializer;
|
|
54306
55926
|
|
|
54307
|
-
},{"../Decorators":
|
|
55927
|
+
},{"../Decorators":230,"../Recognizer":250,"../VocabularyImpl":261,"../atn/ATNSimulator":268,"../atn/PredictionContext":310}],330:[function(require,module,exports){
|
|
54308
55928
|
"use strict";
|
|
54309
55929
|
/*!
|
|
54310
55930
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54535,7 +56155,7 @@ exports.DFAState = DFAState;
|
|
|
54535
56155
|
DFAState.PredPrediction = PredPrediction;
|
|
54536
56156
|
})(DFAState = exports.DFAState || (exports.DFAState = {}));
|
|
54537
56157
|
|
|
54538
|
-
},{"../Decorators":
|
|
56158
|
+
},{"../Decorators":230,"../atn/ATN":263,"../atn/PredictionContext":310,"../misc/BitSet":337,"../misc/MurmurHash":345,"assert":373}],331:[function(require,module,exports){
|
|
54539
56159
|
"use strict";
|
|
54540
56160
|
/*!
|
|
54541
56161
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54572,7 +56192,7 @@ LexerDFASerializer = __decorate([
|
|
|
54572
56192
|
], LexerDFASerializer);
|
|
54573
56193
|
exports.LexerDFASerializer = LexerDFASerializer;
|
|
54574
56194
|
|
|
54575
|
-
},{"../Decorators":
|
|
56195
|
+
},{"../Decorators":230,"../VocabularyImpl":261,"./DFASerializer":329}],332:[function(require,module,exports){
|
|
54576
56196
|
"use strict";
|
|
54577
56197
|
/*!
|
|
54578
56198
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54638,7 +56258,7 @@ __exportStar(require("./Vocabulary"), exports);
|
|
|
54638
56258
|
__exportStar(require("./VocabularyImpl"), exports);
|
|
54639
56259
|
__exportStar(require("./WritableToken"), exports);
|
|
54640
56260
|
|
|
54641
|
-
},{"./ANTLRErrorListener":
|
|
56261
|
+
},{"./ANTLRErrorListener":217,"./ANTLRErrorStrategy":218,"./ANTLRInputStream":219,"./BailErrorStrategy":220,"./BufferedTokenStream":221,"./CharStream":222,"./CharStreams":223,"./CodePointBuffer":224,"./CodePointCharStream":225,"./CommonToken":226,"./CommonTokenFactory":227,"./CommonTokenStream":228,"./ConsoleErrorListener":229,"./DefaultErrorStrategy":231,"./Dependents":232,"./DiagnosticErrorListener":233,"./FailedPredicateException":234,"./InputMismatchException":235,"./IntStream":236,"./InterpreterRuleContext":237,"./Lexer":238,"./LexerInterpreter":239,"./LexerNoViableAltException":240,"./ListTokenSource":241,"./NoViableAltException":242,"./Parser":243,"./ParserErrorListener":244,"./ParserInterpreter":245,"./ParserRuleContext":246,"./ProxyErrorListener":247,"./ProxyParserErrorListener":248,"./RecognitionException":249,"./Recognizer":250,"./RuleContext":251,"./RuleContextWithAltNum":252,"./RuleDependency":253,"./RuleVersion":254,"./Token":255,"./TokenFactory":256,"./TokenSource":257,"./TokenStream":258,"./TokenStreamRewriter":259,"./Vocabulary":260,"./VocabularyImpl":261,"./WritableToken":262}],333:[function(require,module,exports){
|
|
54642
56262
|
"use strict";
|
|
54643
56263
|
/*!
|
|
54644
56264
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54721,7 +56341,7 @@ class Array2DHashMap {
|
|
|
54721
56341
|
}
|
|
54722
56342
|
exports.Array2DHashMap = Array2DHashMap;
|
|
54723
56343
|
|
|
54724
|
-
},{"./Array2DHashSet":
|
|
56344
|
+
},{"./Array2DHashSet":334}],334:[function(require,module,exports){
|
|
54725
56345
|
"use strict";
|
|
54726
56346
|
/*!
|
|
54727
56347
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55088,7 +56708,7 @@ __decorate([
|
|
|
55088
56708
|
], Array2DHashSet.prototype, "createBuckets", null);
|
|
55089
56709
|
exports.Array2DHashSet = Array2DHashSet;
|
|
55090
56710
|
|
|
55091
|
-
},{"../Decorators":
|
|
56711
|
+
},{"../Decorators":230,"./DefaultEqualityComparator":339,"./MurmurHash":345,"assert":373}],335:[function(require,module,exports){
|
|
55092
56712
|
"use strict";
|
|
55093
56713
|
/*!
|
|
55094
56714
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55160,7 +56780,7 @@ __decorate([
|
|
|
55160
56780
|
], ArrayEqualityComparator.prototype, "equals", null);
|
|
55161
56781
|
exports.ArrayEqualityComparator = ArrayEqualityComparator;
|
|
55162
56782
|
|
|
55163
|
-
},{"../Decorators":
|
|
56783
|
+
},{"../Decorators":230,"./MurmurHash":345,"./ObjectEqualityComparator":346}],336:[function(require,module,exports){
|
|
55164
56784
|
"use strict";
|
|
55165
56785
|
/*!
|
|
55166
56786
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55230,7 +56850,7 @@ var Arrays;
|
|
|
55230
56850
|
Arrays.toString = toString;
|
|
55231
56851
|
})(Arrays = exports.Arrays || (exports.Arrays = {}));
|
|
55232
56852
|
|
|
55233
|
-
},{}],
|
|
56853
|
+
},{}],337:[function(require,module,exports){
|
|
55234
56854
|
"use strict";
|
|
55235
56855
|
/*!
|
|
55236
56856
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55902,7 +57522,7 @@ class BitSetIterator {
|
|
|
55902
57522
|
[Symbol.iterator]() { return this; }
|
|
55903
57523
|
}
|
|
55904
57524
|
|
|
55905
|
-
},{"./MurmurHash":
|
|
57525
|
+
},{"./MurmurHash":345,"util":437}],338:[function(require,module,exports){
|
|
55906
57526
|
"use strict";
|
|
55907
57527
|
/*!
|
|
55908
57528
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55923,7 +57543,7 @@ function isSupplementaryCodePoint(ch) {
|
|
|
55923
57543
|
}
|
|
55924
57544
|
exports.isSupplementaryCodePoint = isSupplementaryCodePoint;
|
|
55925
57545
|
|
|
55926
|
-
},{}],
|
|
57546
|
+
},{}],339:[function(require,module,exports){
|
|
55927
57547
|
"use strict";
|
|
55928
57548
|
/*!
|
|
55929
57549
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55994,7 +57614,7 @@ __decorate([
|
|
|
55994
57614
|
], DefaultEqualityComparator.prototype, "equals", null);
|
|
55995
57615
|
exports.DefaultEqualityComparator = DefaultEqualityComparator;
|
|
55996
57616
|
|
|
55997
|
-
},{"../Decorators":
|
|
57617
|
+
},{"../Decorators":230,"./MurmurHash":345,"./ObjectEqualityComparator":346}],340:[function(require,module,exports){
|
|
55998
57618
|
"use strict";
|
|
55999
57619
|
/*!
|
|
56000
57620
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56288,7 +57908,7 @@ __decorate([
|
|
|
56288
57908
|
], IntegerList.prototype, "toString", null);
|
|
56289
57909
|
exports.IntegerList = IntegerList;
|
|
56290
57910
|
|
|
56291
|
-
},{"../Decorators":
|
|
57911
|
+
},{"../Decorators":230,"./Arrays":336}],341:[function(require,module,exports){
|
|
56292
57912
|
"use strict";
|
|
56293
57913
|
/*!
|
|
56294
57914
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56318,7 +57938,7 @@ class IntegerStack extends IntegerList_1.IntegerList {
|
|
|
56318
57938
|
}
|
|
56319
57939
|
exports.IntegerStack = IntegerStack;
|
|
56320
57940
|
|
|
56321
|
-
},{"./IntegerList":
|
|
57941
|
+
},{"./IntegerList":340}],342:[function(require,module,exports){
|
|
56322
57942
|
"use strict";
|
|
56323
57943
|
/*!
|
|
56324
57944
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56461,7 +58081,7 @@ __decorate([
|
|
|
56461
58081
|
], Interval.prototype, "toString", null);
|
|
56462
58082
|
exports.Interval = Interval;
|
|
56463
58083
|
|
|
56464
|
-
},{"../Decorators":
|
|
58084
|
+
},{"../Decorators":230}],343:[function(require,module,exports){
|
|
56465
58085
|
"use strict";
|
|
56466
58086
|
/*!
|
|
56467
58087
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57107,7 +58727,7 @@ __decorate([
|
|
|
57107
58727
|
], IntervalSet, "subtract", null);
|
|
57108
58728
|
exports.IntervalSet = IntervalSet;
|
|
57109
58729
|
|
|
57110
|
-
},{"../Decorators":
|
|
58730
|
+
},{"../Decorators":230,"../Lexer":238,"../Token":255,"./ArrayEqualityComparator":335,"./IntegerList":340,"./Interval":342,"./MurmurHash":345}],344:[function(require,module,exports){
|
|
57111
58731
|
"use strict";
|
|
57112
58732
|
/*!
|
|
57113
58733
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57140,7 +58760,7 @@ class MultiMap extends Map {
|
|
|
57140
58760
|
}
|
|
57141
58761
|
exports.MultiMap = MultiMap;
|
|
57142
58762
|
|
|
57143
|
-
},{}],
|
|
58763
|
+
},{}],345:[function(require,module,exports){
|
|
57144
58764
|
"use strict";
|
|
57145
58765
|
/*!
|
|
57146
58766
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57255,7 +58875,7 @@ var MurmurHash;
|
|
|
57255
58875
|
}
|
|
57256
58876
|
})(MurmurHash = exports.MurmurHash || (exports.MurmurHash = {}));
|
|
57257
58877
|
|
|
57258
|
-
},{}],
|
|
58878
|
+
},{}],346:[function(require,module,exports){
|
|
57259
58879
|
"use strict";
|
|
57260
58880
|
/*!
|
|
57261
58881
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57314,7 +58934,7 @@ __decorate([
|
|
|
57314
58934
|
], ObjectEqualityComparator.prototype, "equals", null);
|
|
57315
58935
|
exports.ObjectEqualityComparator = ObjectEqualityComparator;
|
|
57316
58936
|
|
|
57317
|
-
},{"../Decorators":
|
|
58937
|
+
},{"../Decorators":230}],347:[function(require,module,exports){
|
|
57318
58938
|
"use strict";
|
|
57319
58939
|
/*!
|
|
57320
58940
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57343,7 +58963,7 @@ class ParseCancellationException extends Error {
|
|
|
57343
58963
|
}
|
|
57344
58964
|
exports.ParseCancellationException = ParseCancellationException;
|
|
57345
58965
|
|
|
57346
|
-
},{}],
|
|
58966
|
+
},{}],348:[function(require,module,exports){
|
|
57347
58967
|
"use strict";
|
|
57348
58968
|
/*!
|
|
57349
58969
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57397,7 +59017,7 @@ class UUID {
|
|
|
57397
59017
|
}
|
|
57398
59018
|
exports.UUID = UUID;
|
|
57399
59019
|
|
|
57400
|
-
},{"./MurmurHash":
|
|
59020
|
+
},{"./MurmurHash":345}],349:[function(require,module,exports){
|
|
57401
59021
|
"use strict";
|
|
57402
59022
|
/*!
|
|
57403
59023
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57572,7 +59192,7 @@ exports.toCharArray = toCharArray;
|
|
|
57572
59192
|
// return s;
|
|
57573
59193
|
// }
|
|
57574
59194
|
|
|
57575
|
-
},{}],
|
|
59195
|
+
},{}],350:[function(require,module,exports){
|
|
57576
59196
|
"use strict";
|
|
57577
59197
|
/*!
|
|
57578
59198
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57608,7 +59228,7 @@ __decorate([
|
|
|
57608
59228
|
], ErrorNode.prototype, "accept", null);
|
|
57609
59229
|
exports.ErrorNode = ErrorNode;
|
|
57610
59230
|
|
|
57611
|
-
},{"../Decorators":
|
|
59231
|
+
},{"../Decorators":230,"./TerminalNode":353}],351:[function(require,module,exports){
|
|
57612
59232
|
"use strict";
|
|
57613
59233
|
/*!
|
|
57614
59234
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57713,7 +59333,7 @@ exports.ParseTreeWalker = ParseTreeWalker;
|
|
|
57713
59333
|
ParseTreeWalker.DEFAULT = new ParseTreeWalker();
|
|
57714
59334
|
})(ParseTreeWalker = exports.ParseTreeWalker || (exports.ParseTreeWalker = {}));
|
|
57715
59335
|
|
|
57716
|
-
},{"./ErrorNode":
|
|
59336
|
+
},{"./ErrorNode":350,"./RuleNode":352,"./TerminalNode":353}],352:[function(require,module,exports){
|
|
57717
59337
|
"use strict";
|
|
57718
59338
|
/*!
|
|
57719
59339
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57725,7 +59345,7 @@ class RuleNode {
|
|
|
57725
59345
|
}
|
|
57726
59346
|
exports.RuleNode = RuleNode;
|
|
57727
59347
|
|
|
57728
|
-
},{}],
|
|
59348
|
+
},{}],353:[function(require,module,exports){
|
|
57729
59349
|
"use strict";
|
|
57730
59350
|
/*!
|
|
57731
59351
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57817,7 +59437,7 @@ __decorate([
|
|
|
57817
59437
|
], TerminalNode.prototype, "toString", null);
|
|
57818
59438
|
exports.TerminalNode = TerminalNode;
|
|
57819
59439
|
|
|
57820
|
-
},{"../Decorators":
|
|
59440
|
+
},{"../Decorators":230,"../Token":255,"../misc/Interval":342}],354:[function(require,module,exports){
|
|
57821
59441
|
"use strict";
|
|
57822
59442
|
/*!
|
|
57823
59443
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58061,7 +59681,7 @@ __decorate([
|
|
|
58061
59681
|
], Trees, "getRootOfSubtreeEnclosingRegion", null);
|
|
58062
59682
|
exports.Trees = Trees;
|
|
58063
59683
|
|
|
58064
|
-
},{"../CommonToken":
|
|
59684
|
+
},{"../CommonToken":226,"../Decorators":230,"../Parser":243,"../ParserRuleContext":246,"../Token":255,"../atn/ATN":263,"../misc/Utils":349,"./ErrorNode":350,"./RuleNode":352,"./TerminalNode":353}],355:[function(require,module,exports){
|
|
58065
59685
|
"use strict";
|
|
58066
59686
|
/*!
|
|
58067
59687
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58085,7 +59705,7 @@ class Chunk {
|
|
|
58085
59705
|
}
|
|
58086
59706
|
exports.Chunk = Chunk;
|
|
58087
59707
|
|
|
58088
|
-
},{}],
|
|
59708
|
+
},{}],356:[function(require,module,exports){
|
|
58089
59709
|
"use strict";
|
|
58090
59710
|
/*!
|
|
58091
59711
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58265,7 +59885,7 @@ ParseTreeMatch = __decorate([
|
|
|
58265
59885
|
], ParseTreeMatch);
|
|
58266
59886
|
exports.ParseTreeMatch = ParseTreeMatch;
|
|
58267
59887
|
|
|
58268
|
-
},{"../../Decorators":
|
|
59888
|
+
},{"../../Decorators":230}],357:[function(require,module,exports){
|
|
58269
59889
|
"use strict";
|
|
58270
59890
|
/*!
|
|
58271
59891
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58423,7 +60043,7 @@ ParseTreePattern = __decorate([
|
|
|
58423
60043
|
], ParseTreePattern);
|
|
58424
60044
|
exports.ParseTreePattern = ParseTreePattern;
|
|
58425
60045
|
|
|
58426
|
-
},{"../../Decorators":
|
|
60046
|
+
},{"../../Decorators":230,"../xpath/XPath":363}],358:[function(require,module,exports){
|
|
58427
60047
|
"use strict";
|
|
58428
60048
|
/*!
|
|
58429
60049
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58901,7 +60521,7 @@ exports.ParseTreePatternMatcher = ParseTreePatternMatcher;
|
|
|
58901
60521
|
ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern = StartRuleDoesNotConsumeFullPattern;
|
|
58902
60522
|
})(ParseTreePatternMatcher = exports.ParseTreePatternMatcher || (exports.ParseTreePatternMatcher = {}));
|
|
58903
60523
|
|
|
58904
|
-
},{"../../BailErrorStrategy":
|
|
60524
|
+
},{"../../BailErrorStrategy":220,"../../CharStreams":223,"../../CommonTokenStream":228,"../../Decorators":230,"../../ListTokenSource":241,"../../ParserInterpreter":245,"../../ParserRuleContext":246,"../../RecognitionException":249,"../../Token":255,"../../misc/MultiMap":344,"../../misc/ParseCancellationException":347,"../RuleNode":352,"../TerminalNode":353,"./ParseTreeMatch":356,"./ParseTreePattern":357,"./RuleTagToken":359,"./TagChunk":360,"./TextChunk":361,"./TokenTagToken":362}],359:[function(require,module,exports){
|
|
58905
60525
|
"use strict";
|
|
58906
60526
|
/*!
|
|
58907
60527
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59099,7 +60719,7 @@ RuleTagToken = __decorate([
|
|
|
59099
60719
|
], RuleTagToken);
|
|
59100
60720
|
exports.RuleTagToken = RuleTagToken;
|
|
59101
60721
|
|
|
59102
|
-
},{"../../Decorators":
|
|
60722
|
+
},{"../../Decorators":230,"../../Token":255}],360:[function(require,module,exports){
|
|
59103
60723
|
"use strict";
|
|
59104
60724
|
/*!
|
|
59105
60725
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59186,7 +60806,7 @@ __decorate([
|
|
|
59186
60806
|
], TagChunk.prototype, "toString", null);
|
|
59187
60807
|
exports.TagChunk = TagChunk;
|
|
59188
60808
|
|
|
59189
|
-
},{"../../Decorators":
|
|
60809
|
+
},{"../../Decorators":230,"./Chunk":355}],361:[function(require,module,exports){
|
|
59190
60810
|
"use strict";
|
|
59191
60811
|
/*!
|
|
59192
60812
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59256,7 +60876,7 @@ TextChunk = __decorate([
|
|
|
59256
60876
|
], TextChunk);
|
|
59257
60877
|
exports.TextChunk = TextChunk;
|
|
59258
60878
|
|
|
59259
|
-
},{"../../Decorators":
|
|
60879
|
+
},{"../../Decorators":230,"./Chunk":355}],362:[function(require,module,exports){
|
|
59260
60880
|
"use strict";
|
|
59261
60881
|
/*!
|
|
59262
60882
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59351,7 +60971,7 @@ TokenTagToken = __decorate([
|
|
|
59351
60971
|
], TokenTagToken);
|
|
59352
60972
|
exports.TokenTagToken = TokenTagToken;
|
|
59353
60973
|
|
|
59354
|
-
},{"../../CommonToken":
|
|
60974
|
+
},{"../../CommonToken":226,"../../Decorators":230}],363:[function(require,module,exports){
|
|
59355
60975
|
"use strict";
|
|
59356
60976
|
/*!
|
|
59357
60977
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59548,7 +61168,7 @@ exports.XPath = XPath;
|
|
|
59548
61168
|
XPath.WILDCARD = "*"; // word not operator/separator
|
|
59549
61169
|
XPath.NOT = "!"; // word for invert operator
|
|
59550
61170
|
|
|
59551
|
-
},{"../../CharStreams":
|
|
61171
|
+
},{"../../CharStreams":223,"../../CommonTokenStream":228,"../../LexerNoViableAltException":240,"../../ParserRuleContext":246,"../../Token":255,"./XPathLexer":365,"./XPathLexerErrorListener":366,"./XPathRuleAnywhereElement":367,"./XPathRuleElement":368,"./XPathTokenAnywhereElement":369,"./XPathTokenElement":370,"./XPathWildcardAnywhereElement":371,"./XPathWildcardElement":372}],364:[function(require,module,exports){
|
|
59552
61172
|
"use strict";
|
|
59553
61173
|
/*!
|
|
59554
61174
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59583,7 +61203,7 @@ __decorate([
|
|
|
59583
61203
|
], XPathElement.prototype, "toString", null);
|
|
59584
61204
|
exports.XPathElement = XPathElement;
|
|
59585
61205
|
|
|
59586
|
-
},{"../../Decorators":
|
|
61206
|
+
},{"../../Decorators":230}],365:[function(require,module,exports){
|
|
59587
61207
|
"use strict";
|
|
59588
61208
|
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
59589
61209
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -60058,7 +61678,7 @@ XPathLexer._serializedATN = Utils.join([
|
|
|
60058
61678
|
XPathLexer._serializedATNSegment1,
|
|
60059
61679
|
], "");
|
|
60060
61680
|
|
|
60061
|
-
},{"../../Lexer":
|
|
61681
|
+
},{"../../Lexer":238,"../../VocabularyImpl":261,"../../atn/ATNDeserializer":267,"../../atn/LexerATNSimulator":288,"../../misc/Utils":349}],366:[function(require,module,exports){
|
|
60062
61682
|
"use strict";
|
|
60063
61683
|
/*!
|
|
60064
61684
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60083,7 +61703,7 @@ __decorate([
|
|
|
60083
61703
|
], XPathLexerErrorListener.prototype, "syntaxError", null);
|
|
60084
61704
|
exports.XPathLexerErrorListener = XPathLexerErrorListener;
|
|
60085
61705
|
|
|
60086
|
-
},{"../../Decorators":
|
|
61706
|
+
},{"../../Decorators":230}],367:[function(require,module,exports){
|
|
60087
61707
|
"use strict";
|
|
60088
61708
|
/*!
|
|
60089
61709
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60117,7 +61737,7 @@ __decorate([
|
|
|
60117
61737
|
], XPathRuleAnywhereElement.prototype, "evaluate", null);
|
|
60118
61738
|
exports.XPathRuleAnywhereElement = XPathRuleAnywhereElement;
|
|
60119
61739
|
|
|
60120
|
-
},{"../../Decorators":
|
|
61740
|
+
},{"../../Decorators":230,"../Trees":354,"./XPathElement":364}],368:[function(require,module,exports){
|
|
60121
61741
|
"use strict";
|
|
60122
61742
|
/*!
|
|
60123
61743
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60160,7 +61780,7 @@ __decorate([
|
|
|
60160
61780
|
], XPathRuleElement.prototype, "evaluate", null);
|
|
60161
61781
|
exports.XPathRuleElement = XPathRuleElement;
|
|
60162
61782
|
|
|
60163
|
-
},{"../../Decorators":
|
|
61783
|
+
},{"../../Decorators":230,"../../ParserRuleContext":246,"../Trees":354,"./XPathElement":364}],369:[function(require,module,exports){
|
|
60164
61784
|
"use strict";
|
|
60165
61785
|
/*!
|
|
60166
61786
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60192,7 +61812,7 @@ __decorate([
|
|
|
60192
61812
|
], XPathTokenAnywhereElement.prototype, "evaluate", null);
|
|
60193
61813
|
exports.XPathTokenAnywhereElement = XPathTokenAnywhereElement;
|
|
60194
61814
|
|
|
60195
|
-
},{"../../Decorators":
|
|
61815
|
+
},{"../../Decorators":230,"../Trees":354,"./XPathElement":364}],370:[function(require,module,exports){
|
|
60196
61816
|
"use strict";
|
|
60197
61817
|
/*!
|
|
60198
61818
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60235,7 +61855,7 @@ __decorate([
|
|
|
60235
61855
|
], XPathTokenElement.prototype, "evaluate", null);
|
|
60236
61856
|
exports.XPathTokenElement = XPathTokenElement;
|
|
60237
61857
|
|
|
60238
|
-
},{"../../Decorators":
|
|
61858
|
+
},{"../../Decorators":230,"../TerminalNode":353,"../Trees":354,"./XPathElement":364}],371:[function(require,module,exports){
|
|
60239
61859
|
"use strict";
|
|
60240
61860
|
/*!
|
|
60241
61861
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60271,7 +61891,7 @@ __decorate([
|
|
|
60271
61891
|
], XPathWildcardAnywhereElement.prototype, "evaluate", null);
|
|
60272
61892
|
exports.XPathWildcardAnywhereElement = XPathWildcardAnywhereElement;
|
|
60273
61893
|
|
|
60274
|
-
},{"../../Decorators":
|
|
61894
|
+
},{"../../Decorators":230,"../Trees":354,"./XPath":363,"./XPathElement":364}],372:[function(require,module,exports){
|
|
60275
61895
|
"use strict";
|
|
60276
61896
|
/*!
|
|
60277
61897
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60311,7 +61931,7 @@ __decorate([
|
|
|
60311
61931
|
], XPathWildcardElement.prototype, "evaluate", null);
|
|
60312
61932
|
exports.XPathWildcardElement = XPathWildcardElement;
|
|
60313
61933
|
|
|
60314
|
-
},{"../../Decorators":
|
|
61934
|
+
},{"../../Decorators":230,"../Trees":354,"./XPath":363,"./XPathElement":364}],373:[function(require,module,exports){
|
|
60315
61935
|
(function (global){(function (){
|
|
60316
61936
|
'use strict';
|
|
60317
61937
|
|
|
@@ -60821,7 +62441,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
60821
62441
|
};
|
|
60822
62442
|
|
|
60823
62443
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
60824
|
-
},{"object.assign/polyfill":
|
|
62444
|
+
},{"object.assign/polyfill":430,"util/":376}],374:[function(require,module,exports){
|
|
60825
62445
|
if (typeof Object.create === 'function') {
|
|
60826
62446
|
// implementation from standard node.js 'util' module
|
|
60827
62447
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -60846,14 +62466,14 @@ if (typeof Object.create === 'function') {
|
|
|
60846
62466
|
}
|
|
60847
62467
|
}
|
|
60848
62468
|
|
|
60849
|
-
},{}],
|
|
62469
|
+
},{}],375:[function(require,module,exports){
|
|
60850
62470
|
module.exports = function isBuffer(arg) {
|
|
60851
62471
|
return arg && typeof arg === 'object'
|
|
60852
62472
|
&& typeof arg.copy === 'function'
|
|
60853
62473
|
&& typeof arg.fill === 'function'
|
|
60854
62474
|
&& typeof arg.readUInt8 === 'function';
|
|
60855
62475
|
}
|
|
60856
|
-
},{}],
|
|
62476
|
+
},{}],376:[function(require,module,exports){
|
|
60857
62477
|
(function (process,global){(function (){
|
|
60858
62478
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
60859
62479
|
//
|
|
@@ -61443,7 +63063,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
61443
63063
|
}
|
|
61444
63064
|
|
|
61445
63065
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61446
|
-
},{"./support/isBuffer":
|
|
63066
|
+
},{"./support/isBuffer":375,"_process":432,"inherits":374}],377:[function(require,module,exports){
|
|
61447
63067
|
(function (global){(function (){
|
|
61448
63068
|
'use strict';
|
|
61449
63069
|
|
|
@@ -61464,7 +63084,7 @@ module.exports = function availableTypedArrays() {
|
|
|
61464
63084
|
};
|
|
61465
63085
|
|
|
61466
63086
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61467
|
-
},{"possible-typed-array-names":
|
|
63087
|
+
},{"possible-typed-array-names":431}],378:[function(require,module,exports){
|
|
61468
63088
|
(function (process,global){(function (){
|
|
61469
63089
|
module.exports = process.hrtime || hrtime
|
|
61470
63090
|
|
|
@@ -61495,7 +63115,7 @@ function hrtime(previousTimestamp){
|
|
|
61495
63115
|
return [seconds,nanoseconds]
|
|
61496
63116
|
}
|
|
61497
63117
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61498
|
-
},{"_process":
|
|
63118
|
+
},{"_process":432}],379:[function(require,module,exports){
|
|
61499
63119
|
'use strict';
|
|
61500
63120
|
|
|
61501
63121
|
var bind = require('function-bind');
|
|
@@ -61507,7 +63127,7 @@ var $reflectApply = require('./reflectApply');
|
|
|
61507
63127
|
/** @type {import('./actualApply')} */
|
|
61508
63128
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
61509
63129
|
|
|
61510
|
-
},{"./functionApply":
|
|
63130
|
+
},{"./functionApply":381,"./functionCall":382,"./reflectApply":384,"function-bind":400}],380:[function(require,module,exports){
|
|
61511
63131
|
'use strict';
|
|
61512
63132
|
|
|
61513
63133
|
var bind = require('function-bind');
|
|
@@ -61519,19 +63139,19 @@ module.exports = function applyBind() {
|
|
|
61519
63139
|
return actualApply(bind, $apply, arguments);
|
|
61520
63140
|
};
|
|
61521
63141
|
|
|
61522
|
-
},{"./actualApply":
|
|
63142
|
+
},{"./actualApply":379,"./functionApply":381,"function-bind":400}],381:[function(require,module,exports){
|
|
61523
63143
|
'use strict';
|
|
61524
63144
|
|
|
61525
63145
|
/** @type {import('./functionApply')} */
|
|
61526
63146
|
module.exports = Function.prototype.apply;
|
|
61527
63147
|
|
|
61528
|
-
},{}],
|
|
63148
|
+
},{}],382:[function(require,module,exports){
|
|
61529
63149
|
'use strict';
|
|
61530
63150
|
|
|
61531
63151
|
/** @type {import('./functionCall')} */
|
|
61532
63152
|
module.exports = Function.prototype.call;
|
|
61533
63153
|
|
|
61534
|
-
},{}],
|
|
63154
|
+
},{}],383:[function(require,module,exports){
|
|
61535
63155
|
'use strict';
|
|
61536
63156
|
|
|
61537
63157
|
var bind = require('function-bind');
|
|
@@ -61548,13 +63168,13 @@ module.exports = function callBindBasic(args) {
|
|
|
61548
63168
|
return $actualApply(bind, $call, args);
|
|
61549
63169
|
};
|
|
61550
63170
|
|
|
61551
|
-
},{"./actualApply":
|
|
63171
|
+
},{"./actualApply":379,"./functionCall":382,"es-errors/type":395,"function-bind":400}],384:[function(require,module,exports){
|
|
61552
63172
|
'use strict';
|
|
61553
63173
|
|
|
61554
63174
|
/** @type {import('./reflectApply')} */
|
|
61555
63175
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
61556
63176
|
|
|
61557
|
-
},{}],
|
|
63177
|
+
},{}],385:[function(require,module,exports){
|
|
61558
63178
|
'use strict';
|
|
61559
63179
|
|
|
61560
63180
|
var setFunctionLength = require('set-function-length');
|
|
@@ -61580,7 +63200,7 @@ if ($defineProperty) {
|
|
|
61580
63200
|
module.exports.apply = applyBind;
|
|
61581
63201
|
}
|
|
61582
63202
|
|
|
61583
|
-
},{"call-bind-apply-helpers":
|
|
63203
|
+
},{"call-bind-apply-helpers":383,"call-bind-apply-helpers/applyBind":380,"es-define-property":389,"set-function-length":434}],386:[function(require,module,exports){
|
|
61584
63204
|
'use strict';
|
|
61585
63205
|
|
|
61586
63206
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -61601,7 +63221,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
61601
63221
|
return intrinsic;
|
|
61602
63222
|
};
|
|
61603
63223
|
|
|
61604
|
-
},{"call-bind-apply-helpers":
|
|
63224
|
+
},{"call-bind-apply-helpers":383,"get-intrinsic":401}],387:[function(require,module,exports){
|
|
61605
63225
|
'use strict';
|
|
61606
63226
|
|
|
61607
63227
|
var $defineProperty = require('es-define-property');
|
|
@@ -61659,7 +63279,7 @@ module.exports = function defineDataProperty(
|
|
|
61659
63279
|
}
|
|
61660
63280
|
};
|
|
61661
63281
|
|
|
61662
|
-
},{"es-define-property":
|
|
63282
|
+
},{"es-define-property":389,"es-errors/syntax":394,"es-errors/type":395,"gopd":406}],388:[function(require,module,exports){
|
|
61663
63283
|
'use strict';
|
|
61664
63284
|
|
|
61665
63285
|
var callBind = require('call-bind-apply-helpers');
|
|
@@ -61691,7 +63311,7 @@ module.exports = desc && typeof desc.get === 'function'
|
|
|
61691
63311
|
}
|
|
61692
63312
|
: false;
|
|
61693
63313
|
|
|
61694
|
-
},{"call-bind-apply-helpers":
|
|
63314
|
+
},{"call-bind-apply-helpers":383,"gopd":406}],389:[function(require,module,exports){
|
|
61695
63315
|
'use strict';
|
|
61696
63316
|
|
|
61697
63317
|
/** @type {import('.')} */
|
|
@@ -61707,55 +63327,55 @@ if ($defineProperty) {
|
|
|
61707
63327
|
|
|
61708
63328
|
module.exports = $defineProperty;
|
|
61709
63329
|
|
|
61710
|
-
},{}],
|
|
63330
|
+
},{}],390:[function(require,module,exports){
|
|
61711
63331
|
'use strict';
|
|
61712
63332
|
|
|
61713
63333
|
/** @type {import('./eval')} */
|
|
61714
63334
|
module.exports = EvalError;
|
|
61715
63335
|
|
|
61716
|
-
},{}],
|
|
63336
|
+
},{}],391:[function(require,module,exports){
|
|
61717
63337
|
'use strict';
|
|
61718
63338
|
|
|
61719
63339
|
/** @type {import('.')} */
|
|
61720
63340
|
module.exports = Error;
|
|
61721
63341
|
|
|
61722
|
-
},{}],
|
|
63342
|
+
},{}],392:[function(require,module,exports){
|
|
61723
63343
|
'use strict';
|
|
61724
63344
|
|
|
61725
63345
|
/** @type {import('./range')} */
|
|
61726
63346
|
module.exports = RangeError;
|
|
61727
63347
|
|
|
61728
|
-
},{}],
|
|
63348
|
+
},{}],393:[function(require,module,exports){
|
|
61729
63349
|
'use strict';
|
|
61730
63350
|
|
|
61731
63351
|
/** @type {import('./ref')} */
|
|
61732
63352
|
module.exports = ReferenceError;
|
|
61733
63353
|
|
|
61734
|
-
},{}],
|
|
63354
|
+
},{}],394:[function(require,module,exports){
|
|
61735
63355
|
'use strict';
|
|
61736
63356
|
|
|
61737
63357
|
/** @type {import('./syntax')} */
|
|
61738
63358
|
module.exports = SyntaxError;
|
|
61739
63359
|
|
|
61740
|
-
},{}],
|
|
63360
|
+
},{}],395:[function(require,module,exports){
|
|
61741
63361
|
'use strict';
|
|
61742
63362
|
|
|
61743
63363
|
/** @type {import('./type')} */
|
|
61744
63364
|
module.exports = TypeError;
|
|
61745
63365
|
|
|
61746
|
-
},{}],
|
|
63366
|
+
},{}],396:[function(require,module,exports){
|
|
61747
63367
|
'use strict';
|
|
61748
63368
|
|
|
61749
63369
|
/** @type {import('./uri')} */
|
|
61750
63370
|
module.exports = URIError;
|
|
61751
63371
|
|
|
61752
|
-
},{}],
|
|
63372
|
+
},{}],397:[function(require,module,exports){
|
|
61753
63373
|
'use strict';
|
|
61754
63374
|
|
|
61755
63375
|
/** @type {import('.')} */
|
|
61756
63376
|
module.exports = Object;
|
|
61757
63377
|
|
|
61758
|
-
},{}],
|
|
63378
|
+
},{}],398:[function(require,module,exports){
|
|
61759
63379
|
'use strict';
|
|
61760
63380
|
|
|
61761
63381
|
var isCallable = require('is-callable');
|
|
@@ -61826,7 +63446,7 @@ module.exports = function forEach(list, iterator, thisArg) {
|
|
|
61826
63446
|
}
|
|
61827
63447
|
};
|
|
61828
63448
|
|
|
61829
|
-
},{"is-callable":
|
|
63449
|
+
},{"is-callable":414}],399:[function(require,module,exports){
|
|
61830
63450
|
'use strict';
|
|
61831
63451
|
|
|
61832
63452
|
/* eslint no-invalid-this: 1 */
|
|
@@ -61912,14 +63532,14 @@ module.exports = function bind(that) {
|
|
|
61912
63532
|
return bound;
|
|
61913
63533
|
};
|
|
61914
63534
|
|
|
61915
|
-
},{}],
|
|
63535
|
+
},{}],400:[function(require,module,exports){
|
|
61916
63536
|
'use strict';
|
|
61917
63537
|
|
|
61918
63538
|
var implementation = require('./implementation');
|
|
61919
63539
|
|
|
61920
63540
|
module.exports = Function.prototype.bind || implementation;
|
|
61921
63541
|
|
|
61922
|
-
},{"./implementation":
|
|
63542
|
+
},{"./implementation":399}],401:[function(require,module,exports){
|
|
61923
63543
|
'use strict';
|
|
61924
63544
|
|
|
61925
63545
|
var undefined;
|
|
@@ -62299,7 +63919,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
62299
63919
|
return value;
|
|
62300
63920
|
};
|
|
62301
63921
|
|
|
62302
|
-
},{"call-bind-apply-helpers/functionApply":
|
|
63922
|
+
},{"call-bind-apply-helpers/functionApply":381,"call-bind-apply-helpers/functionCall":382,"es-define-property":389,"es-errors":391,"es-errors/eval":390,"es-errors/range":392,"es-errors/ref":393,"es-errors/syntax":394,"es-errors/type":395,"es-errors/uri":396,"es-object-atoms":397,"function-bind":400,"get-proto":404,"get-proto/Object.getPrototypeOf":402,"get-proto/Reflect.getPrototypeOf":403,"gopd":406,"has-symbols":408,"hasown":411,"math-intrinsics/abs":418,"math-intrinsics/floor":419,"math-intrinsics/max":421,"math-intrinsics/min":422,"math-intrinsics/pow":423,"math-intrinsics/round":424,"math-intrinsics/sign":425}],402:[function(require,module,exports){
|
|
62303
63923
|
'use strict';
|
|
62304
63924
|
|
|
62305
63925
|
var $Object = require('es-object-atoms');
|
|
@@ -62307,13 +63927,13 @@ var $Object = require('es-object-atoms');
|
|
|
62307
63927
|
/** @type {import('./Object.getPrototypeOf')} */
|
|
62308
63928
|
module.exports = $Object.getPrototypeOf || null;
|
|
62309
63929
|
|
|
62310
|
-
},{"es-object-atoms":
|
|
63930
|
+
},{"es-object-atoms":397}],403:[function(require,module,exports){
|
|
62311
63931
|
'use strict';
|
|
62312
63932
|
|
|
62313
63933
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
62314
63934
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
62315
63935
|
|
|
62316
|
-
},{}],
|
|
63936
|
+
},{}],404:[function(require,module,exports){
|
|
62317
63937
|
'use strict';
|
|
62318
63938
|
|
|
62319
63939
|
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
@@ -62342,13 +63962,13 @@ module.exports = reflectGetProto
|
|
|
62342
63962
|
}
|
|
62343
63963
|
: null;
|
|
62344
63964
|
|
|
62345
|
-
},{"./Object.getPrototypeOf":
|
|
63965
|
+
},{"./Object.getPrototypeOf":402,"./Reflect.getPrototypeOf":403,"dunder-proto/get":388}],405:[function(require,module,exports){
|
|
62346
63966
|
'use strict';
|
|
62347
63967
|
|
|
62348
63968
|
/** @type {import('./gOPD')} */
|
|
62349
63969
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
62350
63970
|
|
|
62351
|
-
},{}],
|
|
63971
|
+
},{}],406:[function(require,module,exports){
|
|
62352
63972
|
'use strict';
|
|
62353
63973
|
|
|
62354
63974
|
/** @type {import('.')} */
|
|
@@ -62365,7 +63985,7 @@ if ($gOPD) {
|
|
|
62365
63985
|
|
|
62366
63986
|
module.exports = $gOPD;
|
|
62367
63987
|
|
|
62368
|
-
},{"./gOPD":
|
|
63988
|
+
},{"./gOPD":405}],407:[function(require,module,exports){
|
|
62369
63989
|
'use strict';
|
|
62370
63990
|
|
|
62371
63991
|
var $defineProperty = require('es-define-property');
|
|
@@ -62389,7 +64009,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
62389
64009
|
|
|
62390
64010
|
module.exports = hasPropertyDescriptors;
|
|
62391
64011
|
|
|
62392
|
-
},{"es-define-property":
|
|
64012
|
+
},{"es-define-property":389}],408:[function(require,module,exports){
|
|
62393
64013
|
'use strict';
|
|
62394
64014
|
|
|
62395
64015
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -62405,7 +64025,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
62405
64025
|
return hasSymbolSham();
|
|
62406
64026
|
};
|
|
62407
64027
|
|
|
62408
|
-
},{"./shams":
|
|
64028
|
+
},{"./shams":409}],409:[function(require,module,exports){
|
|
62409
64029
|
'use strict';
|
|
62410
64030
|
|
|
62411
64031
|
/** @type {import('./shams')} */
|
|
@@ -62452,7 +64072,7 @@ module.exports = function hasSymbols() {
|
|
|
62452
64072
|
return true;
|
|
62453
64073
|
};
|
|
62454
64074
|
|
|
62455
|
-
},{}],
|
|
64075
|
+
},{}],410:[function(require,module,exports){
|
|
62456
64076
|
'use strict';
|
|
62457
64077
|
|
|
62458
64078
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -62462,7 +64082,7 @@ module.exports = function hasToStringTagShams() {
|
|
|
62462
64082
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
62463
64083
|
};
|
|
62464
64084
|
|
|
62465
|
-
},{"has-symbols/shams":
|
|
64085
|
+
},{"has-symbols/shams":409}],411:[function(require,module,exports){
|
|
62466
64086
|
'use strict';
|
|
62467
64087
|
|
|
62468
64088
|
var call = Function.prototype.call;
|
|
@@ -62472,7 +64092,7 @@ var bind = require('function-bind');
|
|
|
62472
64092
|
/** @type {import('.')} */
|
|
62473
64093
|
module.exports = bind.call(call, $hasOwn);
|
|
62474
64094
|
|
|
62475
|
-
},{"function-bind":
|
|
64095
|
+
},{"function-bind":400}],412:[function(require,module,exports){
|
|
62476
64096
|
if (typeof Object.create === 'function') {
|
|
62477
64097
|
// implementation from standard node.js 'util' module
|
|
62478
64098
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -62501,7 +64121,7 @@ if (typeof Object.create === 'function') {
|
|
|
62501
64121
|
}
|
|
62502
64122
|
}
|
|
62503
64123
|
|
|
62504
|
-
},{}],
|
|
64124
|
+
},{}],413:[function(require,module,exports){
|
|
62505
64125
|
'use strict';
|
|
62506
64126
|
|
|
62507
64127
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
@@ -62547,7 +64167,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
62547
64167
|
/** @type {import('.')} */
|
|
62548
64168
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
62549
64169
|
|
|
62550
|
-
},{"call-bound":
|
|
64170
|
+
},{"call-bound":386,"has-tostringtag/shams":410}],414:[function(require,module,exports){
|
|
62551
64171
|
'use strict';
|
|
62552
64172
|
|
|
62553
64173
|
var fnToStr = Function.prototype.toString;
|
|
@@ -62650,7 +64270,7 @@ module.exports = reflectApply
|
|
|
62650
64270
|
return tryFunctionObject(value);
|
|
62651
64271
|
};
|
|
62652
64272
|
|
|
62653
|
-
},{}],
|
|
64273
|
+
},{}],415:[function(require,module,exports){
|
|
62654
64274
|
'use strict';
|
|
62655
64275
|
|
|
62656
64276
|
var callBound = require('call-bound');
|
|
@@ -62699,7 +64319,7 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
62699
64319
|
return getProto(fn) === GeneratorFunction;
|
|
62700
64320
|
};
|
|
62701
64321
|
|
|
62702
|
-
},{"call-bound":
|
|
64322
|
+
},{"call-bound":386,"get-proto":404,"has-tostringtag/shams":410,"safe-regex-test":433}],416:[function(require,module,exports){
|
|
62703
64323
|
'use strict';
|
|
62704
64324
|
|
|
62705
64325
|
var callBound = require('call-bound');
|
|
@@ -62770,7 +64390,7 @@ if (hasToStringTag) {
|
|
|
62770
64390
|
|
|
62771
64391
|
module.exports = fn;
|
|
62772
64392
|
|
|
62773
|
-
},{"call-bound":
|
|
64393
|
+
},{"call-bound":386,"gopd":406,"has-tostringtag/shams":410,"hasown":411}],417:[function(require,module,exports){
|
|
62774
64394
|
'use strict';
|
|
62775
64395
|
|
|
62776
64396
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -62780,19 +64400,19 @@ module.exports = function isTypedArray(value) {
|
|
|
62780
64400
|
return !!whichTypedArray(value);
|
|
62781
64401
|
};
|
|
62782
64402
|
|
|
62783
|
-
},{"which-typed-array":
|
|
64403
|
+
},{"which-typed-array":438}],418:[function(require,module,exports){
|
|
62784
64404
|
'use strict';
|
|
62785
64405
|
|
|
62786
64406
|
/** @type {import('./abs')} */
|
|
62787
64407
|
module.exports = Math.abs;
|
|
62788
64408
|
|
|
62789
|
-
},{}],
|
|
64409
|
+
},{}],419:[function(require,module,exports){
|
|
62790
64410
|
'use strict';
|
|
62791
64411
|
|
|
62792
64412
|
/** @type {import('./floor')} */
|
|
62793
64413
|
module.exports = Math.floor;
|
|
62794
64414
|
|
|
62795
|
-
},{}],
|
|
64415
|
+
},{}],420:[function(require,module,exports){
|
|
62796
64416
|
'use strict';
|
|
62797
64417
|
|
|
62798
64418
|
/** @type {import('./isNaN')} */
|
|
@@ -62800,31 +64420,31 @@ module.exports = Number.isNaN || function isNaN(a) {
|
|
|
62800
64420
|
return a !== a;
|
|
62801
64421
|
};
|
|
62802
64422
|
|
|
62803
|
-
},{}],
|
|
64423
|
+
},{}],421:[function(require,module,exports){
|
|
62804
64424
|
'use strict';
|
|
62805
64425
|
|
|
62806
64426
|
/** @type {import('./max')} */
|
|
62807
64427
|
module.exports = Math.max;
|
|
62808
64428
|
|
|
62809
|
-
},{}],
|
|
64429
|
+
},{}],422:[function(require,module,exports){
|
|
62810
64430
|
'use strict';
|
|
62811
64431
|
|
|
62812
64432
|
/** @type {import('./min')} */
|
|
62813
64433
|
module.exports = Math.min;
|
|
62814
64434
|
|
|
62815
|
-
},{}],
|
|
64435
|
+
},{}],423:[function(require,module,exports){
|
|
62816
64436
|
'use strict';
|
|
62817
64437
|
|
|
62818
64438
|
/** @type {import('./pow')} */
|
|
62819
64439
|
module.exports = Math.pow;
|
|
62820
64440
|
|
|
62821
|
-
},{}],
|
|
64441
|
+
},{}],424:[function(require,module,exports){
|
|
62822
64442
|
'use strict';
|
|
62823
64443
|
|
|
62824
64444
|
/** @type {import('./round')} */
|
|
62825
64445
|
module.exports = Math.round;
|
|
62826
64446
|
|
|
62827
|
-
},{}],
|
|
64447
|
+
},{}],425:[function(require,module,exports){
|
|
62828
64448
|
'use strict';
|
|
62829
64449
|
|
|
62830
64450
|
var $isNaN = require('./isNaN');
|
|
@@ -62837,7 +64457,7 @@ module.exports = function sign(number) {
|
|
|
62837
64457
|
return number < 0 ? -1 : +1;
|
|
62838
64458
|
};
|
|
62839
64459
|
|
|
62840
|
-
},{"./isNaN":
|
|
64460
|
+
},{"./isNaN":420}],426:[function(require,module,exports){
|
|
62841
64461
|
'use strict';
|
|
62842
64462
|
|
|
62843
64463
|
var keysShim;
|
|
@@ -62961,7 +64581,7 @@ if (!Object.keys) {
|
|
|
62961
64581
|
}
|
|
62962
64582
|
module.exports = keysShim;
|
|
62963
64583
|
|
|
62964
|
-
},{"./isArguments":
|
|
64584
|
+
},{"./isArguments":428}],427:[function(require,module,exports){
|
|
62965
64585
|
'use strict';
|
|
62966
64586
|
|
|
62967
64587
|
var slice = Array.prototype.slice;
|
|
@@ -62995,7 +64615,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
62995
64615
|
|
|
62996
64616
|
module.exports = keysShim;
|
|
62997
64617
|
|
|
62998
|
-
},{"./implementation":
|
|
64618
|
+
},{"./implementation":426,"./isArguments":428}],428:[function(require,module,exports){
|
|
62999
64619
|
'use strict';
|
|
63000
64620
|
|
|
63001
64621
|
var toStr = Object.prototype.toString;
|
|
@@ -63014,7 +64634,7 @@ module.exports = function isArguments(value) {
|
|
|
63014
64634
|
return isArgs;
|
|
63015
64635
|
};
|
|
63016
64636
|
|
|
63017
|
-
},{}],
|
|
64637
|
+
},{}],429:[function(require,module,exports){
|
|
63018
64638
|
'use strict';
|
|
63019
64639
|
|
|
63020
64640
|
// modified from https://github.com/es-shims/es6-shim
|
|
@@ -63062,7 +64682,7 @@ module.exports = function assign(target, source1) {
|
|
|
63062
64682
|
return to; // step 4
|
|
63063
64683
|
};
|
|
63064
64684
|
|
|
63065
|
-
},{"call-bound":
|
|
64685
|
+
},{"call-bound":386,"es-object-atoms":397,"has-symbols/shams":409,"object-keys":427}],430:[function(require,module,exports){
|
|
63066
64686
|
'use strict';
|
|
63067
64687
|
|
|
63068
64688
|
var implementation = require('./implementation');
|
|
@@ -63119,7 +64739,7 @@ module.exports = function getPolyfill() {
|
|
|
63119
64739
|
return Object.assign;
|
|
63120
64740
|
};
|
|
63121
64741
|
|
|
63122
|
-
},{"./implementation":
|
|
64742
|
+
},{"./implementation":429}],431:[function(require,module,exports){
|
|
63123
64743
|
'use strict';
|
|
63124
64744
|
|
|
63125
64745
|
/** @type {import('.')} */
|
|
@@ -63138,7 +64758,7 @@ module.exports = [
|
|
|
63138
64758
|
'BigUint64Array'
|
|
63139
64759
|
];
|
|
63140
64760
|
|
|
63141
|
-
},{}],
|
|
64761
|
+
},{}],432:[function(require,module,exports){
|
|
63142
64762
|
// shim for using process in browser
|
|
63143
64763
|
var process = module.exports = {};
|
|
63144
64764
|
|
|
@@ -63324,7 +64944,7 @@ process.chdir = function (dir) {
|
|
|
63324
64944
|
};
|
|
63325
64945
|
process.umask = function() { return 0; };
|
|
63326
64946
|
|
|
63327
|
-
},{}],
|
|
64947
|
+
},{}],433:[function(require,module,exports){
|
|
63328
64948
|
'use strict';
|
|
63329
64949
|
|
|
63330
64950
|
var callBound = require('call-bound');
|
|
@@ -63343,7 +64963,7 @@ module.exports = function regexTester(regex) {
|
|
|
63343
64963
|
};
|
|
63344
64964
|
};
|
|
63345
64965
|
|
|
63346
|
-
},{"call-bound":
|
|
64966
|
+
},{"call-bound":386,"es-errors/type":395,"is-regex":416}],434:[function(require,module,exports){
|
|
63347
64967
|
'use strict';
|
|
63348
64968
|
|
|
63349
64969
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -63387,9 +65007,9 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
63387
65007
|
return fn;
|
|
63388
65008
|
};
|
|
63389
65009
|
|
|
63390
|
-
},{"define-data-property":
|
|
63391
|
-
arguments[4][
|
|
63392
|
-
},{"dup":
|
|
65010
|
+
},{"define-data-property":387,"es-errors/type":395,"get-intrinsic":401,"gopd":406,"has-property-descriptors":407}],435:[function(require,module,exports){
|
|
65011
|
+
arguments[4][375][0].apply(exports,arguments)
|
|
65012
|
+
},{"dup":375}],436:[function(require,module,exports){
|
|
63393
65013
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
63394
65014
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
63395
65015
|
|
|
@@ -63725,7 +65345,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
63725
65345
|
});
|
|
63726
65346
|
});
|
|
63727
65347
|
|
|
63728
|
-
},{"is-arguments":
|
|
65348
|
+
},{"is-arguments":413,"is-generator-function":415,"is-typed-array":417,"which-typed-array":438}],437:[function(require,module,exports){
|
|
63729
65349
|
(function (process){(function (){
|
|
63730
65350
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
63731
65351
|
//
|
|
@@ -64444,7 +66064,7 @@ function callbackify(original) {
|
|
|
64444
66064
|
exports.callbackify = callbackify;
|
|
64445
66065
|
|
|
64446
66066
|
}).call(this)}).call(this,require('_process'))
|
|
64447
|
-
},{"./support/isBuffer":
|
|
66067
|
+
},{"./support/isBuffer":435,"./support/types":436,"_process":432,"inherits":412}],438:[function(require,module,exports){
|
|
64448
66068
|
(function (global){(function (){
|
|
64449
66069
|
'use strict';
|
|
64450
66070
|
|
|
@@ -64565,5 +66185,5 @@ module.exports = function whichTypedArray(value) {
|
|
|
64565
66185
|
};
|
|
64566
66186
|
|
|
64567
66187
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
64568
|
-
},{"available-typed-arrays":
|
|
66188
|
+
},{"available-typed-arrays":377,"call-bind":385,"call-bound":386,"for-each":398,"get-proto":404,"gopd":406,"has-tostringtag/shams":410}]},{},[115])(115)
|
|
64569
66189
|
});
|