@designliquido/delegua 1.1.0 → 1.2.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/analisador-semantico/dialetos/analisador-semantico-pitugues.d.ts.map +1 -1
- package/analisador-semantico/dialetos/analisador-semantico-pitugues.js +0 -3
- package/analisador-semantico/dialetos/analisador-semantico-pitugues.js.map +1 -1
- package/avaliador-sintatico/comum.d.ts.map +1 -1
- package/avaliador-sintatico/comum.js +4 -2
- package/avaliador-sintatico/comum.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js +11 -2
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/bibliotecas/biblioteca-global.d.ts +21 -0
- package/bibliotecas/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/biblioteca-global.js +147 -0
- package/bibliotecas/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.d.ts +21 -0
- package/bibliotecas/dialetos/pitugues/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js +147 -0
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js.map +1 -1
- package/bin/package.json +1 -1
- package/declaracoes/ajuda.d.ts +2 -0
- package/declaracoes/ajuda.d.ts.map +1 -1
- package/declaracoes/ajuda.js +3 -0
- package/declaracoes/ajuda.js.map +1 -1
- package/formatadores/formatador-pitugues.d.ts +1 -0
- package/formatadores/formatador-pitugues.d.ts.map +1 -1
- package/formatadores/formatador-pitugues.js +3 -1
- package/formatadores/formatador-pitugues.js.map +1 -1
- package/interpretador/comum.d.ts +1 -0
- package/interpretador/comum.d.ts.map +1 -1
- package/interpretador/comum.js +21 -0
- package/interpretador/comum.js.map +1 -1
- package/interpretador/dialetos/pitugues/interpretador-pitugues.d.ts +1 -2
- package/interpretador/dialetos/pitugues/interpretador-pitugues.d.ts.map +1 -1
- package/interpretador/dialetos/pitugues/interpretador-pitugues.js +0 -38
- package/interpretador/dialetos/pitugues/interpretador-pitugues.js.map +1 -1
- package/interpretador/interpretador.d.ts +4 -2
- package/interpretador/interpretador.d.ts.map +1 -1
- package/interpretador/interpretador.js +39 -15
- package/interpretador/interpretador.js.map +1 -1
- package/package.json +1 -1
- package/tradutores/index.d.ts +1 -0
- package/tradutores/index.d.ts.map +1 -1
- package/tradutores/index.js +1 -0
- package/tradutores/index.js.map +1 -1
- package/tradutores/mermaid/index.d.ts +1 -1
- package/tradutores/mermaid/index.js +1 -1
- package/tradutores/mermaid/subgrafo-classe.d.ts +7 -5
- package/tradutores/mermaid/subgrafo-classe.d.ts.map +1 -1
- package/tradutores/mermaid/subgrafo-classe.js +18 -18
- package/tradutores/mermaid/subgrafo-classe.js.map +1 -1
- package/tradutores/mermaid/subgrafo-metodo.d.ts +13 -0
- package/tradutores/mermaid/subgrafo-metodo.d.ts.map +1 -0
- package/tradutores/mermaid/subgrafo-metodo.js +16 -0
- package/tradutores/mermaid/subgrafo-metodo.js.map +1 -0
- package/tradutores/tradutor-mermaidjs.d.ts +15 -6
- package/tradutores/tradutor-mermaidjs.d.ts.map +1 -1
- package/tradutores/tradutor-mermaidjs.js +145 -52
- package/tradutores/tradutor-mermaidjs.js.map +1 -1
- package/tradutores/tradutor-python.d.ts +11 -0
- package/tradutores/tradutor-python.d.ts.map +1 -1
- package/tradutores/tradutor-python.js +32 -2
- package/tradutores/tradutor-python.js.map +1 -1
- package/tradutores/tradutor-reverso-javascript.d.ts.map +1 -1
- package/tradutores/tradutor-reverso-javascript.js +0 -2
- package/tradutores/tradutor-reverso-javascript.js.map +1 -1
- package/tradutores/tradutor-ruby.d.ts +101 -0
- package/tradutores/tradutor-ruby.d.ts.map +1 -0
- package/tradutores/tradutor-ruby.js +687 -0
- package/tradutores/tradutor-ruby.js.map +1 -0
- package/umd/delegua.js +1369 -368
- package/tradutores/mermaid/diagrama-classe.d.ts +0 -16
- package/tradutores/mermaid/diagrama-classe.d.ts.map +0 -1
- package/tradutores/mermaid/diagrama-classe.js +0 -33
- package/tradutores/mermaid/diagrama-classe.js.map +0 -1
package/umd/delegua.js
CHANGED
|
@@ -3842,7 +3842,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
3842
3842
|
}
|
|
3843
3843
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
3844
3844
|
|
|
3845
|
-
},{"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../construtos/tuplas":80,"../declaracoes":109,"../inferenciador":135,"../informacao-elemento-sintatico":136,"../tipos-de-dados/delegua":207,"../tipos-de-simbolos/delegua":212,"./avaliador-sintatico-base":9,"./comum":11,"./elemento-montao-tipos":19,"./erro-avaliador-sintatico":20,"./informacao-escopo":22,"./montao-tipos":25,"./pilha-escopos":26,"browser-process-hrtime":
|
|
3845
|
+
},{"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../construtos/tuplas":80,"../declaracoes":109,"../inferenciador":135,"../informacao-elemento-sintatico":136,"../tipos-de-dados/delegua":207,"../tipos-de-simbolos/delegua":212,"./avaliador-sintatico-base":9,"./comum":11,"./elemento-montao-tipos":19,"./erro-avaliador-sintatico":20,"./informacao-escopo":22,"./montao-tipos":25,"./pilha-escopos":26,"browser-process-hrtime":402}],11:[function(require,module,exports){
|
|
3846
3846
|
"use strict";
|
|
3847
3847
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3848
3848
|
exports.buscarRetornos = buscarRetornos;
|
|
@@ -3914,6 +3914,8 @@ function logicaDescobertaRetornoFuncao(avaliadorSintatico, declaracoesDaFuncao,
|
|
|
3914
3914
|
}
|
|
3915
3915
|
const tiposRetornos = new Set(expressoesRetorna.filter((e) => e.tipo !== 'qualquer').map((e) => e.tipo));
|
|
3916
3916
|
let retornaChamadoExplicitamente = tiposRetornos.size > 0;
|
|
3917
|
+
// Verifica se há retornos com valores (incluindo retornos 'qualquer')
|
|
3918
|
+
let temRetornosComValor = expressoesRetorna.some((e) => e.valor !== null && e.valor !== undefined);
|
|
3917
3919
|
if (tiposRetornos.size > 1 && tipoRetorno !== 'qualquer') {
|
|
3918
3920
|
let tiposEncontrados = Array.from(tiposRetornos).reduce((acumulador, valor) => (acumulador += valor + ', '), '');
|
|
3919
3921
|
tiposEncontrados = tiposEncontrados.slice(0, -2);
|
|
@@ -3928,8 +3930,8 @@ function logicaDescobertaRetornoFuncao(avaliadorSintatico, declaracoesDaFuncao,
|
|
|
3928
3930
|
const tipoRetornoDeduzido = tiposRetornos.values().next().value;
|
|
3929
3931
|
tipoRetorno = tipoRetornoDeduzido;
|
|
3930
3932
|
}
|
|
3931
|
-
else if (!
|
|
3932
|
-
// Ou, se
|
|
3933
|
+
else if (!temRetornosComValor && !definicaoExplicitaDeTipo) {
|
|
3934
|
+
// Ou, se não há retornos com valores, e não foi definido um tipo
|
|
3933
3935
|
// explícito com 'qualquer', o tipo inferido é 'vazio'.
|
|
3934
3936
|
tipoRetorno = 'vazio';
|
|
3935
3937
|
}
|
|
@@ -5060,7 +5062,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
5060
5062
|
this.pilhaEscopos.definirInformacoesVariavel(simboloFuncao.lexema, new informacao_elemento_sintatico_1.InformacaoElementoSintatico(simboloFuncao.lexema, 'função'));
|
|
5061
5063
|
return corpoDaFuncao;
|
|
5062
5064
|
case pitugues_2.default.IMPORTAR:
|
|
5063
|
-
return this.
|
|
5065
|
+
return await this.construtoImportar();
|
|
5064
5066
|
case pitugues_2.default.NULO:
|
|
5065
5067
|
this.avancarEDevolverAnterior();
|
|
5066
5068
|
return new construtos_1.Literal(this.hashArquivo, simboloAtual.linha, null);
|
|
@@ -5599,7 +5601,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
5599
5601
|
}
|
|
5600
5602
|
return new declaracoes_1.Retorna(palavraChave, valor);
|
|
5601
5603
|
}
|
|
5602
|
-
async
|
|
5604
|
+
async construtoImportar() {
|
|
5603
5605
|
this.avancarEDevolverAnterior();
|
|
5604
5606
|
this.consumir(pitugues_2.default.PARENTESE_ESQUERDO, "Esperado '(' após declaração.");
|
|
5605
5607
|
const caminho = await this.expressao();
|
|
@@ -6058,6 +6060,15 @@ class AvaliadorSintaticoPitugues {
|
|
|
6058
6060
|
this.pilhaEscopos.definirInformacoesVariavel('tupla', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('tupla', 'tupla', true, [
|
|
6059
6061
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
6060
6062
|
]));
|
|
6063
|
+
this.pilhaEscopos.definirInformacoesVariavel('maximo', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('maximo', 'número', true, [
|
|
6064
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
6065
|
+
]));
|
|
6066
|
+
this.pilhaEscopos.definirInformacoesVariavel('minimo', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('minimo', 'número', true, [
|
|
6067
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
6068
|
+
]));
|
|
6069
|
+
this.pilhaEscopos.definirInformacoesVariavel('somar', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('somar', 'número', true, [
|
|
6070
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
6071
|
+
]));
|
|
6061
6072
|
}
|
|
6062
6073
|
async analisar(retornoLexador, hashArquivo) {
|
|
6063
6074
|
const inicioAnalise = (0, browser_process_hrtime_1.default)();
|
|
@@ -6107,7 +6118,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
6107
6118
|
}
|
|
6108
6119
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
6109
6120
|
|
|
6110
|
-
},{"../../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador":197,"../../lexador/micro-lexador-pitugues":202,"../../tipos-de-dados/dialetos/pitugues":208,"../../tipos-de-simbolos/pitugues":216,"../comum":11,"../erro-avaliador-sintatico":20,"../informacao-escopo":22,"../pilha-escopos":26,"./micro-avaliador-sintatico-pitugues":18,"browser-process-hrtime":
|
|
6121
|
+
},{"../../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador":197,"../../lexador/micro-lexador-pitugues":202,"../../tipos-de-dados/dialetos/pitugues":208,"../../tipos-de-simbolos/pitugues":216,"../comum":11,"../erro-avaliador-sintatico":20,"../informacao-escopo":22,"../pilha-escopos":26,"./micro-avaliador-sintatico-pitugues":18,"browser-process-hrtime":402}],14:[function(require,module,exports){
|
|
6111
6122
|
"use strict";
|
|
6112
6123
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6113
6124
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7031,7 +7042,7 @@ class AvaliadorSintaticoPrisma extends avaliador_sintatico_base_1.AvaliadorSinta
|
|
|
7031
7042
|
}
|
|
7032
7043
|
exports.AvaliadorSintaticoPrisma = AvaliadorSintaticoPrisma;
|
|
7033
7044
|
|
|
7034
|
-
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador":197,"../../tipos-de-simbolos/prisma":218,"../avaliador-sintatico-base":9,"../comum":11,"../informacao-escopo":22,"../pilha-escopos":26,"browser-process-hrtime":
|
|
7045
|
+
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador":197,"../../tipos-de-simbolos/prisma":218,"../avaliador-sintatico-base":9,"../comum":11,"../informacao-escopo":22,"../pilha-escopos":26,"browser-process-hrtime":402}],16:[function(require,module,exports){
|
|
7035
7046
|
"use strict";
|
|
7036
7047
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7037
7048
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -8014,7 +8025,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
8014
8025
|
}
|
|
8015
8026
|
exports.AvaliadorSintaticoTenda = AvaliadorSintaticoTenda;
|
|
8016
8027
|
|
|
8017
|
-
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../construtos/tuplas":80,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador/simbolo":205,"../../tipos-de-dados/delegua":207,"../../tipos-de-simbolos/tenda":219,"../avaliador-sintatico-base":9,"./../erro-avaliador-sintatico":20,"./../informacao-escopo":22,"./../pilha-escopos":26,"browser-process-hrtime":
|
|
8028
|
+
},{"../../bibliotecas/primitivas-dicionario":29,"../../bibliotecas/primitivas-numero":30,"../../bibliotecas/primitivas-texto":31,"../../bibliotecas/primitivas-vetor":32,"../../construtos":62,"../../construtos/tuplas":80,"../../declaracoes":109,"../../inferenciador":135,"../../informacao-elemento-sintatico":136,"../../lexador/simbolo":205,"../../tipos-de-dados/delegua":207,"../../tipos-de-simbolos/tenda":219,"../avaliador-sintatico-base":9,"./../erro-avaliador-sintatico":20,"./../informacao-escopo":22,"./../pilha-escopos":26,"browser-process-hrtime":402}],17:[function(require,module,exports){
|
|
8018
8029
|
"use strict";
|
|
8019
8030
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8020
8031
|
if (k2 === undefined) k2 = k;
|
|
@@ -8828,12 +8839,15 @@ exports.incluido = incluido;
|
|
|
8828
8839
|
exports.inteiro = inteiro;
|
|
8829
8840
|
exports.intervalo = intervalo;
|
|
8830
8841
|
exports.mapear = mapear;
|
|
8842
|
+
exports.maximo = maximo;
|
|
8843
|
+
exports.minimo = minimo;
|
|
8831
8844
|
exports.numero = numero;
|
|
8832
8845
|
exports.ordenar = ordenar;
|
|
8833
8846
|
exports.paraCada = paraCada;
|
|
8834
8847
|
exports.primeiroEmCondicao = primeiroEmCondicao;
|
|
8835
8848
|
exports.real = real;
|
|
8836
8849
|
exports.reduzir = reduzir;
|
|
8850
|
+
exports.somar = somar;
|
|
8837
8851
|
exports.tamanho = tamanho;
|
|
8838
8852
|
exports.texto = texto;
|
|
8839
8853
|
exports.todosEmCondicao = todosEmCondicao;
|
|
@@ -8880,6 +8894,30 @@ const mapaPropriedadesTuplas = {
|
|
|
8880
8894
|
'Noneto': ['primeiro', 'segundo', 'terceiro', 'quarto', 'quinto', 'sexto', 'setimo', 'oitavo', 'nono'],
|
|
8881
8895
|
'Deceto': ['primeiro', 'segundo', 'terceiro', 'quarto', 'quinto', 'sexto', 'setimo', 'oitavo', 'nono', 'decimo'],
|
|
8882
8896
|
};
|
|
8897
|
+
/**
|
|
8898
|
+
* Compara dois valores (números ou vetores).
|
|
8899
|
+
* Retorna:
|
|
8900
|
+
* > 0 se a > b
|
|
8901
|
+
* < 0 se a < b
|
|
8902
|
+
* 0 se a == b
|
|
8903
|
+
* Lança erro se os tipos forem incompatíveis.
|
|
8904
|
+
*/
|
|
8905
|
+
function compararElementosRecursivamente(a, b) {
|
|
8906
|
+
if (typeof a === 'number' && typeof b === 'number') {
|
|
8907
|
+
return a - b;
|
|
8908
|
+
}
|
|
8909
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
8910
|
+
const tamanho = Math.min(a.length, b.length);
|
|
8911
|
+
for (let i = 0; i < tamanho; i++) {
|
|
8912
|
+
const comparacao = compararElementosRecursivamente(a[i], b[i]);
|
|
8913
|
+
if (comparacao !== 0)
|
|
8914
|
+
return comparacao;
|
|
8915
|
+
}
|
|
8916
|
+
return a.length - b.length;
|
|
8917
|
+
}
|
|
8918
|
+
// Tipos incompatíveis (ex: comparar número com vetor)
|
|
8919
|
+
throw new Error('Tipos incompatíveis para comparação.');
|
|
8920
|
+
}
|
|
8883
8921
|
/**
|
|
8884
8922
|
* Retorna um número aleatório entre 0 e 1.
|
|
8885
8923
|
* @returns {Promise<number>} Número real.
|
|
@@ -9360,6 +9398,92 @@ async function mapear(interpretador, vetor, funcaoMapeamento) {
|
|
|
9360
9398
|
}
|
|
9361
9399
|
return resultados;
|
|
9362
9400
|
}
|
|
9401
|
+
/**
|
|
9402
|
+
* Encontra o maior número dentro de um vetor.
|
|
9403
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
9404
|
+
* @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript contendo números.
|
|
9405
|
+
* @returns {Promise<number>} O maior número encontrado no vetor.
|
|
9406
|
+
*/
|
|
9407
|
+
async function maximo(interpretador, vetor) {
|
|
9408
|
+
if (vetor === null || vetor === undefined) {
|
|
9409
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9410
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9411
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9412
|
+
}, 'Parâmetro inválido. O parâmetro da função maximo() não pode ser nulo.'));
|
|
9413
|
+
}
|
|
9414
|
+
const valorVetor = interpretador.resolverValor(vetor);
|
|
9415
|
+
if (!Array.isArray(valorVetor)) {
|
|
9416
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9417
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9418
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9419
|
+
}, 'Parâmetro inválido. O parâmetro da função maximo() deve ser um vetor.'));
|
|
9420
|
+
}
|
|
9421
|
+
if (vetor.length == 0) {
|
|
9422
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9423
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9424
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9425
|
+
}, 'Parâmetro inválido. O vetor não pode estar vazio.'));
|
|
9426
|
+
}
|
|
9427
|
+
let maiorValor = valorVetor[0];
|
|
9428
|
+
try {
|
|
9429
|
+
for (let i = 1; i < valorVetor.length; i++) {
|
|
9430
|
+
const elementoAtual = valorVetor[i];
|
|
9431
|
+
if (compararElementosRecursivamente(elementoAtual, maiorValor) > 0) {
|
|
9432
|
+
maiorValor = elementoAtual;
|
|
9433
|
+
}
|
|
9434
|
+
}
|
|
9435
|
+
}
|
|
9436
|
+
catch (erro) {
|
|
9437
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9438
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9439
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9440
|
+
}, 'Não é possível comparar elementos de tipos diferentes dentro do vetor (ex: números com vetores).'));
|
|
9441
|
+
}
|
|
9442
|
+
return Promise.resolve(maiorValor);
|
|
9443
|
+
}
|
|
9444
|
+
/**
|
|
9445
|
+
* Encontra o menor número dentro de um vetor.
|
|
9446
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
9447
|
+
* @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript contendo números.
|
|
9448
|
+
* @returns {Promise<number>} O menor número encontrado no vetor.
|
|
9449
|
+
*/
|
|
9450
|
+
async function minimo(interpretador, vetor) {
|
|
9451
|
+
if (vetor === null || vetor === undefined) {
|
|
9452
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9453
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9454
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9455
|
+
}, 'Parâmetro inválido. O parâmetro da função minimo() não pode ser nulo.'));
|
|
9456
|
+
}
|
|
9457
|
+
const valorVetor = interpretador.resolverValor(vetor);
|
|
9458
|
+
if (!Array.isArray(valorVetor)) {
|
|
9459
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9460
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9461
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9462
|
+
}, 'Parâmetro inválido. O parâmetro da função minimo() deve ser um vetor.'));
|
|
9463
|
+
}
|
|
9464
|
+
if (valorVetor.length == 0) {
|
|
9465
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9466
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9467
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9468
|
+
}, 'Parâmetro inválido. O vetor não pode estar vazio.'));
|
|
9469
|
+
}
|
|
9470
|
+
let menorValor = valorVetor[0];
|
|
9471
|
+
try {
|
|
9472
|
+
for (let i = 1; i < valorVetor.length; i++) {
|
|
9473
|
+
const elementoAtual = valorVetor[i];
|
|
9474
|
+
if (compararElementosRecursivamente(elementoAtual, menorValor) < 0) {
|
|
9475
|
+
menorValor = elementoAtual;
|
|
9476
|
+
}
|
|
9477
|
+
}
|
|
9478
|
+
}
|
|
9479
|
+
catch (erro) {
|
|
9480
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9481
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9482
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9483
|
+
}, 'Não é possível comparar elementos de tipos diferentes dentro do vetor (ex: números com vetores).'));
|
|
9484
|
+
}
|
|
9485
|
+
return Promise.resolve(menorValor);
|
|
9486
|
+
}
|
|
9363
9487
|
/**
|
|
9364
9488
|
* Converte um valor em um número, com parte decimal ou não.
|
|
9365
9489
|
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
@@ -9535,6 +9659,40 @@ async function reduzir(interpretador, vetor, funcaoReducao, valorInicial = null)
|
|
|
9535
9659
|
}
|
|
9536
9660
|
return resultado;
|
|
9537
9661
|
}
|
|
9662
|
+
/**
|
|
9663
|
+
* Realiza a soma de todos os números dentro de um vetor.
|
|
9664
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
9665
|
+
* @param {VariavelInterface | any} vetor Uma variável de Pituguês ou um vetor nativo de JavaScript contendo números.
|
|
9666
|
+
* @returns {Promise<number>} A soma de todos os elementos do vetor.
|
|
9667
|
+
*/
|
|
9668
|
+
async function somar(interpretador, vetor) {
|
|
9669
|
+
if (vetor === null || vetor === undefined) {
|
|
9670
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9671
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9672
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9673
|
+
}, 'Parâmetro inválido. O parâmetro da função somar() não pode ser nulo.'));
|
|
9674
|
+
}
|
|
9675
|
+
const valorVetor = interpretador.resolverValor(vetor);
|
|
9676
|
+
if (!Array.isArray(valorVetor)) {
|
|
9677
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9678
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9679
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9680
|
+
}, 'Parâmetro inválido. O parâmetro da função somar() deve ser um vetor.'));
|
|
9681
|
+
}
|
|
9682
|
+
if (valorVetor.length === 0)
|
|
9683
|
+
return Promise.resolve(0);
|
|
9684
|
+
let somaDosElementos = 0;
|
|
9685
|
+
for (let elemento of valorVetor) {
|
|
9686
|
+
if (typeof elemento !== 'number' || isNaN(elemento)) {
|
|
9687
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
9688
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
9689
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
9690
|
+
}, 'A função somar() aceita apenas vetores contendo números.'));
|
|
9691
|
+
}
|
|
9692
|
+
somaDosElementos += elemento;
|
|
9693
|
+
}
|
|
9694
|
+
return Promise.resolve(somaDosElementos);
|
|
9695
|
+
}
|
|
9538
9696
|
/**
|
|
9539
9697
|
*
|
|
9540
9698
|
* @param objeto
|
|
@@ -12322,6 +12480,9 @@ class Ajuda extends declaracao_1.Declaracao {
|
|
|
12322
12480
|
this.elemento = elemento;
|
|
12323
12481
|
this.funcao = funcao;
|
|
12324
12482
|
}
|
|
12483
|
+
async aceitar(visitante) {
|
|
12484
|
+
return await visitante.visitarDeclaracaoAjuda(this);
|
|
12485
|
+
}
|
|
12325
12486
|
paraTexto() {
|
|
12326
12487
|
let retorno = `<ajuda `;
|
|
12327
12488
|
if (this.elemento) {
|
|
@@ -14489,11 +14650,13 @@ const construtos_1 = require("../construtos");
|
|
|
14489
14650
|
const declaracoes_1 = require("../declaracoes");
|
|
14490
14651
|
const pitugues_1 = __importDefault(require("../tipos-de-simbolos/pitugues"));
|
|
14491
14652
|
class FormatadorPitugues {
|
|
14492
|
-
constructor() {
|
|
14653
|
+
constructor(quebraLinha, tamanhoIndentacao = 4) {
|
|
14493
14654
|
this.nívelIndentação = 0;
|
|
14494
14655
|
this.tamanhoIndentação = 4;
|
|
14495
14656
|
this.códigoFormatado = '';
|
|
14496
14657
|
this.quebraLinha = '\n';
|
|
14658
|
+
this.quebraLinha = quebraLinha;
|
|
14659
|
+
this.tamanhoIndentação = tamanhoIndentacao;
|
|
14497
14660
|
}
|
|
14498
14661
|
indentar() {
|
|
14499
14662
|
return ' '.repeat(this.nívelIndentação);
|
|
@@ -15352,6 +15515,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
15352
15515
|
})();
|
|
15353
15516
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15354
15517
|
exports.carregarBibliotecasGlobais = carregarBibliotecasGlobais;
|
|
15518
|
+
exports.pontoEntradaAjuda = pontoEntradaAjuda;
|
|
15355
15519
|
exports.obterTopicoAjuda = obterTopicoAjuda;
|
|
15356
15520
|
const funcao_padrao_1 = require("./estruturas/funcao-padrao");
|
|
15357
15521
|
const bibliotecaGlobal = __importStar(require("../bibliotecas/biblioteca-global"));
|
|
@@ -15370,6 +15534,8 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
15370
15534
|
pilhaEscoposExecucao.definirVariavel('inteiro', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.inteiro));
|
|
15371
15535
|
pilhaEscoposExecucao.definirVariavel('intervalo', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.intervalo));
|
|
15372
15536
|
pilhaEscoposExecucao.definirVariavel('mapear', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.mapear));
|
|
15537
|
+
pilhaEscoposExecucao.definirVariavel('maximo', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.maximo));
|
|
15538
|
+
pilhaEscoposExecucao.definirVariavel('minimo', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.minimo));
|
|
15373
15539
|
pilhaEscoposExecucao.definirVariavel('numero', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.numero));
|
|
15374
15540
|
pilhaEscoposExecucao.definirVariavel('número', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.numero));
|
|
15375
15541
|
pilhaEscoposExecucao.definirVariavel('ordenar', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.ordenar));
|
|
@@ -15377,12 +15543,24 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
15377
15543
|
pilhaEscoposExecucao.definirVariavel('primeiroEmCondicao', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.primeiroEmCondicao));
|
|
15378
15544
|
pilhaEscoposExecucao.definirVariavel('real', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.real));
|
|
15379
15545
|
pilhaEscoposExecucao.definirVariavel('reduzir', new funcao_padrao_1.FuncaoPadrao(3, bibliotecaGlobal.reduzir));
|
|
15546
|
+
pilhaEscoposExecucao.definirVariavel('somar', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.somar));
|
|
15380
15547
|
pilhaEscoposExecucao.definirVariavel('tamanho', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.tamanho));
|
|
15381
15548
|
pilhaEscoposExecucao.definirVariavel('texto', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.texto));
|
|
15382
15549
|
pilhaEscoposExecucao.definirVariavel('todos', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.todosEmCondicao));
|
|
15383
15550
|
pilhaEscoposExecucao.definirVariavel('todosEmCondicao', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.todosEmCondicao));
|
|
15384
15551
|
pilhaEscoposExecucao.definirVariavel('tupla', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.tupla));
|
|
15385
15552
|
}
|
|
15553
|
+
function pontoEntradaAjuda(funcao, topico) {
|
|
15554
|
+
if (!funcao) {
|
|
15555
|
+
return "Para usar a ajuda, use como uma função: ajuda(objeto).";
|
|
15556
|
+
}
|
|
15557
|
+
if (!topico) {
|
|
15558
|
+
return "Te damos as boas-vindas ao utilitário de ajuda de Delégua!\n\n" +
|
|
15559
|
+
"Use ajuda(objeto) para obter informações sobre um objeto, função, classe ou módulo.\n" +
|
|
15560
|
+
"Use ajuda('tópico') para obter informações sobre um tópico específico.\n\n";
|
|
15561
|
+
}
|
|
15562
|
+
return obterTopicoAjuda(topico);
|
|
15563
|
+
}
|
|
15386
15564
|
function obterTopicoAjuda(topico) {
|
|
15387
15565
|
switch (topico.constructor) {
|
|
15388
15566
|
case construtos_1.Leia:
|
|
@@ -15560,6 +15738,10 @@ function obterAjudaFuncaoPadrao(funcaoPadrao) {
|
|
|
15560
15738
|
`\tvar numeros = [1, 2, 3, 4]\n` +
|
|
15561
15739
|
`\tvar quadrados = mapear(numeros, funcao(n) { retorna n * n })\n` +
|
|
15562
15740
|
`\tescreva(quadrados) // [1, 4, 9, 16]\n`;
|
|
15741
|
+
case 'maximo':
|
|
15742
|
+
return `# maximo(vetor)\n\nRetorna o maior valor encontrado em um vetor de números.`;
|
|
15743
|
+
case 'minimo':
|
|
15744
|
+
return `# minimo(vetor)\n\nRetorna o menor valor encontrado em um vetor de números.`;
|
|
15563
15745
|
case 'numero':
|
|
15564
15746
|
return `# numero(valor)\n\n` +
|
|
15565
15747
|
`Converte um valor em um número (pode ter parte decimal).\n\n` +
|
|
@@ -15630,6 +15812,8 @@ function obterAjudaFuncaoPadrao(funcaoPadrao) {
|
|
|
15630
15812
|
`\tvar numeros = [1, 2, 3, 4]\n` +
|
|
15631
15813
|
`\tvar soma = reduzir(numeros, funcao(acc, n) { retorna acc + n }, 0)\n` +
|
|
15632
15814
|
`\tescreva(soma) // 10\n`;
|
|
15815
|
+
case 'somar':
|
|
15816
|
+
return `# somar(vetor)\n\nRetorna a soma de todos os elementos de um vetor numérico.`;
|
|
15633
15817
|
case 'tamanho':
|
|
15634
15818
|
return `# tamanho(objeto)\n\n` +
|
|
15635
15819
|
`Retorna o tamanho de um objeto (vetor, texto, função, etc.).\n\n` +
|
|
@@ -18135,7 +18319,7 @@ class InterpretadorBase {
|
|
|
18135
18319
|
exports.InterpretadorBase = InterpretadorBase;
|
|
18136
18320
|
|
|
18137
18321
|
}).call(this)}).call(this,require('_process'))
|
|
18138
|
-
},{"../avaliador-sintatico":21,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../excecoes":129,"../inferenciador":135,"../lexador":197,"../quebras":206,"../tipos-de-dados/delegua":207,"../tipos-de-dados/primitivos":209,"../tipos-de-simbolos/delegua":212,"./espaco-memoria":164,"./estruturas":171,"./estruturas/metodo-primitiva":172,"./pilha-escopos-execucao":181,"_process":
|
|
18322
|
+
},{"../avaliador-sintatico":21,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../excecoes":129,"../inferenciador":135,"../lexador":197,"../quebras":206,"../tipos-de-dados/delegua":207,"../tipos-de-dados/primitivos":209,"../tipos-de-simbolos/delegua":212,"./espaco-memoria":164,"./estruturas":171,"./estruturas/metodo-primitiva":172,"./pilha-escopos-execucao":181,"_process":456,"browser-process-hrtime":402}],179:[function(require,module,exports){
|
|
18139
18323
|
"use strict";
|
|
18140
18324
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18141
18325
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18158,8 +18342,10 @@ const primitivas_vetor_1 = __importDefault(require("../bibliotecas/primitivas-ve
|
|
|
18158
18342
|
const primitivas_tupla_1 = __importDefault(require("../bibliotecas/dialetos/pitugues/primitivas-tupla"));
|
|
18159
18343
|
const primitivos_1 = __importDefault(require("../tipos-de-dados/primitivos"));
|
|
18160
18344
|
const delegua_1 = __importDefault(require("../tipos-de-dados/delegua"));
|
|
18345
|
+
const delegua_2 = __importDefault(require("../tipos-de-simbolos/delegua"));
|
|
18161
18346
|
/**
|
|
18162
|
-
* O interpretador de Delégua
|
|
18347
|
+
* O interpretador de Delégua, usado também por Pituguês usando herança.
|
|
18348
|
+
* @see InterpretadorPitugues
|
|
18163
18349
|
*/
|
|
18164
18350
|
class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
18165
18351
|
constructor(diretorioBase, performance = false, funcaoDeRetorno = null, funcaoDeRetornoMesmaLinha = null) {
|
|
@@ -18318,11 +18504,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
18318
18504
|
* @param declaracao A declaração de ajuda.
|
|
18319
18505
|
*/
|
|
18320
18506
|
async visitarDeclaracaoAjuda(declaracao) {
|
|
18321
|
-
|
|
18322
|
-
// TODO: Terminar
|
|
18323
|
-
}
|
|
18324
|
-
const elementoResolvido = await declaracao.elemento.aceitar(this);
|
|
18325
|
-
console.log(elementoResolvido);
|
|
18507
|
+
return Promise.resolve((0, comum_1.pontoEntradaAjuda)(declaracao.funcao, declaracao.elemento));
|
|
18326
18508
|
}
|
|
18327
18509
|
visitarDeclaracaoDefinicaoFuncao(declaracao) {
|
|
18328
18510
|
const funcao = new estruturas_1.DeleguaFuncao(declaracao.simbolo.lexema, declaracao.funcao);
|
|
@@ -18854,15 +19036,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
18854
19036
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(null, `Propriedade para objeto ou primitiva não encontrado: ${expressao.nomePropriedade}.`, expressao.linha));
|
|
18855
19037
|
}
|
|
18856
19038
|
async visitarExpressaoAjuda(expressao) {
|
|
18857
|
-
|
|
18858
|
-
return "Para usar a ajuda, use como uma função: ajuda(objeto).";
|
|
18859
|
-
}
|
|
18860
|
-
if (!expressao.valor) {
|
|
18861
|
-
return "Te damos as boas-vindas ao utilitário de ajuda de Delégua!\n\n" +
|
|
18862
|
-
"Use ajuda(objeto) para obter informações sobre um objeto, função, classe ou módulo.\n" +
|
|
18863
|
-
"Use ajuda('tópico') para obter informações sobre um tópico específico.\n\n";
|
|
18864
|
-
}
|
|
18865
|
-
return (0, comum_1.obterTopicoAjuda)(expressao.valor);
|
|
19039
|
+
return Promise.resolve((0, comum_1.pontoEntradaAjuda)(expressao.funcao, expressao.valor));
|
|
18866
19040
|
}
|
|
18867
19041
|
async visitarExpressaoArgumentoReferenciaFuncao(expressao) {
|
|
18868
19042
|
const deleguaFuncao = this.pilhaEscoposExecucao.obterVariavelPorNome(expressao.simboloFuncao.lexema);
|
|
@@ -19116,6 +19290,40 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
19116
19290
|
return (0, inferenciador_1.inferirTipoVariavel)(valorTipoDe);
|
|
19117
19291
|
}
|
|
19118
19292
|
}
|
|
19293
|
+
async visitarExpressaoUnaria(expressao) {
|
|
19294
|
+
// Tratamento especial para expressões unárias aplicadas a chamadas de método em literais numéricos.
|
|
19295
|
+
// Por exemplo: -5.absoluto() deve ser avaliado como (-5).absoluto(), não como -(5.absoluto())
|
|
19296
|
+
// Isso garante que o operador unário seja aplicado ao literal antes de chamar o método.
|
|
19297
|
+
if ((expressao.operador.tipo === delegua_2.default.SUBTRACAO || expressao.operador.tipo === delegua_2.default.ADICAO) &&
|
|
19298
|
+
expressao.operando instanceof construtos_1.Chamada) {
|
|
19299
|
+
const entidadeChamada = expressao.operando.entidadeChamada;
|
|
19300
|
+
// Verifica se é AcessoMetodo ou AcessoMetodoOuPropriedade
|
|
19301
|
+
if (entidadeChamada instanceof construtos_1.AcessoMetodo || entidadeChamada instanceof construtos_1.AcessoMetodoOuPropriedade) {
|
|
19302
|
+
const objetoAcesso = entidadeChamada.objeto;
|
|
19303
|
+
// Verifica se o objeto do método é um literal numérico
|
|
19304
|
+
if (objetoAcesso instanceof construtos_1.Literal && typeof objetoAcesso.valor === 'number') {
|
|
19305
|
+
// Cria um novo literal com o sinal aplicado
|
|
19306
|
+
const novoLiteral = new construtos_1.Literal(objetoAcesso.hashArquivo, objetoAcesso.linha, expressao.operador.tipo === delegua_2.default.SUBTRACAO ?
|
|
19307
|
+
-objetoAcesso.valor :
|
|
19308
|
+
+objetoAcesso.valor);
|
|
19309
|
+
// Cria um novo acesso com o literal modificado
|
|
19310
|
+
let novoAcesso;
|
|
19311
|
+
if (entidadeChamada instanceof construtos_1.AcessoMetodo) {
|
|
19312
|
+
novoAcesso = new construtos_1.AcessoMetodo(entidadeChamada.hashArquivo, novoLiteral, entidadeChamada.nomeMetodo, entidadeChamada.tipoRetornoMetodo);
|
|
19313
|
+
}
|
|
19314
|
+
else {
|
|
19315
|
+
novoAcesso = new construtos_1.AcessoMetodoOuPropriedade(entidadeChamada.hashArquivo, novoLiteral, entidadeChamada.simbolo);
|
|
19316
|
+
}
|
|
19317
|
+
// Cria uma nova Chamada com o acesso modificado
|
|
19318
|
+
const novaChamada = new construtos_1.Chamada(expressao.operando.hashArquivo, novoAcesso, expressao.operando.argumentos);
|
|
19319
|
+
// Avalia a nova chamada
|
|
19320
|
+
return await this.avaliar(novaChamada);
|
|
19321
|
+
}
|
|
19322
|
+
}
|
|
19323
|
+
}
|
|
19324
|
+
// Para outros casos, usa o comportamento padrão
|
|
19325
|
+
return await super.visitarExpressaoUnaria(expressao);
|
|
19326
|
+
}
|
|
19119
19327
|
async visitarExpressaoVetor(expressao) {
|
|
19120
19328
|
// Delega ao interpretador base para processar o vetor
|
|
19121
19329
|
const vetor = await super.visitarExpressaoVetor(expressao);
|
|
@@ -19203,7 +19411,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
19203
19411
|
}
|
|
19204
19412
|
exports.Interpretador = Interpretador;
|
|
19205
19413
|
|
|
19206
|
-
},{"../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../declaracoes":109,"../excecoes":129,"../inferenciador":135,"../quebras":206,"../tipos-de-dados/delegua":207,"../tipos-de-dados/primitivos":209,"./comum":163,"./estruturas":171,"./interpretador-base":178,"./montao":180}],180:[function(require,module,exports){
|
|
19414
|
+
},{"../bibliotecas/dialetos/pitugues/primitivas-tupla":28,"../bibliotecas/primitivas-dicionario":29,"../bibliotecas/primitivas-numero":30,"../bibliotecas/primitivas-texto":31,"../bibliotecas/primitivas-vetor":32,"../construtos":62,"../declaracoes":109,"../excecoes":129,"../inferenciador":135,"../quebras":206,"../tipos-de-dados/delegua":207,"../tipos-de-dados/primitivos":209,"../tipos-de-simbolos/delegua":212,"./comum":163,"./estruturas":171,"./interpretador-base":178,"./montao":180}],180:[function(require,module,exports){
|
|
19207
19415
|
"use strict";
|
|
19208
19416
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19209
19417
|
exports.Montao = void 0;
|
|
@@ -20727,7 +20935,7 @@ class LexadorPitugues {
|
|
|
20727
20935
|
}
|
|
20728
20936
|
exports.LexadorPitugues = LexadorPitugues;
|
|
20729
20937
|
|
|
20730
|
-
},{"../../tipos-de-simbolos/pitugues":216,"../simbolo":205,"./palavras-reservadas/pitugues":193,"browser-process-hrtime":
|
|
20938
|
+
},{"../../tipos-de-simbolos/pitugues":216,"../simbolo":205,"./palavras-reservadas/pitugues":193,"browser-process-hrtime":402}],187:[function(require,module,exports){
|
|
20731
20939
|
"use strict";
|
|
20732
20940
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
20733
20941
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -21337,7 +21545,7 @@ class LexadorPrisma {
|
|
|
21337
21545
|
}
|
|
21338
21546
|
exports.LexadorPrisma = LexadorPrisma;
|
|
21339
21547
|
|
|
21340
|
-
},{"../../tipos-de-simbolos/prisma":218,"../simbolo":205,"./palavras-reservadas/prisma":195,"browser-process-hrtime":
|
|
21548
|
+
},{"../../tipos-de-simbolos/prisma":218,"../simbolo":205,"./palavras-reservadas/prisma":195,"browser-process-hrtime":402}],189:[function(require,module,exports){
|
|
21341
21549
|
"use strict";
|
|
21342
21550
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21343
21551
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -21728,7 +21936,7 @@ class LexadorTenda {
|
|
|
21728
21936
|
}
|
|
21729
21937
|
exports.LexadorTenda = LexadorTenda;
|
|
21730
21938
|
|
|
21731
|
-
},{"../../tipos-de-simbolos/tenda":219,"../simbolo":205,"./palavras-reservadas/tenda":196,"browser-process-hrtime":
|
|
21939
|
+
},{"../../tipos-de-simbolos/tenda":219,"../simbolo":205,"./palavras-reservadas/tenda":196,"browser-process-hrtime":402}],190:[function(require,module,exports){
|
|
21732
21940
|
"use strict";
|
|
21733
21941
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
21734
21942
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -22688,7 +22896,7 @@ class Lexador {
|
|
|
22688
22896
|
}
|
|
22689
22897
|
exports.Lexador = Lexador;
|
|
22690
22898
|
|
|
22691
|
-
},{"../tipos-de-simbolos/delegua":212,"./palavras-reservadas":204,"./simbolo":205,"browser-process-hrtime":
|
|
22899
|
+
},{"../tipos-de-simbolos/delegua":212,"./palavras-reservadas":204,"./simbolo":205,"browser-process-hrtime":402}],201:[function(require,module,exports){
|
|
22692
22900
|
"use strict";
|
|
22693
22901
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
22694
22902
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -24178,8 +24386,9 @@ __exportStar(require("./tradutor-python"), exports);
|
|
|
24178
24386
|
__exportStar(require("./tradutor-reverso-javascript"), exports);
|
|
24179
24387
|
__exportStar(require("./tradutor-reverso-python"), exports);
|
|
24180
24388
|
__exportStar(require("./tradutor-reverso-tenda"), exports);
|
|
24389
|
+
__exportStar(require("./tradutor-ruby"), exports);
|
|
24181
24390
|
|
|
24182
|
-
},{"./tradutor-assembly-arm":229,"./tradutor-assembly-x64":230,"./tradutor-assemblyscript":231,"./tradutor-calango":232,"./tradutor-javascript":233,"./tradutor-mermaidjs":234,"./tradutor-portugol-ipt":235,"./tradutor-python":236,"./tradutor-reverso-javascript":237,"./tradutor-reverso-python":238,"./tradutor-reverso-tenda":239}],221:[function(require,module,exports){
|
|
24391
|
+
},{"./tradutor-assembly-arm":229,"./tradutor-assembly-x64":230,"./tradutor-assemblyscript":231,"./tradutor-calango":232,"./tradutor-javascript":233,"./tradutor-mermaidjs":234,"./tradutor-portugol-ipt":235,"./tradutor-python":236,"./tradutor-reverso-javascript":237,"./tradutor-reverso-python":238,"./tradutor-reverso-tenda":239,"./tradutor-ruby":240}],221:[function(require,module,exports){
|
|
24183
24392
|
"use strict";
|
|
24184
24393
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24185
24394
|
exports.ArestaFluxograma = void 0;
|
|
@@ -24193,40 +24402,6 @@ exports.ArestaFluxograma = ArestaFluxograma;
|
|
|
24193
24402
|
|
|
24194
24403
|
},{}],222:[function(require,module,exports){
|
|
24195
24404
|
"use strict";
|
|
24196
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24197
|
-
exports.DiagramaClasse = void 0;
|
|
24198
|
-
class DiagramaClasse {
|
|
24199
|
-
constructor(nome, superClasse) {
|
|
24200
|
-
this.nome = nome;
|
|
24201
|
-
this.superClasse = superClasse;
|
|
24202
|
-
this.metodos = [];
|
|
24203
|
-
this.propriedades = [];
|
|
24204
|
-
}
|
|
24205
|
-
paraTexto() {
|
|
24206
|
-
let resultado = ` classe ${this.nome} {\n`;
|
|
24207
|
-
// Adiciona propriedades (se houver)
|
|
24208
|
-
for (const prop of this.propriedades) {
|
|
24209
|
-
const tipo = prop.tipo ? `: ${prop.tipo}` : '';
|
|
24210
|
-
resultado += ` +${prop.nome}${tipo}\n`;
|
|
24211
|
-
}
|
|
24212
|
-
// Adiciona métodos
|
|
24213
|
-
for (const metodo of this.metodos) {
|
|
24214
|
-
const params = metodo.parametros.join(', ');
|
|
24215
|
-
const retorno = metodo.tipoRetorno ? `: ${metodo.tipoRetorno}` : '';
|
|
24216
|
-
resultado += ` +${metodo.nome}(${params})${retorno}\n`;
|
|
24217
|
-
}
|
|
24218
|
-
resultado += ` }\n`;
|
|
24219
|
-
// Adiciona herança se houver
|
|
24220
|
-
if (this.superClasse) {
|
|
24221
|
-
resultado += ` ${this.superClasse} <|-- ${this.nome}\n`;
|
|
24222
|
-
}
|
|
24223
|
-
return resultado;
|
|
24224
|
-
}
|
|
24225
|
-
}
|
|
24226
|
-
exports.DiagramaClasse = DiagramaClasse;
|
|
24227
|
-
|
|
24228
|
-
},{}],223:[function(require,module,exports){
|
|
24229
|
-
"use strict";
|
|
24230
24405
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
24231
24406
|
if (k2 === undefined) k2 = k;
|
|
24232
24407
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -24243,50 +24418,50 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
24243
24418
|
};
|
|
24244
24419
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24245
24420
|
__exportStar(require("./aresta-fluxograma"), exports);
|
|
24246
|
-
__exportStar(require("./diagrama-classe"), exports);
|
|
24247
24421
|
__exportStar(require("./subgrafo-classe"), exports);
|
|
24248
24422
|
__exportStar(require("./subgrafo-funcao"), exports);
|
|
24423
|
+
__exportStar(require("./subgrafo-metodo"), exports);
|
|
24249
24424
|
__exportStar(require("./vertice-fluxograma"), exports);
|
|
24250
24425
|
|
|
24251
|
-
},{"./aresta-fluxograma":221,"./
|
|
24426
|
+
},{"./aresta-fluxograma":221,"./subgrafo-classe":223,"./subgrafo-funcao":224,"./subgrafo-metodo":225,"./vertice-fluxograma":226}],223:[function(require,module,exports){
|
|
24252
24427
|
"use strict";
|
|
24253
24428
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24254
24429
|
exports.SubgrafoClasse = void 0;
|
|
24255
24430
|
class SubgrafoClasse {
|
|
24256
|
-
constructor(nomeClasse, linha, superClasse) {
|
|
24431
|
+
constructor(nomeClasse, linha, arestaInicial, arestaFinal, superClasse) {
|
|
24257
24432
|
this.nomeClasse = nomeClasse;
|
|
24258
24433
|
this.linha = linha;
|
|
24259
24434
|
this.superClasse = superClasse;
|
|
24260
24435
|
this.vertices = [];
|
|
24261
24436
|
this.metodos = [];
|
|
24437
|
+
this.arestaInicial = arestaInicial;
|
|
24438
|
+
this.arestaFinal = arestaFinal;
|
|
24262
24439
|
}
|
|
24263
24440
|
paraTexto() {
|
|
24264
|
-
let resultado = ` subgraph
|
|
24441
|
+
let resultado = ` subgraph ${this.nomeClasse}["Classe: ${this.nomeClasse}`;
|
|
24265
24442
|
if (this.superClasse) {
|
|
24266
24443
|
resultado += ` (estende ${this.superClasse})`;
|
|
24267
24444
|
}
|
|
24268
24445
|
resultado += `"]\n`;
|
|
24269
|
-
|
|
24270
|
-
|
|
24271
|
-
|
|
24272
|
-
// Adiciona os métodos como sub-subgrafos
|
|
24273
|
-
for (const metodo of this.metodos) {
|
|
24274
|
-
resultado += ` subgraph Metodo_${metodo.nome}_${this.nomeClasse}_${this.linha}["Método: ${metodo.nome}"]\n`;
|
|
24446
|
+
// Renderiza o construtor se existir
|
|
24447
|
+
if (this.construtor) {
|
|
24448
|
+
resultado += ` subgraph construtor_${this.nomeClasse}["Construtor"]\n`;
|
|
24275
24449
|
resultado += ` direction TB\n`;
|
|
24276
|
-
for (const vertice of
|
|
24277
|
-
|
|
24278
|
-
|
|
24279
|
-
resultado += textoVertice;
|
|
24450
|
+
for (const vertice of this.construtor.vertices) {
|
|
24451
|
+
const textoVertice = vertice.paraTexto();
|
|
24452
|
+
resultado += ' ' + textoVertice;
|
|
24280
24453
|
}
|
|
24281
24454
|
resultado += ` end\n`;
|
|
24282
24455
|
}
|
|
24283
|
-
//
|
|
24284
|
-
|
|
24285
|
-
|
|
24286
|
-
|
|
24287
|
-
|
|
24288
|
-
|
|
24456
|
+
// Renderiza os métodos
|
|
24457
|
+
for (const metodo of this.metodos) {
|
|
24458
|
+
resultado += ` subgraph ${metodo.nomeMetodo}_${this.nomeClasse}["Método: ${metodo.nomeMetodo}()"]\n`;
|
|
24459
|
+
resultado += ` direction TB\n`;
|
|
24460
|
+
for (const vertice of metodo.vertices) {
|
|
24461
|
+
const textoVertice = vertice.paraTexto();
|
|
24462
|
+
resultado += ' ' + textoVertice;
|
|
24289
24463
|
}
|
|
24464
|
+
resultado += ` end\n`;
|
|
24290
24465
|
}
|
|
24291
24466
|
resultado += ` end\n`;
|
|
24292
24467
|
return resultado;
|
|
@@ -24294,7 +24469,7 @@ class SubgrafoClasse {
|
|
|
24294
24469
|
}
|
|
24295
24470
|
exports.SubgrafoClasse = SubgrafoClasse;
|
|
24296
24471
|
|
|
24297
|
-
},{}],
|
|
24472
|
+
},{}],224:[function(require,module,exports){
|
|
24298
24473
|
"use strict";
|
|
24299
24474
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24300
24475
|
exports.SubgrafoFuncao = void 0;
|
|
@@ -24309,6 +24484,23 @@ class SubgrafoFuncao {
|
|
|
24309
24484
|
}
|
|
24310
24485
|
exports.SubgrafoFuncao = SubgrafoFuncao;
|
|
24311
24486
|
|
|
24487
|
+
},{}],225:[function(require,module,exports){
|
|
24488
|
+
"use strict";
|
|
24489
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
24490
|
+
exports.SubgrafoMetodo = void 0;
|
|
24491
|
+
class SubgrafoMetodo {
|
|
24492
|
+
constructor(nomeMetodo, nomeClasse, linha, arestaInicial, arestaFinal, ehConstrutor = false) {
|
|
24493
|
+
this.nomeMetodo = nomeMetodo;
|
|
24494
|
+
this.nomeClasse = nomeClasse;
|
|
24495
|
+
this.linha = linha;
|
|
24496
|
+
this.vertices = [];
|
|
24497
|
+
this.arestaInicial = arestaInicial;
|
|
24498
|
+
this.arestaFinal = arestaFinal;
|
|
24499
|
+
this.ehConstrutor = ehConstrutor;
|
|
24500
|
+
}
|
|
24501
|
+
}
|
|
24502
|
+
exports.SubgrafoMetodo = SubgrafoMetodo;
|
|
24503
|
+
|
|
24312
24504
|
},{}],226:[function(require,module,exports){
|
|
24313
24505
|
"use strict";
|
|
24314
24506
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -25566,7 +25758,7 @@ __decorate([
|
|
|
25566
25758
|
Decorators_1.Override
|
|
25567
25759
|
], Python3Lexer.prototype, "nextToken", null);
|
|
25568
25760
|
|
|
25569
|
-
},{"./python3-parser":228,"antlr4ts/CommonToken":
|
|
25761
|
+
},{"./python3-parser":228,"antlr4ts/CommonToken":250,"antlr4ts/Decorators":254,"antlr4ts/Lexer":262,"antlr4ts/Token":279,"antlr4ts/VocabularyImpl":285,"antlr4ts/atn/ATNDeserializer":291,"antlr4ts/atn/LexerATNSimulator":312,"antlr4ts/misc/Utils":373}],228:[function(require,module,exports){
|
|
25570
25762
|
"use strict";
|
|
25571
25763
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
25572
25764
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -36813,7 +37005,7 @@ class Yield_argContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
36813
37005
|
}
|
|
36814
37006
|
exports.Yield_argContext = Yield_argContext;
|
|
36815
37007
|
|
|
36816
|
-
},{"antlr4ts/FailedPredicateException":
|
|
37008
|
+
},{"antlr4ts/FailedPredicateException":258,"antlr4ts/NoViableAltException":266,"antlr4ts/Parser":267,"antlr4ts/ParserRuleContext":270,"antlr4ts/RecognitionException":273,"antlr4ts/Token":279,"antlr4ts/VocabularyImpl":285,"antlr4ts/atn/ATN":287,"antlr4ts/atn/ATNDeserializer":291,"antlr4ts/atn/ParserATNSimulator":328,"antlr4ts/misc/Utils":373}],229:[function(require,module,exports){
|
|
36817
37009
|
"use strict";
|
|
36818
37010
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36819
37011
|
exports.TradutorAssemblyARM = void 0;
|
|
@@ -39694,8 +39886,7 @@ class TradutorMermaidJs {
|
|
|
39694
39886
|
};
|
|
39695
39887
|
this.dicionarioDeclaracoes = {
|
|
39696
39888
|
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
39697
|
-
|
|
39698
|
-
Classe: () => { throw new Error("Fluxogramas de classes ainda não é suportado."); },
|
|
39889
|
+
Classe: this.traduzirDeclaracaoClasse.bind(this),
|
|
39699
39890
|
Comentario: () => '',
|
|
39700
39891
|
Const: this.traduzirDeclaracaoConst.bind(this),
|
|
39701
39892
|
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
@@ -39703,10 +39894,10 @@ class TradutorMermaidJs {
|
|
|
39703
39894
|
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
39704
39895
|
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
39705
39896
|
Fazer: this.traduzirDeclaracaoFazerEnquanto.bind(this),
|
|
39706
|
-
|
|
39707
|
-
FuncaoDeclaracao: () => { throw new Error("Fluxogramas de funções ainda não é suportado."); },
|
|
39897
|
+
FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
39708
39898
|
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
39709
39899
|
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
39900
|
+
Retorna: this.traduzirDeclaracaoRetorna.bind(this),
|
|
39710
39901
|
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
39711
39902
|
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
39712
39903
|
};
|
|
@@ -39759,6 +39950,32 @@ class TradutorMermaidJs {
|
|
|
39759
39950
|
}
|
|
39760
39951
|
return texto;
|
|
39761
39952
|
}
|
|
39953
|
+
/**
|
|
39954
|
+
* Traduz uma declaração de Expressao que contém uma chamada de função,
|
|
39955
|
+
* criando os vértices necessários para conectar ao subgrafo da função.
|
|
39956
|
+
*/
|
|
39957
|
+
traduzirChamadaFuncao(declaracaoExpressao, chamada) {
|
|
39958
|
+
// Verifica se é uma chamada a uma função conhecida
|
|
39959
|
+
if (chamada.entidadeChamada.constructor.name === 'Variavel') {
|
|
39960
|
+
const variavel = chamada.entidadeChamada;
|
|
39961
|
+
const nomeFuncao = variavel.simbolo.lexema;
|
|
39962
|
+
if (this.declaracoesFuncoes[nomeFuncao]) {
|
|
39963
|
+
const subgrafo = this.declaracoesFuncoes[nomeFuncao];
|
|
39964
|
+
let vertices = [];
|
|
39965
|
+
// Conecta do fluxo atual para a entrada da função
|
|
39966
|
+
const textoPreChamada = `Linha${declaracaoExpressao.linha}(${this.traduzirConstrutoChamada(chamada)})`;
|
|
39967
|
+
const arestaPreChamada = new mermaid_1.ArestaFluxograma(declaracaoExpressao, textoPreChamada);
|
|
39968
|
+
vertices = vertices.concat(this.logicaComumConexaoArestas(arestaPreChamada));
|
|
39969
|
+
// Conecta a pré-chamada ao início da função
|
|
39970
|
+
vertices.push(new mermaid_1.VerticeFluxograma(arestaPreChamada, subgrafo.arestaInicial));
|
|
39971
|
+
// A saída da função volta para o fluxo principal
|
|
39972
|
+
this.anteriores = [subgrafo.arestaFinal];
|
|
39973
|
+
return vertices;
|
|
39974
|
+
}
|
|
39975
|
+
}
|
|
39976
|
+
// Se não for uma função conhecida, trata como expressão normal
|
|
39977
|
+
return [];
|
|
39978
|
+
}
|
|
39762
39979
|
traduzirConstrutoDefinirValor(definirValor) {
|
|
39763
39980
|
const textoObjeto = this.dicionarioConstrutos[definirValor.objeto.constructor.name](definirValor.objeto);
|
|
39764
39981
|
const textoValor = this.dicionarioConstrutos[definirValor.valor.constructor.name](definirValor.valor);
|
|
@@ -39869,39 +40086,62 @@ class TradutorMermaidJs {
|
|
|
39869
40086
|
return vertices;
|
|
39870
40087
|
}
|
|
39871
40088
|
traduzirDeclaracaoClasse(declaracaoClasse) {
|
|
40089
|
+
var _a, _b;
|
|
39872
40090
|
const nomeClasse = declaracaoClasse.simbolo.lexema;
|
|
39873
40091
|
const superClasse = declaracaoClasse.superClasse
|
|
39874
|
-
? declaracaoClasse.superClasse.nome.lexema
|
|
40092
|
+
? (((_a = declaracaoClasse.superClasse.simbolo) === null || _a === void 0 ? void 0 : _a.lexema) || ((_b = declaracaoClasse.superClasse.nome) === null || _b === void 0 ? void 0 : _b.lexema))
|
|
39875
40093
|
: undefined;
|
|
39876
|
-
|
|
39877
|
-
|
|
39878
|
-
|
|
40094
|
+
const linha = declaracaoClasse.linha;
|
|
40095
|
+
// Cria arestas de entrada e saída para a classe
|
|
40096
|
+
const textoInicio = `Classe${nomeClasse}Inicio[Início: Classe ${nomeClasse}]`;
|
|
40097
|
+
const arestaInicial = new mermaid_1.ArestaFluxograma(declaracaoClasse, textoInicio);
|
|
40098
|
+
const textoFim = `Classe${nomeClasse}Fim[Fim: Classe ${nomeClasse}]`;
|
|
40099
|
+
const arestaFinal = new mermaid_1.ArestaFluxograma(declaracaoClasse, textoFim);
|
|
40100
|
+
// Cria o subgrafo da classe
|
|
40101
|
+
const subgrafo = new mermaid_1.SubgrafoClasse(nomeClasse, linha, arestaInicial, arestaFinal, superClasse);
|
|
40102
|
+
// Salva o estado anterior
|
|
40103
|
+
const anterioresAntes = [...this.anteriores];
|
|
40104
|
+
// Processa métodos
|
|
39879
40105
|
if (declaracaoClasse.metodos && declaracaoClasse.metodos.length > 0) {
|
|
39880
|
-
for (const
|
|
39881
|
-
const
|
|
39882
|
-
|
|
39883
|
-
|
|
39884
|
-
|
|
39885
|
-
|
|
39886
|
-
|
|
40106
|
+
for (const metodoDeclaracao of declaracaoClasse.metodos) {
|
|
40107
|
+
const nomeMetodo = metodoDeclaracao.simbolo.lexema;
|
|
40108
|
+
const linhaMetodo = metodoDeclaracao.linha;
|
|
40109
|
+
const ehConstrutor = nomeMetodo === 'construtor' || nomeMetodo === 'iniciar';
|
|
40110
|
+
// Cria arestas de entrada e saída para o método
|
|
40111
|
+
const textoInicioMetodo = `Metodo${nomeMetodo}${nomeClasse}Inicio[Início: ${nomeMetodo}()]`;
|
|
40112
|
+
const arestaInicialMetodo = new mermaid_1.ArestaFluxograma(metodoDeclaracao, textoInicioMetodo);
|
|
40113
|
+
const textoFimMetodo = `Metodo${nomeMetodo}${nomeClasse}Fim[Fim: ${nomeMetodo}()]`;
|
|
40114
|
+
const arestaFinalMetodo = new mermaid_1.ArestaFluxograma(metodoDeclaracao, textoFimMetodo);
|
|
40115
|
+
// Cria o subgrafo do método
|
|
40116
|
+
const subgrafoMetodo = new mermaid_1.SubgrafoMetodo(nomeMetodo, nomeClasse, linhaMetodo, arestaInicialMetodo, arestaFinalMetodo, ehConstrutor);
|
|
40117
|
+
// Traduz o corpo do método
|
|
40118
|
+
this.anteriores = [arestaInicialMetodo];
|
|
40119
|
+
if (metodoDeclaracao.funcao.corpo && metodoDeclaracao.funcao.corpo.length > 0) {
|
|
40120
|
+
for (const declaracaoCorpo of metodoDeclaracao.funcao.corpo) {
|
|
40121
|
+
const verticesCorpo = this.dicionarioDeclaracoes[declaracaoCorpo.constructor.name](declaracaoCorpo);
|
|
40122
|
+
subgrafoMetodo.vertices = subgrafoMetodo.vertices.concat(verticesCorpo);
|
|
39887
40123
|
}
|
|
39888
40124
|
}
|
|
39889
|
-
|
|
39890
|
-
|
|
39891
|
-
|
|
39892
|
-
|
|
39893
|
-
|
|
39894
|
-
}
|
|
40125
|
+
// Conecta o último vértice do corpo ao fim do método
|
|
40126
|
+
if (this.anteriores.length > 0) {
|
|
40127
|
+
for (const anterior of this.anteriores) {
|
|
40128
|
+
subgrafoMetodo.vertices.push(new mermaid_1.VerticeFluxograma(anterior, arestaFinalMetodo));
|
|
40129
|
+
}
|
|
40130
|
+
}
|
|
40131
|
+
// Adiciona o método ao subgrafo da classe
|
|
40132
|
+
if (ehConstrutor) {
|
|
40133
|
+
subgrafo.construtor = subgrafoMetodo;
|
|
40134
|
+
}
|
|
40135
|
+
else {
|
|
40136
|
+
subgrafo.metodos.push(subgrafoMetodo);
|
|
40137
|
+
}
|
|
39895
40138
|
}
|
|
39896
40139
|
}
|
|
39897
|
-
//
|
|
39898
|
-
this.
|
|
39899
|
-
//
|
|
39900
|
-
|
|
39901
|
-
|
|
39902
|
-
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
39903
|
-
this.anteriores.push(aresta);
|
|
39904
|
-
return vertices;
|
|
40140
|
+
// Restaura o estado anterior
|
|
40141
|
+
this.anteriores = anterioresAntes;
|
|
40142
|
+
// Armazena o subgrafo da classe
|
|
40143
|
+
this.declaracoesClasses[nomeClasse] = subgrafo;
|
|
40144
|
+
return [];
|
|
39905
40145
|
}
|
|
39906
40146
|
traduzirDeclaracaoConst(declaracaoConst) {
|
|
39907
40147
|
let texto = `Linha${declaracaoConst.linha}(variável: ${declaracaoConst.simbolo.lexema}`;
|
|
@@ -39991,6 +40231,16 @@ class TradutorMermaidJs {
|
|
|
39991
40231
|
return vertices;
|
|
39992
40232
|
}
|
|
39993
40233
|
traduzirDeclaracaoExpressao(declaracaoExpressao) {
|
|
40234
|
+
// Verifica se é uma chamada de função
|
|
40235
|
+
if (declaracaoExpressao.expressao.constructor.name === 'Chamada') {
|
|
40236
|
+
const chamada = declaracaoExpressao.expressao;
|
|
40237
|
+
const verticesChamada = this.traduzirChamadaFuncao(declaracaoExpressao, chamada);
|
|
40238
|
+
if (verticesChamada.length > 0) {
|
|
40239
|
+
return verticesChamada;
|
|
40240
|
+
}
|
|
40241
|
+
}
|
|
40242
|
+
// Se não for uma chamada de função ou não for uma função conhecida,
|
|
40243
|
+
// trata como expressão normal
|
|
39994
40244
|
let texto = `Linha${declaracaoExpressao.linha}(`;
|
|
39995
40245
|
const textoConstruto = this.dicionarioConstrutos[declaracaoExpressao.expressao.constructor.name](declaracaoExpressao.expressao);
|
|
39996
40246
|
texto += textoConstruto + ')';
|
|
@@ -40020,25 +40270,36 @@ class TradutorMermaidJs {
|
|
|
40020
40270
|
return vertices;
|
|
40021
40271
|
}
|
|
40022
40272
|
traduzirDeclaracaoFuncao(declaracaoFuncao) {
|
|
40023
|
-
|
|
40024
|
-
const
|
|
40025
|
-
|
|
40026
|
-
|
|
40273
|
+
const nomeFuncao = declaracaoFuncao.simbolo.lexema;
|
|
40274
|
+
const linha = declaracaoFuncao.linha;
|
|
40275
|
+
// Cria arestas de entrada e saída para a função
|
|
40276
|
+
const textoInicio = `Func${nomeFuncao}Inicio[Início: ${nomeFuncao}()]`;
|
|
40277
|
+
const arestaInicial = new mermaid_1.ArestaFluxograma(declaracaoFuncao, textoInicio);
|
|
40278
|
+
const textoFim = `Func${nomeFuncao}Fim[Fim: ${nomeFuncao}()]`;
|
|
40279
|
+
const arestaFinal = new mermaid_1.ArestaFluxograma(declaracaoFuncao, textoFim);
|
|
40280
|
+
// Cria o subgrafo da função
|
|
40281
|
+
const subgrafo = new mermaid_1.SubgrafoFuncao(nomeFuncao, linha, arestaInicial, arestaFinal);
|
|
40282
|
+
// Salva o estado atual de anteriores
|
|
40283
|
+
const anterioresAntes = [...this.anteriores];
|
|
40284
|
+
this.anteriores = [arestaInicial];
|
|
40285
|
+
// Processa o corpo da função
|
|
40286
|
+
if (declaracaoFuncao.funcao.corpo && declaracaoFuncao.funcao.corpo.length > 0) {
|
|
40287
|
+
for (const declaracaoCorpo of declaracaoFuncao.funcao.corpo) {
|
|
40288
|
+
const verticesCorpo = this.dicionarioDeclaracoes[declaracaoCorpo.constructor.name](declaracaoCorpo);
|
|
40289
|
+
subgrafo.vertices = subgrafo.vertices.concat(verticesCorpo);
|
|
40290
|
+
}
|
|
40291
|
+
}
|
|
40292
|
+
// Conecta o fim do corpo à aresta final
|
|
40293
|
+
if (this.anteriores.length > 0) {
|
|
40294
|
+
for (const anterior of this.anteriores) {
|
|
40295
|
+
subgrafo.vertices.push(new mermaid_1.VerticeFluxograma(anterior, arestaFinal));
|
|
40296
|
+
}
|
|
40027
40297
|
}
|
|
40028
|
-
//
|
|
40029
|
-
|
|
40030
|
-
|
|
40031
|
-
|
|
40032
|
-
|
|
40033
|
-
textoSubgrafo += `end;\n`; */
|
|
40034
|
-
// Armazena o subgraph para imprimir depois de graph TD;
|
|
40035
|
-
// this.subgrafosFuncoes.push(textoSubgrafo);
|
|
40036
|
-
// IMPORTANTE: não altera this.anteriores aqui, para a função
|
|
40037
|
-
// não entrar no fluxo principal. O fluxo principal continua
|
|
40038
|
-
// sendo só as declarações "top-level" (como a chamada em Linha4).
|
|
40039
|
-
// Também não precisa devolver vértices, porque eles já
|
|
40040
|
-
// foram adicionados em this.vertices pelos próprios tradutores
|
|
40041
|
-
// das declarações do corpo (via dicionarioDeclaracoes).
|
|
40298
|
+
// Restaura o estado anterior
|
|
40299
|
+
this.anteriores = anterioresAntes;
|
|
40300
|
+
// Armazena o subgrafo
|
|
40301
|
+
this.declaracoesFuncoes[nomeFuncao] = subgrafo;
|
|
40302
|
+
// Não adiciona ao fluxo principal
|
|
40042
40303
|
return [];
|
|
40043
40304
|
}
|
|
40044
40305
|
traduzirDeclaracaoPara(declaracaoPara) {
|
|
@@ -40134,6 +40395,17 @@ class TradutorMermaidJs {
|
|
|
40134
40395
|
this.anteriores.push(aresta);
|
|
40135
40396
|
return vertices;
|
|
40136
40397
|
}
|
|
40398
|
+
traduzirDeclaracaoRetorna(declaracaoRetorna) {
|
|
40399
|
+
let texto = `Linha${declaracaoRetorna.linha}(retorna`;
|
|
40400
|
+
if (declaracaoRetorna.valor) {
|
|
40401
|
+
texto += `: ${this.dicionarioConstrutos[declaracaoRetorna.valor.constructor.name](declaracaoRetorna.valor)}`;
|
|
40402
|
+
}
|
|
40403
|
+
texto += ')';
|
|
40404
|
+
const aresta = new mermaid_1.ArestaFluxograma(declaracaoRetorna, texto);
|
|
40405
|
+
const vertices = this.logicaComumConexaoArestas(aresta);
|
|
40406
|
+
this.anteriores.push(aresta);
|
|
40407
|
+
return vertices;
|
|
40408
|
+
}
|
|
40137
40409
|
/**
|
|
40138
40410
|
* Ponto de entrada para a tradução de declarações em um fluxograma
|
|
40139
40411
|
* no formato MermaidJs.
|
|
@@ -40145,13 +40417,26 @@ class TradutorMermaidJs {
|
|
|
40145
40417
|
this.vertices = [];
|
|
40146
40418
|
let resultado = 'graph TD;\n';
|
|
40147
40419
|
this.indentacaoAtual = 4;
|
|
40148
|
-
this.
|
|
40420
|
+
this.declaracoesFuncoes = {};
|
|
40421
|
+
this.declaracoesClasses = {};
|
|
40149
40422
|
for (const declaracao of declaracoes) {
|
|
40150
40423
|
this.vertices = this.vertices.concat(this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao));
|
|
40151
40424
|
}
|
|
40152
|
-
|
|
40153
|
-
|
|
40154
|
-
|
|
40425
|
+
// Renderiza os subgrafos de funções
|
|
40426
|
+
if (Object.keys(this.declaracoesFuncoes).length > 0) {
|
|
40427
|
+
for (const [nomeFuncao, subgrafo] of Object.entries(this.declaracoesFuncoes)) {
|
|
40428
|
+
resultado += ` subgraph ${nomeFuncao}["Função: ${nomeFuncao}()"]\n`;
|
|
40429
|
+
// Renderiza os vértices da função
|
|
40430
|
+
for (const vertice of subgrafo.vertices) {
|
|
40431
|
+
resultado += ' ' + vertice.paraTexto();
|
|
40432
|
+
}
|
|
40433
|
+
resultado += ` end\n`;
|
|
40434
|
+
}
|
|
40435
|
+
}
|
|
40436
|
+
// Renderiza os subgrafos de classes
|
|
40437
|
+
if (Object.keys(this.declaracoesClasses).length > 0) {
|
|
40438
|
+
for (const [nomeClasse, subgrafo] of Object.entries(this.declaracoesClasses)) {
|
|
40439
|
+
resultado += subgrafo.paraTexto();
|
|
40155
40440
|
}
|
|
40156
40441
|
}
|
|
40157
40442
|
if (this.vertices.length === 0 && this.anteriores.length === 0) {
|
|
@@ -40178,7 +40463,7 @@ class TradutorMermaidJs {
|
|
|
40178
40463
|
}
|
|
40179
40464
|
exports.TradutorMermaidJs = TradutorMermaidJs;
|
|
40180
40465
|
|
|
40181
|
-
},{"../tipos-de-simbolos/delegua":212,"./mermaid":
|
|
40466
|
+
},{"../tipos-de-simbolos/delegua":212,"./mermaid":222}],235:[function(require,module,exports){
|
|
40182
40467
|
"use strict";
|
|
40183
40468
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40184
40469
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -40268,6 +40553,7 @@ class TradutorPython {
|
|
|
40268
40553
|
ComentarioComoConstruto: this.traduzirConstrutoComentario.bind(this),
|
|
40269
40554
|
DefinirValor: this.traduzirConstrutoDefinirValor.bind(this),
|
|
40270
40555
|
Dicionario: this.traduzirConstrutoDicionario.bind(this),
|
|
40556
|
+
FuncaoConstruto: this.traduzirFuncaoAnonimaParaLambda.bind(this),
|
|
40271
40557
|
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
40272
40558
|
Logico: this.traduzirConstrutoLogico.bind(this),
|
|
40273
40559
|
ReferenciaFuncao: this.traduzirConstrutoReferenciaFuncao.bind(this),
|
|
@@ -40405,9 +40691,38 @@ class TradutorPython {
|
|
|
40405
40691
|
const indice = this.dicionarioConstrutos[acessoIndiceVariavel.indice.constructor.name](acessoIndiceVariavel.indice);
|
|
40406
40692
|
return `${entidade}[${indice}]`;
|
|
40407
40693
|
}
|
|
40408
|
-
|
|
40694
|
+
/**
|
|
40695
|
+
* Traduz uma função anônima de Delégua para uma lambda do Python.
|
|
40696
|
+
* Em Delégua: funcao(x) { retorna x * 2 }
|
|
40697
|
+
* Em Python: lambda x: x * 2
|
|
40698
|
+
*
|
|
40699
|
+
* Limitação: Python lambdas suportam apenas uma expressão, então apenas funções
|
|
40700
|
+
* simples com um único retorno podem ser traduzidas adequadamente.
|
|
40701
|
+
* @param argumento O construto da função anônima
|
|
40702
|
+
* @returns String com a lambda do Python
|
|
40703
|
+
*/
|
|
40409
40704
|
traduzirFuncaoAnonimaParaLambda(argumento) {
|
|
40410
|
-
|
|
40705
|
+
if (!(argumento instanceof construtos_1.FuncaoConstruto)) {
|
|
40706
|
+
return '';
|
|
40707
|
+
}
|
|
40708
|
+
const funcao = argumento;
|
|
40709
|
+
// Extrai os nomes dos parâmetros
|
|
40710
|
+
const parametros = funcao.parametros.map(param => param.nome.lexema).join(', ');
|
|
40711
|
+
// Python lambdas suportam apenas uma expressão
|
|
40712
|
+
// Assumimos que a função tem um corpo simples com uma declaração de retorno
|
|
40713
|
+
let expressao = '';
|
|
40714
|
+
if (funcao.corpo.length > 0) {
|
|
40715
|
+
const primeiraDeclaracao = funcao.corpo[0];
|
|
40716
|
+
// Se for uma declaração de retorno, extraímos a expressão
|
|
40717
|
+
if (primeiraDeclaracao.constructor.name === 'Retorna') {
|
|
40718
|
+
const retorna = primeiraDeclaracao;
|
|
40719
|
+
if (retorna.valor) {
|
|
40720
|
+
expressao = this.dicionarioConstrutos[retorna.valor.constructor.name](retorna.valor);
|
|
40721
|
+
}
|
|
40722
|
+
}
|
|
40723
|
+
}
|
|
40724
|
+
// Retorna a lambda formatada
|
|
40725
|
+
return `lambda ${parametros}: ${expressao}`;
|
|
40411
40726
|
}
|
|
40412
40727
|
traduzirAcessoMetodoVetor(objeto, nomeMetodo, argumentos) {
|
|
40413
40728
|
const objetoResolvido = this.dicionarioConstrutos[objeto.constructor.name](objeto);
|
|
@@ -40938,7 +41253,6 @@ class TradutorReversoJavaScript {
|
|
|
40938
41253
|
return operador;
|
|
40939
41254
|
}
|
|
40940
41255
|
}
|
|
40941
|
-
//TODO: @Samuel
|
|
40942
41256
|
traduzirFuncoesNativas(metodo) {
|
|
40943
41257
|
switch (metodo.toLowerCase()) {
|
|
40944
41258
|
case 'concat':
|
|
@@ -41124,7 +41438,6 @@ class TradutorReversoJavaScript {
|
|
|
41124
41438
|
resultado += this.logicaComumBlocoEscopo(declaracao);
|
|
41125
41439
|
return resultado;
|
|
41126
41440
|
}
|
|
41127
|
-
//TODO: Refatorar esse método. @Samuel
|
|
41128
41441
|
traduzirDeclaracaoClasse(declaracao) {
|
|
41129
41442
|
let resultado = `classe ${declaracao.id.name} `;
|
|
41130
41443
|
if (declaracao.superClass) {
|
|
@@ -41366,7 +41679,7 @@ class TradutorReversoPython {
|
|
|
41366
41679
|
}
|
|
41367
41680
|
exports.TradutorReversoPython = TradutorReversoPython;
|
|
41368
41681
|
|
|
41369
|
-
},{"./python/python3-lexer":227,"./python/python3-parser":228,"antlr4ts":
|
|
41682
|
+
},{"./python/python3-lexer":227,"./python/python3-parser":228,"antlr4ts":356,"antlr4ts/tree/ParseTreeWalker":375}],239:[function(require,module,exports){
|
|
41370
41683
|
"use strict";
|
|
41371
41684
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
41372
41685
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -41961,6 +42274,694 @@ class TradutorReversoTenda {
|
|
|
41961
42274
|
exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
41962
42275
|
|
|
41963
42276
|
},{"../construtos":62,"../tipos-de-simbolos/tenda":219}],240:[function(require,module,exports){
|
|
42277
|
+
"use strict";
|
|
42278
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
42279
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
42280
|
+
};
|
|
42281
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42282
|
+
exports.TradutorRuby = void 0;
|
|
42283
|
+
const construtos_1 = require("../construtos");
|
|
42284
|
+
const declaracoes_1 = require("../declaracoes");
|
|
42285
|
+
const delegua_1 = __importDefault(require("../tipos-de-simbolos/delegua"));
|
|
42286
|
+
class TradutorRuby {
|
|
42287
|
+
constructor() {
|
|
42288
|
+
this.indentacao = 0;
|
|
42289
|
+
this.classesConhecidas = [];
|
|
42290
|
+
this.dicionarioConstrutos = {
|
|
42291
|
+
AcessoMetodo: this.traduzirConstrutoAcessoMetodo.bind(this),
|
|
42292
|
+
AcessoMetodoOuPropriedade: this.traduzirConstrutoAcessoMetodoOuPropriedade.bind(this),
|
|
42293
|
+
AcessoPropriedade: this.traduzirConstrutoAcessoPropriedade.bind(this),
|
|
42294
|
+
AcessoIndiceVariavel: this.traduzirConstrutoAcessoIndiceVariavel.bind(this),
|
|
42295
|
+
Agrupamento: this.traduzirConstrutoAgrupamento.bind(this),
|
|
42296
|
+
ArgumentoReferenciaFuncao: this.traduzirConstrutoArgumentoReferenciaFuncao.bind(this),
|
|
42297
|
+
AtribuicaoPorIndice: this.traduzirConstrutoAtribuicaoPorIndice.bind(this),
|
|
42298
|
+
Atribuir: this.traduzirConstrutoAtribuir.bind(this),
|
|
42299
|
+
Binario: this.traduzirConstrutoBinario.bind(this),
|
|
42300
|
+
Chamada: this.traduzirConstrutoChamada.bind(this),
|
|
42301
|
+
ComentarioComoConstruto: this.traduzirConstrutoComentario.bind(this),
|
|
42302
|
+
DefinirValor: this.traduzirConstrutoDefinirValor.bind(this),
|
|
42303
|
+
Dicionario: this.traduzirConstrutoDicionario.bind(this),
|
|
42304
|
+
FuncaoConstruto: this.traduzirFuncaoAnonimaParaLambda.bind(this),
|
|
42305
|
+
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
42306
|
+
Logico: this.traduzirConstrutoLogico.bind(this),
|
|
42307
|
+
ReferenciaFuncao: this.traduzirConstrutoReferenciaFuncao.bind(this),
|
|
42308
|
+
Separador: this.traduzirConstrutoSeparador.bind(this),
|
|
42309
|
+
SeTernario: this.traduzirConstrutoSeTernario.bind(this),
|
|
42310
|
+
Unario: this.traduzirConstrutoUnario.bind(this),
|
|
42311
|
+
Variavel: this.traduzirConstrutoVariavel.bind(this),
|
|
42312
|
+
Vetor: this.traduzirConstrutoVetor.bind(this),
|
|
42313
|
+
};
|
|
42314
|
+
this.dicionarioDeclaracoes = {
|
|
42315
|
+
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
42316
|
+
Classe: this.traduzirDeclaracaoClasse.bind(this),
|
|
42317
|
+
Comentario: this.traduzirConstrutoComentario.bind(this),
|
|
42318
|
+
Const: this.traduzirDeclaracaoConst.bind(this),
|
|
42319
|
+
Continua: () => 'next',
|
|
42320
|
+
Enquanto: this.traduzirDeclaracaoEnquanto.bind(this),
|
|
42321
|
+
Escreva: this.traduzirDeclaracaoEscreva.bind(this),
|
|
42322
|
+
Expressao: this.traduzirDeclaracaoExpressao.bind(this),
|
|
42323
|
+
FuncaoDeclaracao: this.traduzirDeclaracaoFuncao.bind(this),
|
|
42324
|
+
Leia: this.traduzirDeclaracaoLeia.bind(this),
|
|
42325
|
+
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
42326
|
+
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
42327
|
+
Retorna: this.traduzirDeclaracaoRetorna.bind(this),
|
|
42328
|
+
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
42329
|
+
Sustar: () => 'break',
|
|
42330
|
+
Tente: this.traduzirDeclaracaoTente.bind(this),
|
|
42331
|
+
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
42332
|
+
};
|
|
42333
|
+
}
|
|
42334
|
+
traduzirSimboloOperador(operador) {
|
|
42335
|
+
switch (operador.tipo) {
|
|
42336
|
+
case delegua_1.default.ADICAO:
|
|
42337
|
+
return '+';
|
|
42338
|
+
case delegua_1.default.BIT_AND:
|
|
42339
|
+
return '&';
|
|
42340
|
+
case delegua_1.default.BIT_OR:
|
|
42341
|
+
return '|';
|
|
42342
|
+
case delegua_1.default.BIT_XOR:
|
|
42343
|
+
return '^';
|
|
42344
|
+
case delegua_1.default.BIT_NOT:
|
|
42345
|
+
return '~';
|
|
42346
|
+
case delegua_1.default.DIFERENTE:
|
|
42347
|
+
return '!=';
|
|
42348
|
+
case delegua_1.default.DIVISAO:
|
|
42349
|
+
return '/';
|
|
42350
|
+
case delegua_1.default.E:
|
|
42351
|
+
return '&&';
|
|
42352
|
+
case delegua_1.default.EXPONENCIACAO:
|
|
42353
|
+
return '**';
|
|
42354
|
+
case delegua_1.default.IGUAL:
|
|
42355
|
+
return '=';
|
|
42356
|
+
case delegua_1.default.IGUAL_IGUAL:
|
|
42357
|
+
return '==';
|
|
42358
|
+
case delegua_1.default.MAIOR:
|
|
42359
|
+
return '>';
|
|
42360
|
+
case delegua_1.default.MAIOR_IGUAL:
|
|
42361
|
+
return '>=';
|
|
42362
|
+
case delegua_1.default.MENOR:
|
|
42363
|
+
return '<';
|
|
42364
|
+
case delegua_1.default.MENOR_IGUAL:
|
|
42365
|
+
return '<=';
|
|
42366
|
+
case delegua_1.default.MODULO:
|
|
42367
|
+
return '%';
|
|
42368
|
+
case delegua_1.default.MULTIPLICACAO:
|
|
42369
|
+
return '*';
|
|
42370
|
+
case delegua_1.default.OU:
|
|
42371
|
+
return '||';
|
|
42372
|
+
case delegua_1.default.SUBTRACAO:
|
|
42373
|
+
return '-';
|
|
42374
|
+
}
|
|
42375
|
+
}
|
|
42376
|
+
traduzirFuncaoOuMetodo(nomeMetodo, objetoResolvido, argumentos) {
|
|
42377
|
+
const argumentosResolvidos = [];
|
|
42378
|
+
for (const argumento of argumentos) {
|
|
42379
|
+
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42380
|
+
argumentosResolvidos.push(argumentoResolvido);
|
|
42381
|
+
}
|
|
42382
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
42383
|
+
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
42384
|
+
switch (nomeMetodo) {
|
|
42385
|
+
case 'adicionar':
|
|
42386
|
+
case 'empilhar':
|
|
42387
|
+
return `${objetoResolvido}.push(${textoArgumentos})`;
|
|
42388
|
+
case 'fatiar':
|
|
42389
|
+
return `${objetoResolvido}[${argumentos[0]}..${argumentos[1]}]`;
|
|
42390
|
+
case 'inclui':
|
|
42391
|
+
return `${objetoResolvido}.include?(${argumentosResolvidos[0]})`;
|
|
42392
|
+
case 'inverter':
|
|
42393
|
+
return `${objetoResolvido}.reverse`;
|
|
42394
|
+
case 'juntar':
|
|
42395
|
+
return `${objetoResolvido}.join(${argumentosResolvidos[0]})`;
|
|
42396
|
+
case 'maiusculo':
|
|
42397
|
+
return `${objetoResolvido}.upcase`;
|
|
42398
|
+
case 'mapear':
|
|
42399
|
+
return `${objetoResolvido}.map(&${this.traduzirFuncaoAnonimaParaLambda(argumentos[0])})`;
|
|
42400
|
+
case 'minusculo':
|
|
42401
|
+
return `${objetoResolvido}.downcase`;
|
|
42402
|
+
case 'ordenar':
|
|
42403
|
+
return `${objetoResolvido}.sort!`;
|
|
42404
|
+
case 'remover':
|
|
42405
|
+
return `${objetoResolvido}.delete_at(${argumentosResolvidos[0]})`;
|
|
42406
|
+
case 'removerPrimeiro':
|
|
42407
|
+
return `${objetoResolvido}.shift`;
|
|
42408
|
+
case 'removerUltimo':
|
|
42409
|
+
return `${objetoResolvido}.pop`;
|
|
42410
|
+
case 'somar':
|
|
42411
|
+
return `${objetoResolvido}.sum`;
|
|
42412
|
+
case 'tamanho':
|
|
42413
|
+
return `${objetoResolvido}.length`;
|
|
42414
|
+
}
|
|
42415
|
+
return `${objetoResolvido}.${nomeMetodo}(${textoArgumentos})`;
|
|
42416
|
+
}
|
|
42417
|
+
logicaComumBlocoEscopo(declaracoes) {
|
|
42418
|
+
let resultado = '';
|
|
42419
|
+
this.indentacao += 4;
|
|
42420
|
+
if (typeof declaracoes[Symbol.iterator] === 'function') {
|
|
42421
|
+
for (const declaracaoOuConstruto of declaracoes) {
|
|
42422
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42423
|
+
const nomeConstrutor = declaracaoOuConstruto.constructor.name;
|
|
42424
|
+
if (this.dicionarioConstrutos.hasOwnProperty(nomeConstrutor)) {
|
|
42425
|
+
resultado += this.dicionarioConstrutos[nomeConstrutor](declaracaoOuConstruto);
|
|
42426
|
+
}
|
|
42427
|
+
else {
|
|
42428
|
+
resultado += this.dicionarioDeclaracoes[nomeConstrutor](declaracaoOuConstruto);
|
|
42429
|
+
}
|
|
42430
|
+
resultado += '\n';
|
|
42431
|
+
}
|
|
42432
|
+
}
|
|
42433
|
+
this.indentacao -= 4;
|
|
42434
|
+
return resultado;
|
|
42435
|
+
}
|
|
42436
|
+
traduzirConstrutoAcessoIndiceVariavel(acessoIndiceVariavel) {
|
|
42437
|
+
const entidade = this.dicionarioConstrutos[acessoIndiceVariavel.entidadeChamada.constructor.name](acessoIndiceVariavel.entidadeChamada);
|
|
42438
|
+
const indice = this.dicionarioConstrutos[acessoIndiceVariavel.indice.constructor.name](acessoIndiceVariavel.indice);
|
|
42439
|
+
return `${entidade}[${indice}]`;
|
|
42440
|
+
}
|
|
42441
|
+
/**
|
|
42442
|
+
* Traduz uma função anônima de Delégua para um lambda do Ruby.
|
|
42443
|
+
* Em Delégua: funcao(x) { retorna x * 2 }
|
|
42444
|
+
* Em Ruby: lambda { |x| x * 2 }
|
|
42445
|
+
*
|
|
42446
|
+
* @param argumento O construto da função anônima
|
|
42447
|
+
* @returns String com o lambda do Ruby
|
|
42448
|
+
*/
|
|
42449
|
+
traduzirFuncaoAnonimaParaLambda(argumento) {
|
|
42450
|
+
if (!(argumento instanceof construtos_1.FuncaoConstruto)) {
|
|
42451
|
+
return '';
|
|
42452
|
+
}
|
|
42453
|
+
const funcao = argumento;
|
|
42454
|
+
// Extrai os nomes dos parâmetros
|
|
42455
|
+
const parametros = funcao.parametros.map(param => param.nome.lexema).join(', ');
|
|
42456
|
+
// Assumimos que a função tem um corpo simples com uma declaração de retorno
|
|
42457
|
+
let expressao = '';
|
|
42458
|
+
if (funcao.corpo.length > 0) {
|
|
42459
|
+
const primeiraDeclaracao = funcao.corpo[0];
|
|
42460
|
+
// Se for uma declaração de retorno, extraímos a expressão
|
|
42461
|
+
if (primeiraDeclaracao.constructor.name === 'Retorna') {
|
|
42462
|
+
const retorna = primeiraDeclaracao;
|
|
42463
|
+
if (retorna.valor) {
|
|
42464
|
+
expressao = this.dicionarioConstrutos[retorna.valor.constructor.name](retorna.valor);
|
|
42465
|
+
}
|
|
42466
|
+
}
|
|
42467
|
+
}
|
|
42468
|
+
// Retorna o lambda formatado
|
|
42469
|
+
const parametrosFormatados = parametros ? `|${parametros}| ` : '';
|
|
42470
|
+
return `lambda { ${parametrosFormatados}${expressao} }`;
|
|
42471
|
+
}
|
|
42472
|
+
traduzirAcessoMetodoVetor(objeto, nomeMetodo, argumentos) {
|
|
42473
|
+
const objetoResolvido = this.dicionarioConstrutos[objeto.constructor.name](objeto);
|
|
42474
|
+
const argumentosResolvidos = [];
|
|
42475
|
+
for (const argumento of argumentos) {
|
|
42476
|
+
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42477
|
+
argumentosResolvidos.push(argumentoResolvido);
|
|
42478
|
+
}
|
|
42479
|
+
switch (nomeMetodo) {
|
|
42480
|
+
case 'adicionar':
|
|
42481
|
+
case 'empilhar':
|
|
42482
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
42483
|
+
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
42484
|
+
return `${objetoResolvido}.push(${textoArgumentos})`;
|
|
42485
|
+
case 'fatiar':
|
|
42486
|
+
return `${objetoResolvido}[${argumentos[0]}..${argumentos[1]}]`;
|
|
42487
|
+
case 'inclui':
|
|
42488
|
+
return `${objetoResolvido}.include?(${argumentos[0]})`;
|
|
42489
|
+
case 'inverter':
|
|
42490
|
+
return `${objetoResolvido}.reverse`;
|
|
42491
|
+
case 'juntar':
|
|
42492
|
+
return `${objetoResolvido}.join(${argumentos[0]})`;
|
|
42493
|
+
case 'mapear':
|
|
42494
|
+
return `${objetoResolvido}.map(&${this.traduzirFuncaoAnonimaParaLambda(argumentos[0])})`;
|
|
42495
|
+
case 'ordenar':
|
|
42496
|
+
return `${objetoResolvido}.sort!`;
|
|
42497
|
+
case 'remover':
|
|
42498
|
+
return `${objetoResolvido}.delete_at(${argumentos[0]})`;
|
|
42499
|
+
case 'removerPrimeiro':
|
|
42500
|
+
return `${objetoResolvido}.shift`;
|
|
42501
|
+
case 'removerUltimo':
|
|
42502
|
+
return `${objetoResolvido}.pop`;
|
|
42503
|
+
case 'somar':
|
|
42504
|
+
return `${objetoResolvido}.sum`;
|
|
42505
|
+
case 'tamanho':
|
|
42506
|
+
return `${objetoResolvido}.length`;
|
|
42507
|
+
}
|
|
42508
|
+
}
|
|
42509
|
+
traduzirConstrutoAcessoMetodo(acessoMetodo, argumentos) {
|
|
42510
|
+
switch (acessoMetodo.objeto.constructor.name) {
|
|
42511
|
+
case 'Isto':
|
|
42512
|
+
return `self.${acessoMetodo.nomeMetodo}`;
|
|
42513
|
+
case 'Variavel':
|
|
42514
|
+
let objetoVariavel = acessoMetodo.objeto;
|
|
42515
|
+
return this.traduzirFuncaoOuMetodo(acessoMetodo.nomeMetodo, objetoVariavel.simbolo.lexema, argumentos);
|
|
42516
|
+
case 'Vetor':
|
|
42517
|
+
return this.traduzirAcessoMetodoVetor(acessoMetodo.objeto, acessoMetodo.nomeMetodo, argumentos);
|
|
42518
|
+
default:
|
|
42519
|
+
const objetoResolvido = this.dicionarioConstrutos[acessoMetodo.objeto.constructor.name](acessoMetodo.objeto);
|
|
42520
|
+
return `${objetoResolvido}.${acessoMetodo.nomeMetodo}`;
|
|
42521
|
+
}
|
|
42522
|
+
}
|
|
42523
|
+
traduzirConstrutoAcessoMetodoOuPropriedade(acessoMetodo, argumentos) {
|
|
42524
|
+
if (acessoMetodo.objeto instanceof construtos_1.Variavel) {
|
|
42525
|
+
let objetoVariavel = acessoMetodo.objeto;
|
|
42526
|
+
return this.traduzirFuncaoOuMetodo(acessoMetodo.simbolo.lexema, objetoVariavel.simbolo.lexema, argumentos);
|
|
42527
|
+
}
|
|
42528
|
+
return `@${acessoMetodo.simbolo.lexema}`;
|
|
42529
|
+
}
|
|
42530
|
+
traduzirConstrutoAcessoPropriedade(acessoPropriedade, argumentos) {
|
|
42531
|
+
if (acessoPropriedade.objeto instanceof construtos_1.Variavel) {
|
|
42532
|
+
let objetoVariavel = acessoPropriedade.objeto;
|
|
42533
|
+
return this.traduzirFuncaoOuMetodo(objetoVariavel.simbolo.lexema, acessoPropriedade.nomePropriedade, argumentos);
|
|
42534
|
+
}
|
|
42535
|
+
return `@${acessoPropriedade.nomePropriedade}`;
|
|
42536
|
+
}
|
|
42537
|
+
traduzirConstrutoAgrupamento(agrupamento) {
|
|
42538
|
+
return this.dicionarioConstrutos[agrupamento.constructor.name](agrupamento.expressao || agrupamento);
|
|
42539
|
+
}
|
|
42540
|
+
traduzirConstrutoArgumentoReferenciaFuncao(argumentoReferenciaFuncao, argumentos) {
|
|
42541
|
+
const argumentosResolvidos = [];
|
|
42542
|
+
const argumentosValidados = argumentos || [];
|
|
42543
|
+
for (const argumento of argumentosValidados) {
|
|
42544
|
+
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42545
|
+
argumentosResolvidos.push(argumentoResolvido);
|
|
42546
|
+
}
|
|
42547
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
42548
|
+
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
42549
|
+
return `${argumentoReferenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
42550
|
+
}
|
|
42551
|
+
traduzirConstrutoAtribuicaoPorIndice(atribuicaoPorIndice) {
|
|
42552
|
+
const objeto = this.dicionarioConstrutos[atribuicaoPorIndice.objeto.constructor.name](atribuicaoPorIndice.objeto);
|
|
42553
|
+
const indice = this.dicionarioConstrutos[atribuicaoPorIndice.indice.constructor.name](atribuicaoPorIndice.indice);
|
|
42554
|
+
const valor = this.dicionarioConstrutos[atribuicaoPorIndice.valor.constructor.name](atribuicaoPorIndice.valor);
|
|
42555
|
+
return `${objeto}[${indice}] = ${valor}`;
|
|
42556
|
+
}
|
|
42557
|
+
traduzirConstrutoAtribuir(atribuir) {
|
|
42558
|
+
var _a;
|
|
42559
|
+
let resultado = this.dicionarioConstrutos[atribuir.alvo.constructor.name](atribuir.alvo);
|
|
42560
|
+
const operador = ((_a = atribuir.simboloOperador) === null || _a === void 0 ? void 0 : _a.lexema) || '=';
|
|
42561
|
+
// Em Delégua, atribuições com operações embutidas devolvem um construto `Binario` no valor
|
|
42562
|
+
// por várias razões, sendo a mais importante delas a lógica de interpretação.
|
|
42563
|
+
let valorResolvido = '';
|
|
42564
|
+
if (atribuir.simboloOperador && atribuir.valor.constructor === construtos_1.Binario) {
|
|
42565
|
+
valorResolvido = this.dicionarioConstrutos[atribuir.valor.direita.constructor.name](atribuir.valor.direita);
|
|
42566
|
+
}
|
|
42567
|
+
else {
|
|
42568
|
+
valorResolvido = this.dicionarioConstrutos[atribuir.valor.constructor.name](atribuir.valor);
|
|
42569
|
+
}
|
|
42570
|
+
resultado += ` ${operador} ` + valorResolvido;
|
|
42571
|
+
return resultado;
|
|
42572
|
+
}
|
|
42573
|
+
traduzirConstrutoBinario(binario) {
|
|
42574
|
+
let resultado = '';
|
|
42575
|
+
const valorEsquerdo = this.dicionarioConstrutos[binario.esquerda.constructor.name](binario.esquerda);
|
|
42576
|
+
if (binario.esquerda.constructor.name === 'Agrupamento')
|
|
42577
|
+
resultado += '(' + valorEsquerdo + ')';
|
|
42578
|
+
else
|
|
42579
|
+
resultado += valorEsquerdo;
|
|
42580
|
+
let operador = this.traduzirSimboloOperador(binario.operador);
|
|
42581
|
+
resultado += ` ${operador} `;
|
|
42582
|
+
const valorDireito = this.dicionarioConstrutos[binario.direita.constructor.name](binario.direita);
|
|
42583
|
+
if (binario.direita.constructor.name === 'Agrupamento')
|
|
42584
|
+
resultado += '(' + valorDireito + ')';
|
|
42585
|
+
else
|
|
42586
|
+
resultado += valorDireito;
|
|
42587
|
+
return resultado;
|
|
42588
|
+
}
|
|
42589
|
+
traduzirConstrutoChamada(chamada) {
|
|
42590
|
+
return `${this.dicionarioConstrutos[chamada.entidadeChamada.constructor.name](chamada.entidadeChamada, chamada.argumentos)}`;
|
|
42591
|
+
}
|
|
42592
|
+
traduzirConstrutoComentario(comentario) {
|
|
42593
|
+
let resultado = '';
|
|
42594
|
+
if (comentario.multilinha) {
|
|
42595
|
+
resultado += `=begin\n`;
|
|
42596
|
+
for (let linhaComentario of comentario.conteudo) {
|
|
42597
|
+
resultado += `${linhaComentario}\n`;
|
|
42598
|
+
}
|
|
42599
|
+
resultado += `=end`;
|
|
42600
|
+
}
|
|
42601
|
+
else {
|
|
42602
|
+
resultado += `# ${comentario.conteudo}`;
|
|
42603
|
+
}
|
|
42604
|
+
return resultado;
|
|
42605
|
+
}
|
|
42606
|
+
traduzirConstrutoDefinirValor(definirValor) {
|
|
42607
|
+
let resultado = '';
|
|
42608
|
+
if (definirValor.objeto instanceof construtos_1.Isto) {
|
|
42609
|
+
resultado = '@' + definirValor.nome.lexema + ' = ';
|
|
42610
|
+
}
|
|
42611
|
+
resultado += definirValor.valor.simbolo.lexema;
|
|
42612
|
+
return resultado;
|
|
42613
|
+
}
|
|
42614
|
+
traduzirConstrutoDicionario(dicionario) {
|
|
42615
|
+
let resultado = `{${dicionario.chaves.length > 0 ? '\n' : ''}`;
|
|
42616
|
+
for (let indice = 0; indice < dicionario.chaves.length; indice++) {
|
|
42617
|
+
resultado += ' '.repeat(this.indentacao + 4);
|
|
42618
|
+
if (dicionario.esSpread && dicionario.esSpread[indice]) {
|
|
42619
|
+
resultado += '**';
|
|
42620
|
+
const valor = dicionario.valores[indice];
|
|
42621
|
+
resultado += `${this.dicionarioConstrutos[valor.constructor.name](valor)},\n`;
|
|
42622
|
+
}
|
|
42623
|
+
else {
|
|
42624
|
+
const chave = dicionario.chaves[indice];
|
|
42625
|
+
resultado += `${this.dicionarioConstrutos[chave.constructor.name](chave)} => `;
|
|
42626
|
+
const valor = dicionario.valores[indice];
|
|
42627
|
+
resultado += `${this.dicionarioConstrutos[valor.constructor.name](valor)},\n`;
|
|
42628
|
+
}
|
|
42629
|
+
}
|
|
42630
|
+
resultado += '}';
|
|
42631
|
+
return resultado;
|
|
42632
|
+
}
|
|
42633
|
+
traduzirConstrutoLiteral(literal) {
|
|
42634
|
+
if (typeof literal.valor === 'string')
|
|
42635
|
+
return `'${literal.valor}'`;
|
|
42636
|
+
if (typeof literal.valor === 'boolean') {
|
|
42637
|
+
return literal.valor ? 'true' : 'false';
|
|
42638
|
+
}
|
|
42639
|
+
if (typeof literal.valor === 'number') {
|
|
42640
|
+
return String(literal.valor);
|
|
42641
|
+
}
|
|
42642
|
+
if (!literal.valor)
|
|
42643
|
+
return 'nil';
|
|
42644
|
+
return String(literal.valor);
|
|
42645
|
+
}
|
|
42646
|
+
traduzirConstrutoLogico(logico) {
|
|
42647
|
+
const direita = this.dicionarioConstrutos[logico.direita.constructor.name](logico.direita);
|
|
42648
|
+
const operador = this.traduzirSimboloOperador(logico.operador);
|
|
42649
|
+
const esquerda = this.dicionarioConstrutos[logico.esquerda.constructor.name](logico.esquerda);
|
|
42650
|
+
return `${esquerda} ${operador} ${direita}`;
|
|
42651
|
+
}
|
|
42652
|
+
traduzirConstrutoReferenciaFuncao(referenciaFuncao, argumentos) {
|
|
42653
|
+
const argumentosResolvidos = [];
|
|
42654
|
+
const argumentosValidados = argumentos || [];
|
|
42655
|
+
for (const argumento of argumentosValidados) {
|
|
42656
|
+
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42657
|
+
argumentosResolvidos.push(argumentoResolvido);
|
|
42658
|
+
}
|
|
42659
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
42660
|
+
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
42661
|
+
return `${referenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
42662
|
+
}
|
|
42663
|
+
traduzirConstrutoSeparador(separador) {
|
|
42664
|
+
return `${separador.conteudo} `;
|
|
42665
|
+
}
|
|
42666
|
+
traduzirConstrutoSeTernario(seTernario) {
|
|
42667
|
+
const condicao = this.dicionarioConstrutos[seTernario.condicao.constructor.name](seTernario.condicao);
|
|
42668
|
+
const expressaoSe = this.dicionarioConstrutos[seTernario.expressaoSe.constructor.name](seTernario.expressaoSe);
|
|
42669
|
+
const expressaoSenao = this.dicionarioConstrutos[seTernario.expressaoSenao.constructor.name](seTernario.expressaoSenao);
|
|
42670
|
+
return `${condicao} ? ${expressaoSe} : ${expressaoSenao}`;
|
|
42671
|
+
}
|
|
42672
|
+
traduzirConstrutoUnario(unario) {
|
|
42673
|
+
const operador = this.traduzirSimboloOperador(unario.operador);
|
|
42674
|
+
const operando = this.dicionarioConstrutos[unario.operando.constructor.name](unario.operando);
|
|
42675
|
+
switch (unario.incidenciaOperador) {
|
|
42676
|
+
case 'ANTES':
|
|
42677
|
+
return `${operador}${operando}`;
|
|
42678
|
+
case 'DEPOIS':
|
|
42679
|
+
return `${operando}${operador}`;
|
|
42680
|
+
}
|
|
42681
|
+
}
|
|
42682
|
+
traduzirConstrutoVariavel(variavel, argumentos) {
|
|
42683
|
+
const argumentosResolvidos = [];
|
|
42684
|
+
const argumentosValidados = argumentos || [];
|
|
42685
|
+
for (const argumento of argumentosValidados) {
|
|
42686
|
+
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42687
|
+
argumentosResolvidos.push(argumentoResolvido);
|
|
42688
|
+
}
|
|
42689
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
42690
|
+
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
42691
|
+
switch (variavel.simbolo.lexema) {
|
|
42692
|
+
case 'texto':
|
|
42693
|
+
return `(${textoArgumentos}).to_s`;
|
|
42694
|
+
default:
|
|
42695
|
+
if (argumentosValidados.length === 0 &&
|
|
42696
|
+
!this.classesConhecidas.includes(variavel.simbolo.lexema)) {
|
|
42697
|
+
return `${variavel.simbolo.lexema}`;
|
|
42698
|
+
}
|
|
42699
|
+
return `${variavel.simbolo.lexema}(${textoArgumentos})`;
|
|
42700
|
+
}
|
|
42701
|
+
}
|
|
42702
|
+
traduzirConstrutoVetor(vetor) {
|
|
42703
|
+
if (!vetor.valores.length) {
|
|
42704
|
+
return '[]';
|
|
42705
|
+
}
|
|
42706
|
+
let resultado = '[';
|
|
42707
|
+
for (let valor of vetor.valores) {
|
|
42708
|
+
resultado += `${this.dicionarioConstrutos[valor.constructor.name](valor)}`;
|
|
42709
|
+
}
|
|
42710
|
+
resultado += ']';
|
|
42711
|
+
return resultado;
|
|
42712
|
+
}
|
|
42713
|
+
logicaTraducaoMetodoClasse(metodoClasse) {
|
|
42714
|
+
this.indentacao += 4;
|
|
42715
|
+
let resultado = ' '.repeat(this.indentacao);
|
|
42716
|
+
let temContrutor = metodoClasse.simbolo.lexema === 'construtor';
|
|
42717
|
+
resultado += temContrutor ? 'def initialize(' : 'def ' + metodoClasse.simbolo.lexema + '(';
|
|
42718
|
+
for (let parametro of metodoClasse.funcao.parametros) {
|
|
42719
|
+
resultado += parametro.nome.lexema + ', ';
|
|
42720
|
+
}
|
|
42721
|
+
if (metodoClasse.funcao.parametros.length > 0) {
|
|
42722
|
+
resultado = resultado.slice(0, -2);
|
|
42723
|
+
}
|
|
42724
|
+
resultado += ')\n';
|
|
42725
|
+
if (metodoClasse.funcao.corpo.length === 0) {
|
|
42726
|
+
this.indentacao -= 4;
|
|
42727
|
+
resultado += ' '.repeat(this.indentacao + 4) + 'end\n';
|
|
42728
|
+
return resultado;
|
|
42729
|
+
}
|
|
42730
|
+
resultado += this.logicaComumBlocoEscopo(metodoClasse.funcao.corpo);
|
|
42731
|
+
resultado += ' '.repeat(this.indentacao + 4) + 'end\n';
|
|
42732
|
+
this.indentacao -= 4;
|
|
42733
|
+
return resultado;
|
|
42734
|
+
}
|
|
42735
|
+
traduzirDeclaracaoBloco(declaracaoBloco) {
|
|
42736
|
+
return this.logicaComumBlocoEscopo(declaracaoBloco.declaracoes);
|
|
42737
|
+
}
|
|
42738
|
+
traduzirDeclaracaoClasse(declaracaoClasse) {
|
|
42739
|
+
let resultado = 'class ';
|
|
42740
|
+
if (declaracaoClasse.superClasse)
|
|
42741
|
+
resultado += `${declaracaoClasse.simbolo.lexema} < ${declaracaoClasse.superClasse.simbolo.lexema}\n`;
|
|
42742
|
+
else
|
|
42743
|
+
resultado += declaracaoClasse.simbolo.lexema + '\n';
|
|
42744
|
+
if (declaracaoClasse.metodos.length === 0) {
|
|
42745
|
+
this.classesConhecidas.push(declaracaoClasse.simbolo.lexema);
|
|
42746
|
+
return (resultado += 'end\n');
|
|
42747
|
+
}
|
|
42748
|
+
for (let metodo of declaracaoClasse.metodos) {
|
|
42749
|
+
resultado += this.logicaTraducaoMetodoClasse(metodo);
|
|
42750
|
+
}
|
|
42751
|
+
resultado += 'end\n';
|
|
42752
|
+
this.classesConhecidas.push(declaracaoClasse.simbolo.lexema);
|
|
42753
|
+
return resultado;
|
|
42754
|
+
}
|
|
42755
|
+
traduzirDeclaracaoConst(declaracaoConst) {
|
|
42756
|
+
let resultado = declaracaoConst.simbolo.lexema.toUpperCase() + ' = ';
|
|
42757
|
+
const inicializador = declaracaoConst.inicializador;
|
|
42758
|
+
if (inicializador) {
|
|
42759
|
+
if (this.dicionarioConstrutos[inicializador.constructor.name]) {
|
|
42760
|
+
resultado += this.dicionarioConstrutos[declaracaoConst.inicializador.constructor.name](declaracaoConst.inicializador);
|
|
42761
|
+
}
|
|
42762
|
+
else {
|
|
42763
|
+
resultado += this.dicionarioDeclaracoes[declaracaoConst.inicializador.constructor.name](declaracaoConst.inicializador);
|
|
42764
|
+
}
|
|
42765
|
+
}
|
|
42766
|
+
else {
|
|
42767
|
+
resultado += 'nil';
|
|
42768
|
+
}
|
|
42769
|
+
return resultado;
|
|
42770
|
+
}
|
|
42771
|
+
traduzirDeclaracaoEnquanto(declaracaoEnquanto) {
|
|
42772
|
+
let resultado = ' '.repeat(this.indentacao) + 'while ';
|
|
42773
|
+
const condicao = this.dicionarioConstrutos[declaracaoEnquanto.condicao.constructor.name](declaracaoEnquanto.condicao);
|
|
42774
|
+
resultado += condicao + '\n';
|
|
42775
|
+
resultado += this.dicionarioDeclaracoes[declaracaoEnquanto.corpo.constructor.name](declaracaoEnquanto.corpo);
|
|
42776
|
+
resultado += ' '.repeat(this.indentacao) + 'end\n';
|
|
42777
|
+
return resultado;
|
|
42778
|
+
}
|
|
42779
|
+
traduzirDeclaracaoEscreva(declaracaoEscreva) {
|
|
42780
|
+
let resultado = 'puts(';
|
|
42781
|
+
for (const argumento of declaracaoEscreva.argumentos) {
|
|
42782
|
+
const valor = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42783
|
+
resultado += valor + ', ';
|
|
42784
|
+
}
|
|
42785
|
+
resultado = resultado.slice(0, -2);
|
|
42786
|
+
resultado += ')';
|
|
42787
|
+
return resultado;
|
|
42788
|
+
}
|
|
42789
|
+
traduzirDeclaracaoExpressao(declaracaoExpressao) {
|
|
42790
|
+
return this.dicionarioConstrutos[declaracaoExpressao.expressao.constructor.name](declaracaoExpressao.expressao);
|
|
42791
|
+
}
|
|
42792
|
+
traduzirDeclaracaoFuncao(declaracaoFuncao) {
|
|
42793
|
+
let resultado = 'def ';
|
|
42794
|
+
resultado += declaracaoFuncao.simbolo.lexema + '(';
|
|
42795
|
+
for (const parametro of declaracaoFuncao.funcao.parametros) {
|
|
42796
|
+
resultado += parametro.nome.lexema + ', ';
|
|
42797
|
+
}
|
|
42798
|
+
if (declaracaoFuncao.funcao.parametros.length > 0) {
|
|
42799
|
+
resultado = resultado.slice(0, -2);
|
|
42800
|
+
}
|
|
42801
|
+
resultado += ')\n';
|
|
42802
|
+
resultado += this.logicaComumBlocoEscopo(declaracaoFuncao.funcao.corpo);
|
|
42803
|
+
resultado += 'end\n';
|
|
42804
|
+
return resultado;
|
|
42805
|
+
}
|
|
42806
|
+
traduzirDeclaracaoLeia(declaracaoLeia) {
|
|
42807
|
+
let resultado = 'gets';
|
|
42808
|
+
if (declaracaoLeia.argumentos.length > 0) {
|
|
42809
|
+
resultado = 'print(';
|
|
42810
|
+
for (const argumento of declaracaoLeia.argumentos) {
|
|
42811
|
+
const valor = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
42812
|
+
resultado += valor + ', ';
|
|
42813
|
+
}
|
|
42814
|
+
resultado = resultado.slice(0, -2);
|
|
42815
|
+
resultado += '); gets.chomp';
|
|
42816
|
+
}
|
|
42817
|
+
else {
|
|
42818
|
+
resultado += '.chomp';
|
|
42819
|
+
}
|
|
42820
|
+
return resultado;
|
|
42821
|
+
}
|
|
42822
|
+
traduzirDeclaracaoPara(declaracaoPara) {
|
|
42823
|
+
let resultado = '';
|
|
42824
|
+
// Em uma declaração `Para` em Delégua, são obrigatórios a condição e o incremento.
|
|
42825
|
+
if (declaracaoPara.inicializador) {
|
|
42826
|
+
if (Array.isArray(declaracaoPara.inicializador)) {
|
|
42827
|
+
for (const declaracaoInicializador of declaracaoPara.inicializador) {
|
|
42828
|
+
resultado +=
|
|
42829
|
+
this.dicionarioDeclaracoes[declaracaoInicializador.constructor.name](declaracaoInicializador) + `\n`;
|
|
42830
|
+
}
|
|
42831
|
+
}
|
|
42832
|
+
else {
|
|
42833
|
+
resultado +=
|
|
42834
|
+
this.dicionarioDeclaracoes[declaracaoPara.inicializador.constructor.name](declaracaoPara.inicializador) + `\n`;
|
|
42835
|
+
}
|
|
42836
|
+
}
|
|
42837
|
+
const condicao = this.dicionarioConstrutos[declaracaoPara.condicao.constructor.name](declaracaoPara.condicao);
|
|
42838
|
+
resultado += ' '.repeat(this.indentacao) + `while ${condicao}\n`;
|
|
42839
|
+
// O incremento passa a ser a última instrução do bloco.
|
|
42840
|
+
declaracaoPara.corpo.declaracoes.push(new declaracoes_1.Expressao(declaracaoPara.incrementar));
|
|
42841
|
+
resultado += this.dicionarioDeclaracoes[declaracaoPara.corpo.constructor.name](declaracaoPara.corpo);
|
|
42842
|
+
resultado += ' '.repeat(this.indentacao) + 'end\n';
|
|
42843
|
+
return resultado;
|
|
42844
|
+
}
|
|
42845
|
+
traduzirDeclaracaoParaCada(declaracaoParaCada) {
|
|
42846
|
+
const variavelIteracao = this.dicionarioConstrutos[declaracaoParaCada.variavelIteracao.constructor.name](declaracaoParaCada.variavelIteracao);
|
|
42847
|
+
const vetorOuDicionario = this.dicionarioConstrutos[declaracaoParaCada.vetorOuDicionario.constructor.name](declaracaoParaCada.vetorOuDicionario);
|
|
42848
|
+
let resultado = `${vetorOuDicionario}.each do |${variavelIteracao}|\n`;
|
|
42849
|
+
resultado += this.dicionarioDeclaracoes[declaracaoParaCada.corpo.constructor.name](declaracaoParaCada.corpo);
|
|
42850
|
+
resultado += ' '.repeat(this.indentacao) + 'end\n';
|
|
42851
|
+
return resultado;
|
|
42852
|
+
}
|
|
42853
|
+
traduzirDeclaracaoRetorna(declaracaoRetorna) {
|
|
42854
|
+
let resultado = 'return ';
|
|
42855
|
+
const nomeConstrutor = declaracaoRetorna.valor.constructor.name;
|
|
42856
|
+
return (resultado += this.dicionarioConstrutos[nomeConstrutor](declaracaoRetorna === null || declaracaoRetorna === void 0 ? void 0 : declaracaoRetorna.valor));
|
|
42857
|
+
}
|
|
42858
|
+
traduzirDeclaracaoSe(declaracaoSe, iniciarComIf = true) {
|
|
42859
|
+
let resultado = '';
|
|
42860
|
+
if (iniciarComIf) {
|
|
42861
|
+
resultado += 'if ';
|
|
42862
|
+
}
|
|
42863
|
+
else {
|
|
42864
|
+
resultado += 'elsif ';
|
|
42865
|
+
}
|
|
42866
|
+
const condicao = this.dicionarioConstrutos[declaracaoSe.condicao.constructor.name](declaracaoSe.condicao);
|
|
42867
|
+
resultado += condicao;
|
|
42868
|
+
resultado += '\n';
|
|
42869
|
+
resultado += this.dicionarioDeclaracoes[declaracaoSe.caminhoEntao.constructor.name](declaracaoSe.caminhoEntao);
|
|
42870
|
+
if (declaracaoSe.caminhoSenao) {
|
|
42871
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42872
|
+
const senao = declaracaoSe.caminhoSenao;
|
|
42873
|
+
if (senao === null || senao === void 0 ? void 0 : senao.caminhoEntao) {
|
|
42874
|
+
resultado += 'elsif ';
|
|
42875
|
+
resultado += this.dicionarioConstrutos[senao.condicao.constructor.name](senao.condicao, false);
|
|
42876
|
+
resultado += '\n';
|
|
42877
|
+
resultado += this.dicionarioDeclaracoes[senao.caminhoEntao.constructor.name](senao.caminhoEntao);
|
|
42878
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42879
|
+
if (senao === null || senao === void 0 ? void 0 : senao.caminhoSenao) {
|
|
42880
|
+
if (senao.caminhoSenao instanceof declaracoes_1.Bloco) {
|
|
42881
|
+
resultado += 'else\n';
|
|
42882
|
+
resultado += this.dicionarioDeclaracoes[senao.caminhoSenao.constructor.name](senao.caminhoSenao, false);
|
|
42883
|
+
resultado += ' '.repeat(this.indentacao) + 'end\n';
|
|
42884
|
+
return resultado;
|
|
42885
|
+
}
|
|
42886
|
+
resultado += this.dicionarioDeclaracoes[senao.caminhoSenao.constructor.name](senao.caminhoSenao, false);
|
|
42887
|
+
return resultado;
|
|
42888
|
+
}
|
|
42889
|
+
}
|
|
42890
|
+
resultado += 'else\n';
|
|
42891
|
+
resultado += this.dicionarioDeclaracoes[declaracaoSe.caminhoSenao.constructor.name](declaracaoSe.caminhoSenao);
|
|
42892
|
+
}
|
|
42893
|
+
resultado += ' '.repeat(this.indentacao) + 'end\n';
|
|
42894
|
+
return resultado;
|
|
42895
|
+
}
|
|
42896
|
+
traduzirDeclaracaoTente(declaracaoTente) {
|
|
42897
|
+
let resultado = 'begin\n';
|
|
42898
|
+
this.indentacao += 4;
|
|
42899
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42900
|
+
for (let condicao of declaracaoTente.caminhoTente) {
|
|
42901
|
+
resultado += this.dicionarioDeclaracoes[condicao.constructor.name](condicao) + '\n';
|
|
42902
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42903
|
+
}
|
|
42904
|
+
if (declaracaoTente.caminhoPegue !== null) {
|
|
42905
|
+
resultado += '\nrescue\n';
|
|
42906
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42907
|
+
if (Array.isArray(declaracaoTente.caminhoPegue)) {
|
|
42908
|
+
for (let declaracao of declaracaoTente.caminhoPegue) {
|
|
42909
|
+
resultado +=
|
|
42910
|
+
this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao) + '\n';
|
|
42911
|
+
}
|
|
42912
|
+
}
|
|
42913
|
+
else {
|
|
42914
|
+
for (let corpo of declaracaoTente.caminhoPegue.corpo) {
|
|
42915
|
+
resultado += this.dicionarioDeclaracoes[corpo.constructor.name](corpo) + '\n';
|
|
42916
|
+
}
|
|
42917
|
+
}
|
|
42918
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42919
|
+
}
|
|
42920
|
+
if (declaracaoTente.caminhoFinalmente !== null) {
|
|
42921
|
+
resultado += '\nensure\n';
|
|
42922
|
+
resultado += ' '.repeat(this.indentacao);
|
|
42923
|
+
for (let finalmente of declaracaoTente.caminhoFinalmente) {
|
|
42924
|
+
resultado +=
|
|
42925
|
+
this.dicionarioDeclaracoes[finalmente.constructor.name](finalmente) + '\n';
|
|
42926
|
+
}
|
|
42927
|
+
}
|
|
42928
|
+
this.indentacao -= 4;
|
|
42929
|
+
resultado += 'end\n';
|
|
42930
|
+
return resultado;
|
|
42931
|
+
}
|
|
42932
|
+
traduzirDeclaracaoVar(declaracaoVar) {
|
|
42933
|
+
let resultado = declaracaoVar.simbolo.lexema + ' = ';
|
|
42934
|
+
const inicializador = declaracaoVar.inicializador;
|
|
42935
|
+
if (inicializador) {
|
|
42936
|
+
if (inicializador.constructor.name in this.dicionarioConstrutos) {
|
|
42937
|
+
resultado += this.dicionarioConstrutos[declaracaoVar.inicializador.constructor.name](declaracaoVar.inicializador);
|
|
42938
|
+
}
|
|
42939
|
+
else {
|
|
42940
|
+
resultado += this.dicionarioDeclaracoes[declaracaoVar.inicializador.constructor.name](declaracaoVar.inicializador);
|
|
42941
|
+
}
|
|
42942
|
+
}
|
|
42943
|
+
else {
|
|
42944
|
+
resultado += 'nil';
|
|
42945
|
+
}
|
|
42946
|
+
return resultado;
|
|
42947
|
+
}
|
|
42948
|
+
traduzir(declaracoes) {
|
|
42949
|
+
let resultado = '';
|
|
42950
|
+
this.classesConhecidas = [];
|
|
42951
|
+
try {
|
|
42952
|
+
for (const declaracao of declaracoes) {
|
|
42953
|
+
resultado += `${this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao)}`;
|
|
42954
|
+
}
|
|
42955
|
+
}
|
|
42956
|
+
catch (erro) {
|
|
42957
|
+
console.error(`Erro em tradução para Ruby: ${erro}`);
|
|
42958
|
+
}
|
|
42959
|
+
return resultado.replace(/\n{2,}/g, '\n');
|
|
42960
|
+
}
|
|
42961
|
+
}
|
|
42962
|
+
exports.TradutorRuby = TradutorRuby;
|
|
42963
|
+
|
|
42964
|
+
},{"../construtos":62,"../declaracoes":109,"../tipos-de-simbolos/delegua":212}],241:[function(require,module,exports){
|
|
41964
42965
|
"use strict";
|
|
41965
42966
|
/*!
|
|
41966
42967
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41968,7 +42969,7 @@ exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
|
41968
42969
|
*/
|
|
41969
42970
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41970
42971
|
|
|
41971
|
-
},{}],
|
|
42972
|
+
},{}],242:[function(require,module,exports){
|
|
41972
42973
|
"use strict";
|
|
41973
42974
|
/*!
|
|
41974
42975
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41976,7 +42977,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
41976
42977
|
*/
|
|
41977
42978
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
41978
42979
|
|
|
41979
|
-
},{}],
|
|
42980
|
+
},{}],243:[function(require,module,exports){
|
|
41980
42981
|
"use strict";
|
|
41981
42982
|
/*!
|
|
41982
42983
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42138,7 +43139,7 @@ __decorate([
|
|
|
42138
43139
|
], ANTLRInputStream.prototype, "toString", null);
|
|
42139
43140
|
exports.ANTLRInputStream = ANTLRInputStream;
|
|
42140
43141
|
|
|
42141
|
-
},{"./Decorators":
|
|
43142
|
+
},{"./Decorators":254,"./IntStream":260,"assert":397}],244:[function(require,module,exports){
|
|
42142
43143
|
"use strict";
|
|
42143
43144
|
/*!
|
|
42144
43145
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42221,7 +43222,7 @@ __decorate([
|
|
|
42221
43222
|
], BailErrorStrategy.prototype, "sync", null);
|
|
42222
43223
|
exports.BailErrorStrategy = BailErrorStrategy;
|
|
42223
43224
|
|
|
42224
|
-
},{"./Decorators":
|
|
43225
|
+
},{"./Decorators":254,"./DefaultErrorStrategy":255,"./InputMismatchException":259,"./misc/ParseCancellationException":371}],245:[function(require,module,exports){
|
|
42225
43226
|
"use strict";
|
|
42226
43227
|
/*!
|
|
42227
43228
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42711,7 +43712,7 @@ BufferedTokenStream = __decorate([
|
|
|
42711
43712
|
], BufferedTokenStream);
|
|
42712
43713
|
exports.BufferedTokenStream = BufferedTokenStream;
|
|
42713
43714
|
|
|
42714
|
-
},{"./CommonToken":
|
|
43715
|
+
},{"./CommonToken":250,"./Decorators":254,"./Lexer":262,"./Token":279,"./misc/Interval":366,"assert":397}],246:[function(require,module,exports){
|
|
42715
43716
|
"use strict";
|
|
42716
43717
|
/*!
|
|
42717
43718
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42719,7 +43720,7 @@ exports.BufferedTokenStream = BufferedTokenStream;
|
|
|
42719
43720
|
*/
|
|
42720
43721
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42721
43722
|
|
|
42722
|
-
},{}],
|
|
43723
|
+
},{}],247:[function(require,module,exports){
|
|
42723
43724
|
"use strict";
|
|
42724
43725
|
/*!
|
|
42725
43726
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42853,7 +43854,7 @@ var CharStreams;
|
|
|
42853
43854
|
// }
|
|
42854
43855
|
})(CharStreams = exports.CharStreams || (exports.CharStreams = {}));
|
|
42855
43856
|
|
|
42856
|
-
},{"./CodePointBuffer":
|
|
43857
|
+
},{"./CodePointBuffer":248,"./CodePointCharStream":249,"./IntStream":260}],248:[function(require,module,exports){
|
|
42857
43858
|
"use strict";
|
|
42858
43859
|
/*!
|
|
42859
43860
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43088,7 +44089,7 @@ exports.CodePointBuffer = CodePointBuffer;
|
|
|
43088
44089
|
CodePointBuffer.Builder = Builder;
|
|
43089
44090
|
})(CodePointBuffer = exports.CodePointBuffer || (exports.CodePointBuffer = {}));
|
|
43090
44091
|
|
|
43091
|
-
},{"./misc/Character":
|
|
44092
|
+
},{"./misc/Character":362,"assert":397}],249:[function(require,module,exports){
|
|
43092
44093
|
"use strict";
|
|
43093
44094
|
/*!
|
|
43094
44095
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43238,7 +44239,7 @@ __decorate([
|
|
|
43238
44239
|
], CodePointCharStream.prototype, "getText", null);
|
|
43239
44240
|
exports.CodePointCharStream = CodePointCharStream;
|
|
43240
44241
|
|
|
43241
|
-
},{"./Decorators":
|
|
44242
|
+
},{"./Decorators":254,"./IntStream":260,"./misc/Interval":366,"assert":397}],250:[function(require,module,exports){
|
|
43242
44243
|
"use strict";
|
|
43243
44244
|
/*!
|
|
43244
44245
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43468,7 +44469,7 @@ CommonToken = __decorate([
|
|
|
43468
44469
|
], CommonToken);
|
|
43469
44470
|
exports.CommonToken = CommonToken;
|
|
43470
44471
|
|
|
43471
|
-
},{"./Decorators":
|
|
44472
|
+
},{"./Decorators":254,"./Token":279,"./misc/Interval":366}],251:[function(require,module,exports){
|
|
43472
44473
|
"use strict";
|
|
43473
44474
|
/*!
|
|
43474
44475
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43532,7 +44533,7 @@ exports.CommonTokenFactory = CommonTokenFactory;
|
|
|
43532
44533
|
CommonTokenFactory.DEFAULT = new CommonTokenFactory();
|
|
43533
44534
|
})(CommonTokenFactory = exports.CommonTokenFactory || (exports.CommonTokenFactory = {}));
|
|
43534
44535
|
|
|
43535
|
-
},{"./CommonToken":
|
|
44536
|
+
},{"./CommonToken":250,"./Decorators":254,"./misc/Interval":366}],252:[function(require,module,exports){
|
|
43536
44537
|
"use strict";
|
|
43537
44538
|
/*!
|
|
43538
44539
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43659,7 +44660,7 @@ CommonTokenStream = __decorate([
|
|
|
43659
44660
|
], CommonTokenStream);
|
|
43660
44661
|
exports.CommonTokenStream = CommonTokenStream;
|
|
43661
44662
|
|
|
43662
|
-
},{"./BufferedTokenStream":
|
|
44663
|
+
},{"./BufferedTokenStream":245,"./Decorators":254,"./Token":279}],253:[function(require,module,exports){
|
|
43663
44664
|
"use strict";
|
|
43664
44665
|
/*!
|
|
43665
44666
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43693,7 +44694,7 @@ exports.ConsoleErrorListener = ConsoleErrorListener;
|
|
|
43693
44694
|
*/
|
|
43694
44695
|
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener();
|
|
43695
44696
|
|
|
43696
|
-
},{}],
|
|
44697
|
+
},{}],254:[function(require,module,exports){
|
|
43697
44698
|
"use strict";
|
|
43698
44699
|
/*!
|
|
43699
44700
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43720,7 +44721,7 @@ function SuppressWarnings(options) {
|
|
|
43720
44721
|
}
|
|
43721
44722
|
exports.SuppressWarnings = SuppressWarnings;
|
|
43722
44723
|
|
|
43723
|
-
},{}],
|
|
44724
|
+
},{}],255:[function(require,module,exports){
|
|
43724
44725
|
"use strict";
|
|
43725
44726
|
/*!
|
|
43726
44727
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44534,7 +45535,7 @@ __decorate([
|
|
|
44534
45535
|
], DefaultErrorStrategy.prototype, "consumeUntil", null);
|
|
44535
45536
|
exports.DefaultErrorStrategy = DefaultErrorStrategy;
|
|
44536
45537
|
|
|
44537
|
-
},{"./Decorators":
|
|
45538
|
+
},{"./Decorators":254,"./FailedPredicateException":258,"./InputMismatchException":259,"./NoViableAltException":266,"./Token":279,"./atn/ATNState":293,"./atn/ATNStateType":294,"./atn/PredictionContext":334,"./misc/IntervalSet":367}],256:[function(require,module,exports){
|
|
44538
45539
|
"use strict";
|
|
44539
45540
|
/*!
|
|
44540
45541
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44610,7 +45611,7 @@ var Dependents;
|
|
|
44610
45611
|
Dependents[Dependents["FOLLOWING"] = 9] = "FOLLOWING";
|
|
44611
45612
|
})(Dependents = exports.Dependents || (exports.Dependents = {}));
|
|
44612
45613
|
|
|
44613
|
-
},{}],
|
|
45614
|
+
},{}],257:[function(require,module,exports){
|
|
44614
45615
|
"use strict";
|
|
44615
45616
|
/*!
|
|
44616
45617
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44758,7 +45759,7 @@ __decorate([
|
|
|
44758
45759
|
], DiagnosticErrorListener.prototype, "getConflictingAlts", null);
|
|
44759
45760
|
exports.DiagnosticErrorListener = DiagnosticErrorListener;
|
|
44760
45761
|
|
|
44761
|
-
},{"./Decorators":
|
|
45762
|
+
},{"./Decorators":254,"./misc/BitSet":361,"./misc/Interval":366}],258:[function(require,module,exports){
|
|
44762
45763
|
"use strict";
|
|
44763
45764
|
/*!
|
|
44764
45765
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44823,7 +45824,7 @@ FailedPredicateException = __decorate([
|
|
|
44823
45824
|
], FailedPredicateException);
|
|
44824
45825
|
exports.FailedPredicateException = FailedPredicateException;
|
|
44825
45826
|
|
|
44826
|
-
},{"./Decorators":
|
|
45827
|
+
},{"./Decorators":254,"./RecognitionException":273,"./atn/PredicateTransition":333}],259:[function(require,module,exports){
|
|
44827
45828
|
"use strict";
|
|
44828
45829
|
/*!
|
|
44829
45830
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44863,7 +45864,7 @@ InputMismatchException = __decorate([
|
|
|
44863
45864
|
], InputMismatchException);
|
|
44864
45865
|
exports.InputMismatchException = InputMismatchException;
|
|
44865
45866
|
|
|
44866
|
-
},{"./Decorators":
|
|
45867
|
+
},{"./Decorators":254,"./RecognitionException":273}],260:[function(require,module,exports){
|
|
44867
45868
|
"use strict";
|
|
44868
45869
|
/*!
|
|
44869
45870
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44886,7 +45887,7 @@ var IntStream;
|
|
|
44886
45887
|
IntStream.UNKNOWN_SOURCE_NAME = "<unknown>";
|
|
44887
45888
|
})(IntStream = exports.IntStream || (exports.IntStream = {}));
|
|
44888
45889
|
|
|
44889
|
-
},{}],
|
|
45890
|
+
},{}],261:[function(require,module,exports){
|
|
44890
45891
|
"use strict";
|
|
44891
45892
|
/*!
|
|
44892
45893
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44933,7 +45934,7 @@ __decorate([
|
|
|
44933
45934
|
], InterpreterRuleContext.prototype, "ruleIndex", null);
|
|
44934
45935
|
exports.InterpreterRuleContext = InterpreterRuleContext;
|
|
44935
45936
|
|
|
44936
|
-
},{"./Decorators":
|
|
45937
|
+
},{"./Decorators":254,"./ParserRuleContext":270}],262:[function(require,module,exports){
|
|
44937
45938
|
"use strict";
|
|
44938
45939
|
/*!
|
|
44939
45940
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45269,7 +46270,7 @@ __decorate([
|
|
|
45269
46270
|
], Lexer.prototype, "charPositionInLine", null);
|
|
45270
46271
|
exports.Lexer = Lexer;
|
|
45271
46272
|
|
|
45272
|
-
},{"./CommonTokenFactory":
|
|
46273
|
+
},{"./CommonTokenFactory":251,"./Decorators":254,"./IntStream":260,"./LexerNoViableAltException":264,"./Recognizer":274,"./Token":279,"./atn/LexerATNSimulator":312,"./misc/IntegerStack":365,"./misc/Interval":366}],263:[function(require,module,exports){
|
|
45273
46274
|
"use strict";
|
|
45274
46275
|
/*!
|
|
45275
46276
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45349,7 +46350,7 @@ LexerInterpreter = __decorate([
|
|
|
45349
46350
|
], LexerInterpreter);
|
|
45350
46351
|
exports.LexerInterpreter = LexerInterpreter;
|
|
45351
46352
|
|
|
45352
|
-
},{"./Decorators":
|
|
46353
|
+
},{"./Decorators":254,"./Lexer":262,"./atn/LexerATNSimulator":312}],264:[function(require,module,exports){
|
|
45353
46354
|
"use strict";
|
|
45354
46355
|
/*!
|
|
45355
46356
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45406,7 +46407,7 @@ LexerNoViableAltException = __decorate([
|
|
|
45406
46407
|
], LexerNoViableAltException);
|
|
45407
46408
|
exports.LexerNoViableAltException = LexerNoViableAltException;
|
|
45408
46409
|
|
|
45409
|
-
},{"./Decorators":
|
|
46410
|
+
},{"./Decorators":254,"./RecognitionException":273,"./misc/Interval":366,"./misc/Utils":373}],265:[function(require,module,exports){
|
|
45410
46411
|
"use strict";
|
|
45411
46412
|
/*!
|
|
45412
46413
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45616,7 +46617,7 @@ ListTokenSource = __decorate([
|
|
|
45616
46617
|
], ListTokenSource);
|
|
45617
46618
|
exports.ListTokenSource = ListTokenSource;
|
|
45618
46619
|
|
|
45619
|
-
},{"./CommonTokenFactory":
|
|
46620
|
+
},{"./CommonTokenFactory":251,"./Decorators":254,"./Token":279}],266:[function(require,module,exports){
|
|
45620
46621
|
"use strict";
|
|
45621
46622
|
/*!
|
|
45622
46623
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45671,7 +46672,7 @@ __decorate([
|
|
|
45671
46672
|
], NoViableAltException.prototype, "_startToken", void 0);
|
|
45672
46673
|
exports.NoViableAltException = NoViableAltException;
|
|
45673
46674
|
|
|
45674
|
-
},{"./Decorators":
|
|
46675
|
+
},{"./Decorators":254,"./Parser":267,"./RecognitionException":273}],267:[function(require,module,exports){
|
|
45675
46676
|
(function (process){(function (){
|
|
45676
46677
|
"use strict";
|
|
45677
46678
|
/*!
|
|
@@ -46517,7 +47518,7 @@ __decorate([
|
|
|
46517
47518
|
exports.Parser = Parser;
|
|
46518
47519
|
|
|
46519
47520
|
}).call(this)}).call(this,require('_process'))
|
|
46520
|
-
},{"./Decorators":
|
|
47521
|
+
},{"./Decorators":254,"./DefaultErrorStrategy":255,"./Lexer":262,"./ProxyParserErrorListener":272,"./Recognizer":274,"./Token":279,"./atn/ATNDeserializationOptions":290,"./atn/ATNDeserializer":291,"./atn/ParseInfo":327,"./atn/ParserATNSimulator":328,"./atn/ProfilingATNSimulator":337,"./misc/IntegerStack":365,"./misc/Utils":373,"./tree/ErrorNode":374,"./tree/TerminalNode":377,"./tree/pattern/ParseTreePatternMatcher":382,"_process":456}],268:[function(require,module,exports){
|
|
46521
47522
|
"use strict";
|
|
46522
47523
|
/*!
|
|
46523
47524
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46525,7 +47526,7 @@ exports.Parser = Parser;
|
|
|
46525
47526
|
*/
|
|
46526
47527
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46527
47528
|
|
|
46528
|
-
},{}],
|
|
47529
|
+
},{}],269:[function(require,module,exports){
|
|
46529
47530
|
"use strict";
|
|
46530
47531
|
/*!
|
|
46531
47532
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46933,7 +47934,7 @@ ParserInterpreter = __decorate([
|
|
|
46933
47934
|
], ParserInterpreter);
|
|
46934
47935
|
exports.ParserInterpreter = ParserInterpreter;
|
|
46935
47936
|
|
|
46936
|
-
},{"./Decorators":
|
|
47937
|
+
},{"./Decorators":254,"./FailedPredicateException":258,"./InputMismatchException":259,"./InterpreterRuleContext":261,"./Parser":267,"./RecognitionException":273,"./Token":279,"./atn/ATNState":293,"./atn/ATNStateType":294,"./atn/LoopEndState":324,"./atn/ParserATNSimulator":328,"./atn/StarLoopEntryState":346,"./misc/BitSet":361}],270:[function(require,module,exports){
|
|
46937
47938
|
"use strict";
|
|
46938
47939
|
/*!
|
|
46939
47940
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47234,7 +48235,7 @@ __decorate([
|
|
|
47234
48235
|
], ParserRuleContext.prototype, "sourceInterval", null);
|
|
47235
48236
|
exports.ParserRuleContext = ParserRuleContext;
|
|
47236
48237
|
|
|
47237
|
-
},{"./Decorators":
|
|
48238
|
+
},{"./Decorators":254,"./RuleContext":275,"./misc/Interval":366,"./tree/ErrorNode":374,"./tree/TerminalNode":377}],271:[function(require,module,exports){
|
|
47238
48239
|
"use strict";
|
|
47239
48240
|
/*!
|
|
47240
48241
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47284,7 +48285,7 @@ __decorate([
|
|
|
47284
48285
|
], ProxyErrorListener.prototype, "syntaxError", null);
|
|
47285
48286
|
exports.ProxyErrorListener = ProxyErrorListener;
|
|
47286
48287
|
|
|
47287
|
-
},{"./Decorators":
|
|
48288
|
+
},{"./Decorators":254}],272:[function(require,module,exports){
|
|
47288
48289
|
"use strict";
|
|
47289
48290
|
/*!
|
|
47290
48291
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47343,7 +48344,7 @@ __decorate([
|
|
|
47343
48344
|
], ProxyParserErrorListener.prototype, "reportContextSensitivity", null);
|
|
47344
48345
|
exports.ProxyParserErrorListener = ProxyParserErrorListener;
|
|
47345
48346
|
|
|
47346
|
-
},{"./Decorators":
|
|
48347
|
+
},{"./Decorators":254,"./ProxyErrorListener":271}],273:[function(require,module,exports){
|
|
47347
48348
|
"use strict";
|
|
47348
48349
|
/*!
|
|
47349
48350
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47448,7 +48449,7 @@ class RecognitionException extends Error {
|
|
|
47448
48449
|
}
|
|
47449
48450
|
exports.RecognitionException = RecognitionException;
|
|
47450
48451
|
|
|
47451
|
-
},{}],
|
|
48452
|
+
},{}],274:[function(require,module,exports){
|
|
47452
48453
|
"use strict";
|
|
47453
48454
|
/*!
|
|
47454
48455
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47667,7 +48668,7 @@ __decorate([
|
|
|
47667
48668
|
], Recognizer.prototype, "getErrorListeners", null);
|
|
47668
48669
|
exports.Recognizer = Recognizer;
|
|
47669
48670
|
|
|
47670
|
-
},{"./ConsoleErrorListener":
|
|
48671
|
+
},{"./ConsoleErrorListener":253,"./Decorators":254,"./ProxyErrorListener":271,"./Token":279,"./misc/Utils":373}],275:[function(require,module,exports){
|
|
47671
48672
|
"use strict";
|
|
47672
48673
|
/*!
|
|
47673
48674
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47884,7 +48885,7 @@ __decorate([
|
|
|
47884
48885
|
], RuleContext.prototype, "toStringTree", null);
|
|
47885
48886
|
exports.RuleContext = RuleContext;
|
|
47886
48887
|
|
|
47887
|
-
},{"./Decorators":
|
|
48888
|
+
},{"./Decorators":254,"./ParserRuleContext":270,"./Recognizer":274,"./atn/ATN":287,"./misc/Interval":366,"./tree/RuleNode":376,"./tree/Trees":378}],276:[function(require,module,exports){
|
|
47888
48889
|
"use strict";
|
|
47889
48890
|
/*!
|
|
47890
48891
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47935,7 +48936,7 @@ __decorate([
|
|
|
47935
48936
|
], RuleContextWithAltNum.prototype, "altNumber", null);
|
|
47936
48937
|
exports.RuleContextWithAltNum = RuleContextWithAltNum;
|
|
47937
48938
|
|
|
47938
|
-
},{"./Decorators":
|
|
48939
|
+
},{"./Decorators":254,"./ParserRuleContext":270,"./atn/ATN":287}],277:[function(require,module,exports){
|
|
47939
48940
|
"use strict";
|
|
47940
48941
|
/*!
|
|
47941
48942
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47958,7 +48959,7 @@ function RuleDependency(dependency) {
|
|
|
47958
48959
|
}
|
|
47959
48960
|
exports.RuleDependency = RuleDependency;
|
|
47960
48961
|
|
|
47961
|
-
},{}],
|
|
48962
|
+
},{}],278:[function(require,module,exports){
|
|
47962
48963
|
"use strict";
|
|
47963
48964
|
/*!
|
|
47964
48965
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47977,7 +48978,7 @@ function RuleVersion(version) {
|
|
|
47977
48978
|
}
|
|
47978
48979
|
exports.RuleVersion = RuleVersion;
|
|
47979
48980
|
|
|
47980
|
-
},{}],
|
|
48981
|
+
},{}],279:[function(require,module,exports){
|
|
47981
48982
|
"use strict";
|
|
47982
48983
|
/*!
|
|
47983
48984
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48017,7 +49018,7 @@ var Token;
|
|
|
48017
49018
|
Token.MIN_USER_CHANNEL_VALUE = 2;
|
|
48018
49019
|
})(Token = exports.Token || (exports.Token = {}));
|
|
48019
49020
|
|
|
48020
|
-
},{"./IntStream":
|
|
49021
|
+
},{"./IntStream":260}],280:[function(require,module,exports){
|
|
48021
49022
|
"use strict";
|
|
48022
49023
|
/*!
|
|
48023
49024
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48025,7 +49026,7 @@ var Token;
|
|
|
48025
49026
|
*/
|
|
48026
49027
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48027
49028
|
|
|
48028
|
-
},{}],
|
|
49029
|
+
},{}],281:[function(require,module,exports){
|
|
48029
49030
|
"use strict";
|
|
48030
49031
|
/*!
|
|
48031
49032
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48033,7 +49034,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48033
49034
|
*/
|
|
48034
49035
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48035
49036
|
|
|
48036
|
-
},{}],
|
|
49037
|
+
},{}],282:[function(require,module,exports){
|
|
48037
49038
|
"use strict";
|
|
48038
49039
|
/*!
|
|
48039
49040
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48041,7 +49042,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
48041
49042
|
*/
|
|
48042
49043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48043
49044
|
|
|
48044
|
-
},{}],
|
|
49045
|
+
},{}],283:[function(require,module,exports){
|
|
48045
49046
|
"use strict";
|
|
48046
49047
|
/*!
|
|
48047
49048
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48549,7 +49550,7 @@ __decorate([
|
|
|
48549
49550
|
Decorators_1.Override
|
|
48550
49551
|
], ReplaceOp.prototype, "toString", null);
|
|
48551
49552
|
|
|
48552
|
-
},{"./Decorators":
|
|
49553
|
+
},{"./Decorators":254,"./Token":279,"./misc/Interval":366}],284:[function(require,module,exports){
|
|
48553
49554
|
"use strict";
|
|
48554
49555
|
/*!
|
|
48555
49556
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48557,7 +49558,7 @@ __decorate([
|
|
|
48557
49558
|
*/
|
|
48558
49559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48559
49560
|
|
|
48560
|
-
},{}],
|
|
49561
|
+
},{}],285:[function(require,module,exports){
|
|
48561
49562
|
"use strict";
|
|
48562
49563
|
/*!
|
|
48563
49564
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48677,7 +49678,7 @@ __decorate([
|
|
|
48677
49678
|
], VocabularyImpl, "EMPTY_VOCABULARY", void 0);
|
|
48678
49679
|
exports.VocabularyImpl = VocabularyImpl;
|
|
48679
49680
|
|
|
48680
|
-
},{"./Decorators":
|
|
49681
|
+
},{"./Decorators":254,"./Token":279}],286:[function(require,module,exports){
|
|
48681
49682
|
"use strict";
|
|
48682
49683
|
/*!
|
|
48683
49684
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48685,7 +49686,7 @@ exports.VocabularyImpl = VocabularyImpl;
|
|
|
48685
49686
|
*/
|
|
48686
49687
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
48687
49688
|
|
|
48688
|
-
},{}],
|
|
49689
|
+
},{}],287:[function(require,module,exports){
|
|
48689
49690
|
"use strict";
|
|
48690
49691
|
/*!
|
|
48691
49692
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48907,7 +49908,7 @@ exports.ATN = ATN;
|
|
|
48907
49908
|
})(ATN = exports.ATN || (exports.ATN = {}));
|
|
48908
49909
|
exports.ATN = ATN;
|
|
48909
49910
|
|
|
48910
|
-
},{"../Decorators":
|
|
49911
|
+
},{"../Decorators":254,"../Token":279,"../dfa/DFA":352,"../misc/Array2DHashMap":357,"../misc/IntervalSet":367,"../misc/ObjectEqualityComparator":370,"./InvalidState":310,"./LL1Analyzer":311,"./PredictionContext":334,"assert":397}],288:[function(require,module,exports){
|
|
48911
49912
|
"use strict";
|
|
48912
49913
|
/*!
|
|
48913
49914
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49432,7 +50433,7 @@ ActionSemanticContextATNConfig = __decorate([
|
|
|
49432
50433
|
__param(1, Decorators_1.NotNull), __param(2, Decorators_1.NotNull)
|
|
49433
50434
|
], ActionSemanticContextATNConfig);
|
|
49434
50435
|
|
|
49435
|
-
},{"../Decorators":
|
|
50436
|
+
},{"../Decorators":254,"../misc/Array2DHashMap":357,"../misc/MurmurHash":369,"../misc/ObjectEqualityComparator":370,"./DecisionState":307,"./PredictionContext":334,"./SemanticContext":342,"assert":397}],289:[function(require,module,exports){
|
|
49436
50437
|
"use strict";
|
|
49437
50438
|
/*!
|
|
49438
50439
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49879,7 +50880,7 @@ __decorate([
|
|
|
49879
50880
|
], ATNConfigSet.prototype, "hashCode", null);
|
|
49880
50881
|
exports.ATNConfigSet = ATNConfigSet;
|
|
49881
50882
|
|
|
49882
|
-
},{"../Decorators":
|
|
50883
|
+
},{"../Decorators":254,"../misc/Array2DHashMap":357,"../misc/Array2DHashSet":358,"../misc/ArrayEqualityComparator":359,"../misc/BitSet":361,"../misc/ObjectEqualityComparator":370,"../misc/Utils":373,"./ATN":287,"./ATNConfig":288,"./PredictionContext":334,"./PredictionContextCache":335,"./SemanticContext":342,"assert":397}],290:[function(require,module,exports){
|
|
49883
50884
|
"use strict";
|
|
49884
50885
|
/*!
|
|
49885
50886
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49958,7 +50959,7 @@ __decorate([
|
|
|
49958
50959
|
], ATNDeserializationOptions, "defaultOptions", null);
|
|
49959
50960
|
exports.ATNDeserializationOptions = ATNDeserializationOptions;
|
|
49960
50961
|
|
|
49961
|
-
},{"../Decorators":
|
|
50962
|
+
},{"../Decorators":254}],291:[function(require,module,exports){
|
|
49962
50963
|
"use strict";
|
|
49963
50964
|
/*!
|
|
49964
50965
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51045,7 +52046,7 @@ __decorate([
|
|
|
51045
52046
|
], ATNDeserializer.prototype, "edgeFactory", null);
|
|
51046
52047
|
exports.ATNDeserializer = ATNDeserializer;
|
|
51047
52048
|
|
|
51048
|
-
},{"../Decorators":
|
|
52049
|
+
},{"../Decorators":254,"../Token":279,"../dfa/DFA":352,"../misc/Array2DHashSet":358,"../misc/BitSet":361,"../misc/IntervalSet":367,"../misc/UUID":372,"./ATN":287,"./ATNDeserializationOptions":290,"./ATNStateType":294,"./ActionTransition":296,"./AtomTransition":298,"./BasicBlockStartState":299,"./BasicState":300,"./BlockEndState":301,"./BlockStartState":302,"./DecisionState":307,"./EpsilonTransition":308,"./InvalidState":310,"./LexerChannelAction":314,"./LexerCustomAction":315,"./LexerModeAction":317,"./LexerMoreAction":318,"./LexerPopModeAction":319,"./LexerPushModeAction":320,"./LexerSkipAction":321,"./LexerTypeAction":322,"./LoopEndState":324,"./NotSetTransition":325,"./ParserATNSimulator":328,"./PlusBlockStartState":329,"./PlusLoopbackState":330,"./PrecedencePredicateTransition":331,"./PredicateTransition":333,"./RangeTransition":338,"./RuleStartState":339,"./RuleStopState":340,"./RuleTransition":341,"./SetTransition":343,"./StarBlockStartState":345,"./StarLoopEntryState":346,"./StarLoopbackState":347,"./TokensStartState":348,"./WildcardTransition":350}],292:[function(require,module,exports){
|
|
51049
52050
|
"use strict";
|
|
51050
52051
|
/*!
|
|
51051
52052
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51109,7 +52110,7 @@ exports.ATNSimulator = ATNSimulator;
|
|
|
51109
52110
|
})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
|
|
51110
52111
|
exports.ATNSimulator = ATNSimulator;
|
|
51111
52112
|
|
|
51112
|
-
},{"../Decorators":
|
|
52113
|
+
},{"../Decorators":254,"../dfa/DFAState":354,"./ATNConfigSet":289,"./PredictionContext":334}],293:[function(require,module,exports){
|
|
51113
52114
|
"use strict";
|
|
51114
52115
|
/*!
|
|
51115
52116
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51296,7 +52297,7 @@ exports.ATNState = ATNState;
|
|
|
51296
52297
|
ATNState.INVALID_STATE_NUMBER = -1;
|
|
51297
52298
|
})(ATNState = exports.ATNState || (exports.ATNState = {}));
|
|
51298
52299
|
|
|
51299
|
-
},{"../Decorators":
|
|
52300
|
+
},{"../Decorators":254}],294:[function(require,module,exports){
|
|
51300
52301
|
"use strict";
|
|
51301
52302
|
/*!
|
|
51302
52303
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51322,7 +52323,7 @@ var ATNStateType;
|
|
|
51322
52323
|
ATNStateType[ATNStateType["LOOP_END"] = 12] = "LOOP_END";
|
|
51323
52324
|
})(ATNStateType = exports.ATNStateType || (exports.ATNStateType = {}));
|
|
51324
52325
|
|
|
51325
|
-
},{}],
|
|
52326
|
+
},{}],295:[function(require,module,exports){
|
|
51326
52327
|
"use strict";
|
|
51327
52328
|
/*!
|
|
51328
52329
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51342,7 +52343,7 @@ class AbstractPredicateTransition extends Transition_1.Transition {
|
|
|
51342
52343
|
}
|
|
51343
52344
|
exports.AbstractPredicateTransition = AbstractPredicateTransition;
|
|
51344
52345
|
|
|
51345
|
-
},{"./Transition":
|
|
52346
|
+
},{"./Transition":349}],296:[function(require,module,exports){
|
|
51346
52347
|
"use strict";
|
|
51347
52348
|
/*!
|
|
51348
52349
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51398,7 +52399,7 @@ ActionTransition = __decorate([
|
|
|
51398
52399
|
], ActionTransition);
|
|
51399
52400
|
exports.ActionTransition = ActionTransition;
|
|
51400
52401
|
|
|
51401
|
-
},{"../Decorators":
|
|
52402
|
+
},{"../Decorators":254,"./Transition":349}],297:[function(require,module,exports){
|
|
51402
52403
|
"use strict";
|
|
51403
52404
|
/*!
|
|
51404
52405
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51485,7 +52486,7 @@ AmbiguityInfo = __decorate([
|
|
|
51485
52486
|
], AmbiguityInfo);
|
|
51486
52487
|
exports.AmbiguityInfo = AmbiguityInfo;
|
|
51487
52488
|
|
|
51488
|
-
},{"../Decorators":
|
|
52489
|
+
},{"../Decorators":254,"./DecisionEventInfo":305}],298:[function(require,module,exports){
|
|
51489
52490
|
"use strict";
|
|
51490
52491
|
/*!
|
|
51491
52492
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51543,7 +52544,7 @@ AtomTransition = __decorate([
|
|
|
51543
52544
|
], AtomTransition);
|
|
51544
52545
|
exports.AtomTransition = AtomTransition;
|
|
51545
52546
|
|
|
51546
|
-
},{"../Decorators":
|
|
52547
|
+
},{"../Decorators":254,"../misc/IntervalSet":367,"./Transition":349}],299:[function(require,module,exports){
|
|
51547
52548
|
"use strict";
|
|
51548
52549
|
/*!
|
|
51549
52550
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51575,7 +52576,7 @@ __decorate([
|
|
|
51575
52576
|
], BasicBlockStartState.prototype, "stateType", null);
|
|
51576
52577
|
exports.BasicBlockStartState = BasicBlockStartState;
|
|
51577
52578
|
|
|
51578
|
-
},{"../Decorators":
|
|
52579
|
+
},{"../Decorators":254,"./ATNStateType":294,"./BlockStartState":302}],300:[function(require,module,exports){
|
|
51579
52580
|
"use strict";
|
|
51580
52581
|
/*!
|
|
51581
52582
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51607,7 +52608,7 @@ __decorate([
|
|
|
51607
52608
|
], BasicState.prototype, "stateType", null);
|
|
51608
52609
|
exports.BasicState = BasicState;
|
|
51609
52610
|
|
|
51610
|
-
},{"../Decorators":
|
|
52611
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],301:[function(require,module,exports){
|
|
51611
52612
|
"use strict";
|
|
51612
52613
|
/*!
|
|
51613
52614
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51636,7 +52637,7 @@ __decorate([
|
|
|
51636
52637
|
], BlockEndState.prototype, "stateType", null);
|
|
51637
52638
|
exports.BlockEndState = BlockEndState;
|
|
51638
52639
|
|
|
51639
|
-
},{"../Decorators":
|
|
52640
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],302:[function(require,module,exports){
|
|
51640
52641
|
"use strict";
|
|
51641
52642
|
/*!
|
|
51642
52643
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51650,7 +52651,7 @@ class BlockStartState extends DecisionState_1.DecisionState {
|
|
|
51650
52651
|
}
|
|
51651
52652
|
exports.BlockStartState = BlockStartState;
|
|
51652
52653
|
|
|
51653
|
-
},{"./DecisionState":
|
|
52654
|
+
},{"./DecisionState":307}],303:[function(require,module,exports){
|
|
51654
52655
|
"use strict";
|
|
51655
52656
|
/*!
|
|
51656
52657
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51720,7 +52721,7 @@ __decorate([
|
|
|
51720
52721
|
], ConflictInfo.prototype, "hashCode", null);
|
|
51721
52722
|
exports.ConflictInfo = ConflictInfo;
|
|
51722
52723
|
|
|
51723
|
-
},{"../Decorators":
|
|
52724
|
+
},{"../Decorators":254,"../misc/Utils":373}],304:[function(require,module,exports){
|
|
51724
52725
|
"use strict";
|
|
51725
52726
|
/*!
|
|
51726
52727
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51780,7 +52781,7 @@ ContextSensitivityInfo = __decorate([
|
|
|
51780
52781
|
], ContextSensitivityInfo);
|
|
51781
52782
|
exports.ContextSensitivityInfo = ContextSensitivityInfo;
|
|
51782
52783
|
|
|
51783
|
-
},{"../Decorators":
|
|
52784
|
+
},{"../Decorators":254,"./DecisionEventInfo":305}],305:[function(require,module,exports){
|
|
51784
52785
|
"use strict";
|
|
51785
52786
|
/*!
|
|
51786
52787
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51832,7 +52833,7 @@ DecisionEventInfo = __decorate([
|
|
|
51832
52833
|
], DecisionEventInfo);
|
|
51833
52834
|
exports.DecisionEventInfo = DecisionEventInfo;
|
|
51834
52835
|
|
|
51835
|
-
},{"../Decorators":
|
|
52836
|
+
},{"../Decorators":254}],306:[function(require,module,exports){
|
|
51836
52837
|
"use strict";
|
|
51837
52838
|
/*!
|
|
51838
52839
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52045,7 +53046,7 @@ __decorate([
|
|
|
52045
53046
|
], DecisionInfo.prototype, "toString", null);
|
|
52046
53047
|
exports.DecisionInfo = DecisionInfo;
|
|
52047
53048
|
|
|
52048
|
-
},{"../Decorators":
|
|
53049
|
+
},{"../Decorators":254}],307:[function(require,module,exports){
|
|
52049
53050
|
"use strict";
|
|
52050
53051
|
/*!
|
|
52051
53052
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52065,7 +53066,7 @@ class DecisionState extends ATNState_1.ATNState {
|
|
|
52065
53066
|
}
|
|
52066
53067
|
exports.DecisionState = DecisionState;
|
|
52067
53068
|
|
|
52068
|
-
},{"./ATNState":
|
|
53069
|
+
},{"./ATNState":293}],308:[function(require,module,exports){
|
|
52069
53070
|
"use strict";
|
|
52070
53071
|
/*!
|
|
52071
53072
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52131,7 +53132,7 @@ EpsilonTransition = __decorate([
|
|
|
52131
53132
|
], EpsilonTransition);
|
|
52132
53133
|
exports.EpsilonTransition = EpsilonTransition;
|
|
52133
53134
|
|
|
52134
|
-
},{"../Decorators":
|
|
53135
|
+
},{"../Decorators":254,"./Transition":349}],309:[function(require,module,exports){
|
|
52135
53136
|
"use strict";
|
|
52136
53137
|
/*!
|
|
52137
53138
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52184,7 +53185,7 @@ ErrorInfo = __decorate([
|
|
|
52184
53185
|
], ErrorInfo);
|
|
52185
53186
|
exports.ErrorInfo = ErrorInfo;
|
|
52186
53187
|
|
|
52187
|
-
},{"../Decorators":
|
|
53188
|
+
},{"../Decorators":254,"./DecisionEventInfo":305}],310:[function(require,module,exports){
|
|
52188
53189
|
"use strict";
|
|
52189
53190
|
/*!
|
|
52190
53191
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52215,7 +53216,7 @@ __decorate([
|
|
|
52215
53216
|
], InvalidState.prototype, "stateType", null);
|
|
52216
53217
|
exports.InvalidState = InvalidState;
|
|
52217
53218
|
|
|
52218
|
-
},{"../Decorators":
|
|
53219
|
+
},{"../Decorators":254,"./ATNStateType":294,"./BasicState":300}],311:[function(require,module,exports){
|
|
52219
53220
|
"use strict";
|
|
52220
53221
|
/*!
|
|
52221
53222
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52437,7 +53438,7 @@ LL1Analyzer = __decorate([
|
|
|
52437
53438
|
], LL1Analyzer);
|
|
52438
53439
|
exports.LL1Analyzer = LL1Analyzer;
|
|
52439
53440
|
|
|
52440
|
-
},{"../Decorators":
|
|
53441
|
+
},{"../Decorators":254,"../Token":279,"../misc/Array2DHashSet":358,"../misc/BitSet":361,"../misc/IntervalSet":367,"../misc/ObjectEqualityComparator":370,"./ATNConfig":288,"./AbstractPredicateTransition":295,"./NotSetTransition":325,"./PredictionContext":334,"./RuleStopState":340,"./RuleTransition":341,"./WildcardTransition":350}],312:[function(require,module,exports){
|
|
52441
53442
|
"use strict";
|
|
52442
53443
|
/*!
|
|
52443
53444
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53154,7 +54155,7 @@ exports.LexerATNSimulator = LexerATNSimulator;
|
|
|
53154
54155
|
})(LexerATNSimulator = exports.LexerATNSimulator || (exports.LexerATNSimulator = {}));
|
|
53155
54156
|
exports.LexerATNSimulator = LexerATNSimulator;
|
|
53156
54157
|
|
|
53157
|
-
},{"../Decorators":
|
|
54158
|
+
},{"../Decorators":254,"../IntStream":260,"../Lexer":262,"../LexerNoViableAltException":264,"../Token":279,"../dfa/AcceptStateInfo":351,"../dfa/DFAState":354,"../misc/Interval":366,"./ATN":287,"./ATNConfig":288,"./ATNConfigSet":289,"./ATNSimulator":292,"./LexerActionExecutor":313,"./OrderedATNConfigSet":326,"./PredictionContext":334,"./RuleStopState":340,"assert":397}],313:[function(require,module,exports){
|
|
53158
54159
|
"use strict";
|
|
53159
54160
|
/*!
|
|
53160
54161
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53355,7 +54356,7 @@ LexerActionExecutor = __decorate([
|
|
|
53355
54356
|
], LexerActionExecutor);
|
|
53356
54357
|
exports.LexerActionExecutor = LexerActionExecutor;
|
|
53357
54358
|
|
|
53358
|
-
},{"../Decorators":
|
|
54359
|
+
},{"../Decorators":254,"../misc/ArrayEqualityComparator":359,"../misc/MurmurHash":369,"./LexerIndexedCustomAction":316}],314:[function(require,module,exports){
|
|
53359
54360
|
"use strict";
|
|
53360
54361
|
/*!
|
|
53361
54362
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53460,7 +54461,7 @@ __decorate([
|
|
|
53460
54461
|
], LexerChannelAction.prototype, "toString", null);
|
|
53461
54462
|
exports.LexerChannelAction = LexerChannelAction;
|
|
53462
54463
|
|
|
53463
|
-
},{"../Decorators":
|
|
54464
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],315:[function(require,module,exports){
|
|
53464
54465
|
"use strict";
|
|
53465
54466
|
/*!
|
|
53466
54467
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53589,7 +54590,7 @@ __decorate([
|
|
|
53589
54590
|
], LexerCustomAction.prototype, "equals", null);
|
|
53590
54591
|
exports.LexerCustomAction = LexerCustomAction;
|
|
53591
54592
|
|
|
53592
|
-
},{"../Decorators":
|
|
54593
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],316:[function(require,module,exports){
|
|
53593
54594
|
"use strict";
|
|
53594
54595
|
/*!
|
|
53595
54596
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53724,7 +54725,7 @@ LexerIndexedCustomAction = __decorate([
|
|
|
53724
54725
|
], LexerIndexedCustomAction);
|
|
53725
54726
|
exports.LexerIndexedCustomAction = LexerIndexedCustomAction;
|
|
53726
54727
|
|
|
53727
|
-
},{"../Decorators":
|
|
54728
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],317:[function(require,module,exports){
|
|
53728
54729
|
"use strict";
|
|
53729
54730
|
/*!
|
|
53730
54731
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53829,7 +54830,7 @@ __decorate([
|
|
|
53829
54830
|
], LexerModeAction.prototype, "toString", null);
|
|
53830
54831
|
exports.LexerModeAction = LexerModeAction;
|
|
53831
54832
|
|
|
53832
|
-
},{"../Decorators":
|
|
54833
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],318:[function(require,module,exports){
|
|
53833
54834
|
"use strict";
|
|
53834
54835
|
/*!
|
|
53835
54836
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53925,7 +54926,7 @@ exports.LexerMoreAction = LexerMoreAction;
|
|
|
53925
54926
|
LexerMoreAction.INSTANCE = new LexerMoreAction();
|
|
53926
54927
|
})(LexerMoreAction = exports.LexerMoreAction || (exports.LexerMoreAction = {}));
|
|
53927
54928
|
|
|
53928
|
-
},{"../Decorators":
|
|
54929
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],319:[function(require,module,exports){
|
|
53929
54930
|
"use strict";
|
|
53930
54931
|
/*!
|
|
53931
54932
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54021,7 +55022,7 @@ exports.LexerPopModeAction = LexerPopModeAction;
|
|
|
54021
55022
|
LexerPopModeAction.INSTANCE = new LexerPopModeAction();
|
|
54022
55023
|
})(LexerPopModeAction = exports.LexerPopModeAction || (exports.LexerPopModeAction = {}));
|
|
54023
55024
|
|
|
54024
|
-
},{"../Decorators":
|
|
55025
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],320:[function(require,module,exports){
|
|
54025
55026
|
"use strict";
|
|
54026
55027
|
/*!
|
|
54027
55028
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54126,7 +55127,7 @@ __decorate([
|
|
|
54126
55127
|
], LexerPushModeAction.prototype, "toString", null);
|
|
54127
55128
|
exports.LexerPushModeAction = LexerPushModeAction;
|
|
54128
55129
|
|
|
54129
|
-
},{"../Decorators":
|
|
55130
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],321:[function(require,module,exports){
|
|
54130
55131
|
"use strict";
|
|
54131
55132
|
/*!
|
|
54132
55133
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54222,7 +55223,7 @@ exports.LexerSkipAction = LexerSkipAction;
|
|
|
54222
55223
|
LexerSkipAction.INSTANCE = new LexerSkipAction();
|
|
54223
55224
|
})(LexerSkipAction = exports.LexerSkipAction || (exports.LexerSkipAction = {}));
|
|
54224
55225
|
|
|
54225
|
-
},{"../Decorators":
|
|
55226
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],322:[function(require,module,exports){
|
|
54226
55227
|
"use strict";
|
|
54227
55228
|
/*!
|
|
54228
55229
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54326,7 +55327,7 @@ __decorate([
|
|
|
54326
55327
|
], LexerTypeAction.prototype, "toString", null);
|
|
54327
55328
|
exports.LexerTypeAction = LexerTypeAction;
|
|
54328
55329
|
|
|
54329
|
-
},{"../Decorators":
|
|
55330
|
+
},{"../Decorators":254,"../misc/MurmurHash":369}],323:[function(require,module,exports){
|
|
54330
55331
|
"use strict";
|
|
54331
55332
|
/*!
|
|
54332
55333
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54378,7 +55379,7 @@ LookaheadEventInfo = __decorate([
|
|
|
54378
55379
|
], LookaheadEventInfo);
|
|
54379
55380
|
exports.LookaheadEventInfo = LookaheadEventInfo;
|
|
54380
55381
|
|
|
54381
|
-
},{"../Decorators":
|
|
55382
|
+
},{"../Decorators":254,"./DecisionEventInfo":305}],324:[function(require,module,exports){
|
|
54382
55383
|
"use strict";
|
|
54383
55384
|
/*!
|
|
54384
55385
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54407,7 +55408,7 @@ __decorate([
|
|
|
54407
55408
|
], LoopEndState.prototype, "stateType", null);
|
|
54408
55409
|
exports.LoopEndState = LoopEndState;
|
|
54409
55410
|
|
|
54410
|
-
},{"../Decorators":
|
|
55411
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],325:[function(require,module,exports){
|
|
54411
55412
|
"use strict";
|
|
54412
55413
|
/*!
|
|
54413
55414
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54456,7 +55457,7 @@ NotSetTransition = __decorate([
|
|
|
54456
55457
|
], NotSetTransition);
|
|
54457
55458
|
exports.NotSetTransition = NotSetTransition;
|
|
54458
55459
|
|
|
54459
|
-
},{"../Decorators":
|
|
55460
|
+
},{"../Decorators":254,"./SetTransition":343}],326:[function(require,module,exports){
|
|
54460
55461
|
"use strict";
|
|
54461
55462
|
/*!
|
|
54462
55463
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54511,7 +55512,7 @@ __decorate([
|
|
|
54511
55512
|
], OrderedATNConfigSet.prototype, "canMerge", null);
|
|
54512
55513
|
exports.OrderedATNConfigSet = OrderedATNConfigSet;
|
|
54513
55514
|
|
|
54514
|
-
},{"../Decorators":
|
|
55515
|
+
},{"../Decorators":254,"./ATNConfigSet":289}],327:[function(require,module,exports){
|
|
54515
55516
|
"use strict";
|
|
54516
55517
|
/*!
|
|
54517
55518
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54673,7 +55674,7 @@ ParseInfo = __decorate([
|
|
|
54673
55674
|
], ParseInfo);
|
|
54674
55675
|
exports.ParseInfo = ParseInfo;
|
|
54675
55676
|
|
|
54676
|
-
},{"../Decorators":
|
|
55677
|
+
},{"../Decorators":254}],328:[function(require,module,exports){
|
|
54677
55678
|
"use strict";
|
|
54678
55679
|
/*!
|
|
54679
55680
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56946,7 +57947,7 @@ ParserATNSimulator = __decorate([
|
|
|
56946
57947
|
], ParserATNSimulator);
|
|
56947
57948
|
exports.ParserATNSimulator = ParserATNSimulator;
|
|
56948
57949
|
|
|
56949
|
-
},{"../Decorators":
|
|
57950
|
+
},{"../Decorators":254,"../IntStream":260,"../NoViableAltException":266,"../ParserRuleContext":270,"../Token":279,"../VocabularyImpl":285,"../dfa/AcceptStateInfo":351,"../dfa/DFAState":354,"../misc/Array2DHashSet":358,"../misc/Arrays":360,"../misc/BitSet":361,"../misc/IntegerList":364,"../misc/Interval":366,"../misc/ObjectEqualityComparator":370,"./ATN":287,"./ATNConfig":288,"./ATNConfigSet":289,"./ATNSimulator":292,"./ATNStateType":294,"./ActionTransition":296,"./AtomTransition":298,"./ConflictInfo":303,"./DecisionState":307,"./NotSetTransition":325,"./PredictionContext":334,"./PredictionContextCache":335,"./PredictionMode":336,"./RuleStopState":340,"./RuleTransition":341,"./SemanticContext":342,"./SetTransition":343,"./SimulatorState":344,"assert":397}],329:[function(require,module,exports){
|
|
56950
57951
|
"use strict";
|
|
56951
57952
|
/*!
|
|
56952
57953
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56979,7 +57980,7 @@ __decorate([
|
|
|
56979
57980
|
], PlusBlockStartState.prototype, "stateType", null);
|
|
56980
57981
|
exports.PlusBlockStartState = PlusBlockStartState;
|
|
56981
57982
|
|
|
56982
|
-
},{"../Decorators":
|
|
57983
|
+
},{"../Decorators":254,"./ATNStateType":294,"./BlockStartState":302}],330:[function(require,module,exports){
|
|
56983
57984
|
"use strict";
|
|
56984
57985
|
/*!
|
|
56985
57986
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57010,7 +58011,7 @@ __decorate([
|
|
|
57010
58011
|
], PlusLoopbackState.prototype, "stateType", null);
|
|
57011
58012
|
exports.PlusLoopbackState = PlusLoopbackState;
|
|
57012
58013
|
|
|
57013
|
-
},{"../Decorators":
|
|
58014
|
+
},{"../Decorators":254,"./ATNStateType":294,"./DecisionState":307}],331:[function(require,module,exports){
|
|
57014
58015
|
"use strict";
|
|
57015
58016
|
/*!
|
|
57016
58017
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57073,7 +58074,7 @@ PrecedencePredicateTransition = __decorate([
|
|
|
57073
58074
|
], PrecedencePredicateTransition);
|
|
57074
58075
|
exports.PrecedencePredicateTransition = PrecedencePredicateTransition;
|
|
57075
58076
|
|
|
57076
|
-
},{"../Decorators":
|
|
58077
|
+
},{"../Decorators":254,"./AbstractPredicateTransition":295,"./SemanticContext":342}],332:[function(require,module,exports){
|
|
57077
58078
|
"use strict";
|
|
57078
58079
|
/*!
|
|
57079
58080
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57136,7 +58137,7 @@ PredicateEvalInfo = __decorate([
|
|
|
57136
58137
|
], PredicateEvalInfo);
|
|
57137
58138
|
exports.PredicateEvalInfo = PredicateEvalInfo;
|
|
57138
58139
|
|
|
57139
|
-
},{"../Decorators":
|
|
58140
|
+
},{"../Decorators":254,"./DecisionEventInfo":305}],333:[function(require,module,exports){
|
|
57140
58141
|
"use strict";
|
|
57141
58142
|
/*!
|
|
57142
58143
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57202,7 +58203,7 @@ PredicateTransition = __decorate([
|
|
|
57202
58203
|
], PredicateTransition);
|
|
57203
58204
|
exports.PredicateTransition = PredicateTransition;
|
|
57204
58205
|
|
|
57205
|
-
},{"../Decorators":
|
|
58206
|
+
},{"../Decorators":254,"./AbstractPredicateTransition":295,"./SemanticContext":342}],334:[function(require,module,exports){
|
|
57206
58207
|
"use strict";
|
|
57207
58208
|
/*!
|
|
57208
58209
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57893,7 +58894,7 @@ exports.SingletonPredictionContext = SingletonPredictionContext;
|
|
|
57893
58894
|
PredictionContext.IdentityEqualityComparator = IdentityEqualityComparator;
|
|
57894
58895
|
})(PredictionContext = exports.PredictionContext || (exports.PredictionContext = {}));
|
|
57895
58896
|
|
|
57896
|
-
},{"../Decorators":
|
|
58897
|
+
},{"../Decorators":254,"../misc/Array2DHashMap":357,"../misc/Array2DHashSet":358,"../misc/Arrays":360,"../misc/MurmurHash":369,"./PredictionContextCache":335,"assert":397}],335:[function(require,module,exports){
|
|
57897
58898
|
"use strict";
|
|
57898
58899
|
/*!
|
|
57899
58900
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58034,7 +59035,7 @@ PredictionContextCache.UNCACHED = new PredictionContextCache(false);
|
|
|
58034
59035
|
PredictionContextCache.IdentityCommutativePredictionContextOperands = IdentityCommutativePredictionContextOperands;
|
|
58035
59036
|
})(PredictionContextCache = exports.PredictionContextCache || (exports.PredictionContextCache = {}));
|
|
58036
59037
|
|
|
58037
|
-
},{"../Decorators":
|
|
59038
|
+
},{"../Decorators":254,"../misc/Array2DHashMap":357,"../misc/ObjectEqualityComparator":370,"./PredictionContext":334,"assert":397}],336:[function(require,module,exports){
|
|
58038
59039
|
"use strict";
|
|
58039
59040
|
/*!
|
|
58040
59041
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58195,7 +59196,7 @@ var PredictionMode;
|
|
|
58195
59196
|
PredictionMode.allConfigsInRuleStopStates = allConfigsInRuleStopStates;
|
|
58196
59197
|
})(PredictionMode = exports.PredictionMode || (exports.PredictionMode = {}));
|
|
58197
59198
|
|
|
58198
|
-
},{"../Decorators":
|
|
59199
|
+
},{"../Decorators":254,"../misc/Array2DHashMap":357,"../misc/MurmurHash":369,"./RuleStopState":340}],337:[function(require,module,exports){
|
|
58199
59200
|
(function (process){(function (){
|
|
58200
59201
|
"use strict";
|
|
58201
59202
|
/*!
|
|
@@ -58464,7 +59465,7 @@ __decorate([
|
|
|
58464
59465
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
58465
59466
|
|
|
58466
59467
|
}).call(this)}).call(this,require('_process'))
|
|
58467
|
-
},{"../Decorators":
|
|
59468
|
+
},{"../Decorators":254,"./ATN":287,"./ATNSimulator":292,"./AmbiguityInfo":297,"./ContextSensitivityInfo":304,"./DecisionInfo":306,"./ErrorInfo":309,"./LookaheadEventInfo":323,"./ParserATNSimulator":328,"./PredicateEvalInfo":332,"./SemanticContext":342,"./SimulatorState":344,"_process":456}],338:[function(require,module,exports){
|
|
58468
59469
|
"use strict";
|
|
58469
59470
|
/*!
|
|
58470
59471
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58522,7 +59523,7 @@ RangeTransition = __decorate([
|
|
|
58522
59523
|
], RangeTransition);
|
|
58523
59524
|
exports.RangeTransition = RangeTransition;
|
|
58524
59525
|
|
|
58525
|
-
},{"../Decorators":
|
|
59526
|
+
},{"../Decorators":254,"../misc/IntervalSet":367,"./Transition":349}],339:[function(require,module,exports){
|
|
58526
59527
|
"use strict";
|
|
58527
59528
|
/*!
|
|
58528
59529
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58555,7 +59556,7 @@ __decorate([
|
|
|
58555
59556
|
], RuleStartState.prototype, "stateType", null);
|
|
58556
59557
|
exports.RuleStartState = RuleStartState;
|
|
58557
59558
|
|
|
58558
|
-
},{"../Decorators":
|
|
59559
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],340:[function(require,module,exports){
|
|
58559
59560
|
"use strict";
|
|
58560
59561
|
/*!
|
|
58561
59562
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58594,7 +59595,7 @@ __decorate([
|
|
|
58594
59595
|
], RuleStopState.prototype, "stateType", null);
|
|
58595
59596
|
exports.RuleStopState = RuleStopState;
|
|
58596
59597
|
|
|
58597
|
-
},{"../Decorators":
|
|
59598
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],341:[function(require,module,exports){
|
|
58598
59599
|
"use strict";
|
|
58599
59600
|
/*!
|
|
58600
59601
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58650,7 +59651,7 @@ RuleTransition = __decorate([
|
|
|
58650
59651
|
], RuleTransition);
|
|
58651
59652
|
exports.RuleTransition = RuleTransition;
|
|
58652
59653
|
|
|
58653
|
-
},{"../Decorators":
|
|
59654
|
+
},{"../Decorators":254,"./Transition":349}],342:[function(require,module,exports){
|
|
58654
59655
|
"use strict";
|
|
58655
59656
|
/*!
|
|
58656
59657
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59130,7 +60131,7 @@ exports.SemanticContext = SemanticContext;
|
|
|
59130
60131
|
SemanticContext.OR = OR;
|
|
59131
60132
|
})(SemanticContext = exports.SemanticContext || (exports.SemanticContext = {}));
|
|
59132
60133
|
|
|
59133
|
-
},{"../Decorators":
|
|
60134
|
+
},{"../Decorators":254,"../misc/Array2DHashSet":358,"../misc/ArrayEqualityComparator":359,"../misc/MurmurHash":369,"../misc/ObjectEqualityComparator":370,"../misc/Utils":373}],343:[function(require,module,exports){
|
|
59134
60135
|
"use strict";
|
|
59135
60136
|
/*!
|
|
59136
60137
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59196,7 +60197,7 @@ SetTransition = __decorate([
|
|
|
59196
60197
|
], SetTransition);
|
|
59197
60198
|
exports.SetTransition = SetTransition;
|
|
59198
60199
|
|
|
59199
|
-
},{"../Decorators":
|
|
60200
|
+
},{"../Decorators":254,"../Token":279,"../misc/IntervalSet":367,"./Transition":349}],344:[function(require,module,exports){
|
|
59200
60201
|
"use strict";
|
|
59201
60202
|
/*!
|
|
59202
60203
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59232,7 +60233,7 @@ SimulatorState = __decorate([
|
|
|
59232
60233
|
], SimulatorState);
|
|
59233
60234
|
exports.SimulatorState = SimulatorState;
|
|
59234
60235
|
|
|
59235
|
-
},{"../Decorators":
|
|
60236
|
+
},{"../Decorators":254,"../ParserRuleContext":270}],345:[function(require,module,exports){
|
|
59236
60237
|
"use strict";
|
|
59237
60238
|
/*!
|
|
59238
60239
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59260,7 +60261,7 @@ __decorate([
|
|
|
59260
60261
|
], StarBlockStartState.prototype, "stateType", null);
|
|
59261
60262
|
exports.StarBlockStartState = StarBlockStartState;
|
|
59262
60263
|
|
|
59263
|
-
},{"../Decorators":
|
|
60264
|
+
},{"../Decorators":254,"./ATNStateType":294,"./BlockStartState":302}],346:[function(require,module,exports){
|
|
59264
60265
|
"use strict";
|
|
59265
60266
|
/*!
|
|
59266
60267
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59317,7 +60318,7 @@ __decorate([
|
|
|
59317
60318
|
], StarLoopEntryState.prototype, "stateType", null);
|
|
59318
60319
|
exports.StarLoopEntryState = StarLoopEntryState;
|
|
59319
60320
|
|
|
59320
|
-
},{"../Decorators":
|
|
60321
|
+
},{"../Decorators":254,"../misc/BitSet":361,"./ATNStateType":294,"./DecisionState":307}],347:[function(require,module,exports){
|
|
59321
60322
|
"use strict";
|
|
59322
60323
|
/*!
|
|
59323
60324
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59348,7 +60349,7 @@ __decorate([
|
|
|
59348
60349
|
], StarLoopbackState.prototype, "stateType", null);
|
|
59349
60350
|
exports.StarLoopbackState = StarLoopbackState;
|
|
59350
60351
|
|
|
59351
|
-
},{"../Decorators":
|
|
60352
|
+
},{"../Decorators":254,"./ATNState":293,"./ATNStateType":294}],348:[function(require,module,exports){
|
|
59352
60353
|
"use strict";
|
|
59353
60354
|
/*!
|
|
59354
60355
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59377,7 +60378,7 @@ __decorate([
|
|
|
59377
60378
|
], TokensStartState.prototype, "stateType", null);
|
|
59378
60379
|
exports.TokensStartState = TokensStartState;
|
|
59379
60380
|
|
|
59380
|
-
},{"../Decorators":
|
|
60381
|
+
},{"../Decorators":254,"./ATNStateType":294,"./DecisionState":307}],349:[function(require,module,exports){
|
|
59381
60382
|
"use strict";
|
|
59382
60383
|
/*!
|
|
59383
60384
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59451,7 +60452,7 @@ Transition = __decorate([
|
|
|
59451
60452
|
], Transition);
|
|
59452
60453
|
exports.Transition = Transition;
|
|
59453
60454
|
|
|
59454
|
-
},{"../Decorators":
|
|
60455
|
+
},{"../Decorators":254}],350:[function(require,module,exports){
|
|
59455
60456
|
"use strict";
|
|
59456
60457
|
/*!
|
|
59457
60458
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59499,7 +60500,7 @@ WildcardTransition = __decorate([
|
|
|
59499
60500
|
], WildcardTransition);
|
|
59500
60501
|
exports.WildcardTransition = WildcardTransition;
|
|
59501
60502
|
|
|
59502
|
-
},{"../Decorators":
|
|
60503
|
+
},{"../Decorators":254,"./Transition":349}],351:[function(require,module,exports){
|
|
59503
60504
|
"use strict";
|
|
59504
60505
|
/*!
|
|
59505
60506
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59541,7 +60542,7 @@ class AcceptStateInfo {
|
|
|
59541
60542
|
}
|
|
59542
60543
|
exports.AcceptStateInfo = AcceptStateInfo;
|
|
59543
60544
|
|
|
59544
|
-
},{}],
|
|
60545
|
+
},{}],352:[function(require,module,exports){
|
|
59545
60546
|
"use strict";
|
|
59546
60547
|
/*!
|
|
59547
60548
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59716,7 +60717,7 @@ DFA = __decorate([
|
|
|
59716
60717
|
], DFA);
|
|
59717
60718
|
exports.DFA = DFA;
|
|
59718
60719
|
|
|
59719
|
-
},{"../Decorators":
|
|
60720
|
+
},{"../Decorators":254,"../VocabularyImpl":285,"../atn/ATNConfigSet":289,"../atn/StarLoopEntryState":346,"../misc/Array2DHashSet":358,"../misc/ObjectEqualityComparator":370,"./DFASerializer":353,"./DFAState":354,"./LexerDFASerializer":355}],353:[function(require,module,exports){
|
|
59720
60721
|
"use strict";
|
|
59721
60722
|
/*!
|
|
59722
60723
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59858,7 +60859,7 @@ __decorate([
|
|
|
59858
60859
|
], DFASerializer.prototype, "toString", null);
|
|
59859
60860
|
exports.DFASerializer = DFASerializer;
|
|
59860
60861
|
|
|
59861
|
-
},{"../Decorators":
|
|
60862
|
+
},{"../Decorators":254,"../Recognizer":274,"../VocabularyImpl":285,"../atn/ATNSimulator":292,"../atn/PredictionContext":334}],354:[function(require,module,exports){
|
|
59862
60863
|
"use strict";
|
|
59863
60864
|
/*!
|
|
59864
60865
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60089,7 +61090,7 @@ exports.DFAState = DFAState;
|
|
|
60089
61090
|
DFAState.PredPrediction = PredPrediction;
|
|
60090
61091
|
})(DFAState = exports.DFAState || (exports.DFAState = {}));
|
|
60091
61092
|
|
|
60092
|
-
},{"../Decorators":
|
|
61093
|
+
},{"../Decorators":254,"../atn/ATN":287,"../atn/PredictionContext":334,"../misc/BitSet":361,"../misc/MurmurHash":369,"assert":397}],355:[function(require,module,exports){
|
|
60093
61094
|
"use strict";
|
|
60094
61095
|
/*!
|
|
60095
61096
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60126,7 +61127,7 @@ LexerDFASerializer = __decorate([
|
|
|
60126
61127
|
], LexerDFASerializer);
|
|
60127
61128
|
exports.LexerDFASerializer = LexerDFASerializer;
|
|
60128
61129
|
|
|
60129
|
-
},{"../Decorators":
|
|
61130
|
+
},{"../Decorators":254,"../VocabularyImpl":285,"./DFASerializer":353}],356:[function(require,module,exports){
|
|
60130
61131
|
"use strict";
|
|
60131
61132
|
/*!
|
|
60132
61133
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60192,7 +61193,7 @@ __exportStar(require("./Vocabulary"), exports);
|
|
|
60192
61193
|
__exportStar(require("./VocabularyImpl"), exports);
|
|
60193
61194
|
__exportStar(require("./WritableToken"), exports);
|
|
60194
61195
|
|
|
60195
|
-
},{"./ANTLRErrorListener":
|
|
61196
|
+
},{"./ANTLRErrorListener":241,"./ANTLRErrorStrategy":242,"./ANTLRInputStream":243,"./BailErrorStrategy":244,"./BufferedTokenStream":245,"./CharStream":246,"./CharStreams":247,"./CodePointBuffer":248,"./CodePointCharStream":249,"./CommonToken":250,"./CommonTokenFactory":251,"./CommonTokenStream":252,"./ConsoleErrorListener":253,"./DefaultErrorStrategy":255,"./Dependents":256,"./DiagnosticErrorListener":257,"./FailedPredicateException":258,"./InputMismatchException":259,"./IntStream":260,"./InterpreterRuleContext":261,"./Lexer":262,"./LexerInterpreter":263,"./LexerNoViableAltException":264,"./ListTokenSource":265,"./NoViableAltException":266,"./Parser":267,"./ParserErrorListener":268,"./ParserInterpreter":269,"./ParserRuleContext":270,"./ProxyErrorListener":271,"./ProxyParserErrorListener":272,"./RecognitionException":273,"./Recognizer":274,"./RuleContext":275,"./RuleContextWithAltNum":276,"./RuleDependency":277,"./RuleVersion":278,"./Token":279,"./TokenFactory":280,"./TokenSource":281,"./TokenStream":282,"./TokenStreamRewriter":283,"./Vocabulary":284,"./VocabularyImpl":285,"./WritableToken":286}],357:[function(require,module,exports){
|
|
60196
61197
|
"use strict";
|
|
60197
61198
|
/*!
|
|
60198
61199
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60275,7 +61276,7 @@ class Array2DHashMap {
|
|
|
60275
61276
|
}
|
|
60276
61277
|
exports.Array2DHashMap = Array2DHashMap;
|
|
60277
61278
|
|
|
60278
|
-
},{"./Array2DHashSet":
|
|
61279
|
+
},{"./Array2DHashSet":358}],358:[function(require,module,exports){
|
|
60279
61280
|
"use strict";
|
|
60280
61281
|
/*!
|
|
60281
61282
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60642,7 +61643,7 @@ __decorate([
|
|
|
60642
61643
|
], Array2DHashSet.prototype, "createBuckets", null);
|
|
60643
61644
|
exports.Array2DHashSet = Array2DHashSet;
|
|
60644
61645
|
|
|
60645
|
-
},{"../Decorators":
|
|
61646
|
+
},{"../Decorators":254,"./DefaultEqualityComparator":363,"./MurmurHash":369,"assert":397}],359:[function(require,module,exports){
|
|
60646
61647
|
"use strict";
|
|
60647
61648
|
/*!
|
|
60648
61649
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60714,7 +61715,7 @@ __decorate([
|
|
|
60714
61715
|
], ArrayEqualityComparator.prototype, "equals", null);
|
|
60715
61716
|
exports.ArrayEqualityComparator = ArrayEqualityComparator;
|
|
60716
61717
|
|
|
60717
|
-
},{"../Decorators":
|
|
61718
|
+
},{"../Decorators":254,"./MurmurHash":369,"./ObjectEqualityComparator":370}],360:[function(require,module,exports){
|
|
60718
61719
|
"use strict";
|
|
60719
61720
|
/*!
|
|
60720
61721
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60784,7 +61785,7 @@ var Arrays;
|
|
|
60784
61785
|
Arrays.toString = toString;
|
|
60785
61786
|
})(Arrays = exports.Arrays || (exports.Arrays = {}));
|
|
60786
61787
|
|
|
60787
|
-
},{}],
|
|
61788
|
+
},{}],361:[function(require,module,exports){
|
|
60788
61789
|
"use strict";
|
|
60789
61790
|
/*!
|
|
60790
61791
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61456,7 +62457,7 @@ class BitSetIterator {
|
|
|
61456
62457
|
[Symbol.iterator]() { return this; }
|
|
61457
62458
|
}
|
|
61458
62459
|
|
|
61459
|
-
},{"./MurmurHash":
|
|
62460
|
+
},{"./MurmurHash":369,"util":461}],362:[function(require,module,exports){
|
|
61460
62461
|
"use strict";
|
|
61461
62462
|
/*!
|
|
61462
62463
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61477,7 +62478,7 @@ function isSupplementaryCodePoint(ch) {
|
|
|
61477
62478
|
}
|
|
61478
62479
|
exports.isSupplementaryCodePoint = isSupplementaryCodePoint;
|
|
61479
62480
|
|
|
61480
|
-
},{}],
|
|
62481
|
+
},{}],363:[function(require,module,exports){
|
|
61481
62482
|
"use strict";
|
|
61482
62483
|
/*!
|
|
61483
62484
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61548,7 +62549,7 @@ __decorate([
|
|
|
61548
62549
|
], DefaultEqualityComparator.prototype, "equals", null);
|
|
61549
62550
|
exports.DefaultEqualityComparator = DefaultEqualityComparator;
|
|
61550
62551
|
|
|
61551
|
-
},{"../Decorators":
|
|
62552
|
+
},{"../Decorators":254,"./MurmurHash":369,"./ObjectEqualityComparator":370}],364:[function(require,module,exports){
|
|
61552
62553
|
"use strict";
|
|
61553
62554
|
/*!
|
|
61554
62555
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61842,7 +62843,7 @@ __decorate([
|
|
|
61842
62843
|
], IntegerList.prototype, "toString", null);
|
|
61843
62844
|
exports.IntegerList = IntegerList;
|
|
61844
62845
|
|
|
61845
|
-
},{"../Decorators":
|
|
62846
|
+
},{"../Decorators":254,"./Arrays":360}],365:[function(require,module,exports){
|
|
61846
62847
|
"use strict";
|
|
61847
62848
|
/*!
|
|
61848
62849
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -61872,7 +62873,7 @@ class IntegerStack extends IntegerList_1.IntegerList {
|
|
|
61872
62873
|
}
|
|
61873
62874
|
exports.IntegerStack = IntegerStack;
|
|
61874
62875
|
|
|
61875
|
-
},{"./IntegerList":
|
|
62876
|
+
},{"./IntegerList":364}],366:[function(require,module,exports){
|
|
61876
62877
|
"use strict";
|
|
61877
62878
|
/*!
|
|
61878
62879
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62015,7 +63016,7 @@ __decorate([
|
|
|
62015
63016
|
], Interval.prototype, "toString", null);
|
|
62016
63017
|
exports.Interval = Interval;
|
|
62017
63018
|
|
|
62018
|
-
},{"../Decorators":
|
|
63019
|
+
},{"../Decorators":254}],367:[function(require,module,exports){
|
|
62019
63020
|
"use strict";
|
|
62020
63021
|
/*!
|
|
62021
63022
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62661,7 +63662,7 @@ __decorate([
|
|
|
62661
63662
|
], IntervalSet, "subtract", null);
|
|
62662
63663
|
exports.IntervalSet = IntervalSet;
|
|
62663
63664
|
|
|
62664
|
-
},{"../Decorators":
|
|
63665
|
+
},{"../Decorators":254,"../Lexer":262,"../Token":279,"./ArrayEqualityComparator":359,"./IntegerList":364,"./Interval":366,"./MurmurHash":369}],368:[function(require,module,exports){
|
|
62665
63666
|
"use strict";
|
|
62666
63667
|
/*!
|
|
62667
63668
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62694,7 +63695,7 @@ class MultiMap extends Map {
|
|
|
62694
63695
|
}
|
|
62695
63696
|
exports.MultiMap = MultiMap;
|
|
62696
63697
|
|
|
62697
|
-
},{}],
|
|
63698
|
+
},{}],369:[function(require,module,exports){
|
|
62698
63699
|
"use strict";
|
|
62699
63700
|
/*!
|
|
62700
63701
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62809,7 +63810,7 @@ var MurmurHash;
|
|
|
62809
63810
|
}
|
|
62810
63811
|
})(MurmurHash = exports.MurmurHash || (exports.MurmurHash = {}));
|
|
62811
63812
|
|
|
62812
|
-
},{}],
|
|
63813
|
+
},{}],370:[function(require,module,exports){
|
|
62813
63814
|
"use strict";
|
|
62814
63815
|
/*!
|
|
62815
63816
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62868,7 +63869,7 @@ __decorate([
|
|
|
62868
63869
|
], ObjectEqualityComparator.prototype, "equals", null);
|
|
62869
63870
|
exports.ObjectEqualityComparator = ObjectEqualityComparator;
|
|
62870
63871
|
|
|
62871
|
-
},{"../Decorators":
|
|
63872
|
+
},{"../Decorators":254}],371:[function(require,module,exports){
|
|
62872
63873
|
"use strict";
|
|
62873
63874
|
/*!
|
|
62874
63875
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62897,7 +63898,7 @@ class ParseCancellationException extends Error {
|
|
|
62897
63898
|
}
|
|
62898
63899
|
exports.ParseCancellationException = ParseCancellationException;
|
|
62899
63900
|
|
|
62900
|
-
},{}],
|
|
63901
|
+
},{}],372:[function(require,module,exports){
|
|
62901
63902
|
"use strict";
|
|
62902
63903
|
/*!
|
|
62903
63904
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -62951,7 +63952,7 @@ class UUID {
|
|
|
62951
63952
|
}
|
|
62952
63953
|
exports.UUID = UUID;
|
|
62953
63954
|
|
|
62954
|
-
},{"./MurmurHash":
|
|
63955
|
+
},{"./MurmurHash":369}],373:[function(require,module,exports){
|
|
62955
63956
|
"use strict";
|
|
62956
63957
|
/*!
|
|
62957
63958
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63126,7 +64127,7 @@ exports.toCharArray = toCharArray;
|
|
|
63126
64127
|
// return s;
|
|
63127
64128
|
// }
|
|
63128
64129
|
|
|
63129
|
-
},{}],
|
|
64130
|
+
},{}],374:[function(require,module,exports){
|
|
63130
64131
|
"use strict";
|
|
63131
64132
|
/*!
|
|
63132
64133
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63162,7 +64163,7 @@ __decorate([
|
|
|
63162
64163
|
], ErrorNode.prototype, "accept", null);
|
|
63163
64164
|
exports.ErrorNode = ErrorNode;
|
|
63164
64165
|
|
|
63165
|
-
},{"../Decorators":
|
|
64166
|
+
},{"../Decorators":254,"./TerminalNode":377}],375:[function(require,module,exports){
|
|
63166
64167
|
"use strict";
|
|
63167
64168
|
/*!
|
|
63168
64169
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63267,7 +64268,7 @@ exports.ParseTreeWalker = ParseTreeWalker;
|
|
|
63267
64268
|
ParseTreeWalker.DEFAULT = new ParseTreeWalker();
|
|
63268
64269
|
})(ParseTreeWalker = exports.ParseTreeWalker || (exports.ParseTreeWalker = {}));
|
|
63269
64270
|
|
|
63270
|
-
},{"./ErrorNode":
|
|
64271
|
+
},{"./ErrorNode":374,"./RuleNode":376,"./TerminalNode":377}],376:[function(require,module,exports){
|
|
63271
64272
|
"use strict";
|
|
63272
64273
|
/*!
|
|
63273
64274
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63279,7 +64280,7 @@ class RuleNode {
|
|
|
63279
64280
|
}
|
|
63280
64281
|
exports.RuleNode = RuleNode;
|
|
63281
64282
|
|
|
63282
|
-
},{}],
|
|
64283
|
+
},{}],377:[function(require,module,exports){
|
|
63283
64284
|
"use strict";
|
|
63284
64285
|
/*!
|
|
63285
64286
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63371,7 +64372,7 @@ __decorate([
|
|
|
63371
64372
|
], TerminalNode.prototype, "toString", null);
|
|
63372
64373
|
exports.TerminalNode = TerminalNode;
|
|
63373
64374
|
|
|
63374
|
-
},{"../Decorators":
|
|
64375
|
+
},{"../Decorators":254,"../Token":279,"../misc/Interval":366}],378:[function(require,module,exports){
|
|
63375
64376
|
"use strict";
|
|
63376
64377
|
/*!
|
|
63377
64378
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63615,7 +64616,7 @@ __decorate([
|
|
|
63615
64616
|
], Trees, "getRootOfSubtreeEnclosingRegion", null);
|
|
63616
64617
|
exports.Trees = Trees;
|
|
63617
64618
|
|
|
63618
|
-
},{"../CommonToken":
|
|
64619
|
+
},{"../CommonToken":250,"../Decorators":254,"../Parser":267,"../ParserRuleContext":270,"../Token":279,"../atn/ATN":287,"../misc/Utils":373,"./ErrorNode":374,"./RuleNode":376,"./TerminalNode":377}],379:[function(require,module,exports){
|
|
63619
64620
|
"use strict";
|
|
63620
64621
|
/*!
|
|
63621
64622
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63639,7 +64640,7 @@ class Chunk {
|
|
|
63639
64640
|
}
|
|
63640
64641
|
exports.Chunk = Chunk;
|
|
63641
64642
|
|
|
63642
|
-
},{}],
|
|
64643
|
+
},{}],380:[function(require,module,exports){
|
|
63643
64644
|
"use strict";
|
|
63644
64645
|
/*!
|
|
63645
64646
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63819,7 +64820,7 @@ ParseTreeMatch = __decorate([
|
|
|
63819
64820
|
], ParseTreeMatch);
|
|
63820
64821
|
exports.ParseTreeMatch = ParseTreeMatch;
|
|
63821
64822
|
|
|
63822
|
-
},{"../../Decorators":
|
|
64823
|
+
},{"../../Decorators":254}],381:[function(require,module,exports){
|
|
63823
64824
|
"use strict";
|
|
63824
64825
|
/*!
|
|
63825
64826
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -63977,7 +64978,7 @@ ParseTreePattern = __decorate([
|
|
|
63977
64978
|
], ParseTreePattern);
|
|
63978
64979
|
exports.ParseTreePattern = ParseTreePattern;
|
|
63979
64980
|
|
|
63980
|
-
},{"../../Decorators":
|
|
64981
|
+
},{"../../Decorators":254,"../xpath/XPath":387}],382:[function(require,module,exports){
|
|
63981
64982
|
"use strict";
|
|
63982
64983
|
/*!
|
|
63983
64984
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -64455,7 +65456,7 @@ exports.ParseTreePatternMatcher = ParseTreePatternMatcher;
|
|
|
64455
65456
|
ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern = StartRuleDoesNotConsumeFullPattern;
|
|
64456
65457
|
})(ParseTreePatternMatcher = exports.ParseTreePatternMatcher || (exports.ParseTreePatternMatcher = {}));
|
|
64457
65458
|
|
|
64458
|
-
},{"../../BailErrorStrategy":
|
|
65459
|
+
},{"../../BailErrorStrategy":244,"../../CharStreams":247,"../../CommonTokenStream":252,"../../Decorators":254,"../../ListTokenSource":265,"../../ParserInterpreter":269,"../../ParserRuleContext":270,"../../RecognitionException":273,"../../Token":279,"../../misc/MultiMap":368,"../../misc/ParseCancellationException":371,"../RuleNode":376,"../TerminalNode":377,"./ParseTreeMatch":380,"./ParseTreePattern":381,"./RuleTagToken":383,"./TagChunk":384,"./TextChunk":385,"./TokenTagToken":386}],383:[function(require,module,exports){
|
|
64459
65460
|
"use strict";
|
|
64460
65461
|
/*!
|
|
64461
65462
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -64653,7 +65654,7 @@ RuleTagToken = __decorate([
|
|
|
64653
65654
|
], RuleTagToken);
|
|
64654
65655
|
exports.RuleTagToken = RuleTagToken;
|
|
64655
65656
|
|
|
64656
|
-
},{"../../Decorators":
|
|
65657
|
+
},{"../../Decorators":254,"../../Token":279}],384:[function(require,module,exports){
|
|
64657
65658
|
"use strict";
|
|
64658
65659
|
/*!
|
|
64659
65660
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -64740,7 +65741,7 @@ __decorate([
|
|
|
64740
65741
|
], TagChunk.prototype, "toString", null);
|
|
64741
65742
|
exports.TagChunk = TagChunk;
|
|
64742
65743
|
|
|
64743
|
-
},{"../../Decorators":
|
|
65744
|
+
},{"../../Decorators":254,"./Chunk":379}],385:[function(require,module,exports){
|
|
64744
65745
|
"use strict";
|
|
64745
65746
|
/*!
|
|
64746
65747
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -64810,7 +65811,7 @@ TextChunk = __decorate([
|
|
|
64810
65811
|
], TextChunk);
|
|
64811
65812
|
exports.TextChunk = TextChunk;
|
|
64812
65813
|
|
|
64813
|
-
},{"../../Decorators":
|
|
65814
|
+
},{"../../Decorators":254,"./Chunk":379}],386:[function(require,module,exports){
|
|
64814
65815
|
"use strict";
|
|
64815
65816
|
/*!
|
|
64816
65817
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -64905,7 +65906,7 @@ TokenTagToken = __decorate([
|
|
|
64905
65906
|
], TokenTagToken);
|
|
64906
65907
|
exports.TokenTagToken = TokenTagToken;
|
|
64907
65908
|
|
|
64908
|
-
},{"../../CommonToken":
|
|
65909
|
+
},{"../../CommonToken":250,"../../Decorators":254}],387:[function(require,module,exports){
|
|
64909
65910
|
"use strict";
|
|
64910
65911
|
/*!
|
|
64911
65912
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65102,7 +66103,7 @@ exports.XPath = XPath;
|
|
|
65102
66103
|
XPath.WILDCARD = "*"; // word not operator/separator
|
|
65103
66104
|
XPath.NOT = "!"; // word for invert operator
|
|
65104
66105
|
|
|
65105
|
-
},{"../../CharStreams":
|
|
66106
|
+
},{"../../CharStreams":247,"../../CommonTokenStream":252,"../../LexerNoViableAltException":264,"../../ParserRuleContext":270,"../../Token":279,"./XPathLexer":389,"./XPathLexerErrorListener":390,"./XPathRuleAnywhereElement":391,"./XPathRuleElement":392,"./XPathTokenAnywhereElement":393,"./XPathTokenElement":394,"./XPathWildcardAnywhereElement":395,"./XPathWildcardElement":396}],388:[function(require,module,exports){
|
|
65106
66107
|
"use strict";
|
|
65107
66108
|
/*!
|
|
65108
66109
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65137,7 +66138,7 @@ __decorate([
|
|
|
65137
66138
|
], XPathElement.prototype, "toString", null);
|
|
65138
66139
|
exports.XPathElement = XPathElement;
|
|
65139
66140
|
|
|
65140
|
-
},{"../../Decorators":
|
|
66141
|
+
},{"../../Decorators":254}],389:[function(require,module,exports){
|
|
65141
66142
|
"use strict";
|
|
65142
66143
|
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
65143
66144
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -65612,7 +66613,7 @@ XPathLexer._serializedATN = Utils.join([
|
|
|
65612
66613
|
XPathLexer._serializedATNSegment1,
|
|
65613
66614
|
], "");
|
|
65614
66615
|
|
|
65615
|
-
},{"../../Lexer":
|
|
66616
|
+
},{"../../Lexer":262,"../../VocabularyImpl":285,"../../atn/ATNDeserializer":291,"../../atn/LexerATNSimulator":312,"../../misc/Utils":373}],390:[function(require,module,exports){
|
|
65616
66617
|
"use strict";
|
|
65617
66618
|
/*!
|
|
65618
66619
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65637,7 +66638,7 @@ __decorate([
|
|
|
65637
66638
|
], XPathLexerErrorListener.prototype, "syntaxError", null);
|
|
65638
66639
|
exports.XPathLexerErrorListener = XPathLexerErrorListener;
|
|
65639
66640
|
|
|
65640
|
-
},{"../../Decorators":
|
|
66641
|
+
},{"../../Decorators":254}],391:[function(require,module,exports){
|
|
65641
66642
|
"use strict";
|
|
65642
66643
|
/*!
|
|
65643
66644
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65671,7 +66672,7 @@ __decorate([
|
|
|
65671
66672
|
], XPathRuleAnywhereElement.prototype, "evaluate", null);
|
|
65672
66673
|
exports.XPathRuleAnywhereElement = XPathRuleAnywhereElement;
|
|
65673
66674
|
|
|
65674
|
-
},{"../../Decorators":
|
|
66675
|
+
},{"../../Decorators":254,"../Trees":378,"./XPathElement":388}],392:[function(require,module,exports){
|
|
65675
66676
|
"use strict";
|
|
65676
66677
|
/*!
|
|
65677
66678
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65714,7 +66715,7 @@ __decorate([
|
|
|
65714
66715
|
], XPathRuleElement.prototype, "evaluate", null);
|
|
65715
66716
|
exports.XPathRuleElement = XPathRuleElement;
|
|
65716
66717
|
|
|
65717
|
-
},{"../../Decorators":
|
|
66718
|
+
},{"../../Decorators":254,"../../ParserRuleContext":270,"../Trees":378,"./XPathElement":388}],393:[function(require,module,exports){
|
|
65718
66719
|
"use strict";
|
|
65719
66720
|
/*!
|
|
65720
66721
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65746,7 +66747,7 @@ __decorate([
|
|
|
65746
66747
|
], XPathTokenAnywhereElement.prototype, "evaluate", null);
|
|
65747
66748
|
exports.XPathTokenAnywhereElement = XPathTokenAnywhereElement;
|
|
65748
66749
|
|
|
65749
|
-
},{"../../Decorators":
|
|
66750
|
+
},{"../../Decorators":254,"../Trees":378,"./XPathElement":388}],394:[function(require,module,exports){
|
|
65750
66751
|
"use strict";
|
|
65751
66752
|
/*!
|
|
65752
66753
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65789,7 +66790,7 @@ __decorate([
|
|
|
65789
66790
|
], XPathTokenElement.prototype, "evaluate", null);
|
|
65790
66791
|
exports.XPathTokenElement = XPathTokenElement;
|
|
65791
66792
|
|
|
65792
|
-
},{"../../Decorators":
|
|
66793
|
+
},{"../../Decorators":254,"../TerminalNode":377,"../Trees":378,"./XPathElement":388}],395:[function(require,module,exports){
|
|
65793
66794
|
"use strict";
|
|
65794
66795
|
/*!
|
|
65795
66796
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65825,7 +66826,7 @@ __decorate([
|
|
|
65825
66826
|
], XPathWildcardAnywhereElement.prototype, "evaluate", null);
|
|
65826
66827
|
exports.XPathWildcardAnywhereElement = XPathWildcardAnywhereElement;
|
|
65827
66828
|
|
|
65828
|
-
},{"../../Decorators":
|
|
66829
|
+
},{"../../Decorators":254,"../Trees":378,"./XPath":387,"./XPathElement":388}],396:[function(require,module,exports){
|
|
65829
66830
|
"use strict";
|
|
65830
66831
|
/*!
|
|
65831
66832
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -65865,7 +66866,7 @@ __decorate([
|
|
|
65865
66866
|
], XPathWildcardElement.prototype, "evaluate", null);
|
|
65866
66867
|
exports.XPathWildcardElement = XPathWildcardElement;
|
|
65867
66868
|
|
|
65868
|
-
},{"../../Decorators":
|
|
66869
|
+
},{"../../Decorators":254,"../Trees":378,"./XPath":387,"./XPathElement":388}],397:[function(require,module,exports){
|
|
65869
66870
|
(function (global){(function (){
|
|
65870
66871
|
'use strict';
|
|
65871
66872
|
|
|
@@ -66375,7 +67376,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
66375
67376
|
};
|
|
66376
67377
|
|
|
66377
67378
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
66378
|
-
},{"object.assign/polyfill":
|
|
67379
|
+
},{"object.assign/polyfill":454,"util/":400}],398:[function(require,module,exports){
|
|
66379
67380
|
if (typeof Object.create === 'function') {
|
|
66380
67381
|
// implementation from standard node.js 'util' module
|
|
66381
67382
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -66400,14 +67401,14 @@ if (typeof Object.create === 'function') {
|
|
|
66400
67401
|
}
|
|
66401
67402
|
}
|
|
66402
67403
|
|
|
66403
|
-
},{}],
|
|
67404
|
+
},{}],399:[function(require,module,exports){
|
|
66404
67405
|
module.exports = function isBuffer(arg) {
|
|
66405
67406
|
return arg && typeof arg === 'object'
|
|
66406
67407
|
&& typeof arg.copy === 'function'
|
|
66407
67408
|
&& typeof arg.fill === 'function'
|
|
66408
67409
|
&& typeof arg.readUInt8 === 'function';
|
|
66409
67410
|
}
|
|
66410
|
-
},{}],
|
|
67411
|
+
},{}],400:[function(require,module,exports){
|
|
66411
67412
|
(function (process,global){(function (){
|
|
66412
67413
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
66413
67414
|
//
|
|
@@ -66997,7 +67998,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
66997
67998
|
}
|
|
66998
67999
|
|
|
66999
68000
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
67000
|
-
},{"./support/isBuffer":
|
|
68001
|
+
},{"./support/isBuffer":399,"_process":456,"inherits":398}],401:[function(require,module,exports){
|
|
67001
68002
|
(function (global){(function (){
|
|
67002
68003
|
'use strict';
|
|
67003
68004
|
|
|
@@ -67018,7 +68019,7 @@ module.exports = function availableTypedArrays() {
|
|
|
67018
68019
|
};
|
|
67019
68020
|
|
|
67020
68021
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
67021
|
-
},{"possible-typed-array-names":
|
|
68022
|
+
},{"possible-typed-array-names":455}],402:[function(require,module,exports){
|
|
67022
68023
|
(function (process,global){(function (){
|
|
67023
68024
|
module.exports = process.hrtime || hrtime
|
|
67024
68025
|
|
|
@@ -67049,7 +68050,7 @@ function hrtime(previousTimestamp){
|
|
|
67049
68050
|
return [seconds,nanoseconds]
|
|
67050
68051
|
}
|
|
67051
68052
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
67052
|
-
},{"_process":
|
|
68053
|
+
},{"_process":456}],403:[function(require,module,exports){
|
|
67053
68054
|
'use strict';
|
|
67054
68055
|
|
|
67055
68056
|
var bind = require('function-bind');
|
|
@@ -67061,7 +68062,7 @@ var $reflectApply = require('./reflectApply');
|
|
|
67061
68062
|
/** @type {import('./actualApply')} */
|
|
67062
68063
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
67063
68064
|
|
|
67064
|
-
},{"./functionApply":
|
|
68065
|
+
},{"./functionApply":405,"./functionCall":406,"./reflectApply":408,"function-bind":424}],404:[function(require,module,exports){
|
|
67065
68066
|
'use strict';
|
|
67066
68067
|
|
|
67067
68068
|
var bind = require('function-bind');
|
|
@@ -67073,19 +68074,19 @@ module.exports = function applyBind() {
|
|
|
67073
68074
|
return actualApply(bind, $apply, arguments);
|
|
67074
68075
|
};
|
|
67075
68076
|
|
|
67076
|
-
},{"./actualApply":
|
|
68077
|
+
},{"./actualApply":403,"./functionApply":405,"function-bind":424}],405:[function(require,module,exports){
|
|
67077
68078
|
'use strict';
|
|
67078
68079
|
|
|
67079
68080
|
/** @type {import('./functionApply')} */
|
|
67080
68081
|
module.exports = Function.prototype.apply;
|
|
67081
68082
|
|
|
67082
|
-
},{}],
|
|
68083
|
+
},{}],406:[function(require,module,exports){
|
|
67083
68084
|
'use strict';
|
|
67084
68085
|
|
|
67085
68086
|
/** @type {import('./functionCall')} */
|
|
67086
68087
|
module.exports = Function.prototype.call;
|
|
67087
68088
|
|
|
67088
|
-
},{}],
|
|
68089
|
+
},{}],407:[function(require,module,exports){
|
|
67089
68090
|
'use strict';
|
|
67090
68091
|
|
|
67091
68092
|
var bind = require('function-bind');
|
|
@@ -67102,13 +68103,13 @@ module.exports = function callBindBasic(args) {
|
|
|
67102
68103
|
return $actualApply(bind, $call, args);
|
|
67103
68104
|
};
|
|
67104
68105
|
|
|
67105
|
-
},{"./actualApply":
|
|
68106
|
+
},{"./actualApply":403,"./functionCall":406,"es-errors/type":419,"function-bind":424}],408:[function(require,module,exports){
|
|
67106
68107
|
'use strict';
|
|
67107
68108
|
|
|
67108
68109
|
/** @type {import('./reflectApply')} */
|
|
67109
68110
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
67110
68111
|
|
|
67111
|
-
},{}],
|
|
68112
|
+
},{}],409:[function(require,module,exports){
|
|
67112
68113
|
'use strict';
|
|
67113
68114
|
|
|
67114
68115
|
var setFunctionLength = require('set-function-length');
|
|
@@ -67134,7 +68135,7 @@ if ($defineProperty) {
|
|
|
67134
68135
|
module.exports.apply = applyBind;
|
|
67135
68136
|
}
|
|
67136
68137
|
|
|
67137
|
-
},{"call-bind-apply-helpers":
|
|
68138
|
+
},{"call-bind-apply-helpers":407,"call-bind-apply-helpers/applyBind":404,"es-define-property":413,"set-function-length":458}],410:[function(require,module,exports){
|
|
67138
68139
|
'use strict';
|
|
67139
68140
|
|
|
67140
68141
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -67155,7 +68156,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
67155
68156
|
return intrinsic;
|
|
67156
68157
|
};
|
|
67157
68158
|
|
|
67158
|
-
},{"call-bind-apply-helpers":
|
|
68159
|
+
},{"call-bind-apply-helpers":407,"get-intrinsic":425}],411:[function(require,module,exports){
|
|
67159
68160
|
'use strict';
|
|
67160
68161
|
|
|
67161
68162
|
var $defineProperty = require('es-define-property');
|
|
@@ -67213,7 +68214,7 @@ module.exports = function defineDataProperty(
|
|
|
67213
68214
|
}
|
|
67214
68215
|
};
|
|
67215
68216
|
|
|
67216
|
-
},{"es-define-property":
|
|
68217
|
+
},{"es-define-property":413,"es-errors/syntax":418,"es-errors/type":419,"gopd":430}],412:[function(require,module,exports){
|
|
67217
68218
|
'use strict';
|
|
67218
68219
|
|
|
67219
68220
|
var callBind = require('call-bind-apply-helpers');
|
|
@@ -67245,7 +68246,7 @@ module.exports = desc && typeof desc.get === 'function'
|
|
|
67245
68246
|
}
|
|
67246
68247
|
: false;
|
|
67247
68248
|
|
|
67248
|
-
},{"call-bind-apply-helpers":
|
|
68249
|
+
},{"call-bind-apply-helpers":407,"gopd":430}],413:[function(require,module,exports){
|
|
67249
68250
|
'use strict';
|
|
67250
68251
|
|
|
67251
68252
|
/** @type {import('.')} */
|
|
@@ -67261,55 +68262,55 @@ if ($defineProperty) {
|
|
|
67261
68262
|
|
|
67262
68263
|
module.exports = $defineProperty;
|
|
67263
68264
|
|
|
67264
|
-
},{}],
|
|
68265
|
+
},{}],414:[function(require,module,exports){
|
|
67265
68266
|
'use strict';
|
|
67266
68267
|
|
|
67267
68268
|
/** @type {import('./eval')} */
|
|
67268
68269
|
module.exports = EvalError;
|
|
67269
68270
|
|
|
67270
|
-
},{}],
|
|
68271
|
+
},{}],415:[function(require,module,exports){
|
|
67271
68272
|
'use strict';
|
|
67272
68273
|
|
|
67273
68274
|
/** @type {import('.')} */
|
|
67274
68275
|
module.exports = Error;
|
|
67275
68276
|
|
|
67276
|
-
},{}],
|
|
68277
|
+
},{}],416:[function(require,module,exports){
|
|
67277
68278
|
'use strict';
|
|
67278
68279
|
|
|
67279
68280
|
/** @type {import('./range')} */
|
|
67280
68281
|
module.exports = RangeError;
|
|
67281
68282
|
|
|
67282
|
-
},{}],
|
|
68283
|
+
},{}],417:[function(require,module,exports){
|
|
67283
68284
|
'use strict';
|
|
67284
68285
|
|
|
67285
68286
|
/** @type {import('./ref')} */
|
|
67286
68287
|
module.exports = ReferenceError;
|
|
67287
68288
|
|
|
67288
|
-
},{}],
|
|
68289
|
+
},{}],418:[function(require,module,exports){
|
|
67289
68290
|
'use strict';
|
|
67290
68291
|
|
|
67291
68292
|
/** @type {import('./syntax')} */
|
|
67292
68293
|
module.exports = SyntaxError;
|
|
67293
68294
|
|
|
67294
|
-
},{}],
|
|
68295
|
+
},{}],419:[function(require,module,exports){
|
|
67295
68296
|
'use strict';
|
|
67296
68297
|
|
|
67297
68298
|
/** @type {import('./type')} */
|
|
67298
68299
|
module.exports = TypeError;
|
|
67299
68300
|
|
|
67300
|
-
},{}],
|
|
68301
|
+
},{}],420:[function(require,module,exports){
|
|
67301
68302
|
'use strict';
|
|
67302
68303
|
|
|
67303
68304
|
/** @type {import('./uri')} */
|
|
67304
68305
|
module.exports = URIError;
|
|
67305
68306
|
|
|
67306
|
-
},{}],
|
|
68307
|
+
},{}],421:[function(require,module,exports){
|
|
67307
68308
|
'use strict';
|
|
67308
68309
|
|
|
67309
68310
|
/** @type {import('.')} */
|
|
67310
68311
|
module.exports = Object;
|
|
67311
68312
|
|
|
67312
|
-
},{}],
|
|
68313
|
+
},{}],422:[function(require,module,exports){
|
|
67313
68314
|
'use strict';
|
|
67314
68315
|
|
|
67315
68316
|
var isCallable = require('is-callable');
|
|
@@ -67380,7 +68381,7 @@ module.exports = function forEach(list, iterator, thisArg) {
|
|
|
67380
68381
|
}
|
|
67381
68382
|
};
|
|
67382
68383
|
|
|
67383
|
-
},{"is-callable":
|
|
68384
|
+
},{"is-callable":438}],423:[function(require,module,exports){
|
|
67384
68385
|
'use strict';
|
|
67385
68386
|
|
|
67386
68387
|
/* eslint no-invalid-this: 1 */
|
|
@@ -67466,14 +68467,14 @@ module.exports = function bind(that) {
|
|
|
67466
68467
|
return bound;
|
|
67467
68468
|
};
|
|
67468
68469
|
|
|
67469
|
-
},{}],
|
|
68470
|
+
},{}],424:[function(require,module,exports){
|
|
67470
68471
|
'use strict';
|
|
67471
68472
|
|
|
67472
68473
|
var implementation = require('./implementation');
|
|
67473
68474
|
|
|
67474
68475
|
module.exports = Function.prototype.bind || implementation;
|
|
67475
68476
|
|
|
67476
|
-
},{"./implementation":
|
|
68477
|
+
},{"./implementation":423}],425:[function(require,module,exports){
|
|
67477
68478
|
'use strict';
|
|
67478
68479
|
|
|
67479
68480
|
var undefined;
|
|
@@ -67853,7 +68854,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
67853
68854
|
return value;
|
|
67854
68855
|
};
|
|
67855
68856
|
|
|
67856
|
-
},{"call-bind-apply-helpers/functionApply":
|
|
68857
|
+
},{"call-bind-apply-helpers/functionApply":405,"call-bind-apply-helpers/functionCall":406,"es-define-property":413,"es-errors":415,"es-errors/eval":414,"es-errors/range":416,"es-errors/ref":417,"es-errors/syntax":418,"es-errors/type":419,"es-errors/uri":420,"es-object-atoms":421,"function-bind":424,"get-proto":428,"get-proto/Object.getPrototypeOf":426,"get-proto/Reflect.getPrototypeOf":427,"gopd":430,"has-symbols":432,"hasown":435,"math-intrinsics/abs":442,"math-intrinsics/floor":443,"math-intrinsics/max":445,"math-intrinsics/min":446,"math-intrinsics/pow":447,"math-intrinsics/round":448,"math-intrinsics/sign":449}],426:[function(require,module,exports){
|
|
67857
68858
|
'use strict';
|
|
67858
68859
|
|
|
67859
68860
|
var $Object = require('es-object-atoms');
|
|
@@ -67861,13 +68862,13 @@ var $Object = require('es-object-atoms');
|
|
|
67861
68862
|
/** @type {import('./Object.getPrototypeOf')} */
|
|
67862
68863
|
module.exports = $Object.getPrototypeOf || null;
|
|
67863
68864
|
|
|
67864
|
-
},{"es-object-atoms":
|
|
68865
|
+
},{"es-object-atoms":421}],427:[function(require,module,exports){
|
|
67865
68866
|
'use strict';
|
|
67866
68867
|
|
|
67867
68868
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
67868
68869
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
67869
68870
|
|
|
67870
|
-
},{}],
|
|
68871
|
+
},{}],428:[function(require,module,exports){
|
|
67871
68872
|
'use strict';
|
|
67872
68873
|
|
|
67873
68874
|
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
@@ -67896,13 +68897,13 @@ module.exports = reflectGetProto
|
|
|
67896
68897
|
}
|
|
67897
68898
|
: null;
|
|
67898
68899
|
|
|
67899
|
-
},{"./Object.getPrototypeOf":
|
|
68900
|
+
},{"./Object.getPrototypeOf":426,"./Reflect.getPrototypeOf":427,"dunder-proto/get":412}],429:[function(require,module,exports){
|
|
67900
68901
|
'use strict';
|
|
67901
68902
|
|
|
67902
68903
|
/** @type {import('./gOPD')} */
|
|
67903
68904
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
67904
68905
|
|
|
67905
|
-
},{}],
|
|
68906
|
+
},{}],430:[function(require,module,exports){
|
|
67906
68907
|
'use strict';
|
|
67907
68908
|
|
|
67908
68909
|
/** @type {import('.')} */
|
|
@@ -67919,7 +68920,7 @@ if ($gOPD) {
|
|
|
67919
68920
|
|
|
67920
68921
|
module.exports = $gOPD;
|
|
67921
68922
|
|
|
67922
|
-
},{"./gOPD":
|
|
68923
|
+
},{"./gOPD":429}],431:[function(require,module,exports){
|
|
67923
68924
|
'use strict';
|
|
67924
68925
|
|
|
67925
68926
|
var $defineProperty = require('es-define-property');
|
|
@@ -67943,7 +68944,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
67943
68944
|
|
|
67944
68945
|
module.exports = hasPropertyDescriptors;
|
|
67945
68946
|
|
|
67946
|
-
},{"es-define-property":
|
|
68947
|
+
},{"es-define-property":413}],432:[function(require,module,exports){
|
|
67947
68948
|
'use strict';
|
|
67948
68949
|
|
|
67949
68950
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -67959,7 +68960,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
67959
68960
|
return hasSymbolSham();
|
|
67960
68961
|
};
|
|
67961
68962
|
|
|
67962
|
-
},{"./shams":
|
|
68963
|
+
},{"./shams":433}],433:[function(require,module,exports){
|
|
67963
68964
|
'use strict';
|
|
67964
68965
|
|
|
67965
68966
|
/** @type {import('./shams')} */
|
|
@@ -68006,7 +69007,7 @@ module.exports = function hasSymbols() {
|
|
|
68006
69007
|
return true;
|
|
68007
69008
|
};
|
|
68008
69009
|
|
|
68009
|
-
},{}],
|
|
69010
|
+
},{}],434:[function(require,module,exports){
|
|
68010
69011
|
'use strict';
|
|
68011
69012
|
|
|
68012
69013
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -68016,7 +69017,7 @@ module.exports = function hasToStringTagShams() {
|
|
|
68016
69017
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
68017
69018
|
};
|
|
68018
69019
|
|
|
68019
|
-
},{"has-symbols/shams":
|
|
69020
|
+
},{"has-symbols/shams":433}],435:[function(require,module,exports){
|
|
68020
69021
|
'use strict';
|
|
68021
69022
|
|
|
68022
69023
|
var call = Function.prototype.call;
|
|
@@ -68026,7 +69027,7 @@ var bind = require('function-bind');
|
|
|
68026
69027
|
/** @type {import('.')} */
|
|
68027
69028
|
module.exports = bind.call(call, $hasOwn);
|
|
68028
69029
|
|
|
68029
|
-
},{"function-bind":
|
|
69030
|
+
},{"function-bind":424}],436:[function(require,module,exports){
|
|
68030
69031
|
if (typeof Object.create === 'function') {
|
|
68031
69032
|
// implementation from standard node.js 'util' module
|
|
68032
69033
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -68055,7 +69056,7 @@ if (typeof Object.create === 'function') {
|
|
|
68055
69056
|
}
|
|
68056
69057
|
}
|
|
68057
69058
|
|
|
68058
|
-
},{}],
|
|
69059
|
+
},{}],437:[function(require,module,exports){
|
|
68059
69060
|
'use strict';
|
|
68060
69061
|
|
|
68061
69062
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
@@ -68101,7 +69102,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
68101
69102
|
/** @type {import('.')} */
|
|
68102
69103
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
68103
69104
|
|
|
68104
|
-
},{"call-bound":
|
|
69105
|
+
},{"call-bound":410,"has-tostringtag/shams":434}],438:[function(require,module,exports){
|
|
68105
69106
|
'use strict';
|
|
68106
69107
|
|
|
68107
69108
|
var fnToStr = Function.prototype.toString;
|
|
@@ -68204,7 +69205,7 @@ module.exports = reflectApply
|
|
|
68204
69205
|
return tryFunctionObject(value);
|
|
68205
69206
|
};
|
|
68206
69207
|
|
|
68207
|
-
},{}],
|
|
69208
|
+
},{}],439:[function(require,module,exports){
|
|
68208
69209
|
'use strict';
|
|
68209
69210
|
|
|
68210
69211
|
var callBound = require('call-bound');
|
|
@@ -68253,7 +69254,7 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
68253
69254
|
return getProto(fn) === GeneratorFunction;
|
|
68254
69255
|
};
|
|
68255
69256
|
|
|
68256
|
-
},{"call-bound":
|
|
69257
|
+
},{"call-bound":410,"get-proto":428,"has-tostringtag/shams":434,"safe-regex-test":457}],440:[function(require,module,exports){
|
|
68257
69258
|
'use strict';
|
|
68258
69259
|
|
|
68259
69260
|
var callBound = require('call-bound');
|
|
@@ -68324,7 +69325,7 @@ if (hasToStringTag) {
|
|
|
68324
69325
|
|
|
68325
69326
|
module.exports = fn;
|
|
68326
69327
|
|
|
68327
|
-
},{"call-bound":
|
|
69328
|
+
},{"call-bound":410,"gopd":430,"has-tostringtag/shams":434,"hasown":435}],441:[function(require,module,exports){
|
|
68328
69329
|
'use strict';
|
|
68329
69330
|
|
|
68330
69331
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -68334,19 +69335,19 @@ module.exports = function isTypedArray(value) {
|
|
|
68334
69335
|
return !!whichTypedArray(value);
|
|
68335
69336
|
};
|
|
68336
69337
|
|
|
68337
|
-
},{"which-typed-array":
|
|
69338
|
+
},{"which-typed-array":462}],442:[function(require,module,exports){
|
|
68338
69339
|
'use strict';
|
|
68339
69340
|
|
|
68340
69341
|
/** @type {import('./abs')} */
|
|
68341
69342
|
module.exports = Math.abs;
|
|
68342
69343
|
|
|
68343
|
-
},{}],
|
|
69344
|
+
},{}],443:[function(require,module,exports){
|
|
68344
69345
|
'use strict';
|
|
68345
69346
|
|
|
68346
69347
|
/** @type {import('./floor')} */
|
|
68347
69348
|
module.exports = Math.floor;
|
|
68348
69349
|
|
|
68349
|
-
},{}],
|
|
69350
|
+
},{}],444:[function(require,module,exports){
|
|
68350
69351
|
'use strict';
|
|
68351
69352
|
|
|
68352
69353
|
/** @type {import('./isNaN')} */
|
|
@@ -68354,31 +69355,31 @@ module.exports = Number.isNaN || function isNaN(a) {
|
|
|
68354
69355
|
return a !== a;
|
|
68355
69356
|
};
|
|
68356
69357
|
|
|
68357
|
-
},{}],
|
|
69358
|
+
},{}],445:[function(require,module,exports){
|
|
68358
69359
|
'use strict';
|
|
68359
69360
|
|
|
68360
69361
|
/** @type {import('./max')} */
|
|
68361
69362
|
module.exports = Math.max;
|
|
68362
69363
|
|
|
68363
|
-
},{}],
|
|
69364
|
+
},{}],446:[function(require,module,exports){
|
|
68364
69365
|
'use strict';
|
|
68365
69366
|
|
|
68366
69367
|
/** @type {import('./min')} */
|
|
68367
69368
|
module.exports = Math.min;
|
|
68368
69369
|
|
|
68369
|
-
},{}],
|
|
69370
|
+
},{}],447:[function(require,module,exports){
|
|
68370
69371
|
'use strict';
|
|
68371
69372
|
|
|
68372
69373
|
/** @type {import('./pow')} */
|
|
68373
69374
|
module.exports = Math.pow;
|
|
68374
69375
|
|
|
68375
|
-
},{}],
|
|
69376
|
+
},{}],448:[function(require,module,exports){
|
|
68376
69377
|
'use strict';
|
|
68377
69378
|
|
|
68378
69379
|
/** @type {import('./round')} */
|
|
68379
69380
|
module.exports = Math.round;
|
|
68380
69381
|
|
|
68381
|
-
},{}],
|
|
69382
|
+
},{}],449:[function(require,module,exports){
|
|
68382
69383
|
'use strict';
|
|
68383
69384
|
|
|
68384
69385
|
var $isNaN = require('./isNaN');
|
|
@@ -68391,7 +69392,7 @@ module.exports = function sign(number) {
|
|
|
68391
69392
|
return number < 0 ? -1 : +1;
|
|
68392
69393
|
};
|
|
68393
69394
|
|
|
68394
|
-
},{"./isNaN":
|
|
69395
|
+
},{"./isNaN":444}],450:[function(require,module,exports){
|
|
68395
69396
|
'use strict';
|
|
68396
69397
|
|
|
68397
69398
|
var keysShim;
|
|
@@ -68515,7 +69516,7 @@ if (!Object.keys) {
|
|
|
68515
69516
|
}
|
|
68516
69517
|
module.exports = keysShim;
|
|
68517
69518
|
|
|
68518
|
-
},{"./isArguments":
|
|
69519
|
+
},{"./isArguments":452}],451:[function(require,module,exports){
|
|
68519
69520
|
'use strict';
|
|
68520
69521
|
|
|
68521
69522
|
var slice = Array.prototype.slice;
|
|
@@ -68549,7 +69550,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
68549
69550
|
|
|
68550
69551
|
module.exports = keysShim;
|
|
68551
69552
|
|
|
68552
|
-
},{"./implementation":
|
|
69553
|
+
},{"./implementation":450,"./isArguments":452}],452:[function(require,module,exports){
|
|
68553
69554
|
'use strict';
|
|
68554
69555
|
|
|
68555
69556
|
var toStr = Object.prototype.toString;
|
|
@@ -68568,7 +69569,7 @@ module.exports = function isArguments(value) {
|
|
|
68568
69569
|
return isArgs;
|
|
68569
69570
|
};
|
|
68570
69571
|
|
|
68571
|
-
},{}],
|
|
69572
|
+
},{}],453:[function(require,module,exports){
|
|
68572
69573
|
'use strict';
|
|
68573
69574
|
|
|
68574
69575
|
// modified from https://github.com/es-shims/es6-shim
|
|
@@ -68616,7 +69617,7 @@ module.exports = function assign(target, source1) {
|
|
|
68616
69617
|
return to; // step 4
|
|
68617
69618
|
};
|
|
68618
69619
|
|
|
68619
|
-
},{"call-bound":
|
|
69620
|
+
},{"call-bound":410,"es-object-atoms":421,"has-symbols/shams":433,"object-keys":451}],454:[function(require,module,exports){
|
|
68620
69621
|
'use strict';
|
|
68621
69622
|
|
|
68622
69623
|
var implementation = require('./implementation');
|
|
@@ -68673,7 +69674,7 @@ module.exports = function getPolyfill() {
|
|
|
68673
69674
|
return Object.assign;
|
|
68674
69675
|
};
|
|
68675
69676
|
|
|
68676
|
-
},{"./implementation":
|
|
69677
|
+
},{"./implementation":453}],455:[function(require,module,exports){
|
|
68677
69678
|
'use strict';
|
|
68678
69679
|
|
|
68679
69680
|
/** @type {import('.')} */
|
|
@@ -68692,7 +69693,7 @@ module.exports = [
|
|
|
68692
69693
|
'BigUint64Array'
|
|
68693
69694
|
];
|
|
68694
69695
|
|
|
68695
|
-
},{}],
|
|
69696
|
+
},{}],456:[function(require,module,exports){
|
|
68696
69697
|
// shim for using process in browser
|
|
68697
69698
|
var process = module.exports = {};
|
|
68698
69699
|
|
|
@@ -68878,7 +69879,7 @@ process.chdir = function (dir) {
|
|
|
68878
69879
|
};
|
|
68879
69880
|
process.umask = function() { return 0; };
|
|
68880
69881
|
|
|
68881
|
-
},{}],
|
|
69882
|
+
},{}],457:[function(require,module,exports){
|
|
68882
69883
|
'use strict';
|
|
68883
69884
|
|
|
68884
69885
|
var callBound = require('call-bound');
|
|
@@ -68897,7 +69898,7 @@ module.exports = function regexTester(regex) {
|
|
|
68897
69898
|
};
|
|
68898
69899
|
};
|
|
68899
69900
|
|
|
68900
|
-
},{"call-bound":
|
|
69901
|
+
},{"call-bound":410,"es-errors/type":419,"is-regex":440}],458:[function(require,module,exports){
|
|
68901
69902
|
'use strict';
|
|
68902
69903
|
|
|
68903
69904
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -68941,9 +69942,9 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
68941
69942
|
return fn;
|
|
68942
69943
|
};
|
|
68943
69944
|
|
|
68944
|
-
},{"define-data-property":
|
|
68945
|
-
arguments[4][
|
|
68946
|
-
},{"dup":
|
|
69945
|
+
},{"define-data-property":411,"es-errors/type":419,"get-intrinsic":425,"gopd":430,"has-property-descriptors":431}],459:[function(require,module,exports){
|
|
69946
|
+
arguments[4][399][0].apply(exports,arguments)
|
|
69947
|
+
},{"dup":399}],460:[function(require,module,exports){
|
|
68947
69948
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
68948
69949
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
68949
69950
|
|
|
@@ -69279,7 +70280,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
69279
70280
|
});
|
|
69280
70281
|
});
|
|
69281
70282
|
|
|
69282
|
-
},{"is-arguments":
|
|
70283
|
+
},{"is-arguments":437,"is-generator-function":439,"is-typed-array":441,"which-typed-array":462}],461:[function(require,module,exports){
|
|
69283
70284
|
(function (process){(function (){
|
|
69284
70285
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
69285
70286
|
//
|
|
@@ -69998,7 +70999,7 @@ function callbackify(original) {
|
|
|
69998
70999
|
exports.callbackify = callbackify;
|
|
69999
71000
|
|
|
70000
71001
|
}).call(this)}).call(this,require('_process'))
|
|
70001
|
-
},{"./support/isBuffer":
|
|
71002
|
+
},{"./support/isBuffer":459,"./support/types":460,"_process":456,"inherits":436}],462:[function(require,module,exports){
|
|
70002
71003
|
(function (global){(function (){
|
|
70003
71004
|
'use strict';
|
|
70004
71005
|
|
|
@@ -70119,5 +71120,5 @@ module.exports = function whichTypedArray(value) {
|
|
|
70119
71120
|
};
|
|
70120
71121
|
|
|
70121
71122
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
70122
|
-
},{"available-typed-arrays":
|
|
71123
|
+
},{"available-typed-arrays":401,"call-bind":409,"call-bound":410,"for-each":422,"get-proto":428,"gopd":430,"has-tostringtag/shams":434}]},{},[134])(134)
|
|
70123
71124
|
});
|