@designliquido/delegua 0.41.7 → 0.42.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/analisador-semantico.d.ts.map +1 -1
- package/analisador-semantico/analisador-semantico.js +33 -18
- package/analisador-semantico/analisador-semantico.js.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.d.ts +16 -3
- package/avaliador-sintatico/avaliador-sintatico.d.ts.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.js +185 -55
- package/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js +5 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-portugol-ipt.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-portugol-ipt.js.map +1 -1
- package/avaliador-sintatico/index.d.ts +1 -0
- package/avaliador-sintatico/index.d.ts.map +1 -1
- package/avaliador-sintatico/index.js +1 -0
- package/avaliador-sintatico/index.js.map +1 -1
- package/avaliador-sintatico/informacao-escopo.d.ts +3 -2
- package/avaliador-sintatico/informacao-escopo.d.ts.map +1 -1
- package/avaliador-sintatico/informacao-escopo.js.map +1 -1
- package/avaliador-sintatico/pilha-escopos.d.ts +6 -4
- package/avaliador-sintatico/pilha-escopos.d.ts.map +1 -1
- package/avaliador-sintatico/pilha-escopos.js +6 -3
- package/avaliador-sintatico/pilha-escopos.js.map +1 -1
- package/bibliotecas/biblioteca-global.d.ts +18 -11
- package/bibliotecas/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/biblioteca-global.js +45 -22
- package/bibliotecas/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/egua-classico/index.js +0 -1
- package/bibliotecas/dialetos/egua-classico/index.js.map +1 -1
- package/bibliotecas/primitivas-dicionario.d.ts.map +1 -1
- package/bibliotecas/primitivas-dicionario.js +4 -2
- package/bibliotecas/primitivas-dicionario.js.map +1 -1
- package/bibliotecas/primitivas-numero.d.ts.map +1 -1
- package/bibliotecas/primitivas-numero.js +4 -2
- package/bibliotecas/primitivas-numero.js.map +1 -1
- package/bibliotecas/primitivas-texto.d.ts.map +1 -1
- package/bibliotecas/primitivas-texto.js +42 -14
- package/bibliotecas/primitivas-texto.js.map +1 -1
- package/bibliotecas/primitivas-vetor.d.ts.map +1 -1
- package/bibliotecas/primitivas-vetor.js +62 -20
- package/bibliotecas/primitivas-vetor.js.map +1 -1
- package/bin/package.json +3 -1
- package/construtos/acesso-metodo-ou-propriedade.d.ts.map +1 -1
- package/construtos/acesso-metodo-ou-propriedade.js.map +1 -1
- package/construtos/acesso-metodo.d.ts +2 -2
- package/construtos/acesso-propriedade.d.ts +2 -2
- package/construtos/acesso-propriedade.d.ts.map +1 -1
- package/construtos/acesso-propriedade.js.map +1 -1
- package/construtos/argumento-referencia-funcao.d.ts +2 -2
- package/construtos/binario.d.ts.map +1 -1
- package/construtos/binario.js.map +1 -1
- package/construtos/componente-linguagem.d.ts +2 -2
- package/construtos/componente-linguagem.js +1 -1
- package/construtos/referencia-funcao.d.ts +2 -2
- package/construtos/super.d.ts.map +1 -1
- package/construtos/super.js.map +1 -1
- package/inferenciador.d.ts.map +1 -1
- package/inferenciador.js.map +1 -1
- package/informacao-variavel-ou-constante.d.ts +8 -0
- package/informacao-variavel-ou-constante.d.ts.map +1 -0
- package/informacao-variavel-ou-constante.js +16 -0
- package/informacao-variavel-ou-constante.js.map +1 -0
- package/interfaces/construtos/index.d.ts +2 -2
- package/interfaces/primitiva-interface.d.ts +2 -0
- package/interfaces/primitiva-interface.d.ts.map +1 -1
- package/interpretador/comum.d.ts.map +1 -1
- package/interpretador/comum.js +2 -0
- package/interpretador/comum.js.map +1 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.js +1 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.js.map +1 -1
- package/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.js.map +1 -1
- package/interpretador/estruturas/delegua-funcao.d.ts.map +1 -1
- package/interpretador/estruturas/delegua-funcao.js +1 -1
- package/interpretador/estruturas/delegua-funcao.js.map +1 -1
- package/interpretador/interpretador-base.d.ts.map +1 -1
- package/interpretador/interpretador-base.js +6 -3
- package/interpretador/interpretador-base.js.map +1 -1
- package/interpretador/interpretador.d.ts +4 -4
- package/interpretador/interpretador.d.ts.map +1 -1
- package/interpretador/interpretador.js +2 -2
- package/interpretador/interpretador.js.map +1 -1
- package/interpretador/pilha-escopos-execucao.js +3 -3
- package/interpretador/pilha-escopos-execucao.js.map +1 -1
- package/lexador/dialetos/lexador-pitugues.d.ts.map +1 -1
- package/lexador/dialetos/lexador-pitugues.js +39 -39
- package/lexador/dialetos/lexador-pitugues.js.map +1 -1
- package/lexador/dialetos/palavras-reservadas/pitugues.d.ts +56 -0
- package/lexador/dialetos/palavras-reservadas/pitugues.d.ts.map +1 -0
- package/lexador/dialetos/palavras-reservadas/pitugues.js +63 -0
- package/lexador/dialetos/palavras-reservadas/pitugues.js.map +1 -0
- package/lexador/index.d.ts +1 -0
- package/lexador/index.d.ts.map +1 -1
- package/lexador/index.js +1 -0
- package/lexador/index.js.map +1 -1
- package/package.json +3 -1
- package/tipos-de-simbolos/delegua.d.ts +1 -0
- package/tipos-de-simbolos/delegua.d.ts.map +1 -1
- package/tipos-de-simbolos/delegua.js +1 -0
- package/tipos-de-simbolos/delegua.js.map +1 -1
- package/tipos-de-simbolos/pitugues.d.ts +6 -0
- package/tipos-de-simbolos/pitugues.d.ts.map +1 -1
- package/tipos-de-simbolos/pitugues.js +6 -0
- package/tipos-de-simbolos/pitugues.js.map +1 -1
- package/tradutores/tradutor-assemblyscript.d.ts.map +1 -1
- package/tradutores/tradutor-assemblyscript.js +2 -1
- package/tradutores/tradutor-assemblyscript.js.map +1 -1
- package/tradutores/tradutor-javascript.d.ts.map +1 -1
- package/tradutores/tradutor-javascript.js +18 -13
- package/tradutores/tradutor-javascript.js.map +1 -1
- package/tradutores/tradutor-mermaidjs.d.ts.map +1 -1
- package/tradutores/tradutor-mermaidjs.js +8 -8
- package/tradutores/tradutor-mermaidjs.js.map +1 -1
- package/tradutores/tradutor-python.d.ts.map +1 -1
- package/tradutores/tradutor-python.js +6 -6
- package/tradutores/tradutor-python.js.map +1 -1
- package/umd/delegua.js +830 -495
- package/bin/delegua +0 -3
- package/bin/delegua.cmd +0 -1
package/umd/delegua.js
CHANGED
|
@@ -231,7 +231,7 @@ class AvaliadorSintaticoBase {
|
|
|
231
231
|
}
|
|
232
232
|
exports.AvaliadorSintaticoBase = AvaliadorSintaticoBase;
|
|
233
233
|
|
|
234
|
-
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/comum":
|
|
234
|
+
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/comum":164,"./erro-avaliador-sintatico":7}],2:[function(require,module,exports){
|
|
235
235
|
"use strict";
|
|
236
236
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
237
237
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -247,6 +247,7 @@ const avaliador_sintatico_base_1 = require("./avaliador-sintatico-base");
|
|
|
247
247
|
const inferenciador_1 = require("../inferenciador");
|
|
248
248
|
const pilha_escopos_1 = require("./pilha-escopos");
|
|
249
249
|
const informacao_escopo_1 = require("./informacao-escopo");
|
|
250
|
+
const informacao_variavel_ou_constante_1 = require("../informacao-variavel-ou-constante");
|
|
250
251
|
const delegua_1 = __importDefault(require("../tipos-de-dados/delegua"));
|
|
251
252
|
const delegua_2 = __importDefault(require("../tipos-de-simbolos/delegua"));
|
|
252
253
|
const primitivas_dicionario_1 = __importDefault(require("../bibliotecas/primitivas-dicionario"));
|
|
@@ -275,20 +276,23 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
275
276
|
this.tiposDefinidosEmCodigo = {};
|
|
276
277
|
this.tiposDeFerramentasExternas = {};
|
|
277
278
|
this.primitivasConhecidas = {};
|
|
278
|
-
for (const nomePrimitivaDicionario of Object.
|
|
279
|
-
this.primitivasConhecidas[nomePrimitivaDicionario] = 'dicionário';
|
|
279
|
+
for (const [nomePrimitivaDicionario, dadosPrimitiva] of Object.entries(primitivas_dicionario_1.default)) {
|
|
280
|
+
this.primitivasConhecidas[nomePrimitivaDicionario] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomePrimitivaDicionario, 'dicionário', dadosPrimitiva.argumentos);
|
|
280
281
|
}
|
|
281
|
-
for (const nomePrimitivaNumero of Object.
|
|
282
|
-
this.primitivasConhecidas[nomePrimitivaNumero] = 'número';
|
|
282
|
+
for (const [nomePrimitivaNumero, dadosPrimitiva] of Object.entries(primitivas_numero_1.default)) {
|
|
283
|
+
this.primitivasConhecidas[nomePrimitivaNumero] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomePrimitivaNumero, 'número', dadosPrimitiva.argumentos);
|
|
283
284
|
}
|
|
284
|
-
for (const nomePrimitivaTexto of Object.
|
|
285
|
-
this.primitivasConhecidas[nomePrimitivaTexto] = 'texto';
|
|
285
|
+
for (const [nomePrimitivaTexto, dadosPrimitiva] of Object.entries(primitivas_texto_1.default)) {
|
|
286
|
+
this.primitivasConhecidas[nomePrimitivaTexto] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomePrimitivaTexto, 'texto', dadosPrimitiva.argumentos);
|
|
286
287
|
}
|
|
287
|
-
for (const nomePrimitivaVetor of Object.
|
|
288
|
-
this.primitivasConhecidas[nomePrimitivaVetor] = 'vetor';
|
|
288
|
+
for (const [nomePrimitivaVetor, dadosPrimitiva] of Object.entries(primitivas_vetor_1.default)) {
|
|
289
|
+
this.primitivasConhecidas[nomePrimitivaVetor] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomePrimitivaVetor, 'vetor', dadosPrimitiva.argumentos);
|
|
289
290
|
}
|
|
290
|
-
|
|
291
|
-
this.primitivasConhecidas['
|
|
291
|
+
// TODO: Por enquanto não há necessidade de validar argumentos aqui, mas isso pode mudar no futuro.
|
|
292
|
+
this.primitivasConhecidas['inteiro'] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inteiro', 'inteiro');
|
|
293
|
+
this.primitivasConhecidas['numero'] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('numero', 'número');
|
|
294
|
+
this.primitivasConhecidas['número'] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('número', 'número');
|
|
295
|
+
this.primitivasConhecidas['texto'] = new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('texto', 'texto');
|
|
292
296
|
this.pilhaEscopos = new pilha_escopos_1.PilhaEscopos();
|
|
293
297
|
}
|
|
294
298
|
verificarDefinicaoTipoAtual() {
|
|
@@ -397,6 +401,22 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
397
401
|
}
|
|
398
402
|
const tipoVetor = (0, inferenciador_1.inferirTipoVariavel)(valores);
|
|
399
403
|
return new construtos_1.Vetor(this.hashArquivo, Number(simboloAtual.linha), valores, valores.length, tipoVetor);
|
|
404
|
+
case delegua_2.default.EXPRESSAO_REGULAR:
|
|
405
|
+
let valor = '';
|
|
406
|
+
let linhaAtual = this.simbolos[this.atual].linha;
|
|
407
|
+
let eParExpressaoRegular = this.simbolos.filter((l) => l.linha === linhaAtual && l.tipo === delegua_2.default.EXPRESSAO_REGULAR)
|
|
408
|
+
.length %
|
|
409
|
+
2 ===
|
|
410
|
+
0;
|
|
411
|
+
if (eParExpressaoRegular) {
|
|
412
|
+
this.avancarEDevolverAnterior();
|
|
413
|
+
while (!this.verificarTipoSimboloAtual(delegua_2.default.EXPRESSAO_REGULAR)) {
|
|
414
|
+
valor += this.simbolos[this.atual].lexema || '';
|
|
415
|
+
this.avancarEDevolverAnterior();
|
|
416
|
+
}
|
|
417
|
+
this.avancarEDevolverAnterior();
|
|
418
|
+
return new construtos_1.ExpressaoRegular(this.hashArquivo, simboloAtual, valor);
|
|
419
|
+
}
|
|
400
420
|
case delegua_2.default.FALSO:
|
|
401
421
|
this.avancarEDevolverAnterior();
|
|
402
422
|
return new construtos_1.Literal(this.hashArquivo, Number(simboloAtual.linha), false, 'lógico');
|
|
@@ -404,7 +424,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
404
424
|
case delegua_2.default.FUNÇÃO:
|
|
405
425
|
const simboloFuncao = this.avancarEDevolverAnterior();
|
|
406
426
|
const corpoDaFuncao = this.corpoDaFuncao(simboloFuncao.lexema);
|
|
407
|
-
this.pilhaEscopos.
|
|
427
|
+
this.pilhaEscopos.definirInformacoesVariavel(simboloFuncao.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(simboloFuncao.lexema, 'função'));
|
|
408
428
|
return corpoDaFuncao;
|
|
409
429
|
case delegua_2.default.IDENTIFICADOR:
|
|
410
430
|
const simboloIdentificador = this.avancarEDevolverAnterior();
|
|
@@ -434,6 +454,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
434
454
|
this.avancarEDevolverAnterior();
|
|
435
455
|
return new construtos_1.Literal(this.hashArquivo, Number(simboloAtual.linha), null, 'nulo');
|
|
436
456
|
case delegua_2.default.NUMERO:
|
|
457
|
+
case delegua_2.default.NÚMERO:
|
|
437
458
|
case delegua_2.default.TEXTO:
|
|
438
459
|
const simboloNumeroTexto = this.avancarEDevolverAnterior();
|
|
439
460
|
const tipoInferido = (0, inferenciador_1.inferirTipoVariavel)(simboloNumeroTexto.literal);
|
|
@@ -517,33 +538,19 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
517
538
|
}
|
|
518
539
|
}
|
|
519
540
|
return new construtos_1.TipoDe(this.hashArquivo, simboloAtual, construto);
|
|
520
|
-
case delegua_2.default.EXPRESSAO_REGULAR:
|
|
521
|
-
let valor = '';
|
|
522
|
-
let linhaAtual = this.simbolos[this.atual].linha;
|
|
523
|
-
let eParExpressaoRegular = this.simbolos.filter((l) => l.linha === linhaAtual && l.tipo === delegua_2.default.EXPRESSAO_REGULAR)
|
|
524
|
-
.length %
|
|
525
|
-
2 ===
|
|
526
|
-
0;
|
|
527
|
-
if (eParExpressaoRegular) {
|
|
528
|
-
this.avancarEDevolverAnterior();
|
|
529
|
-
while (!this.verificarTipoSimboloAtual(delegua_2.default.EXPRESSAO_REGULAR)) {
|
|
530
|
-
valor += this.simbolos[this.atual].lexema || '';
|
|
531
|
-
this.avancarEDevolverAnterior();
|
|
532
|
-
}
|
|
533
|
-
this.avancarEDevolverAnterior();
|
|
534
|
-
return new construtos_1.ExpressaoRegular(this.hashArquivo, simboloAtual, valor);
|
|
535
|
-
}
|
|
536
541
|
}
|
|
537
542
|
throw this.erro(this.simbolos[this.atual], 'Esperado expressão.');
|
|
538
543
|
}
|
|
539
544
|
chamar() {
|
|
540
545
|
let expressao = this.primario();
|
|
541
546
|
while (true) {
|
|
547
|
+
let tipoPrimitiva = undefined;
|
|
542
548
|
if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.PARENTESE_ESQUERDO)) {
|
|
543
|
-
expressao = this.finalizarChamada(expressao);
|
|
549
|
+
expressao = this.finalizarChamada(expressao, tipoPrimitiva);
|
|
544
550
|
}
|
|
545
551
|
else if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.PONTO)) {
|
|
546
552
|
const nome = this.consumir(delegua_2.default.IDENTIFICADOR, "Esperado nome de método ou propriedade após '.'.");
|
|
553
|
+
tipoPrimitiva = expressao.tipo;
|
|
547
554
|
expressao = new construtos_1.AcessoMetodoOuPropriedade(this.hashArquivo, expressao, nome);
|
|
548
555
|
}
|
|
549
556
|
else if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.COLCHETE_ESQUERDO)) {
|
|
@@ -607,10 +614,59 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
607
614
|
}
|
|
608
615
|
return entidadeChamadaResolvida;
|
|
609
616
|
}
|
|
610
|
-
|
|
617
|
+
validarArgumentosEntidadeChamada(argumentosEntidadeChamada, argumentosUtilizados) {
|
|
618
|
+
if (argumentosEntidadeChamada.length === 0) {
|
|
619
|
+
return [];
|
|
620
|
+
}
|
|
621
|
+
const possiveisErros = [];
|
|
622
|
+
for (const [indice, argumentoEntidadeChamada] of argumentosEntidadeChamada.entries()) {
|
|
623
|
+
const argumentoUtilizado = argumentosUtilizados[indice];
|
|
624
|
+
if (argumentoUtilizado.tipo === null || argumentoUtilizado.tipo === undefined) {
|
|
625
|
+
continue;
|
|
626
|
+
}
|
|
627
|
+
const argumentoEntidadeChamadaVetor = argumentoEntidadeChamada.tipo.endsWith('[]');
|
|
628
|
+
const argumentoUtilizadoVetor = argumentoUtilizado.tipo.endsWith('[]');
|
|
629
|
+
if (argumentoEntidadeChamadaVetor !== argumentoUtilizadoVetor) {
|
|
630
|
+
possiveisErros.push(`Argumento: ${argumentoEntidadeChamada.nome}. Tipo esperado: ${argumentoEntidadeChamada.tipo}; Tipo utilizado: ${argumentoUtilizado.tipo}`);
|
|
631
|
+
continue;
|
|
632
|
+
}
|
|
633
|
+
const argumentoEntidadeChamadaQualquer = argumentoEntidadeChamada.tipo.startsWith('qualquer');
|
|
634
|
+
if (argumentoEntidadeChamadaQualquer) {
|
|
635
|
+
continue;
|
|
636
|
+
}
|
|
637
|
+
if (argumentoUtilizado.tipo !== argumentoEntidadeChamada.tipo) {
|
|
638
|
+
possiveisErros.push(`Argumento: ${argumentoEntidadeChamada.nome}. Tipo esperado: ${argumentoEntidadeChamada.tipo}; Tipo utilizado: ${argumentoUtilizado.tipo}`);
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
return possiveisErros;
|
|
642
|
+
}
|
|
643
|
+
/**
|
|
644
|
+
* Diversas verificações de resolução de entidade chamada, como resolver chamada da pilha ou usar referência, argumentos, etc.
|
|
645
|
+
* @param entidadeChamada O construto da entidade chamada.
|
|
646
|
+
* @param argumentos Os argumentos utilizados na chamada.
|
|
647
|
+
* @param tipoPrimitiva Se for uma primitiva, o tipo dela. Senão, `undefined`.
|
|
648
|
+
* @returns A entidade chamada resolvida, se as validações passarem.
|
|
649
|
+
*/
|
|
650
|
+
resolverEntidadeChamada(entidadeChamada, argumentos, tipoPrimitiva = undefined) {
|
|
611
651
|
if (entidadeChamada.constructor.name === 'Variavel') {
|
|
612
652
|
const entidadeChamadaResolvidaVariavel = entidadeChamada;
|
|
613
|
-
if (
|
|
653
|
+
if (tipoPrimitiva === undefined) {
|
|
654
|
+
// Provavelmente uma chamada a alguma função da biblioteca global.
|
|
655
|
+
const informacoesPossivelFuncaoBibliotecaGlobal = this.pilhaEscopos.obterBibliotecaGlobal(entidadeChamadaResolvidaVariavel.simbolo.lexema);
|
|
656
|
+
if (informacoesPossivelFuncaoBibliotecaGlobal !== undefined) {
|
|
657
|
+
const erros = this.validarArgumentosEntidadeChamada(informacoesPossivelFuncaoBibliotecaGlobal.argumentos, argumentos);
|
|
658
|
+
if (erros.length > 0) {
|
|
659
|
+
throw new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(entidadeChamadaResolvidaVariavel.simbolo, `Erros ao resolver argumentos de chamada a ${entidadeChamadaResolvidaVariavel.simbolo.lexema}: \n${erros.reduce((mensagem, erro) => mensagem += `${erro}\n`, '')}`);
|
|
660
|
+
}
|
|
661
|
+
return entidadeChamadaResolvidaVariavel;
|
|
662
|
+
}
|
|
663
|
+
}
|
|
664
|
+
if (tipoPrimitiva !== undefined && this.primitivasConhecidas.hasOwnProperty(entidadeChamadaResolvidaVariavel.simbolo.lexema)) {
|
|
665
|
+
var informacoesPrimitiva = this.primitivasConhecidas[entidadeChamadaResolvidaVariavel.simbolo.lexema];
|
|
666
|
+
const erros = this.validarArgumentosEntidadeChamada(informacoesPrimitiva.argumentos, argumentos);
|
|
667
|
+
if (erros.length > 0) {
|
|
668
|
+
throw new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(entidadeChamadaResolvidaVariavel.simbolo, `Erros ao resolver argumentos de chamada a ${entidadeChamadaResolvidaVariavel.simbolo.lexema}: \n${erros.reduce((mensagem, erro) => mensagem += `${erro}\n`, '')}`);
|
|
669
|
+
}
|
|
614
670
|
return entidadeChamadaResolvidaVariavel;
|
|
615
671
|
}
|
|
616
672
|
if (entidadeChamadaResolvidaVariavel.simbolo.lexema in this.tiposDefinidosEmCodigo) {
|
|
@@ -627,7 +683,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
627
683
|
}
|
|
628
684
|
return entidadeChamada;
|
|
629
685
|
}
|
|
630
|
-
finalizarChamada(entidadeChamada) {
|
|
686
|
+
finalizarChamada(entidadeChamada, tipoPrimitiva = undefined) {
|
|
631
687
|
const argumentos = [];
|
|
632
688
|
if (!this.verificarTipoSimboloAtual(delegua_2.default.PARENTESE_DIREITO)) {
|
|
633
689
|
do {
|
|
@@ -640,7 +696,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
640
696
|
}
|
|
641
697
|
this.consumir(delegua_2.default.PARENTESE_DIREITO, "Esperado ')' após os argumentos.");
|
|
642
698
|
// Toda chamada precisa saber de antemão qual o tipo resolvido.
|
|
643
|
-
const entidadeChamadaResolvida = this.resolverEntidadeChamada(entidadeChamada);
|
|
699
|
+
const entidadeChamadaResolvida = this.resolverEntidadeChamada(entidadeChamada, argumentos, tipoPrimitiva);
|
|
644
700
|
// TODO: Criar forma de validar tipos dos argumentos da entidade chamada.
|
|
645
701
|
const construtoChamada = new construtos_1.Chamada(this.hashArquivo, entidadeChamadaResolvida, argumentos);
|
|
646
702
|
construtoChamada.tipo = 'qualquer';
|
|
@@ -990,7 +1046,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
990
1046
|
if (!tipoVetor.endsWith('[]')) {
|
|
991
1047
|
throw this.erro(simboloPara, `Variável ou constante em 'para cada' não é iterável. Tipo resolvido: ${tipoVetor}.`);
|
|
992
1048
|
}
|
|
993
|
-
this.pilhaEscopos.
|
|
1049
|
+
this.pilhaEscopos.definirInformacoesVariavel(nomeVariavelIteracao.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomeVariavelIteracao.lexema, tipoVetor.slice(0, -2)));
|
|
994
1050
|
// TODO: Talvez não seja uma ideia melhor chamar o método de `Bloco` aqui?
|
|
995
1051
|
const corpo = this.resolverDeclaracao();
|
|
996
1052
|
return new declaracoes_1.ParaCada(this.hashArquivo, Number(simboloPara.linha), nomeVariavelIteracao.lexema, vetor, corpo);
|
|
@@ -1229,7 +1285,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1229
1285
|
default:
|
|
1230
1286
|
break;
|
|
1231
1287
|
}
|
|
1232
|
-
this.pilhaEscopos.
|
|
1288
|
+
this.pilhaEscopos.definirInformacoesVariavel(simboloNomeVariavel.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(simboloNomeVariavel.lexema, tipoInicializacao));
|
|
1233
1289
|
const blocoCorpo = this.blocoEscopo();
|
|
1234
1290
|
return new declaracoes_1.TendoComo(simboloTendo.linha, simboloTendo.hashArquivo, simboloNomeVariavel, expressaoInicializacao, new declaracoes_1.Bloco(simboloTendo.linha, simboloTendo.hashArquivo, blocoCorpo));
|
|
1235
1291
|
}
|
|
@@ -1243,7 +1299,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1243
1299
|
const inicializador = this.expressao();
|
|
1244
1300
|
const retornos = [];
|
|
1245
1301
|
for (let identificador of identificadores) {
|
|
1246
|
-
this.pilhaEscopos.
|
|
1302
|
+
this.pilhaEscopos.definirInformacoesVariavel(identificador.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(identificador.lexema, this.logicaComumInferenciaTiposVariaveisEConstantes(inicializador, 'qualquer')));
|
|
1247
1303
|
const declaracaoVar = new declaracoes_1.Var(identificador, new construtos_1.AcessoMetodoOuPropriedade(this.hashArquivo, inicializador, identificador));
|
|
1248
1304
|
declaracaoVar.decoradores = Array.from(this.pilhaDecoradores);
|
|
1249
1305
|
retornos.push(declaracaoVar);
|
|
@@ -1319,7 +1375,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1319
1375
|
if (!this.verificarSeSimboloAtualEIgualA(delegua_2.default.IGUAL)) {
|
|
1320
1376
|
// Inicialização de variáveis sem valor.
|
|
1321
1377
|
for (let identificador of identificadores.values()) {
|
|
1322
|
-
this.pilhaEscopos.
|
|
1378
|
+
this.pilhaEscopos.definirInformacoesVariavel(identificador.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(identificador.lexema, tipo));
|
|
1323
1379
|
retorno.push(new declaracoes_1.Var(identificador, null, tipo, Array.from(this.pilhaDecoradores)));
|
|
1324
1380
|
}
|
|
1325
1381
|
this.verificarSeSimboloAtualEIgualA(delegua_2.default.PONTO_E_VIRGULA);
|
|
@@ -1336,7 +1392,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1336
1392
|
for (let [indice, identificador] of identificadores.entries()) {
|
|
1337
1393
|
// Se tipo ainda não foi definido, infere.
|
|
1338
1394
|
tipo = this.logicaComumInferenciaTiposVariaveisEConstantes(inicializadores[indice], tipo);
|
|
1339
|
-
this.pilhaEscopos.
|
|
1395
|
+
this.pilhaEscopos.definirInformacoesVariavel(identificador.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(identificador.lexema, tipo));
|
|
1340
1396
|
retorno.push(new declaracoes_1.Var(identificador, inicializadores[indice], tipo, Array.from(this.pilhaDecoradores)));
|
|
1341
1397
|
}
|
|
1342
1398
|
this.verificarSeSimboloAtualEIgualA(delegua_2.default.PONTO_E_VIRGULA);
|
|
@@ -1354,7 +1410,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1354
1410
|
const retornos = [];
|
|
1355
1411
|
for (let identificador of identificadores) {
|
|
1356
1412
|
// TODO: Melhorar dicionário para intuir o tipo de cada propriedade.
|
|
1357
|
-
this.pilhaEscopos.
|
|
1413
|
+
this.pilhaEscopos.definirInformacoesVariavel(identificador.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(identificador.lexema, 'qualquer'));
|
|
1358
1414
|
const declaracaoConst = new declaracoes_1.Const(identificador, new construtos_1.AcessoMetodoOuPropriedade(this.hashArquivo, inicializador, identificador));
|
|
1359
1415
|
declaracaoConst.decoradores = Array.from(this.pilhaDecoradores);
|
|
1360
1416
|
retornos.push(declaracaoConst);
|
|
@@ -1390,7 +1446,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1390
1446
|
for (let [indice, identificador] of identificadores.entries()) {
|
|
1391
1447
|
// Se tipo ainda não foi definido, infere.
|
|
1392
1448
|
tipo = this.logicaComumInferenciaTiposVariaveisEConstantes(inicializadores[indice], tipo);
|
|
1393
|
-
this.pilhaEscopos.
|
|
1449
|
+
this.pilhaEscopos.definirInformacoesVariavel(identificador.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(identificador.lexema, tipo));
|
|
1394
1450
|
retorno.push(new declaracoes_1.Const(identificador, inicializadores[indice], tipo, Array.from(this.pilhaDecoradores)));
|
|
1395
1451
|
}
|
|
1396
1452
|
this.pilhaDecoradores = [];
|
|
@@ -1411,9 +1467,9 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1411
1467
|
this.pilhaDecoradores = [];
|
|
1412
1468
|
// Se houver chamadas recursivas à função, precisamos definir um tipo
|
|
1413
1469
|
// para ela. Vai ser atualizado após avaliação do corpo da função.
|
|
1414
|
-
this.pilhaEscopos.
|
|
1470
|
+
this.pilhaEscopos.definirInformacoesVariavel(simbolo.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(simbolo.lexema, 'qualquer'));
|
|
1415
1471
|
const corpoDaFuncao = this.corpoDaFuncao(tipo);
|
|
1416
|
-
this.pilhaEscopos.
|
|
1472
|
+
this.pilhaEscopos.definirInformacoesVariavel(simbolo.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(simbolo.lexema, corpoDaFuncao.tipo));
|
|
1417
1473
|
const funcaoDeclaracao = new declaracoes_1.FuncaoDeclaracao(simbolo, corpoDaFuncao, corpoDaFuncao.tipo, decoradores);
|
|
1418
1474
|
this.pilhaEscopos.registrarReferenciaFuncao(simbolo.lexema, funcaoDeclaracao);
|
|
1419
1475
|
return funcaoDeclaracao;
|
|
@@ -1439,7 +1495,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1439
1495
|
parametro.tipoDado = tipoDadoParametro;
|
|
1440
1496
|
this.avancarEDevolverAnterior();
|
|
1441
1497
|
}
|
|
1442
|
-
this.pilhaEscopos.
|
|
1498
|
+
this.pilhaEscopos.definirInformacoesVariavel(parametro.nome.lexema, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(parametro.nome.lexema, parametro.tipoDado || 'qualquer'));
|
|
1443
1499
|
parametros.push(parametro);
|
|
1444
1500
|
if (parametro.abrangencia === 'multiplo')
|
|
1445
1501
|
break;
|
|
@@ -1642,26 +1698,99 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1642
1698
|
this.avancarEDevolverAnterior();
|
|
1643
1699
|
}
|
|
1644
1700
|
}
|
|
1701
|
+
/**
|
|
1702
|
+
* Inicializa o primeiro nível da pilha de escopos, normalmente com ítens da biblioteca global.
|
|
1703
|
+
* TODO: Esta abordagem deve ser depreciada, em favor do novo suporte a referências de funções.
|
|
1704
|
+
*/
|
|
1645
1705
|
inicializarPilhaEscopos() {
|
|
1646
1706
|
this.pilhaEscopos = new pilha_escopos_1.PilhaEscopos();
|
|
1647
1707
|
this.pilhaEscopos.empilhar(new informacao_escopo_1.InformacaoEscopo());
|
|
1648
1708
|
// Funções nativas de Delégua
|
|
1649
|
-
this.pilhaEscopos.
|
|
1650
|
-
|
|
1651
|
-
|
|
1652
|
-
this.pilhaEscopos.
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
this.pilhaEscopos.
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
this.pilhaEscopos.
|
|
1709
|
+
this.pilhaEscopos.definirInformacoesVariavel('aleatorio', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('aleatorio', 'inteiro', [
|
|
1710
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('número', 'número')
|
|
1711
|
+
]));
|
|
1712
|
+
this.pilhaEscopos.definirInformacoesVariavel('aleatorioEntre', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('aleatorioEntre', 'inteiro', [
|
|
1713
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('minimo', 'número'),
|
|
1714
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('maximo', 'número')
|
|
1715
|
+
]));
|
|
1716
|
+
this.pilhaEscopos.definirInformacoesVariavel('algum', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('algum', 'lógico', [
|
|
1717
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1718
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoPesquisa', 'função')
|
|
1719
|
+
]));
|
|
1720
|
+
this.pilhaEscopos.definirInformacoesVariavel('encontrar', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('encontrar', 'qualquer', [
|
|
1721
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1722
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoPesquisa', 'função')
|
|
1723
|
+
]));
|
|
1724
|
+
this.pilhaEscopos.definirInformacoesVariavel('encontrarIndice', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('encontrarIndice', 'inteiro', [
|
|
1725
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1726
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoPesquisa', 'função')
|
|
1727
|
+
]));
|
|
1728
|
+
this.pilhaEscopos.definirInformacoesVariavel('encontrarUltimo', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('encontrarUltimo', 'inteiro', [
|
|
1729
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1730
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoPesquisa', 'função')
|
|
1731
|
+
]));
|
|
1732
|
+
this.pilhaEscopos.definirInformacoesVariavel('encontrarUltimoIndice', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('encontrarUltimoIndice', 'inteiro', [
|
|
1733
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1734
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoPesquisa', 'função')
|
|
1735
|
+
]));
|
|
1736
|
+
this.pilhaEscopos.definirInformacoesVariavel('filtrarPor', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('filtrarPor', 'qualquer[]', [
|
|
1737
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1738
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoFiltragem', 'função')
|
|
1739
|
+
]));
|
|
1740
|
+
this.pilhaEscopos.definirInformacoesVariavel('incluido', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('incluido', 'lógico', [
|
|
1741
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1742
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valor', 'qualquer')
|
|
1743
|
+
]));
|
|
1744
|
+
this.pilhaEscopos.definirInformacoesVariavel('inteiro', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inteiro', 'inteiro', [
|
|
1745
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valor', 'qualquer')
|
|
1746
|
+
]));
|
|
1747
|
+
this.pilhaEscopos.definirInformacoesVariavel('mapear', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('mapear', 'qualquer[]', [
|
|
1748
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1749
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoMapeamento', 'função')
|
|
1750
|
+
]));
|
|
1751
|
+
this.pilhaEscopos.definirInformacoesVariavel('numero', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('número', 'número', [
|
|
1752
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valorParaConverter', 'qualquer')
|
|
1753
|
+
]));
|
|
1754
|
+
this.pilhaEscopos.definirInformacoesVariavel('número', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('número', 'número', [
|
|
1755
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valorParaConverter', 'qualquer')
|
|
1756
|
+
]));
|
|
1757
|
+
this.pilhaEscopos.definirInformacoesVariavel('ordenar', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('ordenar', 'qualquer[]', [
|
|
1758
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1759
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoOrdenacao', 'função')
|
|
1760
|
+
]));
|
|
1761
|
+
this.pilhaEscopos.definirInformacoesVariavel('paraCada', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('paraCada', 'qualquer[]', [
|
|
1762
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1763
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoFiltragem', 'função')
|
|
1764
|
+
]));
|
|
1765
|
+
this.pilhaEscopos.definirInformacoesVariavel('primeiroEmCondicao', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('primeiroEmCondicao', 'qualquer', [
|
|
1766
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1767
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoFiltragem', 'função')
|
|
1768
|
+
]));
|
|
1769
|
+
this.pilhaEscopos.definirInformacoesVariavel('real', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('real', 'número', [
|
|
1770
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valorParaConverter', 'qualquer')
|
|
1771
|
+
]));
|
|
1772
|
+
this.pilhaEscopos.definirInformacoesVariavel('reduzir', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('reduzir', 'qualquer', [
|
|
1773
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1774
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoReducao', 'função'),
|
|
1775
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valorInicial', 'qualquer')
|
|
1776
|
+
]));
|
|
1777
|
+
this.pilhaEscopos.definirInformacoesVariavel('tamanho', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('tamanho', 'inteiro', [
|
|
1778
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('objeto', 'qualquer')
|
|
1779
|
+
]));
|
|
1780
|
+
this.pilhaEscopos.definirInformacoesVariavel('texto', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('texto', 'texto', [
|
|
1781
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('valorParaConverter', 'qualquer')
|
|
1782
|
+
]));
|
|
1783
|
+
this.pilhaEscopos.definirInformacoesVariavel('todosEmCondicao', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('todosEmCondicao', 'lógico', [
|
|
1784
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]'),
|
|
1785
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoCondicional', 'função')
|
|
1786
|
+
]));
|
|
1787
|
+
this.pilhaEscopos.definirInformacoesVariavel('tupla', new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('tupla', 'tupla', [
|
|
1788
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('vetor', 'qualquer[]')
|
|
1789
|
+
]));
|
|
1661
1790
|
// TODO: Escrever algum tipo de validação aqui.
|
|
1662
1791
|
for (const tipos of Object.values(this.tiposDeFerramentasExternas)) {
|
|
1663
1792
|
for (const [nomeTipo, tipo] of Object.entries(tipos)) {
|
|
1664
|
-
this.pilhaEscopos.
|
|
1793
|
+
this.pilhaEscopos.definirInformacoesVariavel(nomeTipo, new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante(nomeTipo, tipo));
|
|
1665
1794
|
}
|
|
1666
1795
|
}
|
|
1667
1796
|
}
|
|
@@ -1688,6 +1817,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1688
1817
|
}
|
|
1689
1818
|
if (this.performance) {
|
|
1690
1819
|
const deltaAnalise = (0, browser_process_hrtime_1.default)(inicioAnalise);
|
|
1820
|
+
// eslint-disable-next-line no-undef
|
|
1691
1821
|
console.log(`[Avaliador Sintático] Tempo para análise: ${deltaAnalise[0] * 1e9 + deltaAnalise[1]}ns`);
|
|
1692
1822
|
}
|
|
1693
1823
|
return {
|
|
@@ -1698,7 +1828,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1698
1828
|
}
|
|
1699
1829
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
1700
1830
|
|
|
1701
|
-
},{"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../construtos":42,"../construtos/tuplas":52,"../declaracoes":82,"../inferenciador":105,"../tipos-de-dados/delegua":
|
|
1831
|
+
},{"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../construtos":42,"../construtos/tuplas":52,"../declaracoes":82,"../inferenciador":105,"../informacao-variavel-ou-constante":106,"../tipos-de-dados/delegua":162,"../tipos-de-simbolos/delegua":165,"./avaliador-sintatico-base":1,"./erro-avaliador-sintatico":7,"./informacao-escopo":9,"./pilha-escopos":12,"browser-process-hrtime":342}],3:[function(require,module,exports){
|
|
1702
1832
|
"use strict";
|
|
1703
1833
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
1704
1834
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2350,7 +2480,7 @@ class AvaliadorSintaticoEguaClassico {
|
|
|
2350
2480
|
}
|
|
2351
2481
|
exports.AvaliadorSintaticoEguaClassico = AvaliadorSintaticoEguaClassico;
|
|
2352
2482
|
|
|
2353
|
-
},{"../../construtos":42,"../../declaracoes":82,"../../tipos-de-simbolos/egua-classico":
|
|
2483
|
+
},{"../../construtos":42,"../../declaracoes":82,"../../tipos-de-simbolos/egua-classico":166,"../erro-avaliador-sintatico":7}],4:[function(require,module,exports){
|
|
2354
2484
|
"use strict";
|
|
2355
2485
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2356
2486
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2425,7 +2555,10 @@ class AvaliadorSintaticoPitugues {
|
|
|
2425
2555
|
// Se tipo ainda não foi definido, infere.
|
|
2426
2556
|
// tipo = this.logicaComumInferenciaTiposVariaveisEConstantes(inicializadores[indice], tipo);
|
|
2427
2557
|
// this.pilhaEscopos.definirTipoVariavel(identificador.lexema, tipo);
|
|
2428
|
-
retorno.push(new declaracoes_1.Const(identificador, inicializadores[indice], tipo
|
|
2558
|
+
retorno.push(new declaracoes_1.Const(identificador, inicializadores[indice], tipo
|
|
2559
|
+
// TODO: Discutir decoradores com comunidade.
|
|
2560
|
+
// Array.from(this.pilhaDecoradores)
|
|
2561
|
+
));
|
|
2429
2562
|
}
|
|
2430
2563
|
// this.pilhaDecoradores = [];
|
|
2431
2564
|
return retorno;
|
|
@@ -3007,6 +3140,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
3007
3140
|
case pitugues_1.default.ESCOLHA:
|
|
3008
3141
|
this.avancarEDevolverAnterior();
|
|
3009
3142
|
return this.declaracaoEscolha();
|
|
3143
|
+
case pitugues_1.default.IMPRIMA:
|
|
3010
3144
|
case pitugues_1.default.ESCREVA:
|
|
3011
3145
|
this.avancarEDevolverAnterior();
|
|
3012
3146
|
return this.declaracaoEscreva();
|
|
@@ -3154,7 +3288,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
3154
3288
|
}
|
|
3155
3289
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
3156
3290
|
|
|
3157
|
-
},{"../../construtos":42,"../../declaracoes":82,"../../inferenciador":105,"../../lexador":
|
|
3291
|
+
},{"../../construtos":42,"../../declaracoes":82,"../../inferenciador":105,"../../lexador":154,"../../tipos-de-simbolos/pitugues":169,"../erro-avaliador-sintatico":7,"browser-process-hrtime":342}],5:[function(require,module,exports){
|
|
3158
3292
|
"use strict";
|
|
3159
3293
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3160
3294
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3323,7 +3457,7 @@ class AvaliadorSintaticoPortugolIpt extends avaliador_sintatico_base_1.Avaliador
|
|
|
3323
3457
|
}
|
|
3324
3458
|
exports.AvaliadorSintaticoPortugolIpt = AvaliadorSintaticoPortugolIpt;
|
|
3325
3459
|
|
|
3326
|
-
},{"../../construtos":42,"../../declaracoes":82,"../../tipos-de-simbolos/portugol-ipt":
|
|
3460
|
+
},{"../../construtos":42,"../../declaracoes":82,"../../tipos-de-simbolos/portugol-ipt":170,"../avaliador-sintatico-base":1}],6:[function(require,module,exports){
|
|
3327
3461
|
"use strict";
|
|
3328
3462
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3329
3463
|
if (k2 === undefined) k2 = k;
|
|
@@ -3378,11 +3512,12 @@ __exportStar(require("./avaliador-sintatico"), exports);
|
|
|
3378
3512
|
__exportStar(require("./avaliador-sintatico-base"), exports);
|
|
3379
3513
|
__exportStar(require("./dialetos"), exports);
|
|
3380
3514
|
__exportStar(require("./erro-avaliador-sintatico"), exports);
|
|
3515
|
+
__exportStar(require("./informacao-escopo"), exports);
|
|
3381
3516
|
__exportStar(require("./micro-avaliador-sintatico"), exports);
|
|
3382
3517
|
__exportStar(require("./pilha-escopos"), exports);
|
|
3383
3518
|
__exportStar(require("./retornos"), exports);
|
|
3384
3519
|
|
|
3385
|
-
},{"./avaliador-sintatico":2,"./avaliador-sintatico-base":1,"./dialetos":6,"./erro-avaliador-sintatico":7,"./micro-avaliador-sintatico":11,"./pilha-escopos":12,"./retornos":13}],9:[function(require,module,exports){
|
|
3520
|
+
},{"./avaliador-sintatico":2,"./avaliador-sintatico-base":1,"./dialetos":6,"./erro-avaliador-sintatico":7,"./informacao-escopo":9,"./micro-avaliador-sintatico":11,"./pilha-escopos":12,"./retornos":13}],9:[function(require,module,exports){
|
|
3386
3521
|
"use strict";
|
|
3387
3522
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3388
3523
|
exports.InformacaoEscopo = void 0;
|
|
@@ -3512,7 +3647,7 @@ class MicroAvaliadorSintaticoBase {
|
|
|
3512
3647
|
}
|
|
3513
3648
|
exports.MicroAvaliadorSintaticoBase = MicroAvaliadorSintaticoBase;
|
|
3514
3649
|
|
|
3515
|
-
},{"../construtos":42,"../tipos-de-simbolos/comum":
|
|
3650
|
+
},{"../construtos":42,"../tipos-de-simbolos/comum":164,"./erro-avaliador-sintatico":7}],11:[function(require,module,exports){
|
|
3516
3651
|
"use strict";
|
|
3517
3652
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3518
3653
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3718,7 +3853,7 @@ class MicroAvaliadorSintatico extends micro_avaliador_sintatico_base_1.MicroAval
|
|
|
3718
3853
|
}
|
|
3719
3854
|
exports.MicroAvaliadorSintatico = MicroAvaliadorSintatico;
|
|
3720
3855
|
|
|
3721
|
-
},{"../construtos":42,"../tipos-de-simbolos/microgramaticas/delegua":
|
|
3856
|
+
},{"../construtos":42,"../tipos-de-simbolos/microgramaticas/delegua":168,"./micro-avaliador-sintatico-base":10}],12:[function(require,module,exports){
|
|
3722
3857
|
"use strict";
|
|
3723
3858
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3724
3859
|
exports.PilhaEscopos = void 0;
|
|
@@ -3742,18 +3877,21 @@ class PilhaEscopos {
|
|
|
3742
3877
|
throw new Error('Pilha vazia.');
|
|
3743
3878
|
return this.pilha.pop();
|
|
3744
3879
|
}
|
|
3880
|
+
obterBibliotecaGlobal(nome) {
|
|
3881
|
+
return this.pilha[0].variaveisEConstantes[nome];
|
|
3882
|
+
}
|
|
3745
3883
|
obterTipoVariavelPorNome(nome) {
|
|
3746
3884
|
for (let i = 1; i <= this.pilha.length; i++) {
|
|
3747
3885
|
const informacaoEscopo = this.pilha[this.pilha.length - i];
|
|
3748
3886
|
if (informacaoEscopo.variaveisEConstantes[nome] !== undefined) {
|
|
3749
|
-
return informacaoEscopo.variaveisEConstantes[nome];
|
|
3887
|
+
return informacaoEscopo.variaveisEConstantes[nome].tipo;
|
|
3750
3888
|
}
|
|
3751
3889
|
}
|
|
3752
3890
|
throw new Error("Variável não definida: '" + nome + "'.");
|
|
3753
3891
|
}
|
|
3754
|
-
|
|
3892
|
+
definirInformacoesVariavel(nomeVariavel, informacoes) {
|
|
3755
3893
|
const topoDaPilha = this.topoDaPilha();
|
|
3756
|
-
topoDaPilha.variaveisEConstantes[nomeVariavel] =
|
|
3894
|
+
topoDaPilha.variaveisEConstantes[nomeVariavel] = informacoes;
|
|
3757
3895
|
}
|
|
3758
3896
|
registrarReferenciaFuncao(nome, definicao) {
|
|
3759
3897
|
const topoDaPilha = this.topoDaPilha();
|
|
@@ -3808,6 +3946,7 @@ exports.filtrarPor = filtrarPor;
|
|
|
3808
3946
|
exports.incluido = incluido;
|
|
3809
3947
|
exports.inteiro = inteiro;
|
|
3810
3948
|
exports.mapear = mapear;
|
|
3949
|
+
exports.numero = numero;
|
|
3811
3950
|
exports.ordenar = ordenar;
|
|
3812
3951
|
exports.paraCada = paraCada;
|
|
3813
3952
|
exports.primeiroEmCondicao = primeiroEmCondicao;
|
|
@@ -3838,7 +3977,6 @@ async function aleatorio(interpretador) {
|
|
|
3838
3977
|
* @returns {Promise<number>} Um número real entre os valores máximo e mínimo especificados.
|
|
3839
3978
|
*/
|
|
3840
3979
|
async function aleatorioEntre(interpretador, minimo, maximo) {
|
|
3841
|
-
// eslint-disable-next-line prefer-rest-params
|
|
3842
3980
|
if (arguments.length <= 0) {
|
|
3843
3981
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'A função recebe ao menos um parâmetro.'));
|
|
3844
3982
|
}
|
|
@@ -3935,7 +4073,7 @@ async function encontrarIndice(interpretador, vetor, funcaoPesquisa) {
|
|
|
3935
4073
|
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
3936
4074
|
* @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
|
|
3937
4075
|
* @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
|
|
3938
|
-
* @returns {Promise<
|
|
4076
|
+
* @returns {Promise<any>} O número correspondente ao índice se o elemento for encontrado, ou nulo em caso contrário.
|
|
3939
4077
|
*/
|
|
3940
4078
|
async function encontrarUltimo(interpretador, vetor, funcaoPesquisa) {
|
|
3941
4079
|
const valorVetor = vetor.hasOwnProperty('valor') ? vetor.valor : vetor;
|
|
@@ -4023,23 +4161,27 @@ async function incluido(interpretador, vetor, valor) {
|
|
|
4023
4161
|
}
|
|
4024
4162
|
return false;
|
|
4025
4163
|
}
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
4029
|
-
* @param numero
|
|
4030
|
-
* @returns
|
|
4031
|
-
*/
|
|
4032
|
-
async function inteiro(interpretador, numero) {
|
|
4033
|
-
if (numero === null || numero === undefined)
|
|
4034
|
-
return Promise.resolve(0);
|
|
4035
|
-
const valor = numero.hasOwnProperty('valor') ? numero.valor : numero;
|
|
4036
|
-
if (isNaN(valor)) {
|
|
4164
|
+
function validacaoComumNumeros(valorParaConverter) {
|
|
4165
|
+
if (isNaN(valorParaConverter)) {
|
|
4037
4166
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Valor não parece ser um número. Somente números ou textos com números podem ser convertidos para inteiro.'));
|
|
4038
4167
|
}
|
|
4039
|
-
if (!/^(-)?\d+(\.\d+)?$/.test(
|
|
4168
|
+
if (!/^(-)?\d+(\.\d+)?$/.test(valorParaConverter)) {
|
|
4040
4169
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Valor não parece estar estruturado como um número (texto vazio, falso ou não definido). Somente números ou textos com números podem ser convertidos para inteiro.'));
|
|
4041
4170
|
}
|
|
4042
|
-
return
|
|
4171
|
+
return null;
|
|
4172
|
+
}
|
|
4173
|
+
/**
|
|
4174
|
+
* Converte um valor em um número inteiro.
|
|
4175
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
4176
|
+
* @param {VariavelInterface | any} valorParaConverter O valor a ser convertido.
|
|
4177
|
+
* @returns {Promise<any>} Uma Promise com o resultado da conversão.
|
|
4178
|
+
*/
|
|
4179
|
+
async function inteiro(interpretador, valorParaConverter) {
|
|
4180
|
+
if (valorParaConverter === null || valorParaConverter === undefined)
|
|
4181
|
+
return Promise.resolve(0);
|
|
4182
|
+
const valor = valorParaConverter.hasOwnProperty('valor') ? valorParaConverter.valor : valorParaConverter;
|
|
4183
|
+
const resultadoValidacao = validacaoComumNumeros(valor);
|
|
4184
|
+
return resultadoValidacao || Promise.resolve(parseInt(valor));
|
|
4043
4185
|
}
|
|
4044
4186
|
/**
|
|
4045
4187
|
*
|
|
@@ -4053,6 +4195,8 @@ async function mapear(interpretador, vetor, funcaoMapeamento) {
|
|
|
4053
4195
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Parâmetro inválido. O primeiro parâmetro da função mapear() não pode ser nulo.'));
|
|
4054
4196
|
const valorVetor = vetor.hasOwnProperty('valor') ? vetor.valor : vetor;
|
|
4055
4197
|
const valorFuncaoMapeamento = funcaoMapeamento.hasOwnProperty('valor') ? funcaoMapeamento.valor : funcaoMapeamento;
|
|
4198
|
+
// TODO: As lógicas de validação abaixo deixam de fazer sentido com a validação de argumentos feita
|
|
4199
|
+
// na avaliação sintática. Estudar remoção.
|
|
4056
4200
|
if (!Array.isArray(valorVetor)) {
|
|
4057
4201
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Parâmetro inválido. O primeiro parâmetro da função mapear() deve ser um vetor.'));
|
|
4058
4202
|
}
|
|
@@ -4065,6 +4209,19 @@ async function mapear(interpretador, vetor, funcaoMapeamento) {
|
|
|
4065
4209
|
}
|
|
4066
4210
|
return resultados;
|
|
4067
4211
|
}
|
|
4212
|
+
/**
|
|
4213
|
+
* Converte um valor em um número, com parte decimal ou não.
|
|
4214
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
4215
|
+
* @param {VariavelInterface | any} valorParaConverter O valor a ser convertido.
|
|
4216
|
+
* @returns {Promise<any>} Uma Promise com o resultado da conversão.
|
|
4217
|
+
*/
|
|
4218
|
+
async function numero(interpretador, valorParaConverter) {
|
|
4219
|
+
if (valorParaConverter === null || valorParaConverter === undefined)
|
|
4220
|
+
return Promise.resolve(0);
|
|
4221
|
+
const valor = valorParaConverter.hasOwnProperty('valor') ? valorParaConverter.valor : valorParaConverter;
|
|
4222
|
+
const resultadoValidacao = validacaoComumNumeros(valor);
|
|
4223
|
+
return resultadoValidacao || Promise.resolve(Number(valor));
|
|
4224
|
+
}
|
|
4068
4225
|
/**
|
|
4069
4226
|
*
|
|
4070
4227
|
* @param vetor
|
|
@@ -4102,6 +4259,8 @@ async function paraCada(interpretador, vetor, funcaoFiltragem) {
|
|
|
4102
4259
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Parâmetro inválido. O primeiro parâmetro da função paraCada() não pode ser nulo.'));
|
|
4103
4260
|
const valorVetor = vetor.hasOwnProperty('valor') ? vetor.valor : vetor;
|
|
4104
4261
|
const valorFuncaoFiltragem = funcaoFiltragem.hasOwnProperty('valor') ? funcaoFiltragem.valor : funcaoFiltragem;
|
|
4262
|
+
// TODO: As lógicas de validação abaixo deixam de fazer sentido com a validação de argumentos feita
|
|
4263
|
+
// na avaliação sintática. Estudar remoção.
|
|
4105
4264
|
if (!Array.isArray(valorVetor)) {
|
|
4106
4265
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Parâmetro inválido. O primeiro parâmetro da função paraCada() deve ser um vetor.'));
|
|
4107
4266
|
}
|
|
@@ -4158,13 +4317,13 @@ async function real(interpretador, numero) {
|
|
|
4158
4317
|
* @param interpretador
|
|
4159
4318
|
* @param vetor
|
|
4160
4319
|
* @param funcaoReducao
|
|
4161
|
-
* @param
|
|
4320
|
+
* @param valorInicial
|
|
4162
4321
|
* @returns
|
|
4163
4322
|
*/
|
|
4164
|
-
async function reduzir(interpretador, vetor, funcaoReducao,
|
|
4323
|
+
async function reduzir(interpretador, vetor, funcaoReducao, valorInicial = null) {
|
|
4165
4324
|
const valorVetor = vetor.hasOwnProperty('valor') ? vetor.valor : vetor;
|
|
4166
4325
|
const valorFuncaoReducao = funcaoReducao.hasOwnProperty('valor') ? funcaoReducao.valor : funcaoReducao;
|
|
4167
|
-
const valorPadrao =
|
|
4326
|
+
const valorPadrao = valorInicial.hasOwnProperty('valor') ? valorInicial.valor : valorInicial;
|
|
4168
4327
|
if (!Array.isArray(valorVetor)) {
|
|
4169
4328
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
4170
4329
|
}
|
|
@@ -4214,11 +4373,11 @@ async function tamanho(interpretador, objeto) {
|
|
|
4214
4373
|
/**
|
|
4215
4374
|
* Transforma o valor ou variável em texto.
|
|
4216
4375
|
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
4217
|
-
* @param {VariavelInterface | any}
|
|
4376
|
+
* @param {VariavelInterface | any} valorParaConverter O valor ou variável.
|
|
4218
4377
|
* @returns {Promise<string>} O valor resolvido em texto.
|
|
4219
4378
|
*/
|
|
4220
|
-
async function texto(interpretador,
|
|
4221
|
-
return Promise.resolve(`${
|
|
4379
|
+
async function texto(interpretador, valorParaConverter) {
|
|
4380
|
+
return Promise.resolve(`${valorParaConverter.hasOwnProperty('valor') ? valorParaConverter.valor : valorParaConverter}`);
|
|
4222
4381
|
}
|
|
4223
4382
|
/**
|
|
4224
4383
|
* Retorna verdadeiro se todos os elementos do primeiro parâmetro retornam verdadeiro ao
|
|
@@ -4254,10 +4413,12 @@ async function todosEmCondicao(interpretador, vetor, funcaoCondicional) {
|
|
|
4254
4413
|
* largura do vetor.
|
|
4255
4414
|
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
4256
4415
|
* @param {VariavelInterface | any[]} vetor O vetor.
|
|
4257
|
-
* @returns
|
|
4416
|
+
* @returns A tupla resolvida.
|
|
4258
4417
|
*/
|
|
4259
4418
|
async function tupla(interpretador, vetor) {
|
|
4260
4419
|
const valorVetor = !Array.isArray(vetor) && vetor.hasOwnProperty('valor') ? vetor.valor : vetor;
|
|
4420
|
+
// TODO: As lógicas de validação abaixo deixam de fazer sentido com a validação de argumentos feita
|
|
4421
|
+
// na avaliação sintática. Estudar remoção.
|
|
4261
4422
|
if (!Array.isArray(valorVetor)) {
|
|
4262
4423
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(this.simbolo, 'Argumento de função nativa `tupla` não parece ser um vetor.'));
|
|
4263
4424
|
}
|
|
@@ -4286,21 +4447,23 @@ async function tupla(interpretador, vetor) {
|
|
|
4286
4447
|
}
|
|
4287
4448
|
}
|
|
4288
4449
|
|
|
4289
|
-
},{"../construtos":42,"../excecoes":99,"../interpretador/estruturas":
|
|
4450
|
+
},{"../construtos":42,"../excecoes":99,"../interpretador/estruturas":135,"../interpretador/estruturas/descritor-tipo-classe":133,"../interpretador/estruturas/funcao-padrao":134,"../interpretador/estruturas/objeto-delegua-classe":138}],16:[function(require,module,exports){
|
|
4290
4451
|
"use strict";
|
|
4291
4452
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4292
4453
|
exports.default = {
|
|
4293
4454
|
chaves: {
|
|
4294
4455
|
tipoRetorno: 'texto[]',
|
|
4456
|
+
argumentos: [],
|
|
4295
4457
|
implementacao: (interpretador, valor) => {
|
|
4296
4458
|
return Promise.resolve(Object.keys(valor));
|
|
4297
|
-
}
|
|
4459
|
+
},
|
|
4298
4460
|
},
|
|
4299
4461
|
valores: {
|
|
4300
4462
|
tipoRetorno: 'qualquer[]',
|
|
4463
|
+
argumentos: [],
|
|
4301
4464
|
implementacao: (interpretador, valor) => {
|
|
4302
4465
|
return Promise.resolve(Object.values(valor));
|
|
4303
|
-
}
|
|
4466
|
+
},
|
|
4304
4467
|
},
|
|
4305
4468
|
};
|
|
4306
4469
|
|
|
@@ -4310,126 +4473,178 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4310
4473
|
exports.default = {
|
|
4311
4474
|
arredondarParaBaixo: {
|
|
4312
4475
|
tipoRetorno: 'número',
|
|
4476
|
+
argumentos: [],
|
|
4313
4477
|
implementacao: (interpretador, valor) => {
|
|
4314
4478
|
return Promise.resolve(Math.floor(valor));
|
|
4315
|
-
}
|
|
4479
|
+
},
|
|
4316
4480
|
},
|
|
4317
4481
|
arredondarParaCima: {
|
|
4318
4482
|
tipoRetorno: 'número',
|
|
4483
|
+
argumentos: [],
|
|
4319
4484
|
implementacao: (interpretador, valor) => {
|
|
4320
4485
|
return Promise.resolve(Math.ceil(valor));
|
|
4321
|
-
}
|
|
4486
|
+
},
|
|
4322
4487
|
},
|
|
4323
4488
|
};
|
|
4324
4489
|
|
|
4325
4490
|
},{}],18:[function(require,module,exports){
|
|
4326
4491
|
"use strict";
|
|
4327
4492
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4493
|
+
const informacao_variavel_ou_constante_1 = require("../informacao-variavel-ou-constante");
|
|
4328
4494
|
exports.default = {
|
|
4329
4495
|
aparar: {
|
|
4330
4496
|
tipoRetorno: 'texto',
|
|
4331
|
-
|
|
4497
|
+
argumentos: [],
|
|
4498
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.trim()),
|
|
4332
4499
|
},
|
|
4333
4500
|
apararFim: {
|
|
4334
4501
|
tipoRetorno: 'texto',
|
|
4335
|
-
|
|
4502
|
+
argumentos: [],
|
|
4503
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.trimEnd()),
|
|
4336
4504
|
},
|
|
4337
4505
|
apararInicio: {
|
|
4338
4506
|
tipoRetorno: 'texto',
|
|
4339
|
-
|
|
4507
|
+
argumentos: [],
|
|
4508
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.trimStart()),
|
|
4340
4509
|
},
|
|
4341
4510
|
concatenar: {
|
|
4342
4511
|
tipoRetorno: 'texto',
|
|
4343
|
-
|
|
4512
|
+
argumentos: [],
|
|
4513
|
+
implementacao: (interpretador, ...texto) => Promise.resolve(''.concat(...texto)),
|
|
4344
4514
|
},
|
|
4345
4515
|
dividir: {
|
|
4346
4516
|
tipoRetorno: 'texto[]',
|
|
4517
|
+
argumentos: [
|
|
4518
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('divisor', 'texto'),
|
|
4519
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('limite', 'número')
|
|
4520
|
+
],
|
|
4347
4521
|
implementacao: (interpretador, texto, divisor, limite) => {
|
|
4348
4522
|
if (limite) {
|
|
4349
4523
|
return Promise.resolve(texto.split(divisor, limite));
|
|
4350
4524
|
}
|
|
4351
4525
|
return Promise.resolve(texto.split(divisor));
|
|
4352
|
-
}
|
|
4526
|
+
},
|
|
4353
4527
|
},
|
|
4354
4528
|
fatiar: {
|
|
4355
4529
|
tipoRetorno: 'texto',
|
|
4356
|
-
|
|
4530
|
+
argumentos: [
|
|
4531
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inicio', 'número'),
|
|
4532
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('fim', 'número')
|
|
4533
|
+
],
|
|
4534
|
+
implementacao: (interpretador, texto, inicio, fim) => Promise.resolve(texto.slice(inicio, fim)),
|
|
4357
4535
|
},
|
|
4358
4536
|
inclui: {
|
|
4359
4537
|
tipoRetorno: 'texto',
|
|
4360
|
-
|
|
4538
|
+
argumentos: [
|
|
4539
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'texto')
|
|
4540
|
+
],
|
|
4541
|
+
implementacao: (interpretador, texto, elemento) => Promise.resolve(texto.includes(elemento)),
|
|
4361
4542
|
},
|
|
4362
4543
|
inverter: {
|
|
4363
4544
|
tipoRetorno: 'texto',
|
|
4364
|
-
|
|
4545
|
+
argumentos: [],
|
|
4546
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.split('').reduce((texto, caracter) => (texto = caracter + texto), '')),
|
|
4365
4547
|
},
|
|
4366
4548
|
maiusculo: {
|
|
4367
4549
|
tipoRetorno: 'texto',
|
|
4368
|
-
|
|
4550
|
+
argumentos: [],
|
|
4551
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.toUpperCase()),
|
|
4369
4552
|
},
|
|
4370
4553
|
minusculo: {
|
|
4371
4554
|
tipoRetorno: 'texto',
|
|
4372
|
-
|
|
4555
|
+
argumentos: [],
|
|
4556
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.toLowerCase()),
|
|
4373
4557
|
},
|
|
4374
4558
|
substituir: {
|
|
4375
4559
|
tipoRetorno: 'texto',
|
|
4376
|
-
|
|
4560
|
+
argumentos: [
|
|
4561
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'texto'),
|
|
4562
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('substituto', 'texto')
|
|
4563
|
+
],
|
|
4564
|
+
implementacao: (interpretador, texto, elemento, substituto) => Promise.resolve(texto.replace(elemento, substituto)),
|
|
4377
4565
|
},
|
|
4378
4566
|
subtexto: {
|
|
4379
4567
|
tipoRetorno: 'texto',
|
|
4380
|
-
|
|
4568
|
+
argumentos: [
|
|
4569
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inicio', 'número'),
|
|
4570
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('fim', 'número')
|
|
4571
|
+
],
|
|
4572
|
+
implementacao: (interpretador, texto, inicio, fim) => Promise.resolve(texto.slice(inicio, fim)),
|
|
4381
4573
|
},
|
|
4382
4574
|
tamanho: {
|
|
4383
4575
|
tipoRetorno: 'número',
|
|
4384
|
-
|
|
4385
|
-
|
|
4576
|
+
argumentos: [],
|
|
4577
|
+
implementacao: (interpretador, texto) => Promise.resolve(texto.length),
|
|
4578
|
+
},
|
|
4386
4579
|
};
|
|
4387
4580
|
|
|
4388
|
-
},{}],19:[function(require,module,exports){
|
|
4581
|
+
},{"../informacao-variavel-ou-constante":106}],19:[function(require,module,exports){
|
|
4389
4582
|
"use strict";
|
|
4390
4583
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4584
|
+
const informacao_variavel_ou_constante_1 = require("../informacao-variavel-ou-constante");
|
|
4391
4585
|
exports.default = {
|
|
4392
4586
|
adicionar: {
|
|
4393
4587
|
tipoRetorno: 'qualquer[]',
|
|
4588
|
+
argumentos: [
|
|
4589
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'qualquer')
|
|
4590
|
+
],
|
|
4394
4591
|
implementacao: (interpretador, vetor, elemento) => {
|
|
4395
4592
|
vetor.push(elemento);
|
|
4396
4593
|
return Promise.resolve(vetor);
|
|
4397
|
-
}
|
|
4594
|
+
},
|
|
4398
4595
|
},
|
|
4399
4596
|
concatenar: {
|
|
4400
4597
|
tipoRetorno: 'qualquer[]',
|
|
4598
|
+
argumentos: [
|
|
4599
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('outroVetor', 'qualquer[]')
|
|
4600
|
+
],
|
|
4401
4601
|
implementacao: (interpretador, vetor, outroVetor) => {
|
|
4402
4602
|
return Promise.resolve(vetor.concat(outroVetor));
|
|
4403
|
-
}
|
|
4603
|
+
},
|
|
4404
4604
|
},
|
|
4405
4605
|
empilhar: {
|
|
4406
4606
|
tipoRetorno: 'qualquer[]',
|
|
4607
|
+
argumentos: [
|
|
4608
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'qualquer')
|
|
4609
|
+
],
|
|
4407
4610
|
implementacao: (interpretador, vetor, elemento) => {
|
|
4408
4611
|
vetor.push(elemento);
|
|
4409
4612
|
return Promise.resolve(vetor);
|
|
4410
|
-
}
|
|
4613
|
+
},
|
|
4411
4614
|
},
|
|
4412
4615
|
encaixar: {
|
|
4413
4616
|
tipoRetorno: 'qualquer[]',
|
|
4414
|
-
|
|
4617
|
+
argumentos: [
|
|
4618
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inicio', 'qualquer'),
|
|
4619
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('excluirQuantidade', 'número'),
|
|
4620
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('itens', 'qualquer[]')
|
|
4621
|
+
],
|
|
4622
|
+
implementacao: (interpretador, vetor, inicio, excluirQuantidade, ...itens) => {
|
|
4415
4623
|
let elementos = [];
|
|
4416
4624
|
if (excluirQuantidade || excluirQuantidade === 0) {
|
|
4417
|
-
elementos = !
|
|
4625
|
+
elementos = !itens.length
|
|
4418
4626
|
? vetor.splice(inicio, excluirQuantidade)
|
|
4419
|
-
: vetor.splice(inicio, excluirQuantidade, ...
|
|
4627
|
+
: vetor.splice(inicio, excluirQuantidade, ...itens);
|
|
4420
4628
|
}
|
|
4421
4629
|
else {
|
|
4422
|
-
elementos = !
|
|
4630
|
+
elementos = !itens.length ? vetor.splice(inicio) : vetor.splice(inicio, ...itens);
|
|
4423
4631
|
}
|
|
4424
4632
|
return Promise.resolve(elementos);
|
|
4425
|
-
}
|
|
4633
|
+
},
|
|
4426
4634
|
},
|
|
4427
4635
|
fatiar: {
|
|
4428
4636
|
tipoRetorno: 'qualquer[]',
|
|
4637
|
+
argumentos: [
|
|
4638
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('inicio', 'número'),
|
|
4639
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('fim', 'número')
|
|
4640
|
+
],
|
|
4429
4641
|
implementacao: (interpretador, vetor, inicio, fim) => Promise.resolve(vetor.slice(inicio, fim)),
|
|
4430
4642
|
},
|
|
4431
4643
|
filtrarPor: {
|
|
4432
4644
|
tipoRetorno: 'qualquer[]',
|
|
4645
|
+
argumentos: [
|
|
4646
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcao', 'função')
|
|
4647
|
+
],
|
|
4433
4648
|
implementacao: async (interpretador, vetor, funcao) => {
|
|
4434
4649
|
if (funcao === undefined || funcao === null) {
|
|
4435
4650
|
return Promise.reject("É necessário passar uma função para o método 'filtrarPor'");
|
|
@@ -4441,22 +4656,32 @@ exports.default = {
|
|
|
4441
4656
|
}
|
|
4442
4657
|
}
|
|
4443
4658
|
return retorno;
|
|
4444
|
-
}
|
|
4659
|
+
},
|
|
4445
4660
|
},
|
|
4446
4661
|
inclui: {
|
|
4447
4662
|
tipoRetorno: 'lógico',
|
|
4448
|
-
|
|
4663
|
+
argumentos: [
|
|
4664
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'qualquer')
|
|
4665
|
+
],
|
|
4666
|
+
implementacao: (interpretador, vetor, elemento) => Promise.resolve(vetor.includes(elemento)),
|
|
4449
4667
|
},
|
|
4450
4668
|
inverter: {
|
|
4451
4669
|
tipoRetorno: 'qualquer[]',
|
|
4452
|
-
|
|
4670
|
+
argumentos: [],
|
|
4671
|
+
implementacao: (interpretador, vetor) => Promise.resolve(vetor.reverse()),
|
|
4453
4672
|
},
|
|
4454
4673
|
juntar: {
|
|
4455
4674
|
tipoRetorno: 'texto',
|
|
4456
|
-
|
|
4675
|
+
argumentos: [
|
|
4676
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('separador', 'texto')
|
|
4677
|
+
],
|
|
4678
|
+
implementacao: (interpretador, vetor, separador) => Promise.resolve(vetor.join(separador)),
|
|
4457
4679
|
},
|
|
4458
4680
|
mapear: {
|
|
4459
4681
|
tipoRetorno: 'qualquer[]',
|
|
4682
|
+
argumentos: [
|
|
4683
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcao', 'função')
|
|
4684
|
+
],
|
|
4460
4685
|
implementacao: async (interpretador, vetor, funcao) => {
|
|
4461
4686
|
if (funcao === undefined || funcao === null) {
|
|
4462
4687
|
return Promise.reject("É necessário passar uma função para o método 'mapear'");
|
|
@@ -4467,10 +4692,13 @@ exports.default = {
|
|
|
4467
4692
|
retorno.push(resultado);
|
|
4468
4693
|
}
|
|
4469
4694
|
return retorno;
|
|
4470
|
-
}
|
|
4695
|
+
},
|
|
4471
4696
|
},
|
|
4472
4697
|
ordenar: {
|
|
4473
4698
|
tipoRetorno: 'qualquer[]',
|
|
4699
|
+
argumentos: [
|
|
4700
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('funcaoOrdenacao', 'função')
|
|
4701
|
+
],
|
|
4474
4702
|
implementacao: async (interpretador, vetor, funcaoOrdenacao) => {
|
|
4475
4703
|
if (funcaoOrdenacao !== undefined && funcaoOrdenacao !== null) {
|
|
4476
4704
|
for (let i = 0; i < vetor.length - 1; i++) {
|
|
@@ -4488,44 +4716,51 @@ exports.default = {
|
|
|
4488
4716
|
return vetor.sort();
|
|
4489
4717
|
}
|
|
4490
4718
|
return vetor.sort((a, b) => a - b);
|
|
4491
|
-
}
|
|
4719
|
+
},
|
|
4492
4720
|
},
|
|
4493
4721
|
remover: {
|
|
4494
4722
|
tipoRetorno: 'qualquer[]',
|
|
4723
|
+
argumentos: [
|
|
4724
|
+
new informacao_variavel_ou_constante_1.InformacaoVariavelOuConstante('elemento', 'qualquer')
|
|
4725
|
+
],
|
|
4495
4726
|
implementacao: (interpretador, vetor, elemento) => {
|
|
4496
4727
|
const index = vetor.indexOf(elemento);
|
|
4497
4728
|
if (index !== -1)
|
|
4498
4729
|
vetor.splice(index, 1);
|
|
4499
4730
|
return Promise.resolve(vetor);
|
|
4500
|
-
}
|
|
4731
|
+
},
|
|
4501
4732
|
},
|
|
4502
4733
|
removerPrimeiro: {
|
|
4503
4734
|
tipoRetorno: 'qualquer',
|
|
4735
|
+
argumentos: [],
|
|
4504
4736
|
implementacao: (interpretador, vetor) => {
|
|
4505
4737
|
let elemento = vetor.shift();
|
|
4506
4738
|
return Promise.resolve(elemento);
|
|
4507
|
-
}
|
|
4739
|
+
},
|
|
4508
4740
|
},
|
|
4509
4741
|
removerUltimo: {
|
|
4510
4742
|
tipoRetorno: 'qualquer',
|
|
4743
|
+
argumentos: [],
|
|
4511
4744
|
implementacao: (interpretador, vetor) => {
|
|
4512
4745
|
let elemento = vetor.pop();
|
|
4513
4746
|
return Promise.resolve(elemento);
|
|
4514
|
-
}
|
|
4747
|
+
},
|
|
4515
4748
|
},
|
|
4516
4749
|
somar: {
|
|
4517
4750
|
tipoRetorno: 'qualquer',
|
|
4751
|
+
argumentos: [],
|
|
4518
4752
|
implementacao: (interpretador, vetor) => {
|
|
4519
4753
|
return Promise.resolve(vetor.reduce((acc, item) => acc + (typeof item === 'number' ? item : item.valor), 0));
|
|
4520
|
-
}
|
|
4754
|
+
},
|
|
4521
4755
|
},
|
|
4522
4756
|
tamanho: {
|
|
4523
4757
|
tipoRetorno: 'número',
|
|
4524
|
-
|
|
4525
|
-
|
|
4758
|
+
argumentos: [],
|
|
4759
|
+
implementacao: (interpretador, vetor) => Promise.resolve(vetor.length),
|
|
4760
|
+
},
|
|
4526
4761
|
};
|
|
4527
4762
|
|
|
4528
|
-
},{}],20:[function(require,module,exports){
|
|
4763
|
+
},{"../informacao-variavel-ou-constante":106}],20:[function(require,module,exports){
|
|
4529
4764
|
"use strict";
|
|
4530
4765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4531
4766
|
exports.AcessoElementoMatriz = void 0;
|
|
@@ -4830,7 +5065,7 @@ class ComponenteLinguagem {
|
|
|
4830
5065
|
this.valor = simbolo.lexema;
|
|
4831
5066
|
}
|
|
4832
5067
|
aceitar(visitante) {
|
|
4833
|
-
throw new Error(
|
|
5068
|
+
throw new Error('Um componente de linguagem não tem método de visita.');
|
|
4834
5069
|
}
|
|
4835
5070
|
}
|
|
4836
5071
|
exports.ComponenteLinguagem = ComponenteLinguagem;
|
|
@@ -6943,7 +7178,7 @@ class FormatadorDelegua {
|
|
|
6943
7178
|
}
|
|
6944
7179
|
exports.FormatadorDelegua = FormatadorDelegua;
|
|
6945
7180
|
|
|
6946
|
-
},{"../construtos":42,"../tipos-de-simbolos/delegua":
|
|
7181
|
+
},{"../construtos":42,"../tipos-de-simbolos/delegua":165}],101:[function(require,module,exports){
|
|
6947
7182
|
"use strict";
|
|
6948
7183
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6949
7184
|
exports.FormatadorPitugues = void 0;
|
|
@@ -7192,7 +7427,7 @@ __exportStar(require("./interpretador"), exports);
|
|
|
7192
7427
|
__exportStar(require("./lexador"), exports);
|
|
7193
7428
|
__exportStar(require("./tradutores"), exports);
|
|
7194
7429
|
|
|
7195
|
-
},{"./avaliador-sintatico":8,"./construtos":42,"./declaracoes":82,"./depuracao":95,"./formatadores":102,"./interfaces":
|
|
7430
|
+
},{"./avaliador-sintatico":8,"./construtos":42,"./declaracoes":82,"./depuracao":95,"./formatadores":102,"./interfaces":112,"./interpretador":140,"./lexador":154,"./tradutores":171}],105:[function(require,module,exports){
|
|
7196
7431
|
"use strict";
|
|
7197
7432
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
7198
7433
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -7319,9 +7554,22 @@ function tipoInferenciaParaTipoDadosElementar(tipoInferencia) {
|
|
|
7319
7554
|
}
|
|
7320
7555
|
}
|
|
7321
7556
|
|
|
7322
|
-
},{"./tipos-de-dados/delegua":
|
|
7557
|
+
},{"./tipos-de-dados/delegua":162,"./tipos-de-dados/primitivos":163,"./tipos-de-simbolos/delegua":165}],106:[function(require,module,exports){
|
|
7323
7558
|
"use strict";
|
|
7324
7559
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7560
|
+
exports.InformacaoVariavelOuConstante = void 0;
|
|
7561
|
+
class InformacaoVariavelOuConstante {
|
|
7562
|
+
constructor(nome, tipo, argumentos = []) {
|
|
7563
|
+
this.argumentos = [];
|
|
7564
|
+
this.nome = nome;
|
|
7565
|
+
this.tipo = tipo;
|
|
7566
|
+
this.argumentos = argumentos;
|
|
7567
|
+
}
|
|
7568
|
+
toString() {
|
|
7569
|
+
return `InformacaoVariavelOuConstante(nome=${this.nome}, tipo=${this.tipo}, argumentos=${this.argumentos.map(arg => arg.toString()).join(', ')})`;
|
|
7570
|
+
}
|
|
7571
|
+
}
|
|
7572
|
+
exports.InformacaoVariavelOuConstante = InformacaoVariavelOuConstante;
|
|
7325
7573
|
|
|
7326
7574
|
},{}],107:[function(require,module,exports){
|
|
7327
7575
|
"use strict";
|
|
@@ -7330,6 +7578,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7330
7578
|
},{}],108:[function(require,module,exports){
|
|
7331
7579
|
"use strict";
|
|
7332
7580
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7581
|
+
|
|
7582
|
+
},{}],109:[function(require,module,exports){
|
|
7583
|
+
"use strict";
|
|
7584
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7333
7585
|
exports.DiagnosticoSeveridade = void 0;
|
|
7334
7586
|
var DiagnosticoSeveridade;
|
|
7335
7587
|
(function (DiagnosticoSeveridade) {
|
|
@@ -7339,7 +7591,7 @@ var DiagnosticoSeveridade;
|
|
|
7339
7591
|
DiagnosticoSeveridade[DiagnosticoSeveridade["SUGESTAO"] = 3] = "SUGESTAO";
|
|
7340
7592
|
})(DiagnosticoSeveridade || (exports.DiagnosticoSeveridade = DiagnosticoSeveridade = {}));
|
|
7341
7593
|
|
|
7342
|
-
},{}],
|
|
7594
|
+
},{}],110:[function(require,module,exports){
|
|
7343
7595
|
"use strict";
|
|
7344
7596
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7345
7597
|
if (k2 === undefined) k2 = k;
|
|
@@ -7358,11 +7610,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
7358
7610
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7359
7611
|
__exportStar(require("./diagnostico-analisador-semantico"), exports);
|
|
7360
7612
|
|
|
7361
|
-
},{"./diagnostico-analisador-semantico":
|
|
7613
|
+
},{"./diagnostico-analisador-semantico":109}],111:[function(require,module,exports){
|
|
7362
7614
|
"use strict";
|
|
7363
7615
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7364
7616
|
|
|
7365
|
-
},{}],
|
|
7617
|
+
},{}],112:[function(require,module,exports){
|
|
7366
7618
|
"use strict";
|
|
7367
7619
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7368
7620
|
if (k2 === undefined) k2 = k;
|
|
@@ -7397,11 +7649,7 @@ __exportStar(require("./construtos"), exports);
|
|
|
7397
7649
|
__exportStar(require("./erros"), exports);
|
|
7398
7650
|
__exportStar(require("./retornos"), exports);
|
|
7399
7651
|
|
|
7400
|
-
},{"./avaliador-sintatico-interface":
|
|
7401
|
-
"use strict";
|
|
7402
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7403
|
-
|
|
7404
|
-
},{}],113:[function(require,module,exports){
|
|
7652
|
+
},{"./avaliador-sintatico-interface":107,"./construtos":108,"./erros":110,"./formatador-comum-interface":111,"./interpretador-com-depuracao-interface":113,"./interpretador-interface":114,"./lexador-interface":115,"./parametro-interface":116,"./pilha-interface":117,"./primitiva-interface":118,"./resolvedor-interface":119,"./retornos":120,"./retornos/retorno-execucao-interface":122,"./simbolo-interface":125,"./tradutor-interface":126,"./variavel-interface":127,"./visitante-comum-interface":128}],113:[function(require,module,exports){
|
|
7405
7653
|
"use strict";
|
|
7406
7654
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7407
7655
|
|
|
@@ -7427,6 +7675,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7427
7675
|
|
|
7428
7676
|
},{}],119:[function(require,module,exports){
|
|
7429
7677
|
"use strict";
|
|
7678
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7679
|
+
|
|
7680
|
+
},{}],120:[function(require,module,exports){
|
|
7681
|
+
"use strict";
|
|
7430
7682
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7431
7683
|
if (k2 === undefined) k2 = k;
|
|
7432
7684
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -7447,11 +7699,7 @@ __exportStar(require("./retorno-execucao-interface"), exports);
|
|
|
7447
7699
|
__exportStar(require("./retorno-interpretador"), exports);
|
|
7448
7700
|
__exportStar(require("./retorno-lexador"), exports);
|
|
7449
7701
|
|
|
7450
|
-
},{"./retorno-avaliador-sintatico":
|
|
7451
|
-
"use strict";
|
|
7452
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7453
|
-
|
|
7454
|
-
},{}],121:[function(require,module,exports){
|
|
7702
|
+
},{"./retorno-avaliador-sintatico":121,"./retorno-execucao-interface":122,"./retorno-interpretador":123,"./retorno-lexador":124}],121:[function(require,module,exports){
|
|
7455
7703
|
"use strict";
|
|
7456
7704
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7457
7705
|
|
|
@@ -7481,6 +7729,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
7481
7729
|
|
|
7482
7730
|
},{}],128:[function(require,module,exports){
|
|
7483
7731
|
"use strict";
|
|
7732
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7733
|
+
|
|
7734
|
+
},{}],129:[function(require,module,exports){
|
|
7735
|
+
"use strict";
|
|
7484
7736
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7485
7737
|
if (k2 === undefined) k2 = k;
|
|
7486
7738
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -7530,6 +7782,8 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
7530
7782
|
pilhaEscoposExecucao.definirVariavel('incluido', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.incluido));
|
|
7531
7783
|
pilhaEscoposExecucao.definirVariavel('inteiro', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.inteiro));
|
|
7532
7784
|
pilhaEscoposExecucao.definirVariavel('mapear', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.mapear));
|
|
7785
|
+
pilhaEscoposExecucao.definirVariavel('numero', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.numero));
|
|
7786
|
+
pilhaEscoposExecucao.definirVariavel('número', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.numero));
|
|
7533
7787
|
pilhaEscoposExecucao.definirVariavel('ordenar', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.ordenar));
|
|
7534
7788
|
pilhaEscoposExecucao.definirVariavel('paraCada', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.paraCada));
|
|
7535
7789
|
pilhaEscoposExecucao.definirVariavel('primeiroEmCondicao', new funcao_padrao_1.FuncaoPadrao(2, bibliotecaGlobal.primeiroEmCondicao));
|
|
@@ -7542,7 +7796,7 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
7542
7796
|
pilhaEscoposExecucao.definirVariavel('tupla', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.tupla));
|
|
7543
7797
|
}
|
|
7544
7798
|
|
|
7545
|
-
},{"../bibliotecas/biblioteca-global":15,"./estruturas/funcao-padrao":
|
|
7799
|
+
},{"../bibliotecas/biblioteca-global":15,"./estruturas/funcao-padrao":134}],130:[function(require,module,exports){
|
|
7546
7800
|
"use strict";
|
|
7547
7801
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7548
7802
|
exports.Chamavel = void 0;
|
|
@@ -7556,7 +7810,7 @@ class Chamavel {
|
|
|
7556
7810
|
}
|
|
7557
7811
|
exports.Chamavel = Chamavel;
|
|
7558
7812
|
|
|
7559
|
-
},{}],
|
|
7813
|
+
},{}],131:[function(require,module,exports){
|
|
7560
7814
|
"use strict";
|
|
7561
7815
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7562
7816
|
exports.ClassePadrao = void 0;
|
|
@@ -7597,7 +7851,7 @@ class ClassePadrao extends chamavel_1.Chamavel {
|
|
|
7597
7851
|
}
|
|
7598
7852
|
exports.ClassePadrao = ClassePadrao;
|
|
7599
7853
|
|
|
7600
|
-
},{"./chamavel":
|
|
7854
|
+
},{"./chamavel":130}],132:[function(require,module,exports){
|
|
7601
7855
|
"use strict";
|
|
7602
7856
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7603
7857
|
exports.DeleguaFuncao = void 0;
|
|
@@ -7684,7 +7938,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
7684
7938
|
argumentos[i].valor = parametro['padrao'] ? parametro['padrao'].valor : null;
|
|
7685
7939
|
}
|
|
7686
7940
|
ambiente.valores[nome] = argumento && argumento.hasOwnProperty('valor') ? argumento.valor : argumento;
|
|
7687
|
-
// Se o argumento é `DeleguaFuncao`, para habilitar o recurso de _currying_,
|
|
7941
|
+
// Se o argumento é `DeleguaFuncao`, para habilitar o recurso de _currying_,
|
|
7688
7942
|
// copiamos seu valor para o escopo atual. Nem sempre podemos contar com a tipagem explícita aqui.
|
|
7689
7943
|
if (argumento.valor && ['funcao', 'função'].includes(argumento.valor.tipo)) {
|
|
7690
7944
|
parametro.referencia = true;
|
|
@@ -7747,7 +8001,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
7747
8001
|
}
|
|
7748
8002
|
exports.DeleguaFuncao = DeleguaFuncao;
|
|
7749
8003
|
|
|
7750
|
-
},{"../../declaracoes":82,"../../espaco-variaveis":97,"../../inferenciador":105,"../../quebras":
|
|
8004
|
+
},{"../../declaracoes":82,"../../espaco-variaveis":97,"../../inferenciador":105,"../../quebras":161,"./chamavel":130}],133:[function(require,module,exports){
|
|
7751
8005
|
"use strict";
|
|
7752
8006
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7753
8007
|
exports.DescritorTipoClasse = void 0;
|
|
@@ -7828,7 +8082,7 @@ class DescritorTipoClasse extends chamavel_1.Chamavel {
|
|
|
7828
8082
|
}
|
|
7829
8083
|
exports.DescritorTipoClasse = DescritorTipoClasse;
|
|
7830
8084
|
|
|
7831
|
-
},{"../../excecoes":99,"./chamavel":
|
|
8085
|
+
},{"../../excecoes":99,"./chamavel":130,"./objeto-delegua-classe":138}],134:[function(require,module,exports){
|
|
7832
8086
|
"use strict";
|
|
7833
8087
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7834
8088
|
exports.FuncaoPadrao = void 0;
|
|
@@ -7864,7 +8118,7 @@ class FuncaoPadrao extends chamavel_1.Chamavel {
|
|
|
7864
8118
|
}
|
|
7865
8119
|
exports.FuncaoPadrao = FuncaoPadrao;
|
|
7866
8120
|
|
|
7867
|
-
},{"./chamavel":
|
|
8121
|
+
},{"./chamavel":130}],135:[function(require,module,exports){
|
|
7868
8122
|
"use strict";
|
|
7869
8123
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
7870
8124
|
if (k2 === undefined) k2 = k;
|
|
@@ -7891,7 +8145,7 @@ __exportStar(require("./modulo"), exports);
|
|
|
7891
8145
|
__exportStar(require("./objeto-delegua-classe"), exports);
|
|
7892
8146
|
__exportStar(require("./objeto-padrao"), exports);
|
|
7893
8147
|
|
|
7894
|
-
},{"./chamavel":
|
|
8148
|
+
},{"./chamavel":130,"./classe-padrao":131,"./delegua-funcao":132,"./descritor-tipo-classe":133,"./funcao-padrao":134,"./metodo-primitiva":136,"./modulo":137,"./objeto-delegua-classe":138,"./objeto-padrao":139}],136:[function(require,module,exports){
|
|
7895
8149
|
"use strict";
|
|
7896
8150
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7897
8151
|
exports.MetodoPrimitiva = void 0;
|
|
@@ -7933,7 +8187,7 @@ class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
|
7933
8187
|
}
|
|
7934
8188
|
exports.MetodoPrimitiva = MetodoPrimitiva;
|
|
7935
8189
|
|
|
7936
|
-
},{"./chamavel":
|
|
8190
|
+
},{"./chamavel":130}],137:[function(require,module,exports){
|
|
7937
8191
|
"use strict";
|
|
7938
8192
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7939
8193
|
exports.DeleguaModulo = void 0;
|
|
@@ -7959,7 +8213,7 @@ class DeleguaModulo {
|
|
|
7959
8213
|
}
|
|
7960
8214
|
exports.DeleguaModulo = DeleguaModulo;
|
|
7961
8215
|
|
|
7962
|
-
},{}],
|
|
8216
|
+
},{}],138:[function(require,module,exports){
|
|
7963
8217
|
"use strict";
|
|
7964
8218
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7965
8219
|
exports.ObjetoDeleguaClasse = void 0;
|
|
@@ -8026,7 +8280,7 @@ class ObjetoDeleguaClasse {
|
|
|
8026
8280
|
}
|
|
8027
8281
|
exports.ObjetoDeleguaClasse = ObjetoDeleguaClasse;
|
|
8028
8282
|
|
|
8029
|
-
},{"../../excecoes":99}],
|
|
8283
|
+
},{"../../excecoes":99}],139:[function(require,module,exports){
|
|
8030
8284
|
"use strict";
|
|
8031
8285
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8032
8286
|
exports.ObjetoPadrao = void 0;
|
|
@@ -8060,7 +8314,7 @@ class ObjetoPadrao {
|
|
|
8060
8314
|
}
|
|
8061
8315
|
exports.ObjetoPadrao = ObjetoPadrao;
|
|
8062
8316
|
|
|
8063
|
-
},{}],
|
|
8317
|
+
},{}],140:[function(require,module,exports){
|
|
8064
8318
|
"use strict";
|
|
8065
8319
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
8066
8320
|
if (k2 === undefined) k2 = k;
|
|
@@ -8081,7 +8335,7 @@ __exportStar(require("./interpretador"), exports);
|
|
|
8081
8335
|
__exportStar(require("./interpretador-base"), exports);
|
|
8082
8336
|
__exportStar(require("./interpretador-com-depuracao"), exports);
|
|
8083
8337
|
|
|
8084
|
-
},{"./interpretador":
|
|
8338
|
+
},{"./interpretador":143,"./interpretador-base":141,"./interpretador-com-depuracao":142}],141:[function(require,module,exports){
|
|
8085
8339
|
(function (process){(function (){
|
|
8086
8340
|
"use strict";
|
|
8087
8341
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -8578,7 +8832,7 @@ class InterpretadorBase {
|
|
|
8578
8832
|
for (let i = 0; i < diferenca; i++) {
|
|
8579
8833
|
argumentos.push({
|
|
8580
8834
|
nome: null,
|
|
8581
|
-
valor: null
|
|
8835
|
+
valor: null,
|
|
8582
8836
|
});
|
|
8583
8837
|
}
|
|
8584
8838
|
}
|
|
@@ -8891,7 +9145,9 @@ class InterpretadorBase {
|
|
|
8891
9145
|
}
|
|
8892
9146
|
else {
|
|
8893
9147
|
const literalErro = new construtos_1.Literal(declaracao.hashArquivo, Number(declaracao.linha), erro.mensagem);
|
|
8894
|
-
const chamadaPegue = new construtos_1.Chamada(declaracao.caminhoPegue.hashArquivo, declaracao.caminhoPegue, [
|
|
9148
|
+
const chamadaPegue = new construtos_1.Chamada(declaracao.caminhoPegue.hashArquivo, declaracao.caminhoPegue, [
|
|
9149
|
+
literalErro,
|
|
9150
|
+
]);
|
|
8895
9151
|
valorRetorno = await chamadaPegue.aceitar(this);
|
|
8896
9152
|
}
|
|
8897
9153
|
}
|
|
@@ -9418,7 +9674,8 @@ class InterpretadorBase {
|
|
|
9418
9674
|
this.erros.push(retornoOuErro);
|
|
9419
9675
|
}
|
|
9420
9676
|
}
|
|
9421
|
-
catch (erro) {
|
|
9677
|
+
catch (erro) {
|
|
9678
|
+
// TODO: Estudar remoção do `catch`.
|
|
9422
9679
|
throw new Error(`Não deveria estar caindo aqui. Há erros no interpretador que não estão tratados corretamente. Erro atual: ${JSON.stringify(erro)}.`);
|
|
9423
9680
|
}
|
|
9424
9681
|
finally {
|
|
@@ -9438,7 +9695,7 @@ class InterpretadorBase {
|
|
|
9438
9695
|
exports.InterpretadorBase = InterpretadorBase;
|
|
9439
9696
|
|
|
9440
9697
|
}).call(this)}).call(this,require('_process'))
|
|
9441
|
-
},{"../avaliador-sintatico":8,"../bibliotecas/primitivas-dicionario":16,"../construtos":42,"../espaco-variaveis":97,"../excecoes":99,"../inferenciador":105,"../lexador":
|
|
9698
|
+
},{"../avaliador-sintatico":8,"../bibliotecas/primitivas-dicionario":16,"../construtos":42,"../espaco-variaveis":97,"../excecoes":99,"../inferenciador":105,"../lexador":154,"../quebras":161,"../tipos-de-dados/delegua":162,"../tipos-de-dados/primitivos":163,"../tipos-de-simbolos/delegua":165,"./comum":129,"./estruturas":135,"./estruturas/metodo-primitiva":136,"./pilha-escopos-execucao":144,"_process":385,"browser-process-hrtime":342}],142:[function(require,module,exports){
|
|
9442
9699
|
"use strict";
|
|
9443
9700
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9444
9701
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10010,7 +10267,7 @@ class InterpretadorComDepuracao extends interpretador_1.Interpretador {
|
|
|
10010
10267
|
}
|
|
10011
10268
|
exports.InterpretadorComDepuracao = InterpretadorComDepuracao;
|
|
10012
10269
|
|
|
10013
|
-
},{"../construtos":42,"../espaco-variaveis":97,"../inferenciador":105,"../quebras":
|
|
10270
|
+
},{"../construtos":42,"../espaco-variaveis":97,"../inferenciador":105,"../quebras":161,"./interpretador":143,"lodash":378}],143:[function(require,module,exports){
|
|
10014
10271
|
"use strict";
|
|
10015
10272
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10016
10273
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10267,9 +10524,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
10267
10524
|
const acessoPropriedade = valorTipoDe;
|
|
10268
10525
|
return acessoPropriedade.tipoRetornoPropriedade;
|
|
10269
10526
|
case 'AcessoMetodoOuPropriedade':
|
|
10270
|
-
// TODO: Deve ser removido mais futuramente.
|
|
10527
|
+
// TODO: Deve ser removido mais futuramente.
|
|
10271
10528
|
// Apenas `AcessoMetodo` e `AcessoPropriedade` devem funcionar aqui.
|
|
10272
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(expressao.simbolo,
|
|
10529
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(expressao.simbolo, 'Não deveria cair aqui.');
|
|
10273
10530
|
case 'Escreva':
|
|
10274
10531
|
return 'função<vazio>';
|
|
10275
10532
|
case 'Leia':
|
|
@@ -10291,7 +10548,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
10291
10548
|
}
|
|
10292
10549
|
exports.Interpretador = Interpretador;
|
|
10293
10550
|
|
|
10294
|
-
},{"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../excecoes":99,"../inferenciador":105,"../quebras":
|
|
10551
|
+
},{"../bibliotecas/primitivas-dicionario":16,"../bibliotecas/primitivas-numero":17,"../bibliotecas/primitivas-texto":18,"../bibliotecas/primitivas-vetor":19,"../excecoes":99,"../inferenciador":105,"../quebras":161,"../tipos-de-dados/delegua":162,"../tipos-de-dados/primitivos":163,"./estruturas":135,"./interpretador-base":141}],144:[function(require,module,exports){
|
|
10295
10552
|
"use strict";
|
|
10296
10553
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10297
10554
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10437,9 +10694,9 @@ class PilhaEscoposExecucao {
|
|
|
10437
10694
|
if (variavel.imutavel) {
|
|
10438
10695
|
throw new excecoes_1.ErroEmTempoDeExecucao(simbolo, `Constante '${simbolo.lexema}' não pode receber novos valores.`);
|
|
10439
10696
|
}
|
|
10440
|
-
const tipoInferido = variavel && variavel.hasOwnProperty('tipo') && variavel.tipo
|
|
10441
|
-
variavel.tipo
|
|
10442
|
-
(0, inferenciador_1.inferirTipoVariavel)(valor);
|
|
10697
|
+
const tipoInferido = variavel && variavel.hasOwnProperty('tipo') && variavel.tipo
|
|
10698
|
+
? variavel.tipo
|
|
10699
|
+
: (0, inferenciador_1.inferirTipoVariavel)(valor);
|
|
10443
10700
|
const tipo = tipoInferido.toLowerCase();
|
|
10444
10701
|
const valorResolvido = this.converterValor(tipo, valor);
|
|
10445
10702
|
if (indice !== undefined && indice !== null) {
|
|
@@ -10555,7 +10812,7 @@ class PilhaEscoposExecucao {
|
|
|
10555
10812
|
}
|
|
10556
10813
|
exports.PilhaEscoposExecucao = PilhaEscoposExecucao;
|
|
10557
10814
|
|
|
10558
|
-
},{"../excecoes":99,"../inferenciador":105,"../lexador":
|
|
10815
|
+
},{"../excecoes":99,"../inferenciador":105,"../lexador":154,"../tipos-de-dados/delegua":162,"./estruturas":135}],145:[function(require,module,exports){
|
|
10559
10816
|
"use strict";
|
|
10560
10817
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10561
10818
|
if (k2 === undefined) k2 = k;
|
|
@@ -10577,7 +10834,7 @@ __exportStar(require("./lexador-pitugues"), exports);
|
|
|
10577
10834
|
__exportStar(require("./lexador-guarani"), exports);
|
|
10578
10835
|
__exportStar(require("./lexador-portugol-ipt"), exports);
|
|
10579
10836
|
|
|
10580
|
-
},{"./lexador-egua-classico":
|
|
10837
|
+
},{"./lexador-egua-classico":146,"./lexador-guarani":147,"./lexador-pitugues":148,"./lexador-portugol-ipt":149}],146:[function(require,module,exports){
|
|
10581
10838
|
"use strict";
|
|
10582
10839
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10583
10840
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10865,7 +11122,7 @@ class LexadorEguaClassico {
|
|
|
10865
11122
|
}
|
|
10866
11123
|
exports.LexadorEguaClassico = LexadorEguaClassico;
|
|
10867
11124
|
|
|
10868
|
-
},{"../../tipos-de-simbolos/egua-classico":
|
|
11125
|
+
},{"../../tipos-de-simbolos/egua-classico":166,"../simbolo":160,"./palavras-reservadas/egua-classico":150}],147:[function(require,module,exports){
|
|
10869
11126
|
"use strict";
|
|
10870
11127
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10871
11128
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10980,7 +11237,7 @@ class LexadorGuarani extends lexador_base_1.LexadorBase {
|
|
|
10980
11237
|
}
|
|
10981
11238
|
exports.LexadorGuarani = LexadorGuarani;
|
|
10982
11239
|
|
|
10983
|
-
},{"../../tipos-de-simbolos/guarani":
|
|
11240
|
+
},{"../../tipos-de-simbolos/guarani":167,"../lexador-base":156,"./palavras-reservadas/guarani":151}],148:[function(require,module,exports){
|
|
10984
11241
|
"use strict";
|
|
10985
11242
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10986
11243
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10988,9 +11245,9 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
10988
11245
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10989
11246
|
exports.LexadorPitugues = void 0;
|
|
10990
11247
|
const browser_process_hrtime_1 = __importDefault(require("browser-process-hrtime"));
|
|
10991
|
-
const pitugues_1 = __importDefault(require("../../tipos-de-simbolos/pitugues"));
|
|
10992
11248
|
const simbolo_1 = require("../simbolo");
|
|
10993
|
-
const
|
|
11249
|
+
const pitugues_1 = require("./palavras-reservadas/pitugues");
|
|
11250
|
+
const pitugues_2 = __importDefault(require("../../tipos-de-simbolos/pitugues"));
|
|
10994
11251
|
/**
|
|
10995
11252
|
* O Lexador é responsável por transformar o código em uma coleção de tokens de linguagem.
|
|
10996
11253
|
* Cada token de linguagem é representado por um tipo, um lexema e informações da linha de código em que foi expresso.
|
|
@@ -11107,7 +11364,7 @@ class LexadorPitugues {
|
|
|
11107
11364
|
return;
|
|
11108
11365
|
}
|
|
11109
11366
|
const textoCompleto = this.codigo[this.linha].substring(this.inicioSimbolo + 1, this.atual);
|
|
11110
|
-
this.simbolos.push(new simbolo_1.Simbolo(
|
|
11367
|
+
this.simbolos.push(new simbolo_1.Simbolo(pitugues_2.default.TEXTO, textoCompleto, textoCompleto, linhaPrimeiroCaracter + 1, this.hashArquivo));
|
|
11111
11368
|
}
|
|
11112
11369
|
analisarNumero() {
|
|
11113
11370
|
const linhaPrimeiroDigito = this.linha;
|
|
@@ -11128,7 +11385,7 @@ class LexadorPitugues {
|
|
|
11128
11385
|
else {
|
|
11129
11386
|
numeroCompleto = this.codigo[this.linha].substring(this.inicioSimbolo, this.atual);
|
|
11130
11387
|
}
|
|
11131
|
-
this.simbolos.push(new simbolo_1.Simbolo(
|
|
11388
|
+
this.simbolos.push(new simbolo_1.Simbolo(pitugues_2.default.NUMERO, numeroCompleto, parseFloat(numeroCompleto), linhaPrimeiroDigito + 1, this.hashArquivo));
|
|
11132
11389
|
}
|
|
11133
11390
|
identificarPalavraChave() {
|
|
11134
11391
|
const linhaPrimeiroCaracter = this.linha;
|
|
@@ -11143,9 +11400,9 @@ class LexadorPitugues {
|
|
|
11143
11400
|
else {
|
|
11144
11401
|
textoPalavraChave = this.codigo[this.linha].substring(this.inicioSimbolo, this.atual);
|
|
11145
11402
|
}
|
|
11146
|
-
const tipo = textoPalavraChave in
|
|
11147
|
-
?
|
|
11148
|
-
:
|
|
11403
|
+
const tipo = textoPalavraChave in pitugues_1.palavrasReservadas
|
|
11404
|
+
? pitugues_1.palavrasReservadas[textoPalavraChave]
|
|
11405
|
+
: pitugues_2.default.IDENTIFICADOR;
|
|
11149
11406
|
this.simbolos.push(new simbolo_1.Simbolo(tipo, textoPalavraChave, null, linhaPrimeiroCaracter + 1, this.hashArquivo));
|
|
11150
11407
|
}
|
|
11151
11408
|
analisarIndentacao() {
|
|
@@ -11180,86 +11437,86 @@ class LexadorPitugues {
|
|
|
11180
11437
|
case '=':
|
|
11181
11438
|
this.avancar();
|
|
11182
11439
|
if (this.simboloAtual() === '=') {
|
|
11183
|
-
this.adicionarSimbolo(
|
|
11440
|
+
this.adicionarSimbolo(pitugues_2.default.IGUAL_IGUAL);
|
|
11184
11441
|
this.avancar();
|
|
11185
11442
|
}
|
|
11186
11443
|
else {
|
|
11187
|
-
this.adicionarSimbolo(
|
|
11444
|
+
this.adicionarSimbolo(pitugues_2.default.IGUAL);
|
|
11188
11445
|
}
|
|
11189
11446
|
break;
|
|
11190
11447
|
case '#':
|
|
11191
11448
|
this.avancarParaProximaLinha();
|
|
11192
11449
|
break;
|
|
11193
11450
|
case '[':
|
|
11194
|
-
this.adicionarSimbolo(
|
|
11451
|
+
this.adicionarSimbolo(pitugues_2.default.COLCHETE_ESQUERDO);
|
|
11195
11452
|
this.avancar();
|
|
11196
11453
|
break;
|
|
11197
11454
|
case ']':
|
|
11198
|
-
this.adicionarSimbolo(
|
|
11455
|
+
this.adicionarSimbolo(pitugues_2.default.COLCHETE_DIREITO);
|
|
11199
11456
|
this.avancar();
|
|
11200
11457
|
break;
|
|
11201
11458
|
case '(':
|
|
11202
|
-
this.adicionarSimbolo(
|
|
11459
|
+
this.adicionarSimbolo(pitugues_2.default.PARENTESE_ESQUERDO);
|
|
11203
11460
|
this.avancar();
|
|
11204
11461
|
break;
|
|
11205
11462
|
case ')':
|
|
11206
|
-
this.adicionarSimbolo(
|
|
11463
|
+
this.adicionarSimbolo(pitugues_2.default.PARENTESE_DIREITO);
|
|
11207
11464
|
this.avancar();
|
|
11208
11465
|
break;
|
|
11209
11466
|
case '{':
|
|
11210
|
-
this.adicionarSimbolo(
|
|
11467
|
+
this.adicionarSimbolo(pitugues_2.default.CHAVE_ESQUERDA);
|
|
11211
11468
|
this.avancar();
|
|
11212
11469
|
break;
|
|
11213
11470
|
case '}':
|
|
11214
|
-
this.adicionarSimbolo(
|
|
11471
|
+
this.adicionarSimbolo(pitugues_2.default.CHAVE_DIREITA);
|
|
11215
11472
|
this.avancar();
|
|
11216
11473
|
break;
|
|
11217
11474
|
case ',':
|
|
11218
|
-
this.adicionarSimbolo(
|
|
11475
|
+
this.adicionarSimbolo(pitugues_2.default.VIRGULA);
|
|
11219
11476
|
this.avancar();
|
|
11220
11477
|
break;
|
|
11221
11478
|
case '.':
|
|
11222
|
-
this.adicionarSimbolo(
|
|
11479
|
+
this.adicionarSimbolo(pitugues_2.default.PONTO);
|
|
11223
11480
|
this.avancar();
|
|
11224
11481
|
break;
|
|
11225
11482
|
case '-':
|
|
11226
11483
|
this.avancar();
|
|
11227
11484
|
if (this.simboloAtual() === '=') {
|
|
11228
|
-
this.adicionarSimbolo(
|
|
11485
|
+
this.adicionarSimbolo(pitugues_2.default.MENOS_IGUAL);
|
|
11229
11486
|
this.avancar();
|
|
11230
11487
|
}
|
|
11231
11488
|
else {
|
|
11232
|
-
this.adicionarSimbolo(
|
|
11489
|
+
this.adicionarSimbolo(pitugues_2.default.SUBTRACAO);
|
|
11233
11490
|
}
|
|
11234
11491
|
break;
|
|
11235
11492
|
case '+':
|
|
11236
11493
|
this.avancar();
|
|
11237
11494
|
if (this.simboloAtual() === '=') {
|
|
11238
|
-
this.adicionarSimbolo(
|
|
11495
|
+
this.adicionarSimbolo(pitugues_2.default.MAIS_IGUAL);
|
|
11239
11496
|
this.avancar();
|
|
11240
11497
|
}
|
|
11241
11498
|
else {
|
|
11242
|
-
this.adicionarSimbolo(
|
|
11499
|
+
this.adicionarSimbolo(pitugues_2.default.ADICAO);
|
|
11243
11500
|
}
|
|
11244
11501
|
break;
|
|
11245
11502
|
case '/':
|
|
11246
11503
|
this.avancar();
|
|
11247
11504
|
switch (this.simboloAtual()) {
|
|
11248
11505
|
case '/':
|
|
11249
|
-
this.adicionarSimbolo(
|
|
11506
|
+
this.adicionarSimbolo(pitugues_2.default.DIVISAO_INTEIRA);
|
|
11250
11507
|
this.avancar();
|
|
11251
11508
|
break;
|
|
11252
11509
|
default:
|
|
11253
|
-
this.adicionarSimbolo(
|
|
11510
|
+
this.adicionarSimbolo(pitugues_2.default.DIVISAO);
|
|
11254
11511
|
break;
|
|
11255
11512
|
}
|
|
11256
11513
|
break;
|
|
11257
11514
|
case ':':
|
|
11258
|
-
this.adicionarSimbolo(
|
|
11515
|
+
this.adicionarSimbolo(pitugues_2.default.DOIS_PONTOS);
|
|
11259
11516
|
this.avancar();
|
|
11260
11517
|
break;
|
|
11261
11518
|
case '%':
|
|
11262
|
-
this.adicionarSimbolo(
|
|
11519
|
+
this.adicionarSimbolo(pitugues_2.default.MODULO);
|
|
11263
11520
|
this.avancar();
|
|
11264
11521
|
break;
|
|
11265
11522
|
case '*':
|
|
@@ -11267,63 +11524,63 @@ class LexadorPitugues {
|
|
|
11267
11524
|
this.avancar();
|
|
11268
11525
|
if (this.simboloAtual() === '*') {
|
|
11269
11526
|
this.avancar();
|
|
11270
|
-
this.adicionarSimbolo(
|
|
11527
|
+
this.adicionarSimbolo(pitugues_2.default.EXPONENCIACAO);
|
|
11271
11528
|
}
|
|
11272
11529
|
else {
|
|
11273
|
-
this.adicionarSimbolo(
|
|
11530
|
+
this.adicionarSimbolo(pitugues_2.default.MULTIPLICACAO);
|
|
11274
11531
|
}
|
|
11275
11532
|
break;
|
|
11276
11533
|
case '!':
|
|
11277
11534
|
this.avancar();
|
|
11278
11535
|
if (this.simboloAtual() === '=') {
|
|
11279
|
-
this.adicionarSimbolo(
|
|
11536
|
+
this.adicionarSimbolo(pitugues_2.default.DIFERENTE);
|
|
11280
11537
|
this.avancar();
|
|
11281
11538
|
}
|
|
11282
11539
|
else {
|
|
11283
|
-
this.adicionarSimbolo(
|
|
11540
|
+
this.adicionarSimbolo(pitugues_2.default.NEGACAO);
|
|
11284
11541
|
}
|
|
11285
11542
|
case '&':
|
|
11286
|
-
this.adicionarSimbolo(
|
|
11543
|
+
this.adicionarSimbolo(pitugues_2.default.BIT_AND);
|
|
11287
11544
|
this.avancar();
|
|
11288
11545
|
break;
|
|
11289
11546
|
case '~':
|
|
11290
|
-
this.adicionarSimbolo(
|
|
11547
|
+
this.adicionarSimbolo(pitugues_2.default.BIT_NOT);
|
|
11291
11548
|
this.avancar();
|
|
11292
11549
|
break;
|
|
11293
11550
|
case '|':
|
|
11294
|
-
this.adicionarSimbolo(
|
|
11551
|
+
this.adicionarSimbolo(pitugues_2.default.BIT_OR);
|
|
11295
11552
|
this.avancar();
|
|
11296
11553
|
break;
|
|
11297
11554
|
case '^':
|
|
11298
|
-
this.adicionarSimbolo(
|
|
11555
|
+
this.adicionarSimbolo(pitugues_2.default.BIT_XOR);
|
|
11299
11556
|
this.avancar();
|
|
11300
11557
|
break;
|
|
11301
11558
|
case '<':
|
|
11302
11559
|
this.avancar();
|
|
11303
11560
|
if (this.simboloAtual() === '=') {
|
|
11304
|
-
this.adicionarSimbolo(
|
|
11561
|
+
this.adicionarSimbolo(pitugues_2.default.MENOR_IGUAL);
|
|
11305
11562
|
this.avancar();
|
|
11306
11563
|
}
|
|
11307
11564
|
else if (this.simboloAtual() === '<') {
|
|
11308
|
-
this.adicionarSimbolo(
|
|
11565
|
+
this.adicionarSimbolo(pitugues_2.default.MENOR_MENOR);
|
|
11309
11566
|
this.avancar();
|
|
11310
11567
|
}
|
|
11311
11568
|
else {
|
|
11312
|
-
this.adicionarSimbolo(
|
|
11569
|
+
this.adicionarSimbolo(pitugues_2.default.MENOR);
|
|
11313
11570
|
}
|
|
11314
11571
|
break;
|
|
11315
11572
|
case '>':
|
|
11316
11573
|
this.avancar();
|
|
11317
11574
|
if (this.simboloAtual() === '=') {
|
|
11318
|
-
this.adicionarSimbolo(
|
|
11575
|
+
this.adicionarSimbolo(pitugues_2.default.MAIOR_IGUAL);
|
|
11319
11576
|
this.avancar();
|
|
11320
11577
|
}
|
|
11321
11578
|
else if (this.simboloAtual() === '>') {
|
|
11322
|
-
this.adicionarSimbolo(
|
|
11579
|
+
this.adicionarSimbolo(pitugues_2.default.MAIOR_MAIOR);
|
|
11323
11580
|
this.avancar();
|
|
11324
11581
|
}
|
|
11325
11582
|
else {
|
|
11326
|
-
this.adicionarSimbolo(
|
|
11583
|
+
this.adicionarSimbolo(pitugues_2.default.MAIOR);
|
|
11327
11584
|
}
|
|
11328
11585
|
break;
|
|
11329
11586
|
case '"':
|
|
@@ -11380,7 +11637,7 @@ class LexadorPitugues {
|
|
|
11380
11637
|
}
|
|
11381
11638
|
exports.LexadorPitugues = LexadorPitugues;
|
|
11382
11639
|
|
|
11383
|
-
},{"../../tipos-de-simbolos/pitugues":
|
|
11640
|
+
},{"../../tipos-de-simbolos/pitugues":169,"../simbolo":160,"./palavras-reservadas/pitugues":152,"browser-process-hrtime":342}],149:[function(require,module,exports){
|
|
11384
11641
|
"use strict";
|
|
11385
11642
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11386
11643
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -11619,7 +11876,7 @@ class LexadorPortugolIpt {
|
|
|
11619
11876
|
}
|
|
11620
11877
|
exports.LexadorPortugolIpt = LexadorPortugolIpt;
|
|
11621
11878
|
|
|
11622
|
-
},{"../../tipos-de-simbolos/portugol-ipt":
|
|
11879
|
+
},{"../../tipos-de-simbolos/portugol-ipt":170,"../simbolo":160,"./palavras-reservadas/portugol-ipt":153}],150:[function(require,module,exports){
|
|
11623
11880
|
"use strict";
|
|
11624
11881
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11625
11882
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -11660,7 +11917,7 @@ exports.palavrasReservadas = {
|
|
|
11660
11917
|
verdadeiro: egua_classico_1.default.VERDADEIRO,
|
|
11661
11918
|
};
|
|
11662
11919
|
|
|
11663
|
-
},{"../../../tipos-de-simbolos/egua-classico":
|
|
11920
|
+
},{"../../../tipos-de-simbolos/egua-classico":166}],151:[function(require,module,exports){
|
|
11664
11921
|
"use strict";
|
|
11665
11922
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11666
11923
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -11672,7 +11929,71 @@ exports.palavrasReservadas = {
|
|
|
11672
11929
|
hai: guarani_1.default.HAI,
|
|
11673
11930
|
};
|
|
11674
11931
|
|
|
11675
|
-
},{"../../../tipos-de-simbolos/guarani":
|
|
11932
|
+
},{"../../../tipos-de-simbolos/guarani":167}],152:[function(require,module,exports){
|
|
11933
|
+
"use strict";
|
|
11934
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11935
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11936
|
+
};
|
|
11937
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11938
|
+
exports.palavrasReservadasMicroGramatica = exports.palavrasReservadas = void 0;
|
|
11939
|
+
const pitugues_1 = __importDefault(require("../../../tipos-de-simbolos/pitugues"));
|
|
11940
|
+
exports.palavrasReservadas = {
|
|
11941
|
+
cada: pitugues_1.default.CADA,
|
|
11942
|
+
caso: pitugues_1.default.CASO,
|
|
11943
|
+
classe: pitugues_1.default.CLASSE,
|
|
11944
|
+
como: pitugues_1.default.COMO,
|
|
11945
|
+
construtor: pitugues_1.default.CONSTRUTOR,
|
|
11946
|
+
continua: pitugues_1.default.CONTINUA,
|
|
11947
|
+
constante: pitugues_1.default.CONSTANTE,
|
|
11948
|
+
const: pitugues_1.default.CONSTANTE,
|
|
11949
|
+
de: pitugues_1.default.DE,
|
|
11950
|
+
e: pitugues_1.default.E,
|
|
11951
|
+
em: pitugues_1.default.EM,
|
|
11952
|
+
enquanto: pitugues_1.default.ENQUANTO,
|
|
11953
|
+
escolha: pitugues_1.default.ESCOLHA,
|
|
11954
|
+
escreva: pitugues_1.default.ESCREVA,
|
|
11955
|
+
falhar: pitugues_1.default.FALHAR,
|
|
11956
|
+
falso: pitugues_1.default.FALSO,
|
|
11957
|
+
fazer: pitugues_1.default.FAZER,
|
|
11958
|
+
finalmente: pitugues_1.default.FINALMENTE,
|
|
11959
|
+
fixo: pitugues_1.default.CONSTANTE,
|
|
11960
|
+
funcao: pitugues_1.default.FUNCAO,
|
|
11961
|
+
função: pitugues_1.default.FUNÇÃO,
|
|
11962
|
+
herda: pitugues_1.default.HERDA,
|
|
11963
|
+
importar: pitugues_1.default.IMPORTAR,
|
|
11964
|
+
imprima: pitugues_1.default.IMPRIMA,
|
|
11965
|
+
isto: pitugues_1.default.ISTO,
|
|
11966
|
+
leia: pitugues_1.default.LEIA,
|
|
11967
|
+
nulo: pitugues_1.default.NULO,
|
|
11968
|
+
ou: pitugues_1.default.OU,
|
|
11969
|
+
padrao: pitugues_1.default.PADRAO,
|
|
11970
|
+
para: pitugues_1.default.PARA,
|
|
11971
|
+
pausa: pitugues_1.default.PAUSA,
|
|
11972
|
+
pegue: pitugues_1.default.PEGUE,
|
|
11973
|
+
retorna: pitugues_1.default.RETORNA,
|
|
11974
|
+
se: pitugues_1.default.SE,
|
|
11975
|
+
senao: pitugues_1.default.SENAO,
|
|
11976
|
+
senão: pitugues_1.default.SENÃO,
|
|
11977
|
+
super: pitugues_1.default.SUPER,
|
|
11978
|
+
sustar: pitugues_1.default.SUSTAR,
|
|
11979
|
+
tendo: pitugues_1.default.TENDO,
|
|
11980
|
+
tente: pitugues_1.default.TENTE,
|
|
11981
|
+
tipo: pitugues_1.default.TIPO,
|
|
11982
|
+
var: pitugues_1.default.VARIAVEL,
|
|
11983
|
+
variavel: pitugues_1.default.VARIAVEL,
|
|
11984
|
+
variável: pitugues_1.default.VARIAVEL,
|
|
11985
|
+
verdadeiro: pitugues_1.default.VERDADEIRO,
|
|
11986
|
+
};
|
|
11987
|
+
exports.palavrasReservadasMicroGramatica = {
|
|
11988
|
+
e: pitugues_1.default.E,
|
|
11989
|
+
em: pitugues_1.default.EM,
|
|
11990
|
+
falso: pitugues_1.default.FALSO,
|
|
11991
|
+
nulo: pitugues_1.default.NULO,
|
|
11992
|
+
ou: pitugues_1.default.OU,
|
|
11993
|
+
verdadeiro: pitugues_1.default.VERDADEIRO,
|
|
11994
|
+
};
|
|
11995
|
+
|
|
11996
|
+
},{"../../../tipos-de-simbolos/pitugues":169}],153:[function(require,module,exports){
|
|
11676
11997
|
"use strict";
|
|
11677
11998
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11678
11999
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -11694,7 +12015,7 @@ exports.palavrasReservadas = {
|
|
|
11694
12015
|
senão: portugol_ipt_1.default.SENAO,
|
|
11695
12016
|
};
|
|
11696
12017
|
|
|
11697
|
-
},{"../../../tipos-de-simbolos/portugol-ipt":
|
|
12018
|
+
},{"../../../tipos-de-simbolos/portugol-ipt":170}],154:[function(require,module,exports){
|
|
11698
12019
|
"use strict";
|
|
11699
12020
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11700
12021
|
if (k2 === undefined) k2 = k;
|
|
@@ -11711,12 +12032,13 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
11711
12032
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11712
12033
|
};
|
|
11713
12034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12035
|
+
__exportStar(require("./dialetos"), exports);
|
|
11714
12036
|
__exportStar(require("./lexador"), exports);
|
|
11715
12037
|
__exportStar(require("./lexador-base-linha-unica"), exports);
|
|
11716
12038
|
__exportStar(require("./micro-lexador"), exports);
|
|
11717
12039
|
__exportStar(require("./simbolo"), exports);
|
|
11718
12040
|
|
|
11719
|
-
},{"./lexador":
|
|
12041
|
+
},{"./dialetos":145,"./lexador":157,"./lexador-base-linha-unica":155,"./micro-lexador":158,"./simbolo":160}],155:[function(require,module,exports){
|
|
11720
12042
|
"use strict";
|
|
11721
12043
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11722
12044
|
exports.LexadorBaseLinhaUnica = void 0;
|
|
@@ -11800,7 +12122,7 @@ class LexadorBaseLinhaUnica {
|
|
|
11800
12122
|
}
|
|
11801
12123
|
exports.LexadorBaseLinhaUnica = LexadorBaseLinhaUnica;
|
|
11802
12124
|
|
|
11803
|
-
},{"./simbolo":
|
|
12125
|
+
},{"./simbolo":160}],156:[function(require,module,exports){
|
|
11804
12126
|
"use strict";
|
|
11805
12127
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11806
12128
|
exports.LexadorBase = void 0;
|
|
@@ -11914,7 +12236,7 @@ class LexadorBase {
|
|
|
11914
12236
|
}
|
|
11915
12237
|
exports.LexadorBase = LexadorBase;
|
|
11916
12238
|
|
|
11917
|
-
},{"./simbolo":
|
|
12239
|
+
},{"./simbolo":160}],157:[function(require,module,exports){
|
|
11918
12240
|
"use strict";
|
|
11919
12241
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11920
12242
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -12359,7 +12681,7 @@ class Lexador {
|
|
|
12359
12681
|
}
|
|
12360
12682
|
exports.Lexador = Lexador;
|
|
12361
12683
|
|
|
12362
|
-
},{"../tipos-de-simbolos/delegua":
|
|
12684
|
+
},{"../tipos-de-simbolos/delegua":165,"./palavras-reservadas":159,"./simbolo":160,"browser-process-hrtime":342}],158:[function(require,module,exports){
|
|
12363
12685
|
"use strict";
|
|
12364
12686
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12365
12687
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -12572,7 +12894,7 @@ class MicroLexador {
|
|
|
12572
12894
|
}
|
|
12573
12895
|
exports.MicroLexador = MicroLexador;
|
|
12574
12896
|
|
|
12575
|
-
},{"../tipos-de-simbolos/microgramaticas/delegua":
|
|
12897
|
+
},{"../tipos-de-simbolos/microgramaticas/delegua":168,"./palavras-reservadas":159,"./simbolo":160}],159:[function(require,module,exports){
|
|
12576
12898
|
"use strict";
|
|
12577
12899
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
12578
12900
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -12635,7 +12957,7 @@ exports.palavrasReservadasMicroGramatica = {
|
|
|
12635
12957
|
verdadeiro: delegua_1.default.VERDADEIRO,
|
|
12636
12958
|
};
|
|
12637
12959
|
|
|
12638
|
-
},{"../tipos-de-simbolos/delegua":
|
|
12960
|
+
},{"../tipos-de-simbolos/delegua":165}],160:[function(require,module,exports){
|
|
12639
12961
|
"use strict";
|
|
12640
12962
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12641
12963
|
exports.Simbolo = void 0;
|
|
@@ -12653,7 +12975,7 @@ class Simbolo {
|
|
|
12653
12975
|
}
|
|
12654
12976
|
exports.Simbolo = Simbolo;
|
|
12655
12977
|
|
|
12656
|
-
},{}],
|
|
12978
|
+
},{}],161:[function(require,module,exports){
|
|
12657
12979
|
"use strict";
|
|
12658
12980
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12659
12981
|
exports.ContinuarQuebra = exports.SustarQuebra = exports.RetornoQuebra = exports.Quebra = void 0;
|
|
@@ -12677,7 +12999,7 @@ class ContinuarQuebra extends Quebra {
|
|
|
12677
12999
|
}
|
|
12678
13000
|
exports.ContinuarQuebra = ContinuarQuebra;
|
|
12679
13001
|
|
|
12680
|
-
},{}],
|
|
13002
|
+
},{}],162:[function(require,module,exports){
|
|
12681
13003
|
"use strict";
|
|
12682
13004
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12683
13005
|
exports.default = {
|
|
@@ -12707,7 +13029,7 @@ exports.default = {
|
|
|
12707
13029
|
VETOR_TEXTO: 'texto[]',
|
|
12708
13030
|
};
|
|
12709
13031
|
|
|
12710
|
-
},{}],
|
|
13032
|
+
},{}],163:[function(require,module,exports){
|
|
12711
13033
|
"use strict";
|
|
12712
13034
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12713
13035
|
exports.default = {
|
|
@@ -12726,7 +13048,7 @@ exports.default = {
|
|
|
12726
13048
|
TEXTO: 'string',
|
|
12727
13049
|
};
|
|
12728
13050
|
|
|
12729
|
-
},{}],
|
|
13051
|
+
},{}],164:[function(require,module,exports){
|
|
12730
13052
|
"use strict";
|
|
12731
13053
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12732
13054
|
exports.default = {
|
|
@@ -12752,7 +13074,7 @@ exports.default = {
|
|
|
12752
13074
|
VIRGULA: 'VIRGULA',
|
|
12753
13075
|
};
|
|
12754
13076
|
|
|
12755
|
-
},{}],
|
|
13077
|
+
},{}],165:[function(require,module,exports){
|
|
12756
13078
|
"use strict";
|
|
12757
13079
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12758
13080
|
exports.default = {
|
|
@@ -12820,6 +13142,7 @@ exports.default = {
|
|
|
12820
13142
|
NEGACAO: 'NEGACAO',
|
|
12821
13143
|
NULO: 'NULO',
|
|
12822
13144
|
NUMERO: 'NUMERO',
|
|
13145
|
+
NÚMERO: 'NÚMERO',
|
|
12823
13146
|
OU: 'OU',
|
|
12824
13147
|
PADRAO: 'PADRAO',
|
|
12825
13148
|
PADRÃO: 'PADRÃO',
|
|
@@ -12846,7 +13169,7 @@ exports.default = {
|
|
|
12846
13169
|
VIRGULA: 'VIRGULA',
|
|
12847
13170
|
};
|
|
12848
13171
|
|
|
12849
|
-
},{}],
|
|
13172
|
+
},{}],166:[function(require,module,exports){
|
|
12850
13173
|
"use strict";
|
|
12851
13174
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12852
13175
|
exports.default = {
|
|
@@ -12924,7 +13247,7 @@ exports.default = {
|
|
|
12924
13247
|
VIRGULA: 'VIRGULA',
|
|
12925
13248
|
};
|
|
12926
13249
|
|
|
12927
|
-
},{}],
|
|
13250
|
+
},{}],167:[function(require,module,exports){
|
|
12928
13251
|
"use strict";
|
|
12929
13252
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12930
13253
|
exports.default = {
|
|
@@ -12941,7 +13264,7 @@ exports.default = {
|
|
|
12941
13264
|
VIRGULA: 'VIRGULA',
|
|
12942
13265
|
};
|
|
12943
13266
|
|
|
12944
|
-
},{}],
|
|
13267
|
+
},{}],168:[function(require,module,exports){
|
|
12945
13268
|
"use strict";
|
|
12946
13269
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12947
13270
|
exports.default = {
|
|
@@ -12990,7 +13313,7 @@ exports.default = {
|
|
|
12990
13313
|
VIRGULA: 'VIRGULA',
|
|
12991
13314
|
};
|
|
12992
13315
|
|
|
12993
|
-
},{}],
|
|
13316
|
+
},{}],169:[function(require,module,exports){
|
|
12994
13317
|
"use strict";
|
|
12995
13318
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12996
13319
|
exports.default = {
|
|
@@ -12999,15 +13322,18 @@ exports.default = {
|
|
|
12999
13322
|
BIT_OR: 'BIT_OR',
|
|
13000
13323
|
BIT_XOR: 'BIT_XOR',
|
|
13001
13324
|
BIT_NOT: 'BIT_NOT',
|
|
13325
|
+
CADA: 'CADA',
|
|
13002
13326
|
CASO: 'CASO',
|
|
13003
13327
|
CHAVE_DIREITA: 'CHAVE_DIREITA',
|
|
13004
13328
|
CHAVE_ESQUERDA: 'CHAVE_ESQUERDA',
|
|
13005
13329
|
CLASSE: 'CLASSE',
|
|
13006
13330
|
COLCHETE_DIREITO: 'COLCHETE_DIREITO',
|
|
13007
13331
|
COLCHETE_ESQUERDO: 'COLCHETE_ESQUERDO',
|
|
13332
|
+
COMO: 'COMO',
|
|
13008
13333
|
CONSTANTE: 'CONSTANTE',
|
|
13009
13334
|
CONSTRUTOR: 'CONSTRUTOR',
|
|
13010
13335
|
CONTINUA: 'CONTINUA',
|
|
13336
|
+
DE: 'DE',
|
|
13011
13337
|
DIFERENTE: 'DIFERENTE',
|
|
13012
13338
|
DIVISAO: 'DIVISAO',
|
|
13013
13339
|
DIVISAO_INTEIRA: 'DIVISAO_INTEIRA',
|
|
@@ -13022,6 +13348,7 @@ exports.default = {
|
|
|
13022
13348
|
FALHAR: 'FALHAR',
|
|
13023
13349
|
IGUAL: 'IGUAL',
|
|
13024
13350
|
IGUAL_IGUAL: 'IGUAL_IGUAL',
|
|
13351
|
+
IMPRIMA: 'IMPRIMA',
|
|
13025
13352
|
FALSO: 'FALSO',
|
|
13026
13353
|
FAZER: 'FAZER',
|
|
13027
13354
|
FINALMENTE: 'FINALMENTE',
|
|
@@ -13061,14 +13388,16 @@ exports.default = {
|
|
|
13061
13388
|
SENÃO: 'SENÃO',
|
|
13062
13389
|
SUPER: 'SUPER',
|
|
13063
13390
|
SUSTAR: 'SUSTAR',
|
|
13391
|
+
TENDO: 'TENDO',
|
|
13064
13392
|
TENTE: 'TENTE',
|
|
13065
13393
|
TEXTO: 'TEXTO',
|
|
13394
|
+
TIPO: 'TIPO',
|
|
13066
13395
|
VARIAVEL: 'VARIAVEL',
|
|
13067
13396
|
VERDADEIRO: 'VERDADEIRO',
|
|
13068
13397
|
VIRGULA: 'VIRGULA',
|
|
13069
13398
|
};
|
|
13070
13399
|
|
|
13071
|
-
},{}],
|
|
13400
|
+
},{}],170:[function(require,module,exports){
|
|
13072
13401
|
"use strict";
|
|
13073
13402
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13074
13403
|
exports.default = {
|
|
@@ -13107,7 +13436,7 @@ exports.default = {
|
|
|
13107
13436
|
VIRGULA: 'VIRGULA',
|
|
13108
13437
|
};
|
|
13109
13438
|
|
|
13110
|
-
},{}],
|
|
13439
|
+
},{}],171:[function(require,module,exports){
|
|
13111
13440
|
"use strict";
|
|
13112
13441
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13113
13442
|
if (k2 === undefined) k2 = k;
|
|
@@ -13132,7 +13461,7 @@ __exportStar(require("./tradutor-python"), exports);
|
|
|
13132
13461
|
__exportStar(require("./tradutor-reverso-javascript"), exports);
|
|
13133
13462
|
__exportStar(require("./tradutor-reverso-python"), exports);
|
|
13134
13463
|
|
|
13135
|
-
},{"./tradutor-assemblyscript":
|
|
13464
|
+
},{"./tradutor-assemblyscript":174,"./tradutor-javascript":175,"./tradutor-mermaidjs":176,"./tradutor-portugol-ipt":177,"./tradutor-python":178,"./tradutor-reverso-javascript":179,"./tradutor-reverso-python":180}],172:[function(require,module,exports){
|
|
13136
13465
|
"use strict";
|
|
13137
13466
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
13138
13467
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -14371,7 +14700,7 @@ __decorate([
|
|
|
14371
14700
|
Decorators_1.Override
|
|
14372
14701
|
], Python3Lexer.prototype, "nextToken", null);
|
|
14373
14702
|
|
|
14374
|
-
},{"./python3-parser":
|
|
14703
|
+
},{"./python3-parser":173,"antlr4ts/CommonToken":190,"antlr4ts/Decorators":194,"antlr4ts/Lexer":202,"antlr4ts/Token":219,"antlr4ts/VocabularyImpl":225,"antlr4ts/atn/ATNDeserializer":231,"antlr4ts/atn/LexerATNSimulator":252,"antlr4ts/misc/Utils":313}],173:[function(require,module,exports){
|
|
14375
14704
|
"use strict";
|
|
14376
14705
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
14377
14706
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -25609,7 +25938,7 @@ class Yield_argContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
25609
25938
|
}
|
|
25610
25939
|
exports.Yield_argContext = Yield_argContext;
|
|
25611
25940
|
|
|
25612
|
-
},{"antlr4ts/FailedPredicateException":
|
|
25941
|
+
},{"antlr4ts/FailedPredicateException":198,"antlr4ts/NoViableAltException":206,"antlr4ts/Parser":207,"antlr4ts/ParserRuleContext":210,"antlr4ts/RecognitionException":213,"antlr4ts/Token":219,"antlr4ts/VocabularyImpl":225,"antlr4ts/atn/ATN":227,"antlr4ts/atn/ATNDeserializer":231,"antlr4ts/atn/ParserATNSimulator":268,"antlr4ts/misc/Utils":313}],174:[function(require,module,exports){
|
|
25613
25942
|
"use strict";
|
|
25614
25943
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
25615
25944
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26026,7 +26355,8 @@ class TradutorAssemblyScript {
|
|
|
26026
26355
|
case 'Retorna':
|
|
26027
26356
|
const declaracaoRetorna = declaracao;
|
|
26028
26357
|
resultado +=
|
|
26029
|
-
'return ' +
|
|
26358
|
+
'return ' +
|
|
26359
|
+
this.dicionarioConstrutos[declaracaoRetorna.valor.constructor.name](declaracaoRetorna.valor);
|
|
26030
26360
|
break;
|
|
26031
26361
|
default:
|
|
26032
26362
|
resultado += this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao) + '\n';
|
|
@@ -26228,7 +26558,7 @@ class TradutorAssemblyScript {
|
|
|
26228
26558
|
}
|
|
26229
26559
|
exports.TradutorAssemblyScript = TradutorAssemblyScript;
|
|
26230
26560
|
|
|
26231
|
-
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":
|
|
26561
|
+
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":165}],175:[function(require,module,exports){
|
|
26232
26562
|
"use strict";
|
|
26233
26563
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26234
26564
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -26341,7 +26671,7 @@ class TradutorJavaScript {
|
|
|
26341
26671
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
26342
26672
|
argumentosResolvidos.push(argumentoResolvido);
|
|
26343
26673
|
}
|
|
26344
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
26674
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
26345
26675
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
26346
26676
|
switch (nomeMetodo) {
|
|
26347
26677
|
case 'adicionar':
|
|
@@ -26441,7 +26771,7 @@ class TradutorJavaScript {
|
|
|
26441
26771
|
let resultado = '{';
|
|
26442
26772
|
for (let i = 0; i < dicionario.chaves.length; i++) {
|
|
26443
26773
|
resultado += this.dicionarioConstrutos[dicionario.chaves[i].constructor.name](dicionario.chaves[i]);
|
|
26444
|
-
resultado +=
|
|
26774
|
+
resultado += ':';
|
|
26445
26775
|
resultado += this.dicionarioConstrutos[dicionario.valores[i].constructor.name](dicionario.valores[i]) + ',';
|
|
26446
26776
|
}
|
|
26447
26777
|
resultado += '}';
|
|
@@ -26452,10 +26782,14 @@ class TradutorJavaScript {
|
|
|
26452
26782
|
const possuiInterpolacao = /\$\{(verdadeiro|falso|nulo)\}/.test(literal.valor);
|
|
26453
26783
|
const valor = literal.valor.replace(/\$\{(verdadeiro|falso|nulo)\}/g, (_, match) => {
|
|
26454
26784
|
switch (match) {
|
|
26455
|
-
case 'verdadeiro':
|
|
26456
|
-
|
|
26457
|
-
case '
|
|
26458
|
-
|
|
26785
|
+
case 'verdadeiro':
|
|
26786
|
+
return '${true}';
|
|
26787
|
+
case 'falso':
|
|
26788
|
+
return '${false}';
|
|
26789
|
+
case 'nulo':
|
|
26790
|
+
return '${null}';
|
|
26791
|
+
default:
|
|
26792
|
+
return match;
|
|
26459
26793
|
}
|
|
26460
26794
|
});
|
|
26461
26795
|
return possuiInterpolacao ? `\`${valor}\`` : `'${literal.valor}'`;
|
|
@@ -26469,13 +26803,13 @@ class TradutorJavaScript {
|
|
|
26469
26803
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
26470
26804
|
argumentosResolvidos.push(argumentoResolvido);
|
|
26471
26805
|
}
|
|
26472
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
26806
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
26473
26807
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
26474
26808
|
switch (variavel.simbolo.lexema) {
|
|
26475
26809
|
case 'texto':
|
|
26476
26810
|
return `String(${textoArgumentos})`;
|
|
26477
26811
|
default:
|
|
26478
|
-
const buscaClasseCorrespondente = this.declaracoesDeClasses.filter(d => d.simbolo.lexema === variavel.simbolo.lexema);
|
|
26812
|
+
const buscaClasseCorrespondente = this.declaracoesDeClasses.filter((d) => d.simbolo.lexema === variavel.simbolo.lexema);
|
|
26479
26813
|
if (buscaClasseCorrespondente.length === 0 && argumentosValidados.length === 0) {
|
|
26480
26814
|
return `${variavel.simbolo.lexema}`;
|
|
26481
26815
|
}
|
|
@@ -26563,7 +26897,8 @@ class TradutorJavaScript {
|
|
|
26563
26897
|
case 'Retorna':
|
|
26564
26898
|
const declaracaoRetorna = declaracao;
|
|
26565
26899
|
resultado +=
|
|
26566
|
-
'return ' +
|
|
26900
|
+
'return ' +
|
|
26901
|
+
this.dicionarioConstrutos[declaracaoRetorna.valor.constructor.name](declaracaoRetorna.valor);
|
|
26567
26902
|
break;
|
|
26568
26903
|
default:
|
|
26569
26904
|
resultado += this.dicionarioDeclaracoes[declaracao.constructor.name](declaracao) + '\n';
|
|
@@ -26758,7 +27093,7 @@ class TradutorJavaScript {
|
|
|
26758
27093
|
}
|
|
26759
27094
|
// TODO: Talvez terminar (ou remover, sei lá).
|
|
26760
27095
|
traduzirFuncaoAnonimaParaLambda(argumento) {
|
|
26761
|
-
return
|
|
27096
|
+
return '';
|
|
26762
27097
|
}
|
|
26763
27098
|
traduzirAcessoMetodoVetor(objeto, nomeMetodo, argumentos) {
|
|
26764
27099
|
const objetoResolvido = this.dicionarioConstrutos[objeto.constructor.name](objeto);
|
|
@@ -26770,7 +27105,7 @@ class TradutorJavaScript {
|
|
|
26770
27105
|
switch (nomeMetodo) {
|
|
26771
27106
|
case 'adicionar':
|
|
26772
27107
|
case 'empilhar':
|
|
26773
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
27108
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
26774
27109
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
26775
27110
|
return `${objetoResolvido}.push(${textoArgumentos})`;
|
|
26776
27111
|
case 'fatiar':
|
|
@@ -26871,7 +27206,7 @@ class TradutorJavaScript {
|
|
|
26871
27206
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
26872
27207
|
argumentosResolvidos.push(argumentoResolvido);
|
|
26873
27208
|
}
|
|
26874
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
27209
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
26875
27210
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
26876
27211
|
return `${argumentoReferenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
26877
27212
|
}
|
|
@@ -26881,7 +27216,7 @@ class TradutorJavaScript {
|
|
|
26881
27216
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
26882
27217
|
argumentosResolvidos.push(argumentoResolvido);
|
|
26883
27218
|
}
|
|
26884
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
27219
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
26885
27220
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
26886
27221
|
return `${referenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
26887
27222
|
}
|
|
@@ -26946,7 +27281,7 @@ class TradutorJavaScript {
|
|
|
26946
27281
|
}
|
|
26947
27282
|
exports.TradutorJavaScript = TradutorJavaScript;
|
|
26948
27283
|
|
|
26949
|
-
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":
|
|
27284
|
+
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":165}],176:[function(require,module,exports){
|
|
26950
27285
|
"use strict";
|
|
26951
27286
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26952
27287
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27003,7 +27338,7 @@ class TradutorMermaidJs {
|
|
|
27003
27338
|
Literal: this.traduzirConstrutoLiteral.bind(this),
|
|
27004
27339
|
Unario: this.traduzirConstrutoUnario.bind(this),
|
|
27005
27340
|
Variavel: this.traduzirConstrutoVariavel.bind(this),
|
|
27006
|
-
Vetor: this.traduzirConstrutoVetor.bind(this)
|
|
27341
|
+
Vetor: this.traduzirConstrutoVetor.bind(this),
|
|
27007
27342
|
};
|
|
27008
27343
|
this.dicionarioDeclaracoes = {
|
|
27009
27344
|
Bloco: this.traduzirDeclaracaoBloco.bind(this),
|
|
@@ -27016,7 +27351,7 @@ class TradutorMermaidJs {
|
|
|
27016
27351
|
Para: this.traduzirDeclaracaoPara.bind(this),
|
|
27017
27352
|
ParaCada: this.traduzirDeclaracaoParaCada.bind(this),
|
|
27018
27353
|
Se: this.traduzirDeclaracaoSe.bind(this),
|
|
27019
|
-
Var: this.traduzirDeclaracaoVar.bind(this)
|
|
27354
|
+
Var: this.traduzirDeclaracaoVar.bind(this),
|
|
27020
27355
|
};
|
|
27021
27356
|
}
|
|
27022
27357
|
traduzirConstrutoAcessoIndiceVariavel(acessoIndiceVariavel) {
|
|
@@ -27049,7 +27384,7 @@ class TradutorMermaidJs {
|
|
|
27049
27384
|
case delegua_1.default.MENOR:
|
|
27050
27385
|
return `${operandoEsquerdo} for menor que ${operandoDireito}`;
|
|
27051
27386
|
}
|
|
27052
|
-
return
|
|
27387
|
+
return '';
|
|
27053
27388
|
}
|
|
27054
27389
|
traduzirConstrutoChamada(chamada) {
|
|
27055
27390
|
const textoEntidadeChamada = this.dicionarioConstrutos[chamada.entidadeChamada.constructor.name](chamada.entidadeChamada);
|
|
@@ -27089,7 +27424,7 @@ class TradutorMermaidJs {
|
|
|
27089
27424
|
return `função`;
|
|
27090
27425
|
}
|
|
27091
27426
|
traduzirConstrutoLeia(leia) {
|
|
27092
|
-
let texto =
|
|
27427
|
+
let texto = 'leia da entrada';
|
|
27093
27428
|
if (leia.argumentos && leia.argumentos.length > 0) {
|
|
27094
27429
|
const textoArgumento = this.dicionarioConstrutos[leia.argumentos[0].constructor.name](leia.argumentos[0]);
|
|
27095
27430
|
texto += `, imprimindo antes: \\'${textoArgumento}\\'`;
|
|
@@ -27108,7 +27443,7 @@ class TradutorMermaidJs {
|
|
|
27108
27443
|
}
|
|
27109
27444
|
traduzirConstrutoUnario(unario) {
|
|
27110
27445
|
const textoOperando = this.dicionarioConstrutos[unario.operando.constructor.name](unario.operando);
|
|
27111
|
-
let textoOperador =
|
|
27446
|
+
let textoOperador = '';
|
|
27112
27447
|
switch (unario.operador.tipo) {
|
|
27113
27448
|
case delegua_1.default.INCREMENTAR:
|
|
27114
27449
|
textoOperador = `incrementar ${textoOperando} em 1`;
|
|
@@ -27118,9 +27453,9 @@ class TradutorMermaidJs {
|
|
|
27118
27453
|
break;
|
|
27119
27454
|
}
|
|
27120
27455
|
switch (unario.incidenciaOperador) {
|
|
27121
|
-
case
|
|
27456
|
+
case 'ANTES':
|
|
27122
27457
|
return `${textoOperador}, devolver valor de ${textoOperando}`;
|
|
27123
|
-
case
|
|
27458
|
+
case 'DEPOIS':
|
|
27124
27459
|
return `devolver valor de ${textoOperando}, ${textoOperador}`;
|
|
27125
27460
|
}
|
|
27126
27461
|
}
|
|
@@ -27208,7 +27543,7 @@ class TradutorMermaidJs {
|
|
|
27208
27543
|
this.anteriores.pop();
|
|
27209
27544
|
return {
|
|
27210
27545
|
caminho: arestaCondicaoCaminho,
|
|
27211
|
-
declaracoesCaminho: verticesResolvidos
|
|
27546
|
+
declaracoesCaminho: verticesResolvidos,
|
|
27212
27547
|
};
|
|
27213
27548
|
}
|
|
27214
27549
|
traduzirDeclaracaoEscolha(declaracaoEscolha) {
|
|
@@ -27397,7 +27732,7 @@ class TradutorMermaidJs {
|
|
|
27397
27732
|
}
|
|
27398
27733
|
exports.TradutorMermaidJs = TradutorMermaidJs;
|
|
27399
27734
|
|
|
27400
|
-
},{"../tipos-de-simbolos/delegua":
|
|
27735
|
+
},{"../tipos-de-simbolos/delegua":165}],177:[function(require,module,exports){
|
|
27401
27736
|
"use strict";
|
|
27402
27737
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27403
27738
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -27459,7 +27794,7 @@ class TradutorPortugolIpt {
|
|
|
27459
27794
|
}
|
|
27460
27795
|
exports.TradutorPortugolIpt = TradutorPortugolIpt;
|
|
27461
27796
|
|
|
27462
|
-
},{"../avaliador-sintatico/dialetos":6,"../lexador/dialetos":
|
|
27797
|
+
},{"../avaliador-sintatico/dialetos":6,"../lexador/dialetos":145}],178:[function(require,module,exports){
|
|
27463
27798
|
"use strict";
|
|
27464
27799
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
27465
27800
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -27562,7 +27897,7 @@ class TradutorPython {
|
|
|
27562
27897
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
27563
27898
|
argumentosResolvidos.push(argumentoResolvido);
|
|
27564
27899
|
}
|
|
27565
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
27900
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
27566
27901
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
27567
27902
|
switch (nomeMetodo) {
|
|
27568
27903
|
case 'adicionar':
|
|
@@ -27624,7 +27959,7 @@ class TradutorPython {
|
|
|
27624
27959
|
}
|
|
27625
27960
|
// TODO: Talvez terminar (ou remover, sei lá).
|
|
27626
27961
|
traduzirFuncaoAnonimaParaLambda(argumento) {
|
|
27627
|
-
return
|
|
27962
|
+
return '';
|
|
27628
27963
|
}
|
|
27629
27964
|
traduzirAcessoMetodoVetor(objeto, nomeMetodo, argumentos) {
|
|
27630
27965
|
const objetoResolvido = this.dicionarioConstrutos[objeto.constructor.name](objeto);
|
|
@@ -27636,7 +27971,7 @@ class TradutorPython {
|
|
|
27636
27971
|
switch (nomeMetodo) {
|
|
27637
27972
|
case 'adicionar':
|
|
27638
27973
|
case 'empilhar':
|
|
27639
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
27974
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
27640
27975
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
27641
27976
|
return `${objetoResolvido}.append(${textoArgumentos})`;
|
|
27642
27977
|
case 'fatiar':
|
|
@@ -27701,7 +28036,7 @@ class TradutorPython {
|
|
|
27701
28036
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
27702
28037
|
argumentosResolvidos.push(argumentoResolvido);
|
|
27703
28038
|
}
|
|
27704
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
28039
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
27705
28040
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
27706
28041
|
return `${argumentoReferenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
27707
28042
|
}
|
|
@@ -27806,7 +28141,7 @@ class TradutorPython {
|
|
|
27806
28141
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
27807
28142
|
argumentosResolvidos.push(argumentoResolvido);
|
|
27808
28143
|
}
|
|
27809
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
28144
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
27810
28145
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
27811
28146
|
return `${referenciaFuncao.simboloFuncao.lexema}(${textoArgumentos})`;
|
|
27812
28147
|
}
|
|
@@ -27827,7 +28162,7 @@ class TradutorPython {
|
|
|
27827
28162
|
const argumentoResolvido = this.dicionarioConstrutos[argumento.constructor.name](argumento);
|
|
27828
28163
|
argumentosResolvidos.push(argumentoResolvido);
|
|
27829
28164
|
}
|
|
27830
|
-
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => atual += proximo + ', ',
|
|
28165
|
+
let textoArgumentos = argumentosResolvidos.reduce((atual, proximo) => (atual += proximo + ', '), '');
|
|
27831
28166
|
textoArgumentos = textoArgumentos.slice(0, -2);
|
|
27832
28167
|
switch (variavel.simbolo.lexema) {
|
|
27833
28168
|
case 'texto':
|
|
@@ -28097,7 +28432,7 @@ class TradutorPython {
|
|
|
28097
28432
|
}
|
|
28098
28433
|
exports.TradutorPython = TradutorPython;
|
|
28099
28434
|
|
|
28100
|
-
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":
|
|
28435
|
+
},{"../construtos":42,"../declaracoes":82,"../tipos-de-simbolos/delegua":165}],179:[function(require,module,exports){
|
|
28101
28436
|
"use strict";
|
|
28102
28437
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28103
28438
|
exports.TradutorReversoJavaScript = void 0;
|
|
@@ -28491,7 +28826,7 @@ class TradutorReversoJavaScript {
|
|
|
28491
28826
|
}
|
|
28492
28827
|
exports.TradutorReversoJavaScript = TradutorReversoJavaScript;
|
|
28493
28828
|
|
|
28494
|
-
},{}],
|
|
28829
|
+
},{}],180:[function(require,module,exports){
|
|
28495
28830
|
"use strict";
|
|
28496
28831
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28497
28832
|
exports.TradutorReversoPython = void 0;
|
|
@@ -28564,7 +28899,7 @@ class TradutorReversoPython {
|
|
|
28564
28899
|
}
|
|
28565
28900
|
exports.TradutorReversoPython = TradutorReversoPython;
|
|
28566
28901
|
|
|
28567
|
-
},{"./python/python3-lexer":
|
|
28902
|
+
},{"./python/python3-lexer":172,"./python/python3-parser":173,"antlr4ts":296,"antlr4ts/tree/ParseTreeWalker":315}],181:[function(require,module,exports){
|
|
28568
28903
|
"use strict";
|
|
28569
28904
|
/*!
|
|
28570
28905
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -28572,7 +28907,7 @@ exports.TradutorReversoPython = TradutorReversoPython;
|
|
|
28572
28907
|
*/
|
|
28573
28908
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28574
28909
|
|
|
28575
|
-
},{}],
|
|
28910
|
+
},{}],182:[function(require,module,exports){
|
|
28576
28911
|
"use strict";
|
|
28577
28912
|
/*!
|
|
28578
28913
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -28580,7 +28915,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
28580
28915
|
*/
|
|
28581
28916
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28582
28917
|
|
|
28583
|
-
},{}],
|
|
28918
|
+
},{}],183:[function(require,module,exports){
|
|
28584
28919
|
"use strict";
|
|
28585
28920
|
/*!
|
|
28586
28921
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -28742,7 +29077,7 @@ __decorate([
|
|
|
28742
29077
|
], ANTLRInputStream.prototype, "toString", null);
|
|
28743
29078
|
exports.ANTLRInputStream = ANTLRInputStream;
|
|
28744
29079
|
|
|
28745
|
-
},{"./Decorators":
|
|
29080
|
+
},{"./Decorators":194,"./IntStream":200,"assert":337}],184:[function(require,module,exports){
|
|
28746
29081
|
"use strict";
|
|
28747
29082
|
/*!
|
|
28748
29083
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -28825,7 +29160,7 @@ __decorate([
|
|
|
28825
29160
|
], BailErrorStrategy.prototype, "sync", null);
|
|
28826
29161
|
exports.BailErrorStrategy = BailErrorStrategy;
|
|
28827
29162
|
|
|
28828
|
-
},{"./Decorators":
|
|
29163
|
+
},{"./Decorators":194,"./DefaultErrorStrategy":195,"./InputMismatchException":199,"./misc/ParseCancellationException":311}],185:[function(require,module,exports){
|
|
28829
29164
|
"use strict";
|
|
28830
29165
|
/*!
|
|
28831
29166
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -29315,7 +29650,7 @@ BufferedTokenStream = __decorate([
|
|
|
29315
29650
|
], BufferedTokenStream);
|
|
29316
29651
|
exports.BufferedTokenStream = BufferedTokenStream;
|
|
29317
29652
|
|
|
29318
|
-
},{"./CommonToken":
|
|
29653
|
+
},{"./CommonToken":190,"./Decorators":194,"./Lexer":202,"./Token":219,"./misc/Interval":306,"assert":337}],186:[function(require,module,exports){
|
|
29319
29654
|
"use strict";
|
|
29320
29655
|
/*!
|
|
29321
29656
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -29323,7 +29658,7 @@ exports.BufferedTokenStream = BufferedTokenStream;
|
|
|
29323
29658
|
*/
|
|
29324
29659
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29325
29660
|
|
|
29326
|
-
},{}],
|
|
29661
|
+
},{}],187:[function(require,module,exports){
|
|
29327
29662
|
"use strict";
|
|
29328
29663
|
/*!
|
|
29329
29664
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -29457,7 +29792,7 @@ var CharStreams;
|
|
|
29457
29792
|
// }
|
|
29458
29793
|
})(CharStreams = exports.CharStreams || (exports.CharStreams = {}));
|
|
29459
29794
|
|
|
29460
|
-
},{"./CodePointBuffer":
|
|
29795
|
+
},{"./CodePointBuffer":188,"./CodePointCharStream":189,"./IntStream":200}],188:[function(require,module,exports){
|
|
29461
29796
|
"use strict";
|
|
29462
29797
|
/*!
|
|
29463
29798
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -29692,7 +30027,7 @@ exports.CodePointBuffer = CodePointBuffer;
|
|
|
29692
30027
|
CodePointBuffer.Builder = Builder;
|
|
29693
30028
|
})(CodePointBuffer = exports.CodePointBuffer || (exports.CodePointBuffer = {}));
|
|
29694
30029
|
|
|
29695
|
-
},{"./misc/Character":
|
|
30030
|
+
},{"./misc/Character":302,"assert":337}],189:[function(require,module,exports){
|
|
29696
30031
|
"use strict";
|
|
29697
30032
|
/*!
|
|
29698
30033
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -29842,7 +30177,7 @@ __decorate([
|
|
|
29842
30177
|
], CodePointCharStream.prototype, "getText", null);
|
|
29843
30178
|
exports.CodePointCharStream = CodePointCharStream;
|
|
29844
30179
|
|
|
29845
|
-
},{"./Decorators":
|
|
30180
|
+
},{"./Decorators":194,"./IntStream":200,"./misc/Interval":306,"assert":337}],190:[function(require,module,exports){
|
|
29846
30181
|
"use strict";
|
|
29847
30182
|
/*!
|
|
29848
30183
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -30072,7 +30407,7 @@ CommonToken = __decorate([
|
|
|
30072
30407
|
], CommonToken);
|
|
30073
30408
|
exports.CommonToken = CommonToken;
|
|
30074
30409
|
|
|
30075
|
-
},{"./Decorators":
|
|
30410
|
+
},{"./Decorators":194,"./Token":219,"./misc/Interval":306}],191:[function(require,module,exports){
|
|
30076
30411
|
"use strict";
|
|
30077
30412
|
/*!
|
|
30078
30413
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -30136,7 +30471,7 @@ exports.CommonTokenFactory = CommonTokenFactory;
|
|
|
30136
30471
|
CommonTokenFactory.DEFAULT = new CommonTokenFactory();
|
|
30137
30472
|
})(CommonTokenFactory = exports.CommonTokenFactory || (exports.CommonTokenFactory = {}));
|
|
30138
30473
|
|
|
30139
|
-
},{"./CommonToken":
|
|
30474
|
+
},{"./CommonToken":190,"./Decorators":194,"./misc/Interval":306}],192:[function(require,module,exports){
|
|
30140
30475
|
"use strict";
|
|
30141
30476
|
/*!
|
|
30142
30477
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -30263,7 +30598,7 @@ CommonTokenStream = __decorate([
|
|
|
30263
30598
|
], CommonTokenStream);
|
|
30264
30599
|
exports.CommonTokenStream = CommonTokenStream;
|
|
30265
30600
|
|
|
30266
|
-
},{"./BufferedTokenStream":
|
|
30601
|
+
},{"./BufferedTokenStream":185,"./Decorators":194,"./Token":219}],193:[function(require,module,exports){
|
|
30267
30602
|
"use strict";
|
|
30268
30603
|
/*!
|
|
30269
30604
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -30297,7 +30632,7 @@ exports.ConsoleErrorListener = ConsoleErrorListener;
|
|
|
30297
30632
|
*/
|
|
30298
30633
|
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener();
|
|
30299
30634
|
|
|
30300
|
-
},{}],
|
|
30635
|
+
},{}],194:[function(require,module,exports){
|
|
30301
30636
|
"use strict";
|
|
30302
30637
|
/*!
|
|
30303
30638
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -30324,7 +30659,7 @@ function SuppressWarnings(options) {
|
|
|
30324
30659
|
}
|
|
30325
30660
|
exports.SuppressWarnings = SuppressWarnings;
|
|
30326
30661
|
|
|
30327
|
-
},{}],
|
|
30662
|
+
},{}],195:[function(require,module,exports){
|
|
30328
30663
|
"use strict";
|
|
30329
30664
|
/*!
|
|
30330
30665
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31138,7 +31473,7 @@ __decorate([
|
|
|
31138
31473
|
], DefaultErrorStrategy.prototype, "consumeUntil", null);
|
|
31139
31474
|
exports.DefaultErrorStrategy = DefaultErrorStrategy;
|
|
31140
31475
|
|
|
31141
|
-
},{"./Decorators":
|
|
31476
|
+
},{"./Decorators":194,"./FailedPredicateException":198,"./InputMismatchException":199,"./NoViableAltException":206,"./Token":219,"./atn/ATNState":233,"./atn/ATNStateType":234,"./atn/PredictionContext":274,"./misc/IntervalSet":307}],196:[function(require,module,exports){
|
|
31142
31477
|
"use strict";
|
|
31143
31478
|
/*!
|
|
31144
31479
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31214,7 +31549,7 @@ var Dependents;
|
|
|
31214
31549
|
Dependents[Dependents["FOLLOWING"] = 9] = "FOLLOWING";
|
|
31215
31550
|
})(Dependents = exports.Dependents || (exports.Dependents = {}));
|
|
31216
31551
|
|
|
31217
|
-
},{}],
|
|
31552
|
+
},{}],197:[function(require,module,exports){
|
|
31218
31553
|
"use strict";
|
|
31219
31554
|
/*!
|
|
31220
31555
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31362,7 +31697,7 @@ __decorate([
|
|
|
31362
31697
|
], DiagnosticErrorListener.prototype, "getConflictingAlts", null);
|
|
31363
31698
|
exports.DiagnosticErrorListener = DiagnosticErrorListener;
|
|
31364
31699
|
|
|
31365
|
-
},{"./Decorators":
|
|
31700
|
+
},{"./Decorators":194,"./misc/BitSet":301,"./misc/Interval":306}],198:[function(require,module,exports){
|
|
31366
31701
|
"use strict";
|
|
31367
31702
|
/*!
|
|
31368
31703
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31427,7 +31762,7 @@ FailedPredicateException = __decorate([
|
|
|
31427
31762
|
], FailedPredicateException);
|
|
31428
31763
|
exports.FailedPredicateException = FailedPredicateException;
|
|
31429
31764
|
|
|
31430
|
-
},{"./Decorators":
|
|
31765
|
+
},{"./Decorators":194,"./RecognitionException":213,"./atn/PredicateTransition":273}],199:[function(require,module,exports){
|
|
31431
31766
|
"use strict";
|
|
31432
31767
|
/*!
|
|
31433
31768
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31467,7 +31802,7 @@ InputMismatchException = __decorate([
|
|
|
31467
31802
|
], InputMismatchException);
|
|
31468
31803
|
exports.InputMismatchException = InputMismatchException;
|
|
31469
31804
|
|
|
31470
|
-
},{"./Decorators":
|
|
31805
|
+
},{"./Decorators":194,"./RecognitionException":213}],200:[function(require,module,exports){
|
|
31471
31806
|
"use strict";
|
|
31472
31807
|
/*!
|
|
31473
31808
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31490,7 +31825,7 @@ var IntStream;
|
|
|
31490
31825
|
IntStream.UNKNOWN_SOURCE_NAME = "<unknown>";
|
|
31491
31826
|
})(IntStream = exports.IntStream || (exports.IntStream = {}));
|
|
31492
31827
|
|
|
31493
|
-
},{}],
|
|
31828
|
+
},{}],201:[function(require,module,exports){
|
|
31494
31829
|
"use strict";
|
|
31495
31830
|
/*!
|
|
31496
31831
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31537,7 +31872,7 @@ __decorate([
|
|
|
31537
31872
|
], InterpreterRuleContext.prototype, "ruleIndex", null);
|
|
31538
31873
|
exports.InterpreterRuleContext = InterpreterRuleContext;
|
|
31539
31874
|
|
|
31540
|
-
},{"./Decorators":
|
|
31875
|
+
},{"./Decorators":194,"./ParserRuleContext":210}],202:[function(require,module,exports){
|
|
31541
31876
|
"use strict";
|
|
31542
31877
|
/*!
|
|
31543
31878
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31873,7 +32208,7 @@ __decorate([
|
|
|
31873
32208
|
], Lexer.prototype, "charPositionInLine", null);
|
|
31874
32209
|
exports.Lexer = Lexer;
|
|
31875
32210
|
|
|
31876
|
-
},{"./CommonTokenFactory":
|
|
32211
|
+
},{"./CommonTokenFactory":191,"./Decorators":194,"./IntStream":200,"./LexerNoViableAltException":204,"./Recognizer":214,"./Token":219,"./atn/LexerATNSimulator":252,"./misc/IntegerStack":305,"./misc/Interval":306}],203:[function(require,module,exports){
|
|
31877
32212
|
"use strict";
|
|
31878
32213
|
/*!
|
|
31879
32214
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -31953,7 +32288,7 @@ LexerInterpreter = __decorate([
|
|
|
31953
32288
|
], LexerInterpreter);
|
|
31954
32289
|
exports.LexerInterpreter = LexerInterpreter;
|
|
31955
32290
|
|
|
31956
|
-
},{"./Decorators":
|
|
32291
|
+
},{"./Decorators":194,"./Lexer":202,"./atn/LexerATNSimulator":252}],204:[function(require,module,exports){
|
|
31957
32292
|
"use strict";
|
|
31958
32293
|
/*!
|
|
31959
32294
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -32010,7 +32345,7 @@ LexerNoViableAltException = __decorate([
|
|
|
32010
32345
|
], LexerNoViableAltException);
|
|
32011
32346
|
exports.LexerNoViableAltException = LexerNoViableAltException;
|
|
32012
32347
|
|
|
32013
|
-
},{"./Decorators":
|
|
32348
|
+
},{"./Decorators":194,"./RecognitionException":213,"./misc/Interval":306,"./misc/Utils":313}],205:[function(require,module,exports){
|
|
32014
32349
|
"use strict";
|
|
32015
32350
|
/*!
|
|
32016
32351
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -32220,7 +32555,7 @@ ListTokenSource = __decorate([
|
|
|
32220
32555
|
], ListTokenSource);
|
|
32221
32556
|
exports.ListTokenSource = ListTokenSource;
|
|
32222
32557
|
|
|
32223
|
-
},{"./CommonTokenFactory":
|
|
32558
|
+
},{"./CommonTokenFactory":191,"./Decorators":194,"./Token":219}],206:[function(require,module,exports){
|
|
32224
32559
|
"use strict";
|
|
32225
32560
|
/*!
|
|
32226
32561
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -32275,7 +32610,7 @@ __decorate([
|
|
|
32275
32610
|
], NoViableAltException.prototype, "_startToken", void 0);
|
|
32276
32611
|
exports.NoViableAltException = NoViableAltException;
|
|
32277
32612
|
|
|
32278
|
-
},{"./Decorators":
|
|
32613
|
+
},{"./Decorators":194,"./Parser":207,"./RecognitionException":213}],207:[function(require,module,exports){
|
|
32279
32614
|
(function (process){(function (){
|
|
32280
32615
|
"use strict";
|
|
32281
32616
|
/*!
|
|
@@ -33121,7 +33456,7 @@ __decorate([
|
|
|
33121
33456
|
exports.Parser = Parser;
|
|
33122
33457
|
|
|
33123
33458
|
}).call(this)}).call(this,require('_process'))
|
|
33124
|
-
},{"./Decorators":
|
|
33459
|
+
},{"./Decorators":194,"./DefaultErrorStrategy":195,"./Lexer":202,"./ProxyParserErrorListener":212,"./Recognizer":214,"./Token":219,"./atn/ATNDeserializationOptions":230,"./atn/ATNDeserializer":231,"./atn/ParseInfo":267,"./atn/ParserATNSimulator":268,"./atn/ProfilingATNSimulator":277,"./misc/IntegerStack":305,"./misc/Utils":313,"./tree/ErrorNode":314,"./tree/TerminalNode":317,"./tree/pattern/ParseTreePatternMatcher":322,"_process":385}],208:[function(require,module,exports){
|
|
33125
33460
|
"use strict";
|
|
33126
33461
|
/*!
|
|
33127
33462
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -33129,7 +33464,7 @@ exports.Parser = Parser;
|
|
|
33129
33464
|
*/
|
|
33130
33465
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33131
33466
|
|
|
33132
|
-
},{}],
|
|
33467
|
+
},{}],209:[function(require,module,exports){
|
|
33133
33468
|
"use strict";
|
|
33134
33469
|
/*!
|
|
33135
33470
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -33537,7 +33872,7 @@ ParserInterpreter = __decorate([
|
|
|
33537
33872
|
], ParserInterpreter);
|
|
33538
33873
|
exports.ParserInterpreter = ParserInterpreter;
|
|
33539
33874
|
|
|
33540
|
-
},{"./Decorators":
|
|
33875
|
+
},{"./Decorators":194,"./FailedPredicateException":198,"./InputMismatchException":199,"./InterpreterRuleContext":201,"./Parser":207,"./RecognitionException":213,"./Token":219,"./atn/ATNState":233,"./atn/ATNStateType":234,"./atn/LoopEndState":264,"./atn/ParserATNSimulator":268,"./atn/StarLoopEntryState":286,"./misc/BitSet":301}],210:[function(require,module,exports){
|
|
33541
33876
|
"use strict";
|
|
33542
33877
|
/*!
|
|
33543
33878
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -33838,7 +34173,7 @@ __decorate([
|
|
|
33838
34173
|
], ParserRuleContext.prototype, "sourceInterval", null);
|
|
33839
34174
|
exports.ParserRuleContext = ParserRuleContext;
|
|
33840
34175
|
|
|
33841
|
-
},{"./Decorators":
|
|
34176
|
+
},{"./Decorators":194,"./RuleContext":215,"./misc/Interval":306,"./tree/ErrorNode":314,"./tree/TerminalNode":317}],211:[function(require,module,exports){
|
|
33842
34177
|
"use strict";
|
|
33843
34178
|
/*!
|
|
33844
34179
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -33888,7 +34223,7 @@ __decorate([
|
|
|
33888
34223
|
], ProxyErrorListener.prototype, "syntaxError", null);
|
|
33889
34224
|
exports.ProxyErrorListener = ProxyErrorListener;
|
|
33890
34225
|
|
|
33891
|
-
},{"./Decorators":
|
|
34226
|
+
},{"./Decorators":194}],212:[function(require,module,exports){
|
|
33892
34227
|
"use strict";
|
|
33893
34228
|
/*!
|
|
33894
34229
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -33947,7 +34282,7 @@ __decorate([
|
|
|
33947
34282
|
], ProxyParserErrorListener.prototype, "reportContextSensitivity", null);
|
|
33948
34283
|
exports.ProxyParserErrorListener = ProxyParserErrorListener;
|
|
33949
34284
|
|
|
33950
|
-
},{"./Decorators":
|
|
34285
|
+
},{"./Decorators":194,"./ProxyErrorListener":211}],213:[function(require,module,exports){
|
|
33951
34286
|
"use strict";
|
|
33952
34287
|
/*!
|
|
33953
34288
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34052,7 +34387,7 @@ class RecognitionException extends Error {
|
|
|
34052
34387
|
}
|
|
34053
34388
|
exports.RecognitionException = RecognitionException;
|
|
34054
34389
|
|
|
34055
|
-
},{}],
|
|
34390
|
+
},{}],214:[function(require,module,exports){
|
|
34056
34391
|
"use strict";
|
|
34057
34392
|
/*!
|
|
34058
34393
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34271,7 +34606,7 @@ __decorate([
|
|
|
34271
34606
|
], Recognizer.prototype, "getErrorListeners", null);
|
|
34272
34607
|
exports.Recognizer = Recognizer;
|
|
34273
34608
|
|
|
34274
|
-
},{"./ConsoleErrorListener":
|
|
34609
|
+
},{"./ConsoleErrorListener":193,"./Decorators":194,"./ProxyErrorListener":211,"./Token":219,"./misc/Utils":313}],215:[function(require,module,exports){
|
|
34275
34610
|
"use strict";
|
|
34276
34611
|
/*!
|
|
34277
34612
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34488,7 +34823,7 @@ __decorate([
|
|
|
34488
34823
|
], RuleContext.prototype, "toStringTree", null);
|
|
34489
34824
|
exports.RuleContext = RuleContext;
|
|
34490
34825
|
|
|
34491
|
-
},{"./Decorators":
|
|
34826
|
+
},{"./Decorators":194,"./ParserRuleContext":210,"./Recognizer":214,"./atn/ATN":227,"./misc/Interval":306,"./tree/RuleNode":316,"./tree/Trees":318}],216:[function(require,module,exports){
|
|
34492
34827
|
"use strict";
|
|
34493
34828
|
/*!
|
|
34494
34829
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34539,7 +34874,7 @@ __decorate([
|
|
|
34539
34874
|
], RuleContextWithAltNum.prototype, "altNumber", null);
|
|
34540
34875
|
exports.RuleContextWithAltNum = RuleContextWithAltNum;
|
|
34541
34876
|
|
|
34542
|
-
},{"./Decorators":
|
|
34877
|
+
},{"./Decorators":194,"./ParserRuleContext":210,"./atn/ATN":227}],217:[function(require,module,exports){
|
|
34543
34878
|
"use strict";
|
|
34544
34879
|
/*!
|
|
34545
34880
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34562,7 +34897,7 @@ function RuleDependency(dependency) {
|
|
|
34562
34897
|
}
|
|
34563
34898
|
exports.RuleDependency = RuleDependency;
|
|
34564
34899
|
|
|
34565
|
-
},{}],
|
|
34900
|
+
},{}],218:[function(require,module,exports){
|
|
34566
34901
|
"use strict";
|
|
34567
34902
|
/*!
|
|
34568
34903
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34581,7 +34916,7 @@ function RuleVersion(version) {
|
|
|
34581
34916
|
}
|
|
34582
34917
|
exports.RuleVersion = RuleVersion;
|
|
34583
34918
|
|
|
34584
|
-
},{}],
|
|
34919
|
+
},{}],219:[function(require,module,exports){
|
|
34585
34920
|
"use strict";
|
|
34586
34921
|
/*!
|
|
34587
34922
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34621,7 +34956,7 @@ var Token;
|
|
|
34621
34956
|
Token.MIN_USER_CHANNEL_VALUE = 2;
|
|
34622
34957
|
})(Token = exports.Token || (exports.Token = {}));
|
|
34623
34958
|
|
|
34624
|
-
},{"./IntStream":
|
|
34959
|
+
},{"./IntStream":200}],220:[function(require,module,exports){
|
|
34625
34960
|
"use strict";
|
|
34626
34961
|
/*!
|
|
34627
34962
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34629,7 +34964,7 @@ var Token;
|
|
|
34629
34964
|
*/
|
|
34630
34965
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34631
34966
|
|
|
34632
|
-
},{}],
|
|
34967
|
+
},{}],221:[function(require,module,exports){
|
|
34633
34968
|
"use strict";
|
|
34634
34969
|
/*!
|
|
34635
34970
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34637,7 +34972,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
34637
34972
|
*/
|
|
34638
34973
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34639
34974
|
|
|
34640
|
-
},{}],
|
|
34975
|
+
},{}],222:[function(require,module,exports){
|
|
34641
34976
|
"use strict";
|
|
34642
34977
|
/*!
|
|
34643
34978
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -34645,7 +34980,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
34645
34980
|
*/
|
|
34646
34981
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34647
34982
|
|
|
34648
|
-
},{}],
|
|
34983
|
+
},{}],223:[function(require,module,exports){
|
|
34649
34984
|
"use strict";
|
|
34650
34985
|
/*!
|
|
34651
34986
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -35153,7 +35488,7 @@ __decorate([
|
|
|
35153
35488
|
Decorators_1.Override
|
|
35154
35489
|
], ReplaceOp.prototype, "toString", null);
|
|
35155
35490
|
|
|
35156
|
-
},{"./Decorators":
|
|
35491
|
+
},{"./Decorators":194,"./Token":219,"./misc/Interval":306}],224:[function(require,module,exports){
|
|
35157
35492
|
"use strict";
|
|
35158
35493
|
/*!
|
|
35159
35494
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -35161,7 +35496,7 @@ __decorate([
|
|
|
35161
35496
|
*/
|
|
35162
35497
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35163
35498
|
|
|
35164
|
-
},{}],
|
|
35499
|
+
},{}],225:[function(require,module,exports){
|
|
35165
35500
|
"use strict";
|
|
35166
35501
|
/*!
|
|
35167
35502
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -35281,7 +35616,7 @@ __decorate([
|
|
|
35281
35616
|
], VocabularyImpl, "EMPTY_VOCABULARY", void 0);
|
|
35282
35617
|
exports.VocabularyImpl = VocabularyImpl;
|
|
35283
35618
|
|
|
35284
|
-
},{"./Decorators":
|
|
35619
|
+
},{"./Decorators":194,"./Token":219}],226:[function(require,module,exports){
|
|
35285
35620
|
"use strict";
|
|
35286
35621
|
/*!
|
|
35287
35622
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -35289,7 +35624,7 @@ exports.VocabularyImpl = VocabularyImpl;
|
|
|
35289
35624
|
*/
|
|
35290
35625
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35291
35626
|
|
|
35292
|
-
},{}],
|
|
35627
|
+
},{}],227:[function(require,module,exports){
|
|
35293
35628
|
"use strict";
|
|
35294
35629
|
/*!
|
|
35295
35630
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -35511,7 +35846,7 @@ exports.ATN = ATN;
|
|
|
35511
35846
|
})(ATN = exports.ATN || (exports.ATN = {}));
|
|
35512
35847
|
exports.ATN = ATN;
|
|
35513
35848
|
|
|
35514
|
-
},{"../Decorators":
|
|
35849
|
+
},{"../Decorators":194,"../Token":219,"../dfa/DFA":292,"../misc/Array2DHashMap":297,"../misc/IntervalSet":307,"../misc/ObjectEqualityComparator":310,"./InvalidState":250,"./LL1Analyzer":251,"./PredictionContext":274,"assert":337}],228:[function(require,module,exports){
|
|
35515
35850
|
"use strict";
|
|
35516
35851
|
/*!
|
|
35517
35852
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36036,7 +36371,7 @@ ActionSemanticContextATNConfig = __decorate([
|
|
|
36036
36371
|
__param(1, Decorators_1.NotNull), __param(2, Decorators_1.NotNull)
|
|
36037
36372
|
], ActionSemanticContextATNConfig);
|
|
36038
36373
|
|
|
36039
|
-
},{"../Decorators":
|
|
36374
|
+
},{"../Decorators":194,"../misc/Array2DHashMap":297,"../misc/MurmurHash":309,"../misc/ObjectEqualityComparator":310,"./DecisionState":247,"./PredictionContext":274,"./SemanticContext":282,"assert":337}],229:[function(require,module,exports){
|
|
36040
36375
|
"use strict";
|
|
36041
36376
|
/*!
|
|
36042
36377
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36483,7 +36818,7 @@ __decorate([
|
|
|
36483
36818
|
], ATNConfigSet.prototype, "hashCode", null);
|
|
36484
36819
|
exports.ATNConfigSet = ATNConfigSet;
|
|
36485
36820
|
|
|
36486
|
-
},{"../Decorators":
|
|
36821
|
+
},{"../Decorators":194,"../misc/Array2DHashMap":297,"../misc/Array2DHashSet":298,"../misc/ArrayEqualityComparator":299,"../misc/BitSet":301,"../misc/ObjectEqualityComparator":310,"../misc/Utils":313,"./ATN":227,"./ATNConfig":228,"./PredictionContext":274,"./PredictionContextCache":275,"./SemanticContext":282,"assert":337}],230:[function(require,module,exports){
|
|
36487
36822
|
"use strict";
|
|
36488
36823
|
/*!
|
|
36489
36824
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36562,7 +36897,7 @@ __decorate([
|
|
|
36562
36897
|
], ATNDeserializationOptions, "defaultOptions", null);
|
|
36563
36898
|
exports.ATNDeserializationOptions = ATNDeserializationOptions;
|
|
36564
36899
|
|
|
36565
|
-
},{"../Decorators":
|
|
36900
|
+
},{"../Decorators":194}],231:[function(require,module,exports){
|
|
36566
36901
|
"use strict";
|
|
36567
36902
|
/*!
|
|
36568
36903
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37649,7 +37984,7 @@ __decorate([
|
|
|
37649
37984
|
], ATNDeserializer.prototype, "edgeFactory", null);
|
|
37650
37985
|
exports.ATNDeserializer = ATNDeserializer;
|
|
37651
37986
|
|
|
37652
|
-
},{"../Decorators":
|
|
37987
|
+
},{"../Decorators":194,"../Token":219,"../dfa/DFA":292,"../misc/Array2DHashSet":298,"../misc/BitSet":301,"../misc/IntervalSet":307,"../misc/UUID":312,"./ATN":227,"./ATNDeserializationOptions":230,"./ATNStateType":234,"./ActionTransition":236,"./AtomTransition":238,"./BasicBlockStartState":239,"./BasicState":240,"./BlockEndState":241,"./BlockStartState":242,"./DecisionState":247,"./EpsilonTransition":248,"./InvalidState":250,"./LexerChannelAction":254,"./LexerCustomAction":255,"./LexerModeAction":257,"./LexerMoreAction":258,"./LexerPopModeAction":259,"./LexerPushModeAction":260,"./LexerSkipAction":261,"./LexerTypeAction":262,"./LoopEndState":264,"./NotSetTransition":265,"./ParserATNSimulator":268,"./PlusBlockStartState":269,"./PlusLoopbackState":270,"./PrecedencePredicateTransition":271,"./PredicateTransition":273,"./RangeTransition":278,"./RuleStartState":279,"./RuleStopState":280,"./RuleTransition":281,"./SetTransition":283,"./StarBlockStartState":285,"./StarLoopEntryState":286,"./StarLoopbackState":287,"./TokensStartState":288,"./WildcardTransition":290}],232:[function(require,module,exports){
|
|
37653
37988
|
"use strict";
|
|
37654
37989
|
/*!
|
|
37655
37990
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37713,7 +38048,7 @@ exports.ATNSimulator = ATNSimulator;
|
|
|
37713
38048
|
})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
|
|
37714
38049
|
exports.ATNSimulator = ATNSimulator;
|
|
37715
38050
|
|
|
37716
|
-
},{"../Decorators":
|
|
38051
|
+
},{"../Decorators":194,"../dfa/DFAState":294,"./ATNConfigSet":229,"./PredictionContext":274}],233:[function(require,module,exports){
|
|
37717
38052
|
"use strict";
|
|
37718
38053
|
/*!
|
|
37719
38054
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37900,7 +38235,7 @@ exports.ATNState = ATNState;
|
|
|
37900
38235
|
ATNState.INVALID_STATE_NUMBER = -1;
|
|
37901
38236
|
})(ATNState = exports.ATNState || (exports.ATNState = {}));
|
|
37902
38237
|
|
|
37903
|
-
},{"../Decorators":
|
|
38238
|
+
},{"../Decorators":194}],234:[function(require,module,exports){
|
|
37904
38239
|
"use strict";
|
|
37905
38240
|
/*!
|
|
37906
38241
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37926,7 +38261,7 @@ var ATNStateType;
|
|
|
37926
38261
|
ATNStateType[ATNStateType["LOOP_END"] = 12] = "LOOP_END";
|
|
37927
38262
|
})(ATNStateType = exports.ATNStateType || (exports.ATNStateType = {}));
|
|
37928
38263
|
|
|
37929
|
-
},{}],
|
|
38264
|
+
},{}],235:[function(require,module,exports){
|
|
37930
38265
|
"use strict";
|
|
37931
38266
|
/*!
|
|
37932
38267
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37946,7 +38281,7 @@ class AbstractPredicateTransition extends Transition_1.Transition {
|
|
|
37946
38281
|
}
|
|
37947
38282
|
exports.AbstractPredicateTransition = AbstractPredicateTransition;
|
|
37948
38283
|
|
|
37949
|
-
},{"./Transition":
|
|
38284
|
+
},{"./Transition":289}],236:[function(require,module,exports){
|
|
37950
38285
|
"use strict";
|
|
37951
38286
|
/*!
|
|
37952
38287
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38002,7 +38337,7 @@ ActionTransition = __decorate([
|
|
|
38002
38337
|
], ActionTransition);
|
|
38003
38338
|
exports.ActionTransition = ActionTransition;
|
|
38004
38339
|
|
|
38005
|
-
},{"../Decorators":
|
|
38340
|
+
},{"../Decorators":194,"./Transition":289}],237:[function(require,module,exports){
|
|
38006
38341
|
"use strict";
|
|
38007
38342
|
/*!
|
|
38008
38343
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38089,7 +38424,7 @@ AmbiguityInfo = __decorate([
|
|
|
38089
38424
|
], AmbiguityInfo);
|
|
38090
38425
|
exports.AmbiguityInfo = AmbiguityInfo;
|
|
38091
38426
|
|
|
38092
|
-
},{"../Decorators":
|
|
38427
|
+
},{"../Decorators":194,"./DecisionEventInfo":245}],238:[function(require,module,exports){
|
|
38093
38428
|
"use strict";
|
|
38094
38429
|
/*!
|
|
38095
38430
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38147,7 +38482,7 @@ AtomTransition = __decorate([
|
|
|
38147
38482
|
], AtomTransition);
|
|
38148
38483
|
exports.AtomTransition = AtomTransition;
|
|
38149
38484
|
|
|
38150
|
-
},{"../Decorators":
|
|
38485
|
+
},{"../Decorators":194,"../misc/IntervalSet":307,"./Transition":289}],239:[function(require,module,exports){
|
|
38151
38486
|
"use strict";
|
|
38152
38487
|
/*!
|
|
38153
38488
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38179,7 +38514,7 @@ __decorate([
|
|
|
38179
38514
|
], BasicBlockStartState.prototype, "stateType", null);
|
|
38180
38515
|
exports.BasicBlockStartState = BasicBlockStartState;
|
|
38181
38516
|
|
|
38182
|
-
},{"../Decorators":
|
|
38517
|
+
},{"../Decorators":194,"./ATNStateType":234,"./BlockStartState":242}],240:[function(require,module,exports){
|
|
38183
38518
|
"use strict";
|
|
38184
38519
|
/*!
|
|
38185
38520
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38211,7 +38546,7 @@ __decorate([
|
|
|
38211
38546
|
], BasicState.prototype, "stateType", null);
|
|
38212
38547
|
exports.BasicState = BasicState;
|
|
38213
38548
|
|
|
38214
|
-
},{"../Decorators":
|
|
38549
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],241:[function(require,module,exports){
|
|
38215
38550
|
"use strict";
|
|
38216
38551
|
/*!
|
|
38217
38552
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38240,7 +38575,7 @@ __decorate([
|
|
|
38240
38575
|
], BlockEndState.prototype, "stateType", null);
|
|
38241
38576
|
exports.BlockEndState = BlockEndState;
|
|
38242
38577
|
|
|
38243
|
-
},{"../Decorators":
|
|
38578
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],242:[function(require,module,exports){
|
|
38244
38579
|
"use strict";
|
|
38245
38580
|
/*!
|
|
38246
38581
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38254,7 +38589,7 @@ class BlockStartState extends DecisionState_1.DecisionState {
|
|
|
38254
38589
|
}
|
|
38255
38590
|
exports.BlockStartState = BlockStartState;
|
|
38256
38591
|
|
|
38257
|
-
},{"./DecisionState":
|
|
38592
|
+
},{"./DecisionState":247}],243:[function(require,module,exports){
|
|
38258
38593
|
"use strict";
|
|
38259
38594
|
/*!
|
|
38260
38595
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38324,7 +38659,7 @@ __decorate([
|
|
|
38324
38659
|
], ConflictInfo.prototype, "hashCode", null);
|
|
38325
38660
|
exports.ConflictInfo = ConflictInfo;
|
|
38326
38661
|
|
|
38327
|
-
},{"../Decorators":
|
|
38662
|
+
},{"../Decorators":194,"../misc/Utils":313}],244:[function(require,module,exports){
|
|
38328
38663
|
"use strict";
|
|
38329
38664
|
/*!
|
|
38330
38665
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38384,7 +38719,7 @@ ContextSensitivityInfo = __decorate([
|
|
|
38384
38719
|
], ContextSensitivityInfo);
|
|
38385
38720
|
exports.ContextSensitivityInfo = ContextSensitivityInfo;
|
|
38386
38721
|
|
|
38387
|
-
},{"../Decorators":
|
|
38722
|
+
},{"../Decorators":194,"./DecisionEventInfo":245}],245:[function(require,module,exports){
|
|
38388
38723
|
"use strict";
|
|
38389
38724
|
/*!
|
|
38390
38725
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38436,7 +38771,7 @@ DecisionEventInfo = __decorate([
|
|
|
38436
38771
|
], DecisionEventInfo);
|
|
38437
38772
|
exports.DecisionEventInfo = DecisionEventInfo;
|
|
38438
38773
|
|
|
38439
|
-
},{"../Decorators":
|
|
38774
|
+
},{"../Decorators":194}],246:[function(require,module,exports){
|
|
38440
38775
|
"use strict";
|
|
38441
38776
|
/*!
|
|
38442
38777
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38649,7 +38984,7 @@ __decorate([
|
|
|
38649
38984
|
], DecisionInfo.prototype, "toString", null);
|
|
38650
38985
|
exports.DecisionInfo = DecisionInfo;
|
|
38651
38986
|
|
|
38652
|
-
},{"../Decorators":
|
|
38987
|
+
},{"../Decorators":194}],247:[function(require,module,exports){
|
|
38653
38988
|
"use strict";
|
|
38654
38989
|
/*!
|
|
38655
38990
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38669,7 +39004,7 @@ class DecisionState extends ATNState_1.ATNState {
|
|
|
38669
39004
|
}
|
|
38670
39005
|
exports.DecisionState = DecisionState;
|
|
38671
39006
|
|
|
38672
|
-
},{"./ATNState":
|
|
39007
|
+
},{"./ATNState":233}],248:[function(require,module,exports){
|
|
38673
39008
|
"use strict";
|
|
38674
39009
|
/*!
|
|
38675
39010
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38735,7 +39070,7 @@ EpsilonTransition = __decorate([
|
|
|
38735
39070
|
], EpsilonTransition);
|
|
38736
39071
|
exports.EpsilonTransition = EpsilonTransition;
|
|
38737
39072
|
|
|
38738
|
-
},{"../Decorators":
|
|
39073
|
+
},{"../Decorators":194,"./Transition":289}],249:[function(require,module,exports){
|
|
38739
39074
|
"use strict";
|
|
38740
39075
|
/*!
|
|
38741
39076
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38788,7 +39123,7 @@ ErrorInfo = __decorate([
|
|
|
38788
39123
|
], ErrorInfo);
|
|
38789
39124
|
exports.ErrorInfo = ErrorInfo;
|
|
38790
39125
|
|
|
38791
|
-
},{"../Decorators":
|
|
39126
|
+
},{"../Decorators":194,"./DecisionEventInfo":245}],250:[function(require,module,exports){
|
|
38792
39127
|
"use strict";
|
|
38793
39128
|
/*!
|
|
38794
39129
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38819,7 +39154,7 @@ __decorate([
|
|
|
38819
39154
|
], InvalidState.prototype, "stateType", null);
|
|
38820
39155
|
exports.InvalidState = InvalidState;
|
|
38821
39156
|
|
|
38822
|
-
},{"../Decorators":
|
|
39157
|
+
},{"../Decorators":194,"./ATNStateType":234,"./BasicState":240}],251:[function(require,module,exports){
|
|
38823
39158
|
"use strict";
|
|
38824
39159
|
/*!
|
|
38825
39160
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39041,7 +39376,7 @@ LL1Analyzer = __decorate([
|
|
|
39041
39376
|
], LL1Analyzer);
|
|
39042
39377
|
exports.LL1Analyzer = LL1Analyzer;
|
|
39043
39378
|
|
|
39044
|
-
},{"../Decorators":
|
|
39379
|
+
},{"../Decorators":194,"../Token":219,"../misc/Array2DHashSet":298,"../misc/BitSet":301,"../misc/IntervalSet":307,"../misc/ObjectEqualityComparator":310,"./ATNConfig":228,"./AbstractPredicateTransition":235,"./NotSetTransition":265,"./PredictionContext":274,"./RuleStopState":280,"./RuleTransition":281,"./WildcardTransition":290}],252:[function(require,module,exports){
|
|
39045
39380
|
"use strict";
|
|
39046
39381
|
/*!
|
|
39047
39382
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39758,7 +40093,7 @@ exports.LexerATNSimulator = LexerATNSimulator;
|
|
|
39758
40093
|
})(LexerATNSimulator = exports.LexerATNSimulator || (exports.LexerATNSimulator = {}));
|
|
39759
40094
|
exports.LexerATNSimulator = LexerATNSimulator;
|
|
39760
40095
|
|
|
39761
|
-
},{"../Decorators":
|
|
40096
|
+
},{"../Decorators":194,"../IntStream":200,"../Lexer":202,"../LexerNoViableAltException":204,"../Token":219,"../dfa/AcceptStateInfo":291,"../dfa/DFAState":294,"../misc/Interval":306,"./ATN":227,"./ATNConfig":228,"./ATNConfigSet":229,"./ATNSimulator":232,"./LexerActionExecutor":253,"./OrderedATNConfigSet":266,"./PredictionContext":274,"./RuleStopState":280,"assert":337}],253:[function(require,module,exports){
|
|
39762
40097
|
"use strict";
|
|
39763
40098
|
/*!
|
|
39764
40099
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39959,7 +40294,7 @@ LexerActionExecutor = __decorate([
|
|
|
39959
40294
|
], LexerActionExecutor);
|
|
39960
40295
|
exports.LexerActionExecutor = LexerActionExecutor;
|
|
39961
40296
|
|
|
39962
|
-
},{"../Decorators":
|
|
40297
|
+
},{"../Decorators":194,"../misc/ArrayEqualityComparator":299,"../misc/MurmurHash":309,"./LexerIndexedCustomAction":256}],254:[function(require,module,exports){
|
|
39963
40298
|
"use strict";
|
|
39964
40299
|
/*!
|
|
39965
40300
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40064,7 +40399,7 @@ __decorate([
|
|
|
40064
40399
|
], LexerChannelAction.prototype, "toString", null);
|
|
40065
40400
|
exports.LexerChannelAction = LexerChannelAction;
|
|
40066
40401
|
|
|
40067
|
-
},{"../Decorators":
|
|
40402
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],255:[function(require,module,exports){
|
|
40068
40403
|
"use strict";
|
|
40069
40404
|
/*!
|
|
40070
40405
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40193,7 +40528,7 @@ __decorate([
|
|
|
40193
40528
|
], LexerCustomAction.prototype, "equals", null);
|
|
40194
40529
|
exports.LexerCustomAction = LexerCustomAction;
|
|
40195
40530
|
|
|
40196
|
-
},{"../Decorators":
|
|
40531
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],256:[function(require,module,exports){
|
|
40197
40532
|
"use strict";
|
|
40198
40533
|
/*!
|
|
40199
40534
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40328,7 +40663,7 @@ LexerIndexedCustomAction = __decorate([
|
|
|
40328
40663
|
], LexerIndexedCustomAction);
|
|
40329
40664
|
exports.LexerIndexedCustomAction = LexerIndexedCustomAction;
|
|
40330
40665
|
|
|
40331
|
-
},{"../Decorators":
|
|
40666
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],257:[function(require,module,exports){
|
|
40332
40667
|
"use strict";
|
|
40333
40668
|
/*!
|
|
40334
40669
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40433,7 +40768,7 @@ __decorate([
|
|
|
40433
40768
|
], LexerModeAction.prototype, "toString", null);
|
|
40434
40769
|
exports.LexerModeAction = LexerModeAction;
|
|
40435
40770
|
|
|
40436
|
-
},{"../Decorators":
|
|
40771
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],258:[function(require,module,exports){
|
|
40437
40772
|
"use strict";
|
|
40438
40773
|
/*!
|
|
40439
40774
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40529,7 +40864,7 @@ exports.LexerMoreAction = LexerMoreAction;
|
|
|
40529
40864
|
LexerMoreAction.INSTANCE = new LexerMoreAction();
|
|
40530
40865
|
})(LexerMoreAction = exports.LexerMoreAction || (exports.LexerMoreAction = {}));
|
|
40531
40866
|
|
|
40532
|
-
},{"../Decorators":
|
|
40867
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],259:[function(require,module,exports){
|
|
40533
40868
|
"use strict";
|
|
40534
40869
|
/*!
|
|
40535
40870
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40625,7 +40960,7 @@ exports.LexerPopModeAction = LexerPopModeAction;
|
|
|
40625
40960
|
LexerPopModeAction.INSTANCE = new LexerPopModeAction();
|
|
40626
40961
|
})(LexerPopModeAction = exports.LexerPopModeAction || (exports.LexerPopModeAction = {}));
|
|
40627
40962
|
|
|
40628
|
-
},{"../Decorators":
|
|
40963
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],260:[function(require,module,exports){
|
|
40629
40964
|
"use strict";
|
|
40630
40965
|
/*!
|
|
40631
40966
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40730,7 +41065,7 @@ __decorate([
|
|
|
40730
41065
|
], LexerPushModeAction.prototype, "toString", null);
|
|
40731
41066
|
exports.LexerPushModeAction = LexerPushModeAction;
|
|
40732
41067
|
|
|
40733
|
-
},{"../Decorators":
|
|
41068
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],261:[function(require,module,exports){
|
|
40734
41069
|
"use strict";
|
|
40735
41070
|
/*!
|
|
40736
41071
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40826,7 +41161,7 @@ exports.LexerSkipAction = LexerSkipAction;
|
|
|
40826
41161
|
LexerSkipAction.INSTANCE = new LexerSkipAction();
|
|
40827
41162
|
})(LexerSkipAction = exports.LexerSkipAction || (exports.LexerSkipAction = {}));
|
|
40828
41163
|
|
|
40829
|
-
},{"../Decorators":
|
|
41164
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],262:[function(require,module,exports){
|
|
40830
41165
|
"use strict";
|
|
40831
41166
|
/*!
|
|
40832
41167
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40930,7 +41265,7 @@ __decorate([
|
|
|
40930
41265
|
], LexerTypeAction.prototype, "toString", null);
|
|
40931
41266
|
exports.LexerTypeAction = LexerTypeAction;
|
|
40932
41267
|
|
|
40933
|
-
},{"../Decorators":
|
|
41268
|
+
},{"../Decorators":194,"../misc/MurmurHash":309}],263:[function(require,module,exports){
|
|
40934
41269
|
"use strict";
|
|
40935
41270
|
/*!
|
|
40936
41271
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40982,7 +41317,7 @@ LookaheadEventInfo = __decorate([
|
|
|
40982
41317
|
], LookaheadEventInfo);
|
|
40983
41318
|
exports.LookaheadEventInfo = LookaheadEventInfo;
|
|
40984
41319
|
|
|
40985
|
-
},{"../Decorators":
|
|
41320
|
+
},{"../Decorators":194,"./DecisionEventInfo":245}],264:[function(require,module,exports){
|
|
40986
41321
|
"use strict";
|
|
40987
41322
|
/*!
|
|
40988
41323
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41011,7 +41346,7 @@ __decorate([
|
|
|
41011
41346
|
], LoopEndState.prototype, "stateType", null);
|
|
41012
41347
|
exports.LoopEndState = LoopEndState;
|
|
41013
41348
|
|
|
41014
|
-
},{"../Decorators":
|
|
41349
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],265:[function(require,module,exports){
|
|
41015
41350
|
"use strict";
|
|
41016
41351
|
/*!
|
|
41017
41352
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41060,7 +41395,7 @@ NotSetTransition = __decorate([
|
|
|
41060
41395
|
], NotSetTransition);
|
|
41061
41396
|
exports.NotSetTransition = NotSetTransition;
|
|
41062
41397
|
|
|
41063
|
-
},{"../Decorators":
|
|
41398
|
+
},{"../Decorators":194,"./SetTransition":283}],266:[function(require,module,exports){
|
|
41064
41399
|
"use strict";
|
|
41065
41400
|
/*!
|
|
41066
41401
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41115,7 +41450,7 @@ __decorate([
|
|
|
41115
41450
|
], OrderedATNConfigSet.prototype, "canMerge", null);
|
|
41116
41451
|
exports.OrderedATNConfigSet = OrderedATNConfigSet;
|
|
41117
41452
|
|
|
41118
|
-
},{"../Decorators":
|
|
41453
|
+
},{"../Decorators":194,"./ATNConfigSet":229}],267:[function(require,module,exports){
|
|
41119
41454
|
"use strict";
|
|
41120
41455
|
/*!
|
|
41121
41456
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41277,7 +41612,7 @@ ParseInfo = __decorate([
|
|
|
41277
41612
|
], ParseInfo);
|
|
41278
41613
|
exports.ParseInfo = ParseInfo;
|
|
41279
41614
|
|
|
41280
|
-
},{"../Decorators":
|
|
41615
|
+
},{"../Decorators":194}],268:[function(require,module,exports){
|
|
41281
41616
|
"use strict";
|
|
41282
41617
|
/*!
|
|
41283
41618
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43550,7 +43885,7 @@ ParserATNSimulator = __decorate([
|
|
|
43550
43885
|
], ParserATNSimulator);
|
|
43551
43886
|
exports.ParserATNSimulator = ParserATNSimulator;
|
|
43552
43887
|
|
|
43553
|
-
},{"../Decorators":
|
|
43888
|
+
},{"../Decorators":194,"../IntStream":200,"../NoViableAltException":206,"../ParserRuleContext":210,"../Token":219,"../VocabularyImpl":225,"../dfa/AcceptStateInfo":291,"../dfa/DFAState":294,"../misc/Array2DHashSet":298,"../misc/Arrays":300,"../misc/BitSet":301,"../misc/IntegerList":304,"../misc/Interval":306,"../misc/ObjectEqualityComparator":310,"./ATN":227,"./ATNConfig":228,"./ATNConfigSet":229,"./ATNSimulator":232,"./ATNStateType":234,"./ActionTransition":236,"./AtomTransition":238,"./ConflictInfo":243,"./DecisionState":247,"./NotSetTransition":265,"./PredictionContext":274,"./PredictionContextCache":275,"./PredictionMode":276,"./RuleStopState":280,"./RuleTransition":281,"./SemanticContext":282,"./SetTransition":283,"./SimulatorState":284,"assert":337}],269:[function(require,module,exports){
|
|
43554
43889
|
"use strict";
|
|
43555
43890
|
/*!
|
|
43556
43891
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43583,7 +43918,7 @@ __decorate([
|
|
|
43583
43918
|
], PlusBlockStartState.prototype, "stateType", null);
|
|
43584
43919
|
exports.PlusBlockStartState = PlusBlockStartState;
|
|
43585
43920
|
|
|
43586
|
-
},{"../Decorators":
|
|
43921
|
+
},{"../Decorators":194,"./ATNStateType":234,"./BlockStartState":242}],270:[function(require,module,exports){
|
|
43587
43922
|
"use strict";
|
|
43588
43923
|
/*!
|
|
43589
43924
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43614,7 +43949,7 @@ __decorate([
|
|
|
43614
43949
|
], PlusLoopbackState.prototype, "stateType", null);
|
|
43615
43950
|
exports.PlusLoopbackState = PlusLoopbackState;
|
|
43616
43951
|
|
|
43617
|
-
},{"../Decorators":
|
|
43952
|
+
},{"../Decorators":194,"./ATNStateType":234,"./DecisionState":247}],271:[function(require,module,exports){
|
|
43618
43953
|
"use strict";
|
|
43619
43954
|
/*!
|
|
43620
43955
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43677,7 +44012,7 @@ PrecedencePredicateTransition = __decorate([
|
|
|
43677
44012
|
], PrecedencePredicateTransition);
|
|
43678
44013
|
exports.PrecedencePredicateTransition = PrecedencePredicateTransition;
|
|
43679
44014
|
|
|
43680
|
-
},{"../Decorators":
|
|
44015
|
+
},{"../Decorators":194,"./AbstractPredicateTransition":235,"./SemanticContext":282}],272:[function(require,module,exports){
|
|
43681
44016
|
"use strict";
|
|
43682
44017
|
/*!
|
|
43683
44018
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43740,7 +44075,7 @@ PredicateEvalInfo = __decorate([
|
|
|
43740
44075
|
], PredicateEvalInfo);
|
|
43741
44076
|
exports.PredicateEvalInfo = PredicateEvalInfo;
|
|
43742
44077
|
|
|
43743
|
-
},{"../Decorators":
|
|
44078
|
+
},{"../Decorators":194,"./DecisionEventInfo":245}],273:[function(require,module,exports){
|
|
43744
44079
|
"use strict";
|
|
43745
44080
|
/*!
|
|
43746
44081
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43806,7 +44141,7 @@ PredicateTransition = __decorate([
|
|
|
43806
44141
|
], PredicateTransition);
|
|
43807
44142
|
exports.PredicateTransition = PredicateTransition;
|
|
43808
44143
|
|
|
43809
|
-
},{"../Decorators":
|
|
44144
|
+
},{"../Decorators":194,"./AbstractPredicateTransition":235,"./SemanticContext":282}],274:[function(require,module,exports){
|
|
43810
44145
|
"use strict";
|
|
43811
44146
|
/*!
|
|
43812
44147
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44497,7 +44832,7 @@ exports.SingletonPredictionContext = SingletonPredictionContext;
|
|
|
44497
44832
|
PredictionContext.IdentityEqualityComparator = IdentityEqualityComparator;
|
|
44498
44833
|
})(PredictionContext = exports.PredictionContext || (exports.PredictionContext = {}));
|
|
44499
44834
|
|
|
44500
|
-
},{"../Decorators":
|
|
44835
|
+
},{"../Decorators":194,"../misc/Array2DHashMap":297,"../misc/Array2DHashSet":298,"../misc/Arrays":300,"../misc/MurmurHash":309,"./PredictionContextCache":275,"assert":337}],275:[function(require,module,exports){
|
|
44501
44836
|
"use strict";
|
|
44502
44837
|
/*!
|
|
44503
44838
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44638,7 +44973,7 @@ PredictionContextCache.UNCACHED = new PredictionContextCache(false);
|
|
|
44638
44973
|
PredictionContextCache.IdentityCommutativePredictionContextOperands = IdentityCommutativePredictionContextOperands;
|
|
44639
44974
|
})(PredictionContextCache = exports.PredictionContextCache || (exports.PredictionContextCache = {}));
|
|
44640
44975
|
|
|
44641
|
-
},{"../Decorators":
|
|
44976
|
+
},{"../Decorators":194,"../misc/Array2DHashMap":297,"../misc/ObjectEqualityComparator":310,"./PredictionContext":274,"assert":337}],276:[function(require,module,exports){
|
|
44642
44977
|
"use strict";
|
|
44643
44978
|
/*!
|
|
44644
44979
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44799,7 +45134,7 @@ var PredictionMode;
|
|
|
44799
45134
|
PredictionMode.allConfigsInRuleStopStates = allConfigsInRuleStopStates;
|
|
44800
45135
|
})(PredictionMode = exports.PredictionMode || (exports.PredictionMode = {}));
|
|
44801
45136
|
|
|
44802
|
-
},{"../Decorators":
|
|
45137
|
+
},{"../Decorators":194,"../misc/Array2DHashMap":297,"../misc/MurmurHash":309,"./RuleStopState":280}],277:[function(require,module,exports){
|
|
44803
45138
|
(function (process){(function (){
|
|
44804
45139
|
"use strict";
|
|
44805
45140
|
/*!
|
|
@@ -45068,7 +45403,7 @@ __decorate([
|
|
|
45068
45403
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
45069
45404
|
|
|
45070
45405
|
}).call(this)}).call(this,require('_process'))
|
|
45071
|
-
},{"../Decorators":
|
|
45406
|
+
},{"../Decorators":194,"./ATN":227,"./ATNSimulator":232,"./AmbiguityInfo":237,"./ContextSensitivityInfo":244,"./DecisionInfo":246,"./ErrorInfo":249,"./LookaheadEventInfo":263,"./ParserATNSimulator":268,"./PredicateEvalInfo":272,"./SemanticContext":282,"./SimulatorState":284,"_process":385}],278:[function(require,module,exports){
|
|
45072
45407
|
"use strict";
|
|
45073
45408
|
/*!
|
|
45074
45409
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45126,7 +45461,7 @@ RangeTransition = __decorate([
|
|
|
45126
45461
|
], RangeTransition);
|
|
45127
45462
|
exports.RangeTransition = RangeTransition;
|
|
45128
45463
|
|
|
45129
|
-
},{"../Decorators":
|
|
45464
|
+
},{"../Decorators":194,"../misc/IntervalSet":307,"./Transition":289}],279:[function(require,module,exports){
|
|
45130
45465
|
"use strict";
|
|
45131
45466
|
/*!
|
|
45132
45467
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45159,7 +45494,7 @@ __decorate([
|
|
|
45159
45494
|
], RuleStartState.prototype, "stateType", null);
|
|
45160
45495
|
exports.RuleStartState = RuleStartState;
|
|
45161
45496
|
|
|
45162
|
-
},{"../Decorators":
|
|
45497
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],280:[function(require,module,exports){
|
|
45163
45498
|
"use strict";
|
|
45164
45499
|
/*!
|
|
45165
45500
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45198,7 +45533,7 @@ __decorate([
|
|
|
45198
45533
|
], RuleStopState.prototype, "stateType", null);
|
|
45199
45534
|
exports.RuleStopState = RuleStopState;
|
|
45200
45535
|
|
|
45201
|
-
},{"../Decorators":
|
|
45536
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],281:[function(require,module,exports){
|
|
45202
45537
|
"use strict";
|
|
45203
45538
|
/*!
|
|
45204
45539
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45254,7 +45589,7 @@ RuleTransition = __decorate([
|
|
|
45254
45589
|
], RuleTransition);
|
|
45255
45590
|
exports.RuleTransition = RuleTransition;
|
|
45256
45591
|
|
|
45257
|
-
},{"../Decorators":
|
|
45592
|
+
},{"../Decorators":194,"./Transition":289}],282:[function(require,module,exports){
|
|
45258
45593
|
"use strict";
|
|
45259
45594
|
/*!
|
|
45260
45595
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45734,7 +46069,7 @@ exports.SemanticContext = SemanticContext;
|
|
|
45734
46069
|
SemanticContext.OR = OR;
|
|
45735
46070
|
})(SemanticContext = exports.SemanticContext || (exports.SemanticContext = {}));
|
|
45736
46071
|
|
|
45737
|
-
},{"../Decorators":
|
|
46072
|
+
},{"../Decorators":194,"../misc/Array2DHashSet":298,"../misc/ArrayEqualityComparator":299,"../misc/MurmurHash":309,"../misc/ObjectEqualityComparator":310,"../misc/Utils":313}],283:[function(require,module,exports){
|
|
45738
46073
|
"use strict";
|
|
45739
46074
|
/*!
|
|
45740
46075
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45800,7 +46135,7 @@ SetTransition = __decorate([
|
|
|
45800
46135
|
], SetTransition);
|
|
45801
46136
|
exports.SetTransition = SetTransition;
|
|
45802
46137
|
|
|
45803
|
-
},{"../Decorators":
|
|
46138
|
+
},{"../Decorators":194,"../Token":219,"../misc/IntervalSet":307,"./Transition":289}],284:[function(require,module,exports){
|
|
45804
46139
|
"use strict";
|
|
45805
46140
|
/*!
|
|
45806
46141
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45836,7 +46171,7 @@ SimulatorState = __decorate([
|
|
|
45836
46171
|
], SimulatorState);
|
|
45837
46172
|
exports.SimulatorState = SimulatorState;
|
|
45838
46173
|
|
|
45839
|
-
},{"../Decorators":
|
|
46174
|
+
},{"../Decorators":194,"../ParserRuleContext":210}],285:[function(require,module,exports){
|
|
45840
46175
|
"use strict";
|
|
45841
46176
|
/*!
|
|
45842
46177
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45864,7 +46199,7 @@ __decorate([
|
|
|
45864
46199
|
], StarBlockStartState.prototype, "stateType", null);
|
|
45865
46200
|
exports.StarBlockStartState = StarBlockStartState;
|
|
45866
46201
|
|
|
45867
|
-
},{"../Decorators":
|
|
46202
|
+
},{"../Decorators":194,"./ATNStateType":234,"./BlockStartState":242}],286:[function(require,module,exports){
|
|
45868
46203
|
"use strict";
|
|
45869
46204
|
/*!
|
|
45870
46205
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45921,7 +46256,7 @@ __decorate([
|
|
|
45921
46256
|
], StarLoopEntryState.prototype, "stateType", null);
|
|
45922
46257
|
exports.StarLoopEntryState = StarLoopEntryState;
|
|
45923
46258
|
|
|
45924
|
-
},{"../Decorators":
|
|
46259
|
+
},{"../Decorators":194,"../misc/BitSet":301,"./ATNStateType":234,"./DecisionState":247}],287:[function(require,module,exports){
|
|
45925
46260
|
"use strict";
|
|
45926
46261
|
/*!
|
|
45927
46262
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45952,7 +46287,7 @@ __decorate([
|
|
|
45952
46287
|
], StarLoopbackState.prototype, "stateType", null);
|
|
45953
46288
|
exports.StarLoopbackState = StarLoopbackState;
|
|
45954
46289
|
|
|
45955
|
-
},{"../Decorators":
|
|
46290
|
+
},{"../Decorators":194,"./ATNState":233,"./ATNStateType":234}],288:[function(require,module,exports){
|
|
45956
46291
|
"use strict";
|
|
45957
46292
|
/*!
|
|
45958
46293
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45981,7 +46316,7 @@ __decorate([
|
|
|
45981
46316
|
], TokensStartState.prototype, "stateType", null);
|
|
45982
46317
|
exports.TokensStartState = TokensStartState;
|
|
45983
46318
|
|
|
45984
|
-
},{"../Decorators":
|
|
46319
|
+
},{"../Decorators":194,"./ATNStateType":234,"./DecisionState":247}],289:[function(require,module,exports){
|
|
45985
46320
|
"use strict";
|
|
45986
46321
|
/*!
|
|
45987
46322
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46055,7 +46390,7 @@ Transition = __decorate([
|
|
|
46055
46390
|
], Transition);
|
|
46056
46391
|
exports.Transition = Transition;
|
|
46057
46392
|
|
|
46058
|
-
},{"../Decorators":
|
|
46393
|
+
},{"../Decorators":194}],290:[function(require,module,exports){
|
|
46059
46394
|
"use strict";
|
|
46060
46395
|
/*!
|
|
46061
46396
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46103,7 +46438,7 @@ WildcardTransition = __decorate([
|
|
|
46103
46438
|
], WildcardTransition);
|
|
46104
46439
|
exports.WildcardTransition = WildcardTransition;
|
|
46105
46440
|
|
|
46106
|
-
},{"../Decorators":
|
|
46441
|
+
},{"../Decorators":194,"./Transition":289}],291:[function(require,module,exports){
|
|
46107
46442
|
"use strict";
|
|
46108
46443
|
/*!
|
|
46109
46444
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46145,7 +46480,7 @@ class AcceptStateInfo {
|
|
|
46145
46480
|
}
|
|
46146
46481
|
exports.AcceptStateInfo = AcceptStateInfo;
|
|
46147
46482
|
|
|
46148
|
-
},{}],
|
|
46483
|
+
},{}],292:[function(require,module,exports){
|
|
46149
46484
|
"use strict";
|
|
46150
46485
|
/*!
|
|
46151
46486
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46320,7 +46655,7 @@ DFA = __decorate([
|
|
|
46320
46655
|
], DFA);
|
|
46321
46656
|
exports.DFA = DFA;
|
|
46322
46657
|
|
|
46323
|
-
},{"../Decorators":
|
|
46658
|
+
},{"../Decorators":194,"../VocabularyImpl":225,"../atn/ATNConfigSet":229,"../atn/StarLoopEntryState":286,"../misc/Array2DHashSet":298,"../misc/ObjectEqualityComparator":310,"./DFASerializer":293,"./DFAState":294,"./LexerDFASerializer":295}],293:[function(require,module,exports){
|
|
46324
46659
|
"use strict";
|
|
46325
46660
|
/*!
|
|
46326
46661
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46462,7 +46797,7 @@ __decorate([
|
|
|
46462
46797
|
], DFASerializer.prototype, "toString", null);
|
|
46463
46798
|
exports.DFASerializer = DFASerializer;
|
|
46464
46799
|
|
|
46465
|
-
},{"../Decorators":
|
|
46800
|
+
},{"../Decorators":194,"../Recognizer":214,"../VocabularyImpl":225,"../atn/ATNSimulator":232,"../atn/PredictionContext":274}],294:[function(require,module,exports){
|
|
46466
46801
|
"use strict";
|
|
46467
46802
|
/*!
|
|
46468
46803
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46693,7 +47028,7 @@ exports.DFAState = DFAState;
|
|
|
46693
47028
|
DFAState.PredPrediction = PredPrediction;
|
|
46694
47029
|
})(DFAState = exports.DFAState || (exports.DFAState = {}));
|
|
46695
47030
|
|
|
46696
|
-
},{"../Decorators":
|
|
47031
|
+
},{"../Decorators":194,"../atn/ATN":227,"../atn/PredictionContext":274,"../misc/BitSet":301,"../misc/MurmurHash":309,"assert":337}],295:[function(require,module,exports){
|
|
46697
47032
|
"use strict";
|
|
46698
47033
|
/*!
|
|
46699
47034
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46730,7 +47065,7 @@ LexerDFASerializer = __decorate([
|
|
|
46730
47065
|
], LexerDFASerializer);
|
|
46731
47066
|
exports.LexerDFASerializer = LexerDFASerializer;
|
|
46732
47067
|
|
|
46733
|
-
},{"../Decorators":
|
|
47068
|
+
},{"../Decorators":194,"../VocabularyImpl":225,"./DFASerializer":293}],296:[function(require,module,exports){
|
|
46734
47069
|
"use strict";
|
|
46735
47070
|
/*!
|
|
46736
47071
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46796,7 +47131,7 @@ __exportStar(require("./Vocabulary"), exports);
|
|
|
46796
47131
|
__exportStar(require("./VocabularyImpl"), exports);
|
|
46797
47132
|
__exportStar(require("./WritableToken"), exports);
|
|
46798
47133
|
|
|
46799
|
-
},{"./ANTLRErrorListener":
|
|
47134
|
+
},{"./ANTLRErrorListener":181,"./ANTLRErrorStrategy":182,"./ANTLRInputStream":183,"./BailErrorStrategy":184,"./BufferedTokenStream":185,"./CharStream":186,"./CharStreams":187,"./CodePointBuffer":188,"./CodePointCharStream":189,"./CommonToken":190,"./CommonTokenFactory":191,"./CommonTokenStream":192,"./ConsoleErrorListener":193,"./DefaultErrorStrategy":195,"./Dependents":196,"./DiagnosticErrorListener":197,"./FailedPredicateException":198,"./InputMismatchException":199,"./IntStream":200,"./InterpreterRuleContext":201,"./Lexer":202,"./LexerInterpreter":203,"./LexerNoViableAltException":204,"./ListTokenSource":205,"./NoViableAltException":206,"./Parser":207,"./ParserErrorListener":208,"./ParserInterpreter":209,"./ParserRuleContext":210,"./ProxyErrorListener":211,"./ProxyParserErrorListener":212,"./RecognitionException":213,"./Recognizer":214,"./RuleContext":215,"./RuleContextWithAltNum":216,"./RuleDependency":217,"./RuleVersion":218,"./Token":219,"./TokenFactory":220,"./TokenSource":221,"./TokenStream":222,"./TokenStreamRewriter":223,"./Vocabulary":224,"./VocabularyImpl":225,"./WritableToken":226}],297:[function(require,module,exports){
|
|
46800
47135
|
"use strict";
|
|
46801
47136
|
/*!
|
|
46802
47137
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46879,7 +47214,7 @@ class Array2DHashMap {
|
|
|
46879
47214
|
}
|
|
46880
47215
|
exports.Array2DHashMap = Array2DHashMap;
|
|
46881
47216
|
|
|
46882
|
-
},{"./Array2DHashSet":
|
|
47217
|
+
},{"./Array2DHashSet":298}],298:[function(require,module,exports){
|
|
46883
47218
|
"use strict";
|
|
46884
47219
|
/*!
|
|
46885
47220
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47246,7 +47581,7 @@ __decorate([
|
|
|
47246
47581
|
], Array2DHashSet.prototype, "createBuckets", null);
|
|
47247
47582
|
exports.Array2DHashSet = Array2DHashSet;
|
|
47248
47583
|
|
|
47249
|
-
},{"../Decorators":
|
|
47584
|
+
},{"../Decorators":194,"./DefaultEqualityComparator":303,"./MurmurHash":309,"assert":337}],299:[function(require,module,exports){
|
|
47250
47585
|
"use strict";
|
|
47251
47586
|
/*!
|
|
47252
47587
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47318,7 +47653,7 @@ __decorate([
|
|
|
47318
47653
|
], ArrayEqualityComparator.prototype, "equals", null);
|
|
47319
47654
|
exports.ArrayEqualityComparator = ArrayEqualityComparator;
|
|
47320
47655
|
|
|
47321
|
-
},{"../Decorators":
|
|
47656
|
+
},{"../Decorators":194,"./MurmurHash":309,"./ObjectEqualityComparator":310}],300:[function(require,module,exports){
|
|
47322
47657
|
"use strict";
|
|
47323
47658
|
/*!
|
|
47324
47659
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47388,7 +47723,7 @@ var Arrays;
|
|
|
47388
47723
|
Arrays.toString = toString;
|
|
47389
47724
|
})(Arrays = exports.Arrays || (exports.Arrays = {}));
|
|
47390
47725
|
|
|
47391
|
-
},{}],
|
|
47726
|
+
},{}],301:[function(require,module,exports){
|
|
47392
47727
|
"use strict";
|
|
47393
47728
|
/*!
|
|
47394
47729
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48060,7 +48395,7 @@ class BitSetIterator {
|
|
|
48060
48395
|
[Symbol.iterator]() { return this; }
|
|
48061
48396
|
}
|
|
48062
48397
|
|
|
48063
|
-
},{"./MurmurHash":
|
|
48398
|
+
},{"./MurmurHash":309,"util":390}],302:[function(require,module,exports){
|
|
48064
48399
|
"use strict";
|
|
48065
48400
|
/*!
|
|
48066
48401
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48081,7 +48416,7 @@ function isSupplementaryCodePoint(ch) {
|
|
|
48081
48416
|
}
|
|
48082
48417
|
exports.isSupplementaryCodePoint = isSupplementaryCodePoint;
|
|
48083
48418
|
|
|
48084
|
-
},{}],
|
|
48419
|
+
},{}],303:[function(require,module,exports){
|
|
48085
48420
|
"use strict";
|
|
48086
48421
|
/*!
|
|
48087
48422
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48152,7 +48487,7 @@ __decorate([
|
|
|
48152
48487
|
], DefaultEqualityComparator.prototype, "equals", null);
|
|
48153
48488
|
exports.DefaultEqualityComparator = DefaultEqualityComparator;
|
|
48154
48489
|
|
|
48155
|
-
},{"../Decorators":
|
|
48490
|
+
},{"../Decorators":194,"./MurmurHash":309,"./ObjectEqualityComparator":310}],304:[function(require,module,exports){
|
|
48156
48491
|
"use strict";
|
|
48157
48492
|
/*!
|
|
48158
48493
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48446,7 +48781,7 @@ __decorate([
|
|
|
48446
48781
|
], IntegerList.prototype, "toString", null);
|
|
48447
48782
|
exports.IntegerList = IntegerList;
|
|
48448
48783
|
|
|
48449
|
-
},{"../Decorators":
|
|
48784
|
+
},{"../Decorators":194,"./Arrays":300}],305:[function(require,module,exports){
|
|
48450
48785
|
"use strict";
|
|
48451
48786
|
/*!
|
|
48452
48787
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48476,7 +48811,7 @@ class IntegerStack extends IntegerList_1.IntegerList {
|
|
|
48476
48811
|
}
|
|
48477
48812
|
exports.IntegerStack = IntegerStack;
|
|
48478
48813
|
|
|
48479
|
-
},{"./IntegerList":
|
|
48814
|
+
},{"./IntegerList":304}],306:[function(require,module,exports){
|
|
48480
48815
|
"use strict";
|
|
48481
48816
|
/*!
|
|
48482
48817
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48619,7 +48954,7 @@ __decorate([
|
|
|
48619
48954
|
], Interval.prototype, "toString", null);
|
|
48620
48955
|
exports.Interval = Interval;
|
|
48621
48956
|
|
|
48622
|
-
},{"../Decorators":
|
|
48957
|
+
},{"../Decorators":194}],307:[function(require,module,exports){
|
|
48623
48958
|
"use strict";
|
|
48624
48959
|
/*!
|
|
48625
48960
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49265,7 +49600,7 @@ __decorate([
|
|
|
49265
49600
|
], IntervalSet, "subtract", null);
|
|
49266
49601
|
exports.IntervalSet = IntervalSet;
|
|
49267
49602
|
|
|
49268
|
-
},{"../Decorators":
|
|
49603
|
+
},{"../Decorators":194,"../Lexer":202,"../Token":219,"./ArrayEqualityComparator":299,"./IntegerList":304,"./Interval":306,"./MurmurHash":309}],308:[function(require,module,exports){
|
|
49269
49604
|
"use strict";
|
|
49270
49605
|
/*!
|
|
49271
49606
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49298,7 +49633,7 @@ class MultiMap extends Map {
|
|
|
49298
49633
|
}
|
|
49299
49634
|
exports.MultiMap = MultiMap;
|
|
49300
49635
|
|
|
49301
|
-
},{}],
|
|
49636
|
+
},{}],309:[function(require,module,exports){
|
|
49302
49637
|
"use strict";
|
|
49303
49638
|
/*!
|
|
49304
49639
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49413,7 +49748,7 @@ var MurmurHash;
|
|
|
49413
49748
|
}
|
|
49414
49749
|
})(MurmurHash = exports.MurmurHash || (exports.MurmurHash = {}));
|
|
49415
49750
|
|
|
49416
|
-
},{}],
|
|
49751
|
+
},{}],310:[function(require,module,exports){
|
|
49417
49752
|
"use strict";
|
|
49418
49753
|
/*!
|
|
49419
49754
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49472,7 +49807,7 @@ __decorate([
|
|
|
49472
49807
|
], ObjectEqualityComparator.prototype, "equals", null);
|
|
49473
49808
|
exports.ObjectEqualityComparator = ObjectEqualityComparator;
|
|
49474
49809
|
|
|
49475
|
-
},{"../Decorators":
|
|
49810
|
+
},{"../Decorators":194}],311:[function(require,module,exports){
|
|
49476
49811
|
"use strict";
|
|
49477
49812
|
/*!
|
|
49478
49813
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49501,7 +49836,7 @@ class ParseCancellationException extends Error {
|
|
|
49501
49836
|
}
|
|
49502
49837
|
exports.ParseCancellationException = ParseCancellationException;
|
|
49503
49838
|
|
|
49504
|
-
},{}],
|
|
49839
|
+
},{}],312:[function(require,module,exports){
|
|
49505
49840
|
"use strict";
|
|
49506
49841
|
/*!
|
|
49507
49842
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49555,7 +49890,7 @@ class UUID {
|
|
|
49555
49890
|
}
|
|
49556
49891
|
exports.UUID = UUID;
|
|
49557
49892
|
|
|
49558
|
-
},{"./MurmurHash":
|
|
49893
|
+
},{"./MurmurHash":309}],313:[function(require,module,exports){
|
|
49559
49894
|
"use strict";
|
|
49560
49895
|
/*!
|
|
49561
49896
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49730,7 +50065,7 @@ exports.toCharArray = toCharArray;
|
|
|
49730
50065
|
// return s;
|
|
49731
50066
|
// }
|
|
49732
50067
|
|
|
49733
|
-
},{}],
|
|
50068
|
+
},{}],314:[function(require,module,exports){
|
|
49734
50069
|
"use strict";
|
|
49735
50070
|
/*!
|
|
49736
50071
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49766,7 +50101,7 @@ __decorate([
|
|
|
49766
50101
|
], ErrorNode.prototype, "accept", null);
|
|
49767
50102
|
exports.ErrorNode = ErrorNode;
|
|
49768
50103
|
|
|
49769
|
-
},{"../Decorators":
|
|
50104
|
+
},{"../Decorators":194,"./TerminalNode":317}],315:[function(require,module,exports){
|
|
49770
50105
|
"use strict";
|
|
49771
50106
|
/*!
|
|
49772
50107
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49871,7 +50206,7 @@ exports.ParseTreeWalker = ParseTreeWalker;
|
|
|
49871
50206
|
ParseTreeWalker.DEFAULT = new ParseTreeWalker();
|
|
49872
50207
|
})(ParseTreeWalker = exports.ParseTreeWalker || (exports.ParseTreeWalker = {}));
|
|
49873
50208
|
|
|
49874
|
-
},{"./ErrorNode":
|
|
50209
|
+
},{"./ErrorNode":314,"./RuleNode":316,"./TerminalNode":317}],316:[function(require,module,exports){
|
|
49875
50210
|
"use strict";
|
|
49876
50211
|
/*!
|
|
49877
50212
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49883,7 +50218,7 @@ class RuleNode {
|
|
|
49883
50218
|
}
|
|
49884
50219
|
exports.RuleNode = RuleNode;
|
|
49885
50220
|
|
|
49886
|
-
},{}],
|
|
50221
|
+
},{}],317:[function(require,module,exports){
|
|
49887
50222
|
"use strict";
|
|
49888
50223
|
/*!
|
|
49889
50224
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -49975,7 +50310,7 @@ __decorate([
|
|
|
49975
50310
|
], TerminalNode.prototype, "toString", null);
|
|
49976
50311
|
exports.TerminalNode = TerminalNode;
|
|
49977
50312
|
|
|
49978
|
-
},{"../Decorators":
|
|
50313
|
+
},{"../Decorators":194,"../Token":219,"../misc/Interval":306}],318:[function(require,module,exports){
|
|
49979
50314
|
"use strict";
|
|
49980
50315
|
/*!
|
|
49981
50316
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50219,7 +50554,7 @@ __decorate([
|
|
|
50219
50554
|
], Trees, "getRootOfSubtreeEnclosingRegion", null);
|
|
50220
50555
|
exports.Trees = Trees;
|
|
50221
50556
|
|
|
50222
|
-
},{"../CommonToken":
|
|
50557
|
+
},{"../CommonToken":190,"../Decorators":194,"../Parser":207,"../ParserRuleContext":210,"../Token":219,"../atn/ATN":227,"../misc/Utils":313,"./ErrorNode":314,"./RuleNode":316,"./TerminalNode":317}],319:[function(require,module,exports){
|
|
50223
50558
|
"use strict";
|
|
50224
50559
|
/*!
|
|
50225
50560
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50243,7 +50578,7 @@ class Chunk {
|
|
|
50243
50578
|
}
|
|
50244
50579
|
exports.Chunk = Chunk;
|
|
50245
50580
|
|
|
50246
|
-
},{}],
|
|
50581
|
+
},{}],320:[function(require,module,exports){
|
|
50247
50582
|
"use strict";
|
|
50248
50583
|
/*!
|
|
50249
50584
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50423,7 +50758,7 @@ ParseTreeMatch = __decorate([
|
|
|
50423
50758
|
], ParseTreeMatch);
|
|
50424
50759
|
exports.ParseTreeMatch = ParseTreeMatch;
|
|
50425
50760
|
|
|
50426
|
-
},{"../../Decorators":
|
|
50761
|
+
},{"../../Decorators":194}],321:[function(require,module,exports){
|
|
50427
50762
|
"use strict";
|
|
50428
50763
|
/*!
|
|
50429
50764
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -50581,7 +50916,7 @@ ParseTreePattern = __decorate([
|
|
|
50581
50916
|
], ParseTreePattern);
|
|
50582
50917
|
exports.ParseTreePattern = ParseTreePattern;
|
|
50583
50918
|
|
|
50584
|
-
},{"../../Decorators":
|
|
50919
|
+
},{"../../Decorators":194,"../xpath/XPath":327}],322:[function(require,module,exports){
|
|
50585
50920
|
"use strict";
|
|
50586
50921
|
/*!
|
|
50587
50922
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51059,7 +51394,7 @@ exports.ParseTreePatternMatcher = ParseTreePatternMatcher;
|
|
|
51059
51394
|
ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern = StartRuleDoesNotConsumeFullPattern;
|
|
51060
51395
|
})(ParseTreePatternMatcher = exports.ParseTreePatternMatcher || (exports.ParseTreePatternMatcher = {}));
|
|
51061
51396
|
|
|
51062
|
-
},{"../../BailErrorStrategy":
|
|
51397
|
+
},{"../../BailErrorStrategy":184,"../../CharStreams":187,"../../CommonTokenStream":192,"../../Decorators":194,"../../ListTokenSource":205,"../../ParserInterpreter":209,"../../ParserRuleContext":210,"../../RecognitionException":213,"../../Token":219,"../../misc/MultiMap":308,"../../misc/ParseCancellationException":311,"../RuleNode":316,"../TerminalNode":317,"./ParseTreeMatch":320,"./ParseTreePattern":321,"./RuleTagToken":323,"./TagChunk":324,"./TextChunk":325,"./TokenTagToken":326}],323:[function(require,module,exports){
|
|
51063
51398
|
"use strict";
|
|
51064
51399
|
/*!
|
|
51065
51400
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51257,7 +51592,7 @@ RuleTagToken = __decorate([
|
|
|
51257
51592
|
], RuleTagToken);
|
|
51258
51593
|
exports.RuleTagToken = RuleTagToken;
|
|
51259
51594
|
|
|
51260
|
-
},{"../../Decorators":
|
|
51595
|
+
},{"../../Decorators":194,"../../Token":219}],324:[function(require,module,exports){
|
|
51261
51596
|
"use strict";
|
|
51262
51597
|
/*!
|
|
51263
51598
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51344,7 +51679,7 @@ __decorate([
|
|
|
51344
51679
|
], TagChunk.prototype, "toString", null);
|
|
51345
51680
|
exports.TagChunk = TagChunk;
|
|
51346
51681
|
|
|
51347
|
-
},{"../../Decorators":
|
|
51682
|
+
},{"../../Decorators":194,"./Chunk":319}],325:[function(require,module,exports){
|
|
51348
51683
|
"use strict";
|
|
51349
51684
|
/*!
|
|
51350
51685
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51414,7 +51749,7 @@ TextChunk = __decorate([
|
|
|
51414
51749
|
], TextChunk);
|
|
51415
51750
|
exports.TextChunk = TextChunk;
|
|
51416
51751
|
|
|
51417
|
-
},{"../../Decorators":
|
|
51752
|
+
},{"../../Decorators":194,"./Chunk":319}],326:[function(require,module,exports){
|
|
51418
51753
|
"use strict";
|
|
51419
51754
|
/*!
|
|
51420
51755
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51509,7 +51844,7 @@ TokenTagToken = __decorate([
|
|
|
51509
51844
|
], TokenTagToken);
|
|
51510
51845
|
exports.TokenTagToken = TokenTagToken;
|
|
51511
51846
|
|
|
51512
|
-
},{"../../CommonToken":
|
|
51847
|
+
},{"../../CommonToken":190,"../../Decorators":194}],327:[function(require,module,exports){
|
|
51513
51848
|
"use strict";
|
|
51514
51849
|
/*!
|
|
51515
51850
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51706,7 +52041,7 @@ exports.XPath = XPath;
|
|
|
51706
52041
|
XPath.WILDCARD = "*"; // word not operator/separator
|
|
51707
52042
|
XPath.NOT = "!"; // word for invert operator
|
|
51708
52043
|
|
|
51709
|
-
},{"../../CharStreams":
|
|
52044
|
+
},{"../../CharStreams":187,"../../CommonTokenStream":192,"../../LexerNoViableAltException":204,"../../ParserRuleContext":210,"../../Token":219,"./XPathLexer":329,"./XPathLexerErrorListener":330,"./XPathRuleAnywhereElement":331,"./XPathRuleElement":332,"./XPathTokenAnywhereElement":333,"./XPathTokenElement":334,"./XPathWildcardAnywhereElement":335,"./XPathWildcardElement":336}],328:[function(require,module,exports){
|
|
51710
52045
|
"use strict";
|
|
51711
52046
|
/*!
|
|
51712
52047
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51741,7 +52076,7 @@ __decorate([
|
|
|
51741
52076
|
], XPathElement.prototype, "toString", null);
|
|
51742
52077
|
exports.XPathElement = XPathElement;
|
|
51743
52078
|
|
|
51744
|
-
},{"../../Decorators":
|
|
52079
|
+
},{"../../Decorators":194}],329:[function(require,module,exports){
|
|
51745
52080
|
"use strict";
|
|
51746
52081
|
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
51747
52082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -52216,7 +52551,7 @@ XPathLexer._serializedATN = Utils.join([
|
|
|
52216
52551
|
XPathLexer._serializedATNSegment1,
|
|
52217
52552
|
], "");
|
|
52218
52553
|
|
|
52219
|
-
},{"../../Lexer":
|
|
52554
|
+
},{"../../Lexer":202,"../../VocabularyImpl":225,"../../atn/ATNDeserializer":231,"../../atn/LexerATNSimulator":252,"../../misc/Utils":313}],330:[function(require,module,exports){
|
|
52220
52555
|
"use strict";
|
|
52221
52556
|
/*!
|
|
52222
52557
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52241,7 +52576,7 @@ __decorate([
|
|
|
52241
52576
|
], XPathLexerErrorListener.prototype, "syntaxError", null);
|
|
52242
52577
|
exports.XPathLexerErrorListener = XPathLexerErrorListener;
|
|
52243
52578
|
|
|
52244
|
-
},{"../../Decorators":
|
|
52579
|
+
},{"../../Decorators":194}],331:[function(require,module,exports){
|
|
52245
52580
|
"use strict";
|
|
52246
52581
|
/*!
|
|
52247
52582
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52275,7 +52610,7 @@ __decorate([
|
|
|
52275
52610
|
], XPathRuleAnywhereElement.prototype, "evaluate", null);
|
|
52276
52611
|
exports.XPathRuleAnywhereElement = XPathRuleAnywhereElement;
|
|
52277
52612
|
|
|
52278
|
-
},{"../../Decorators":
|
|
52613
|
+
},{"../../Decorators":194,"../Trees":318,"./XPathElement":328}],332:[function(require,module,exports){
|
|
52279
52614
|
"use strict";
|
|
52280
52615
|
/*!
|
|
52281
52616
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52318,7 +52653,7 @@ __decorate([
|
|
|
52318
52653
|
], XPathRuleElement.prototype, "evaluate", null);
|
|
52319
52654
|
exports.XPathRuleElement = XPathRuleElement;
|
|
52320
52655
|
|
|
52321
|
-
},{"../../Decorators":
|
|
52656
|
+
},{"../../Decorators":194,"../../ParserRuleContext":210,"../Trees":318,"./XPathElement":328}],333:[function(require,module,exports){
|
|
52322
52657
|
"use strict";
|
|
52323
52658
|
/*!
|
|
52324
52659
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52350,7 +52685,7 @@ __decorate([
|
|
|
52350
52685
|
], XPathTokenAnywhereElement.prototype, "evaluate", null);
|
|
52351
52686
|
exports.XPathTokenAnywhereElement = XPathTokenAnywhereElement;
|
|
52352
52687
|
|
|
52353
|
-
},{"../../Decorators":
|
|
52688
|
+
},{"../../Decorators":194,"../Trees":318,"./XPathElement":328}],334:[function(require,module,exports){
|
|
52354
52689
|
"use strict";
|
|
52355
52690
|
/*!
|
|
52356
52691
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52393,7 +52728,7 @@ __decorate([
|
|
|
52393
52728
|
], XPathTokenElement.prototype, "evaluate", null);
|
|
52394
52729
|
exports.XPathTokenElement = XPathTokenElement;
|
|
52395
52730
|
|
|
52396
|
-
},{"../../Decorators":
|
|
52731
|
+
},{"../../Decorators":194,"../TerminalNode":317,"../Trees":318,"./XPathElement":328}],335:[function(require,module,exports){
|
|
52397
52732
|
"use strict";
|
|
52398
52733
|
/*!
|
|
52399
52734
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52429,7 +52764,7 @@ __decorate([
|
|
|
52429
52764
|
], XPathWildcardAnywhereElement.prototype, "evaluate", null);
|
|
52430
52765
|
exports.XPathWildcardAnywhereElement = XPathWildcardAnywhereElement;
|
|
52431
52766
|
|
|
52432
|
-
},{"../../Decorators":
|
|
52767
|
+
},{"../../Decorators":194,"../Trees":318,"./XPath":327,"./XPathElement":328}],336:[function(require,module,exports){
|
|
52433
52768
|
"use strict";
|
|
52434
52769
|
/*!
|
|
52435
52770
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52469,7 +52804,7 @@ __decorate([
|
|
|
52469
52804
|
], XPathWildcardElement.prototype, "evaluate", null);
|
|
52470
52805
|
exports.XPathWildcardElement = XPathWildcardElement;
|
|
52471
52806
|
|
|
52472
|
-
},{"../../Decorators":
|
|
52807
|
+
},{"../../Decorators":194,"../Trees":318,"./XPath":327,"./XPathElement":328}],337:[function(require,module,exports){
|
|
52473
52808
|
(function (global){(function (){
|
|
52474
52809
|
'use strict';
|
|
52475
52810
|
|
|
@@ -52979,7 +53314,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
52979
53314
|
};
|
|
52980
53315
|
|
|
52981
53316
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
52982
|
-
},{"object.assign/polyfill":
|
|
53317
|
+
},{"object.assign/polyfill":383,"util/":340}],338:[function(require,module,exports){
|
|
52983
53318
|
if (typeof Object.create === 'function') {
|
|
52984
53319
|
// implementation from standard node.js 'util' module
|
|
52985
53320
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -53004,14 +53339,14 @@ if (typeof Object.create === 'function') {
|
|
|
53004
53339
|
}
|
|
53005
53340
|
}
|
|
53006
53341
|
|
|
53007
|
-
},{}],
|
|
53342
|
+
},{}],339:[function(require,module,exports){
|
|
53008
53343
|
module.exports = function isBuffer(arg) {
|
|
53009
53344
|
return arg && typeof arg === 'object'
|
|
53010
53345
|
&& typeof arg.copy === 'function'
|
|
53011
53346
|
&& typeof arg.fill === 'function'
|
|
53012
53347
|
&& typeof arg.readUInt8 === 'function';
|
|
53013
53348
|
}
|
|
53014
|
-
},{}],
|
|
53349
|
+
},{}],340:[function(require,module,exports){
|
|
53015
53350
|
(function (process,global){(function (){
|
|
53016
53351
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
53017
53352
|
//
|
|
@@ -53601,7 +53936,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
53601
53936
|
}
|
|
53602
53937
|
|
|
53603
53938
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
53604
|
-
},{"./support/isBuffer":
|
|
53939
|
+
},{"./support/isBuffer":339,"_process":385,"inherits":338}],341:[function(require,module,exports){
|
|
53605
53940
|
(function (global){(function (){
|
|
53606
53941
|
'use strict';
|
|
53607
53942
|
|
|
@@ -53622,7 +53957,7 @@ module.exports = function availableTypedArrays() {
|
|
|
53622
53957
|
};
|
|
53623
53958
|
|
|
53624
53959
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
53625
|
-
},{"possible-typed-array-names":
|
|
53960
|
+
},{"possible-typed-array-names":384}],342:[function(require,module,exports){
|
|
53626
53961
|
(function (process,global){(function (){
|
|
53627
53962
|
module.exports = process.hrtime || hrtime
|
|
53628
53963
|
|
|
@@ -53653,7 +53988,7 @@ function hrtime(previousTimestamp){
|
|
|
53653
53988
|
return [seconds,nanoseconds]
|
|
53654
53989
|
}
|
|
53655
53990
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
53656
|
-
},{"_process":
|
|
53991
|
+
},{"_process":385}],343:[function(require,module,exports){
|
|
53657
53992
|
'use strict';
|
|
53658
53993
|
|
|
53659
53994
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -53670,7 +54005,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
53670
54005
|
return intrinsic;
|
|
53671
54006
|
};
|
|
53672
54007
|
|
|
53673
|
-
},{"./":
|
|
54008
|
+
},{"./":344,"get-intrinsic":347}],344:[function(require,module,exports){
|
|
53674
54009
|
'use strict';
|
|
53675
54010
|
|
|
53676
54011
|
var bind = require('function-bind');
|
|
@@ -53719,7 +54054,7 @@ if ($defineProperty) {
|
|
|
53719
54054
|
module.exports.apply = applyBind;
|
|
53720
54055
|
}
|
|
53721
54056
|
|
|
53722
|
-
},{"function-bind":
|
|
54057
|
+
},{"function-bind":346,"get-intrinsic":347}],345:[function(require,module,exports){
|
|
53723
54058
|
'use strict';
|
|
53724
54059
|
|
|
53725
54060
|
/* eslint no-invalid-this: 1 */
|
|
@@ -53773,14 +54108,14 @@ module.exports = function bind(that) {
|
|
|
53773
54108
|
return bound;
|
|
53774
54109
|
};
|
|
53775
54110
|
|
|
53776
|
-
},{}],
|
|
54111
|
+
},{}],346:[function(require,module,exports){
|
|
53777
54112
|
'use strict';
|
|
53778
54113
|
|
|
53779
54114
|
var implementation = require('./implementation');
|
|
53780
54115
|
|
|
53781
54116
|
module.exports = Function.prototype.bind || implementation;
|
|
53782
54117
|
|
|
53783
|
-
},{"./implementation":
|
|
54118
|
+
},{"./implementation":345}],347:[function(require,module,exports){
|
|
53784
54119
|
'use strict';
|
|
53785
54120
|
|
|
53786
54121
|
var undefined;
|
|
@@ -54126,7 +54461,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
54126
54461
|
return value;
|
|
54127
54462
|
};
|
|
54128
54463
|
|
|
54129
|
-
},{"function-bind":
|
|
54464
|
+
},{"function-bind":346,"has":371,"has-symbols":366}],348:[function(require,module,exports){
|
|
54130
54465
|
'use strict';
|
|
54131
54466
|
|
|
54132
54467
|
var $defineProperty = require('es-define-property');
|
|
@@ -54184,7 +54519,7 @@ module.exports = function defineDataProperty(
|
|
|
54184
54519
|
}
|
|
54185
54520
|
};
|
|
54186
54521
|
|
|
54187
|
-
},{"es-define-property":
|
|
54522
|
+
},{"es-define-property":349,"es-errors/syntax":354,"es-errors/type":355,"gopd":361}],349:[function(require,module,exports){
|
|
54188
54523
|
'use strict';
|
|
54189
54524
|
|
|
54190
54525
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -54202,49 +54537,49 @@ if ($defineProperty) {
|
|
|
54202
54537
|
|
|
54203
54538
|
module.exports = $defineProperty;
|
|
54204
54539
|
|
|
54205
|
-
},{"get-intrinsic":
|
|
54540
|
+
},{"get-intrinsic":360}],350:[function(require,module,exports){
|
|
54206
54541
|
'use strict';
|
|
54207
54542
|
|
|
54208
54543
|
/** @type {import('./eval')} */
|
|
54209
54544
|
module.exports = EvalError;
|
|
54210
54545
|
|
|
54211
|
-
},{}],
|
|
54546
|
+
},{}],351:[function(require,module,exports){
|
|
54212
54547
|
'use strict';
|
|
54213
54548
|
|
|
54214
54549
|
/** @type {import('.')} */
|
|
54215
54550
|
module.exports = Error;
|
|
54216
54551
|
|
|
54217
|
-
},{}],
|
|
54552
|
+
},{}],352:[function(require,module,exports){
|
|
54218
54553
|
'use strict';
|
|
54219
54554
|
|
|
54220
54555
|
/** @type {import('./range')} */
|
|
54221
54556
|
module.exports = RangeError;
|
|
54222
54557
|
|
|
54223
|
-
},{}],
|
|
54558
|
+
},{}],353:[function(require,module,exports){
|
|
54224
54559
|
'use strict';
|
|
54225
54560
|
|
|
54226
54561
|
/** @type {import('./ref')} */
|
|
54227
54562
|
module.exports = ReferenceError;
|
|
54228
54563
|
|
|
54229
|
-
},{}],
|
|
54564
|
+
},{}],354:[function(require,module,exports){
|
|
54230
54565
|
'use strict';
|
|
54231
54566
|
|
|
54232
54567
|
/** @type {import('./syntax')} */
|
|
54233
54568
|
module.exports = SyntaxError;
|
|
54234
54569
|
|
|
54235
|
-
},{}],
|
|
54570
|
+
},{}],355:[function(require,module,exports){
|
|
54236
54571
|
'use strict';
|
|
54237
54572
|
|
|
54238
54573
|
/** @type {import('./type')} */
|
|
54239
54574
|
module.exports = TypeError;
|
|
54240
54575
|
|
|
54241
|
-
},{}],
|
|
54576
|
+
},{}],356:[function(require,module,exports){
|
|
54242
54577
|
'use strict';
|
|
54243
54578
|
|
|
54244
54579
|
/** @type {import('./uri')} */
|
|
54245
54580
|
module.exports = URIError;
|
|
54246
54581
|
|
|
54247
|
-
},{}],
|
|
54582
|
+
},{}],357:[function(require,module,exports){
|
|
54248
54583
|
'use strict';
|
|
54249
54584
|
|
|
54250
54585
|
var isCallable = require('is-callable');
|
|
@@ -54308,7 +54643,7 @@ var forEach = function forEach(list, iterator, thisArg) {
|
|
|
54308
54643
|
|
|
54309
54644
|
module.exports = forEach;
|
|
54310
54645
|
|
|
54311
|
-
},{"is-callable":
|
|
54646
|
+
},{"is-callable":375}],358:[function(require,module,exports){
|
|
54312
54647
|
'use strict';
|
|
54313
54648
|
|
|
54314
54649
|
/* eslint no-invalid-this: 1 */
|
|
@@ -54394,9 +54729,9 @@ module.exports = function bind(that) {
|
|
|
54394
54729
|
return bound;
|
|
54395
54730
|
};
|
|
54396
54731
|
|
|
54397
|
-
},{}],
|
|
54398
|
-
arguments[4][
|
|
54399
|
-
},{"./implementation":
|
|
54732
|
+
},{}],359:[function(require,module,exports){
|
|
54733
|
+
arguments[4][346][0].apply(exports,arguments)
|
|
54734
|
+
},{"./implementation":358,"dup":346}],360:[function(require,module,exports){
|
|
54400
54735
|
'use strict';
|
|
54401
54736
|
|
|
54402
54737
|
var undefined;
|
|
@@ -54757,7 +55092,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
54757
55092
|
return value;
|
|
54758
55093
|
};
|
|
54759
55094
|
|
|
54760
|
-
},{"es-errors":
|
|
55095
|
+
},{"es-errors":351,"es-errors/eval":350,"es-errors/range":352,"es-errors/ref":353,"es-errors/syntax":354,"es-errors/type":355,"es-errors/uri":356,"function-bind":359,"has-proto":365,"has-symbols":366,"hasown":372}],361:[function(require,module,exports){
|
|
54761
55096
|
'use strict';
|
|
54762
55097
|
|
|
54763
55098
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -54775,13 +55110,13 @@ if ($gOPD) {
|
|
|
54775
55110
|
|
|
54776
55111
|
module.exports = $gOPD;
|
|
54777
55112
|
|
|
54778
|
-
},{"get-intrinsic":
|
|
54779
|
-
arguments[4][343][0].apply(exports,arguments)
|
|
54780
|
-
},{"dup":343}],361:[function(require,module,exports){
|
|
54781
|
-
arguments[4][344][0].apply(exports,arguments)
|
|
54782
|
-
},{"./implementation":360,"dup":344}],362:[function(require,module,exports){
|
|
55113
|
+
},{"get-intrinsic":364}],362:[function(require,module,exports){
|
|
54783
55114
|
arguments[4][345][0].apply(exports,arguments)
|
|
54784
|
-
},{"dup":345
|
|
55115
|
+
},{"dup":345}],363:[function(require,module,exports){
|
|
55116
|
+
arguments[4][346][0].apply(exports,arguments)
|
|
55117
|
+
},{"./implementation":362,"dup":346}],364:[function(require,module,exports){
|
|
55118
|
+
arguments[4][347][0].apply(exports,arguments)
|
|
55119
|
+
},{"dup":347,"function-bind":363,"has":371,"has-symbols":366}],365:[function(require,module,exports){
|
|
54785
55120
|
'use strict';
|
|
54786
55121
|
|
|
54787
55122
|
var test = {
|
|
@@ -54794,7 +55129,7 @@ module.exports = function hasProto() {
|
|
|
54794
55129
|
return { __proto__: test }.foo === test.foo && !({ __proto__: null } instanceof $Object);
|
|
54795
55130
|
};
|
|
54796
55131
|
|
|
54797
|
-
},{}],
|
|
55132
|
+
},{}],366:[function(require,module,exports){
|
|
54798
55133
|
'use strict';
|
|
54799
55134
|
|
|
54800
55135
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -54809,7 +55144,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
54809
55144
|
return hasSymbolSham();
|
|
54810
55145
|
};
|
|
54811
55146
|
|
|
54812
|
-
},{"./shams":
|
|
55147
|
+
},{"./shams":367}],367:[function(require,module,exports){
|
|
54813
55148
|
'use strict';
|
|
54814
55149
|
|
|
54815
55150
|
/* eslint complexity: [2, 18], max-statements: [2, 33] */
|
|
@@ -54853,7 +55188,7 @@ module.exports = function hasSymbols() {
|
|
|
54853
55188
|
return true;
|
|
54854
55189
|
};
|
|
54855
55190
|
|
|
54856
|
-
},{}],
|
|
55191
|
+
},{}],368:[function(require,module,exports){
|
|
54857
55192
|
'use strict';
|
|
54858
55193
|
|
|
54859
55194
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -54862,18 +55197,18 @@ module.exports = function hasToStringTagShams() {
|
|
|
54862
55197
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
54863
55198
|
};
|
|
54864
55199
|
|
|
54865
|
-
},{"has-symbols/shams":
|
|
54866
|
-
arguments[4][
|
|
54867
|
-
},{"dup":
|
|
54868
|
-
arguments[4][
|
|
54869
|
-
},{"./implementation":
|
|
55200
|
+
},{"has-symbols/shams":367}],369:[function(require,module,exports){
|
|
55201
|
+
arguments[4][345][0].apply(exports,arguments)
|
|
55202
|
+
},{"dup":345}],370:[function(require,module,exports){
|
|
55203
|
+
arguments[4][346][0].apply(exports,arguments)
|
|
55204
|
+
},{"./implementation":369,"dup":346}],371:[function(require,module,exports){
|
|
54870
55205
|
'use strict';
|
|
54871
55206
|
|
|
54872
55207
|
var bind = require('function-bind');
|
|
54873
55208
|
|
|
54874
55209
|
module.exports = bind.call(Function.call, Object.prototype.hasOwnProperty);
|
|
54875
55210
|
|
|
54876
|
-
},{"function-bind":
|
|
55211
|
+
},{"function-bind":370}],372:[function(require,module,exports){
|
|
54877
55212
|
'use strict';
|
|
54878
55213
|
|
|
54879
55214
|
var call = Function.prototype.call;
|
|
@@ -54883,7 +55218,7 @@ var bind = require('function-bind');
|
|
|
54883
55218
|
/** @type {import('.')} */
|
|
54884
55219
|
module.exports = bind.call(call, $hasOwn);
|
|
54885
55220
|
|
|
54886
|
-
},{"function-bind":
|
|
55221
|
+
},{"function-bind":359}],373:[function(require,module,exports){
|
|
54887
55222
|
if (typeof Object.create === 'function') {
|
|
54888
55223
|
// implementation from standard node.js 'util' module
|
|
54889
55224
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -54912,7 +55247,7 @@ if (typeof Object.create === 'function') {
|
|
|
54912
55247
|
}
|
|
54913
55248
|
}
|
|
54914
55249
|
|
|
54915
|
-
},{}],
|
|
55250
|
+
},{}],374:[function(require,module,exports){
|
|
54916
55251
|
'use strict';
|
|
54917
55252
|
|
|
54918
55253
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
@@ -54947,7 +55282,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
54947
55282
|
|
|
54948
55283
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
54949
55284
|
|
|
54950
|
-
},{"call-bind/callBound":
|
|
55285
|
+
},{"call-bind/callBound":343,"has-tostringtag/shams":368}],375:[function(require,module,exports){
|
|
54951
55286
|
'use strict';
|
|
54952
55287
|
|
|
54953
55288
|
var fnToStr = Function.prototype.toString;
|
|
@@ -55050,7 +55385,7 @@ module.exports = reflectApply
|
|
|
55050
55385
|
return tryFunctionObject(value);
|
|
55051
55386
|
};
|
|
55052
55387
|
|
|
55053
|
-
},{}],
|
|
55388
|
+
},{}],376:[function(require,module,exports){
|
|
55054
55389
|
'use strict';
|
|
55055
55390
|
|
|
55056
55391
|
var toStr = Object.prototype.toString;
|
|
@@ -55090,7 +55425,7 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
55090
55425
|
return getProto(fn) === GeneratorFunction;
|
|
55091
55426
|
};
|
|
55092
55427
|
|
|
55093
|
-
},{"has-tostringtag/shams":
|
|
55428
|
+
},{"has-tostringtag/shams":368}],377:[function(require,module,exports){
|
|
55094
55429
|
'use strict';
|
|
55095
55430
|
|
|
55096
55431
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -55100,7 +55435,7 @@ module.exports = function isTypedArray(value) {
|
|
|
55100
55435
|
return !!whichTypedArray(value);
|
|
55101
55436
|
};
|
|
55102
55437
|
|
|
55103
|
-
},{"which-typed-array":
|
|
55438
|
+
},{"which-typed-array":391}],378:[function(require,module,exports){
|
|
55104
55439
|
(function (global){(function (){
|
|
55105
55440
|
/**
|
|
55106
55441
|
* @license
|
|
@@ -72313,7 +72648,7 @@ module.exports = function isTypedArray(value) {
|
|
|
72313
72648
|
}.call(this));
|
|
72314
72649
|
|
|
72315
72650
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
72316
|
-
},{}],
|
|
72651
|
+
},{}],379:[function(require,module,exports){
|
|
72317
72652
|
'use strict';
|
|
72318
72653
|
|
|
72319
72654
|
var keysShim;
|
|
@@ -72437,7 +72772,7 @@ if (!Object.keys) {
|
|
|
72437
72772
|
}
|
|
72438
72773
|
module.exports = keysShim;
|
|
72439
72774
|
|
|
72440
|
-
},{"./isArguments":
|
|
72775
|
+
},{"./isArguments":381}],380:[function(require,module,exports){
|
|
72441
72776
|
'use strict';
|
|
72442
72777
|
|
|
72443
72778
|
var slice = Array.prototype.slice;
|
|
@@ -72471,7 +72806,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
72471
72806
|
|
|
72472
72807
|
module.exports = keysShim;
|
|
72473
72808
|
|
|
72474
|
-
},{"./implementation":
|
|
72809
|
+
},{"./implementation":379,"./isArguments":381}],381:[function(require,module,exports){
|
|
72475
72810
|
'use strict';
|
|
72476
72811
|
|
|
72477
72812
|
var toStr = Object.prototype.toString;
|
|
@@ -72490,7 +72825,7 @@ module.exports = function isArguments(value) {
|
|
|
72490
72825
|
return isArgs;
|
|
72491
72826
|
};
|
|
72492
72827
|
|
|
72493
|
-
},{}],
|
|
72828
|
+
},{}],382:[function(require,module,exports){
|
|
72494
72829
|
'use strict';
|
|
72495
72830
|
|
|
72496
72831
|
// modified from https://github.com/es-shims/es6-shim
|
|
@@ -72538,7 +72873,7 @@ module.exports = function assign(target, source1) {
|
|
|
72538
72873
|
return to; // step 4
|
|
72539
72874
|
};
|
|
72540
72875
|
|
|
72541
|
-
},{"call-bind/callBound":
|
|
72876
|
+
},{"call-bind/callBound":343,"has-symbols/shams":367,"object-keys":380}],383:[function(require,module,exports){
|
|
72542
72877
|
'use strict';
|
|
72543
72878
|
|
|
72544
72879
|
var implementation = require('./implementation');
|
|
@@ -72595,7 +72930,7 @@ module.exports = function getPolyfill() {
|
|
|
72595
72930
|
return Object.assign;
|
|
72596
72931
|
};
|
|
72597
72932
|
|
|
72598
|
-
},{"./implementation":
|
|
72933
|
+
},{"./implementation":382}],384:[function(require,module,exports){
|
|
72599
72934
|
'use strict';
|
|
72600
72935
|
|
|
72601
72936
|
/** @type {import('.')} */
|
|
@@ -72613,7 +72948,7 @@ module.exports = [
|
|
|
72613
72948
|
'BigUint64Array'
|
|
72614
72949
|
];
|
|
72615
72950
|
|
|
72616
|
-
},{}],
|
|
72951
|
+
},{}],385:[function(require,module,exports){
|
|
72617
72952
|
// shim for using process in browser
|
|
72618
72953
|
var process = module.exports = {};
|
|
72619
72954
|
|
|
@@ -72799,7 +73134,7 @@ process.chdir = function (dir) {
|
|
|
72799
73134
|
};
|
|
72800
73135
|
process.umask = function() { return 0; };
|
|
72801
73136
|
|
|
72802
|
-
},{}],
|
|
73137
|
+
},{}],386:[function(require,module,exports){
|
|
72803
73138
|
'use strict';
|
|
72804
73139
|
|
|
72805
73140
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -72843,7 +73178,7 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
72843
73178
|
return fn;
|
|
72844
73179
|
};
|
|
72845
73180
|
|
|
72846
|
-
},{"define-data-property":
|
|
73181
|
+
},{"define-data-property":348,"es-errors/type":355,"get-intrinsic":360,"gopd":361,"has-property-descriptors":387}],387:[function(require,module,exports){
|
|
72847
73182
|
'use strict';
|
|
72848
73183
|
|
|
72849
73184
|
var $defineProperty = require('es-define-property');
|
|
@@ -72867,9 +73202,9 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
72867
73202
|
|
|
72868
73203
|
module.exports = hasPropertyDescriptors;
|
|
72869
73204
|
|
|
72870
|
-
},{"es-define-property":
|
|
72871
|
-
arguments[4][
|
|
72872
|
-
},{"dup":
|
|
73205
|
+
},{"es-define-property":349}],388:[function(require,module,exports){
|
|
73206
|
+
arguments[4][339][0].apply(exports,arguments)
|
|
73207
|
+
},{"dup":339}],389:[function(require,module,exports){
|
|
72873
73208
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
72874
73209
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
72875
73210
|
|
|
@@ -73205,7 +73540,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
73205
73540
|
});
|
|
73206
73541
|
});
|
|
73207
73542
|
|
|
73208
|
-
},{"is-arguments":
|
|
73543
|
+
},{"is-arguments":374,"is-generator-function":376,"is-typed-array":377,"which-typed-array":391}],390:[function(require,module,exports){
|
|
73209
73544
|
(function (process){(function (){
|
|
73210
73545
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
73211
73546
|
//
|
|
@@ -73924,7 +74259,7 @@ function callbackify(original) {
|
|
|
73924
74259
|
exports.callbackify = callbackify;
|
|
73925
74260
|
|
|
73926
74261
|
}).call(this)}).call(this,require('_process'))
|
|
73927
|
-
},{"./support/isBuffer":
|
|
74262
|
+
},{"./support/isBuffer":388,"./support/types":389,"_process":385,"inherits":373}],391:[function(require,module,exports){
|
|
73928
74263
|
(function (global){(function (){
|
|
73929
74264
|
'use strict';
|
|
73930
74265
|
|
|
@@ -74044,9 +74379,9 @@ module.exports = function whichTypedArray(value) {
|
|
|
74044
74379
|
};
|
|
74045
74380
|
|
|
74046
74381
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
74047
|
-
},{"available-typed-arrays":
|
|
74048
|
-
arguments[4][
|
|
74049
|
-
},{"./":
|
|
74382
|
+
},{"available-typed-arrays":341,"call-bind":393,"call-bind/callBound":392,"for-each":357,"gopd":361,"has-tostringtag/shams":394}],392:[function(require,module,exports){
|
|
74383
|
+
arguments[4][343][0].apply(exports,arguments)
|
|
74384
|
+
},{"./":393,"dup":343,"get-intrinsic":360}],393:[function(require,module,exports){
|
|
74050
74385
|
'use strict';
|
|
74051
74386
|
|
|
74052
74387
|
var bind = require('function-bind');
|
|
@@ -74083,7 +74418,7 @@ if ($defineProperty) {
|
|
|
74083
74418
|
module.exports.apply = applyBind;
|
|
74084
74419
|
}
|
|
74085
74420
|
|
|
74086
|
-
},{"es-define-property":
|
|
74421
|
+
},{"es-define-property":349,"es-errors/type":355,"function-bind":359,"get-intrinsic":360,"set-function-length":386}],394:[function(require,module,exports){
|
|
74087
74422
|
'use strict';
|
|
74088
74423
|
|
|
74089
74424
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -74093,5 +74428,5 @@ module.exports = function hasToStringTagShams() {
|
|
|
74093
74428
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
74094
74429
|
};
|
|
74095
74430
|
|
|
74096
|
-
},{"has-symbols/shams":
|
|
74431
|
+
},{"has-symbols/shams":367}]},{},[104])(104)
|
|
74097
74432
|
});
|