@designliquido/delegua 0.61.2 → 0.62.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-base.d.ts +2 -1
- package/analisador-semantico/analisador-semantico-base.d.ts.map +1 -1
- package/analisador-semantico/analisador-semantico-base.js +3 -0
- package/analisador-semantico/analisador-semantico-base.js.map +1 -1
- package/analisador-semantico/analisador-semantico.d.ts.map +1 -1
- package/analisador-semantico/analisador-semantico.js +22 -24
- package/analisador-semantico/analisador-semantico.js.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.d.ts.map +1 -1
- package/avaliador-sintatico/avaliador-sintatico.js +16 -12
- package/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
- package/avaliador-sintatico/comum.js +11 -10
- package/avaliador-sintatico/comum.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts +8 -7
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js +139 -90
- package/avaliador-sintatico/dialetos/avaliador-sintatico-pitugues.js.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.d.ts.map +1 -1
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.js +32 -34
- package/avaliador-sintatico/dialetos/avaliador-sintatico-tenda.js.map +1 -1
- package/bibliotecas/biblioteca-global.d.ts +9 -0
- package/bibliotecas/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/biblioteca-global.js +35 -13
- package/bibliotecas/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/egua-classico/biblioteca-global.js +10 -10
- package/bibliotecas/dialetos/egua-classico/biblioteca-global.js.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.d.ts +9 -0
- package/bibliotecas/dialetos/pitugues/biblioteca-global.d.ts.map +1 -1
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js +33 -11
- package/bibliotecas/dialetos/pitugues/biblioteca-global.js.map +1 -1
- package/bin/package.json +1 -1
- package/construtos/funcao.d.ts +3 -2
- package/construtos/funcao.d.ts.map +1 -1
- package/construtos/funcao.js +1 -0
- package/construtos/funcao.js.map +1 -1
- package/construtos/isto.d.ts +4 -4
- package/construtos/isto.d.ts.map +1 -1
- package/construtos/isto.js +2 -2
- package/construtos/isto.js.map +1 -1
- package/declaracoes/escreva.d.ts +2 -1
- package/declaracoes/escreva.d.ts.map +1 -1
- package/declaracoes/escreva.js.map +1 -1
- package/declaracoes/index.d.ts +1 -0
- package/declaracoes/index.d.ts.map +1 -1
- package/declaracoes/index.js +1 -0
- package/declaracoes/index.js.map +1 -1
- package/declaracoes/texto-documentacao.d.ts +12 -0
- package/declaracoes/texto-documentacao.d.ts.map +1 -0
- package/declaracoes/texto-documentacao.js +21 -0
- package/declaracoes/texto-documentacao.js.map +1 -0
- package/formatadores/formatador-delegua.d.ts +2 -1
- package/formatadores/formatador-delegua.d.ts.map +1 -1
- package/formatadores/formatador-delegua.js +4 -1
- package/formatadores/formatador-delegua.js.map +1 -1
- package/formatadores/formatador-pitugues.d.ts +70 -60
- package/formatadores/formatador-pitugues.d.ts.map +1 -1
- package/formatadores/formatador-pitugues.js +390 -227
- package/formatadores/formatador-pitugues.js.map +1 -1
- package/interfaces/visitante-comum-interface.d.ts +2 -1
- package/interfaces/visitante-comum-interface.d.ts.map +1 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.d.ts +2 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.d.ts.map +1 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.js +4 -1
- package/interpretador/dialetos/egua-classico/interpretador-egua-classico.js.map +1 -1
- package/interpretador/dialetos/egua-classico/resolvedor/resolvedor.d.ts +2 -1
- package/interpretador/dialetos/egua-classico/resolvedor/resolvedor.d.ts.map +1 -1
- package/interpretador/dialetos/egua-classico/resolvedor/resolvedor.js +7 -4
- package/interpretador/dialetos/egua-classico/resolvedor/resolvedor.js.map +1 -1
- package/interpretador/dialetos/pitugues/comum.js +13 -13
- package/interpretador/dialetos/pitugues/comum.js.map +1 -1
- package/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.d.ts +2 -1
- package/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.d.ts.map +1 -1
- package/interpretador/dialetos/portugol-ipt/interpretador-portugol-ipt.js +3 -0
- 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.map +1 -1
- package/interpretador/estruturas/metodo-primitiva.d.ts +3 -1
- package/interpretador/estruturas/metodo-primitiva.d.ts.map +1 -1
- package/interpretador/estruturas/metodo-primitiva.js +5 -2
- package/interpretador/estruturas/metodo-primitiva.js.map +1 -1
- package/interpretador/interpretador-base.d.ts +5 -4
- package/interpretador/interpretador-base.d.ts.map +1 -1
- package/interpretador/interpretador-base.js +60 -26
- package/interpretador/interpretador-base.js.map +1 -1
- package/interpretador/interpretador.d.ts.map +1 -1
- package/interpretador/interpretador.js +21 -19
- package/interpretador/interpretador.js.map +1 -1
- package/package.json +1 -1
- package/tradutores/tradutor-assembly-x64.d.ts +78 -3
- package/tradutores/tradutor-assembly-x64.d.ts.map +1 -1
- package/tradutores/tradutor-assembly-x64.js +562 -73
- package/tradutores/tradutor-assembly-x64.js.map +1 -1
- package/umd/delegua.js +1059 -756
package/umd/delegua.js
CHANGED
|
@@ -240,7 +240,7 @@ class AvaliadorSintaticoBase {
|
|
|
240
240
|
}
|
|
241
241
|
exports.AvaliadorSintaticoBase = AvaliadorSintaticoBase;
|
|
242
242
|
|
|
243
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/comum":
|
|
243
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/comum":189,"./erro-avaliador-sintatico":12}],2:[function(require,module,exports){
|
|
244
244
|
"use strict";
|
|
245
245
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
246
246
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -540,7 +540,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
540
540
|
elementoSeparador = true;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
543
|
-
const valoresSemSeparadores = valoresSemComentarios.filter((v) => v.constructor
|
|
543
|
+
const valoresSemSeparadores = valoresSemComentarios.filter((v) => v.constructor !== construtos_1.Separador);
|
|
544
544
|
const tipoVetor = (0, inferenciador_1.inferirTipoVariavel)(valoresSemSeparadores);
|
|
545
545
|
return new construtos_1.Vetor(this.hashArquivo, Number(simboloAtual.linha), valores, valores.length, tipoVetor);
|
|
546
546
|
case delegua_2.default.ENQUANTO:
|
|
@@ -648,7 +648,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
648
648
|
else {
|
|
649
649
|
construto = this.expressao();
|
|
650
650
|
}
|
|
651
|
-
if (construto.constructor
|
|
651
|
+
if (construto.constructor === construtos_1.AcessoMetodoOuPropriedade) {
|
|
652
652
|
const construtoTipado = construto;
|
|
653
653
|
switch (construtoTipado.tipo) {
|
|
654
654
|
case delegua_1.default.DICIONARIO:
|
|
@@ -1638,11 +1638,11 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1638
1638
|
const simboloNomeVariavel = this.consumir(delegua_2.default.IDENTIFICADOR, "Esperado nome do identificador em declaração 'tendo'.");
|
|
1639
1639
|
this.consumir(delegua_2.default.CHAVE_ESQUERDA, "Esperado chave esquerda para abertura de bloco em declaração 'tendo'.");
|
|
1640
1640
|
let tipoInicializacao = 'qualquer';
|
|
1641
|
-
switch (expressaoInicializacao.constructor
|
|
1642
|
-
case
|
|
1641
|
+
switch (expressaoInicializacao.constructor) {
|
|
1642
|
+
case construtos_1.Chamada:
|
|
1643
1643
|
const construtoChamada = expressaoInicializacao;
|
|
1644
|
-
switch (construtoChamada.entidadeChamada.constructor
|
|
1645
|
-
case
|
|
1644
|
+
switch (construtoChamada.entidadeChamada.constructor) {
|
|
1645
|
+
case construtos_1.Variavel:
|
|
1646
1646
|
const entidadeChamadaVariavel = construtoChamada.entidadeChamada;
|
|
1647
1647
|
tipoInicializacao = entidadeChamadaVariavel.tipo;
|
|
1648
1648
|
break;
|
|
@@ -1777,7 +1777,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1777
1777
|
if (construto instanceof construtos_1.Literal) {
|
|
1778
1778
|
return construto.valor;
|
|
1779
1779
|
}
|
|
1780
|
-
throw this.erro({ hashArquivo: construto.hashArquivo, linha: construto.linha }, `Construto do tipo ${construto.constructor
|
|
1780
|
+
throw this.erro({ hashArquivo: construto.hashArquivo, linha: construto.linha }, `Construto do tipo ${construto.constructor} não possui um mapeamento de valor.`);
|
|
1781
1781
|
}
|
|
1782
1782
|
resolverInformacaoElementoSintaticoDeDicionario(construto) {
|
|
1783
1783
|
let retorno;
|
|
@@ -1949,15 +1949,15 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
1949
1949
|
parametro.abrangencia = 'padrao';
|
|
1950
1950
|
}
|
|
1951
1951
|
parametro.nome = this.consumir(delegua_2.default.IDENTIFICADOR, 'Esperado nome do parâmetro.');
|
|
1952
|
-
if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.IGUAL)) {
|
|
1953
|
-
const valorPadrao = this.primario();
|
|
1954
|
-
parametro.valorPadrao = valorPadrao;
|
|
1955
|
-
}
|
|
1956
1952
|
if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.DOIS_PONTOS)) {
|
|
1957
1953
|
let tipoDadoParametro = this.verificarDefinicaoTipoAtual();
|
|
1958
1954
|
parametro.tipoDado = tipoDadoParametro;
|
|
1959
1955
|
this.avancarEDevolverAnterior();
|
|
1960
1956
|
}
|
|
1957
|
+
if (this.verificarSeSimboloAtualEIgualA(delegua_2.default.IGUAL)) {
|
|
1958
|
+
const valorPadrao = this.primario();
|
|
1959
|
+
parametro.valorPadrao = valorPadrao;
|
|
1960
|
+
}
|
|
1961
1961
|
this.pilhaEscopos.definirInformacoesVariavel(parametro.nome.lexema, new informacao_elemento_sintatico_1.InformacaoElementoSintatico(parametro.nome.lexema, parametro.tipoDado || 'qualquer'));
|
|
1962
1962
|
parametros.push(parametro);
|
|
1963
1963
|
if (parametro.abrangencia === 'multiplo')
|
|
@@ -2171,6 +2171,10 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
2171
2171
|
this.pilhaEscopos.definirInformacoesVariavel('inteiro', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('inteiro', 'inteiro', true, [
|
|
2172
2172
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valor', 'qualquer'),
|
|
2173
2173
|
]));
|
|
2174
|
+
this.pilhaEscopos.definirInformacoesVariavel('intervalo', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('intervalo', 'inteiro[]', true, [
|
|
2175
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valorInicial', 'inteiro'),
|
|
2176
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valorFinal', 'inteiro'),
|
|
2177
|
+
]));
|
|
2174
2178
|
this.pilhaEscopos.definirInformacoesVariavel('mapear', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('mapear', 'qualquer[]', true, [
|
|
2175
2179
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
2176
2180
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('funcaoMapeamento', 'função'),
|
|
@@ -2183,7 +2187,7 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
2183
2187
|
]));
|
|
2184
2188
|
this.pilhaEscopos.definirInformacoesVariavel('ordenar', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('ordenar', 'qualquer[]', true, [
|
|
2185
2189
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
2186
|
-
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('funcaoOrdenacao', 'função'),
|
|
2190
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('funcaoOrdenacao', 'função', false),
|
|
2187
2191
|
]));
|
|
2188
2192
|
this.pilhaEscopos.definirInformacoesVariavel('paraCada', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('paraCada', 'qualquer[]', true, [
|
|
2189
2193
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
@@ -2256,16 +2260,17 @@ class AvaliadorSintatico extends avaliador_sintatico_base_1.AvaliadorSintaticoBa
|
|
|
2256
2260
|
}
|
|
2257
2261
|
exports.AvaliadorSintatico = AvaliadorSintatico;
|
|
2258
2262
|
|
|
2259
|
-
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../construtos/tuplas":68,"../declaracoes":96,"../inferenciador":
|
|
2263
|
+
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../construtos/tuplas":68,"../declaracoes":96,"../inferenciador":116,"../informacao-elemento-sintatico":117,"../tipos-de-dados/delegua":185,"../tipos-de-simbolos/delegua":190,"./avaliador-sintatico-base":1,"./comum":3,"./elemento-montao-tipos":11,"./erro-avaliador-sintatico":12,"./informacao-escopo":14,"./montao-tipos":17,"./pilha-escopos":18,"browser-process-hrtime":371}],3:[function(require,module,exports){
|
|
2260
2264
|
"use strict";
|
|
2261
2265
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
2262
2266
|
exports.buscarRetornos = buscarRetornos;
|
|
2263
2267
|
exports.logicaDescobertaRetornoFuncao = logicaDescobertaRetornoFuncao;
|
|
2264
2268
|
exports.registrarPrimitiva = registrarPrimitiva;
|
|
2269
|
+
const declaracoes_1 = require("../declaracoes");
|
|
2265
2270
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
2266
2271
|
function* buscarRetornosEmBloco(construtoBloco) {
|
|
2267
2272
|
for (const declaracao of construtoBloco.declaracoes) {
|
|
2268
|
-
if (declaracao.constructor
|
|
2273
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2269
2274
|
yield declaracao;
|
|
2270
2275
|
}
|
|
2271
2276
|
}
|
|
@@ -2273,25 +2278,25 @@ function* buscarRetornosEmBloco(construtoBloco) {
|
|
|
2273
2278
|
function* buscarRetornosEmSe(construtoSe) {
|
|
2274
2279
|
const blocoEntao = construtoSe.caminhoEntao;
|
|
2275
2280
|
for (const declaracao of buscarRetornosEmBloco(blocoEntao)) {
|
|
2276
|
-
if (declaracao.constructor
|
|
2281
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2277
2282
|
yield declaracao;
|
|
2278
2283
|
}
|
|
2279
2284
|
}
|
|
2280
2285
|
if (!construtoSe.caminhoSenao)
|
|
2281
2286
|
return;
|
|
2282
|
-
switch (construtoSe.caminhoSenao.constructor
|
|
2283
|
-
case
|
|
2287
|
+
switch (construtoSe.caminhoSenao.constructor) {
|
|
2288
|
+
case declaracoes_1.Bloco:
|
|
2284
2289
|
const blocoSenao = construtoSe.caminhoSenao;
|
|
2285
2290
|
for (const declaracao of blocoSenao.declaracoes) {
|
|
2286
|
-
if (declaracao.constructor
|
|
2291
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2287
2292
|
yield declaracao;
|
|
2288
2293
|
}
|
|
2289
2294
|
}
|
|
2290
2295
|
break;
|
|
2291
|
-
case
|
|
2296
|
+
case declaracoes_1.Se:
|
|
2292
2297
|
const senaoSe = construtoSe.caminhoSenao;
|
|
2293
2298
|
for (const declaracao of buscarRetornosEmSe(senaoSe)) {
|
|
2294
|
-
if (declaracao.constructor
|
|
2299
|
+
if (declaracao.constructor === declaracoes_1.Retorna) {
|
|
2295
2300
|
yield declaracao;
|
|
2296
2301
|
}
|
|
2297
2302
|
}
|
|
@@ -2300,11 +2305,11 @@ function* buscarRetornosEmSe(construtoSe) {
|
|
|
2300
2305
|
}
|
|
2301
2306
|
function buscarRetornos(declaracao) {
|
|
2302
2307
|
let retornasEncontrados = [];
|
|
2303
|
-
switch (declaracao.constructor
|
|
2304
|
-
case
|
|
2308
|
+
switch (declaracao.constructor) {
|
|
2309
|
+
case declaracoes_1.Retorna:
|
|
2305
2310
|
retornasEncontrados.push(declaracao);
|
|
2306
2311
|
break;
|
|
2307
|
-
case
|
|
2312
|
+
case declaracoes_1.Se:
|
|
2308
2313
|
for (const retorna of buscarRetornosEmSe(declaracao)) {
|
|
2309
2314
|
retornasEncontrados.push(retorna);
|
|
2310
2315
|
}
|
|
@@ -2356,7 +2361,7 @@ function registrarPrimitiva(primitivasConhecidas, tipo, catalogoPrimitivas) {
|
|
|
2356
2361
|
}
|
|
2357
2362
|
}
|
|
2358
2363
|
|
|
2359
|
-
},{"../informacao-elemento-sintatico":
|
|
2364
|
+
},{"../declaracoes":96,"../informacao-elemento-sintatico":117}],4:[function(require,module,exports){
|
|
2360
2365
|
"use strict";
|
|
2361
2366
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2362
2367
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -2582,7 +2587,7 @@ class AvaliadorSintaticoCalango extends avaliador_sintatico_base_1.AvaliadorSint
|
|
|
2582
2587
|
}
|
|
2583
2588
|
exports.AvaliadorSintaticoCalango = AvaliadorSintaticoCalango;
|
|
2584
2589
|
|
|
2585
|
-
},{"../../construtos":51,"../../declaracoes":96,"../../informacao-elemento-sintatico":
|
|
2590
|
+
},{"../../construtos":51,"../../declaracoes":96,"../../informacao-elemento-sintatico":117,"../../tipos-de-simbolos/calango":188,"../avaliador-sintatico-base":1,"../informacao-escopo":14,"../pilha-escopos":18}],5:[function(require,module,exports){
|
|
2586
2591
|
"use strict";
|
|
2587
2592
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
2588
2593
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3242,7 +3247,7 @@ class AvaliadorSintaticoEguaClassico {
|
|
|
3242
3247
|
}
|
|
3243
3248
|
exports.AvaliadorSintaticoEguaClassico = AvaliadorSintaticoEguaClassico;
|
|
3244
3249
|
|
|
3245
|
-
},{"../../construtos":51,"../../declaracoes":96,"../../tipos-de-simbolos/egua-classico":
|
|
3250
|
+
},{"../../construtos":51,"../../declaracoes":96,"../../tipos-de-simbolos/egua-classico":191,"../erro-avaliador-sintatico":12}],6:[function(require,module,exports){
|
|
3246
3251
|
"use strict";
|
|
3247
3252
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3248
3253
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -3291,12 +3296,12 @@ class AvaliadorSintaticoPitugues {
|
|
|
3291
3296
|
if (tipo !== 'qualquer') {
|
|
3292
3297
|
return tipo;
|
|
3293
3298
|
}
|
|
3294
|
-
switch (inicializador.constructor
|
|
3295
|
-
case
|
|
3299
|
+
switch (inicializador.constructor) {
|
|
3300
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
3296
3301
|
const entidadeChamadaAcessoIndiceVariavel = inicializador
|
|
3297
3302
|
.entidadeChamada;
|
|
3298
3303
|
// Este condicional ocorre com chamadas aninhadas. Por exemplo, `vetor[1][2]`.
|
|
3299
|
-
if (entidadeChamadaAcessoIndiceVariavel.constructor
|
|
3304
|
+
if (entidadeChamadaAcessoIndiceVariavel.constructor === construtos_1.AcessoIndiceVariavel) {
|
|
3300
3305
|
return this.logicaComumInferenciaTiposVariaveisEConstantes(entidadeChamadaAcessoIndiceVariavel, tipo);
|
|
3301
3306
|
}
|
|
3302
3307
|
if (entidadeChamadaAcessoIndiceVariavel.tipo.endsWith('[]')) {
|
|
@@ -3304,13 +3309,13 @@ class AvaliadorSintaticoPitugues {
|
|
|
3304
3309
|
}
|
|
3305
3310
|
// Normalmente, `entidadeChamadaAcessoIndiceVariavel.tipo` aqui será 'vetor'.
|
|
3306
3311
|
return 'qualquer';
|
|
3307
|
-
case
|
|
3312
|
+
case construtos_1.Chamada:
|
|
3308
3313
|
const entidadeChamadaChamada = inicializador.entidadeChamada;
|
|
3309
|
-
switch (entidadeChamadaChamada.constructor
|
|
3310
|
-
case
|
|
3314
|
+
switch (entidadeChamadaChamada.constructor) {
|
|
3315
|
+
case construtos_1.AcessoMetodo:
|
|
3311
3316
|
const entidadeChamadaAcessoMetodo = entidadeChamadaChamada;
|
|
3312
3317
|
return entidadeChamadaAcessoMetodo.tipoRetornoMetodo;
|
|
3313
|
-
case
|
|
3318
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
3314
3319
|
// Este caso ocorre quando a variável/constante é do tipo 'qualquer',
|
|
3315
3320
|
// e a chamada normalmente é feita para uma primitiva.
|
|
3316
3321
|
// A inferência, portanto, ocorre pelo uso da primitiva.
|
|
@@ -3321,38 +3326,39 @@ class AvaliadorSintaticoPitugues {
|
|
|
3321
3326
|
}
|
|
3322
3327
|
}
|
|
3323
3328
|
throw new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(entidadeChamadaAcessoMetodoOuPropriedade.simbolo, `Primitiva '${entidadeChamadaAcessoMetodoOuPropriedade.simbolo.lexema}' não existe.`);
|
|
3324
|
-
case
|
|
3329
|
+
case construtos_1.AcessoPropriedade:
|
|
3325
3330
|
const entidadeChamadaAcessoPropriedade = entidadeChamadaChamada;
|
|
3326
3331
|
return entidadeChamadaAcessoPropriedade.tipoRetornoPropriedade;
|
|
3327
|
-
case
|
|
3332
|
+
case construtos_1.ArgumentoReferenciaFuncao:
|
|
3328
3333
|
// TODO: Voltar aqui se necessário.
|
|
3329
3334
|
return 'qualquer';
|
|
3330
|
-
case
|
|
3335
|
+
case construtos_1.ReferenciaFuncao:
|
|
3331
3336
|
const entidadeChamadaReferenciaFuncao = entidadeChamadaChamada;
|
|
3332
3337
|
return entidadeChamadaReferenciaFuncao.tipo;
|
|
3333
|
-
case
|
|
3338
|
+
case construtos_1.Variavel:
|
|
3334
3339
|
const entidadeChamadaVariavel = entidadeChamadaChamada;
|
|
3335
3340
|
return entidadeChamadaVariavel.tipo;
|
|
3336
3341
|
}
|
|
3337
3342
|
break;
|
|
3338
|
-
case
|
|
3343
|
+
case construtos_1.FuncaoConstruto:
|
|
3339
3344
|
const funcaoConstruto = inicializador;
|
|
3340
3345
|
return `função<${funcaoConstruto.tipo}>`;
|
|
3341
|
-
case
|
|
3346
|
+
case construtos_1.Leia:
|
|
3342
3347
|
return 'texto';
|
|
3343
|
-
case
|
|
3344
|
-
case
|
|
3345
|
-
case
|
|
3346
|
-
case
|
|
3347
|
-
case
|
|
3348
|
-
case
|
|
3349
|
-
case
|
|
3350
|
-
case
|
|
3351
|
-
case
|
|
3348
|
+
case construtos_1.Dupla:
|
|
3349
|
+
case construtos_1.Trio:
|
|
3350
|
+
case construtos_1.Quarteto:
|
|
3351
|
+
case construtos_1.Quinteto:
|
|
3352
|
+
case construtos_1.Sexteto:
|
|
3353
|
+
case construtos_1.Septeto:
|
|
3354
|
+
case construtos_1.Octeto:
|
|
3355
|
+
case construtos_1.Noneto:
|
|
3356
|
+
case construtos_1.Deceto:
|
|
3352
3357
|
return 'tupla';
|
|
3353
|
-
|
|
3354
|
-
case
|
|
3355
|
-
|
|
3358
|
+
// TODO: Talvez reabilitar.
|
|
3359
|
+
/* case ImportarBiblioteca:
|
|
3360
|
+
case ModuloDeclaracoes:
|
|
3361
|
+
return 'módulo'; */
|
|
3356
3362
|
default:
|
|
3357
3363
|
return inicializador.tipo;
|
|
3358
3364
|
}
|
|
@@ -3570,7 +3576,9 @@ class AvaliadorSintaticoPitugues {
|
|
|
3570
3576
|
} while (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.VIRGULA));
|
|
3571
3577
|
}
|
|
3572
3578
|
this.consumir(pitugues_2.default.PARENTESE_DIREITO, "Esperado ')' após os argumentos.");
|
|
3573
|
-
|
|
3579
|
+
const chamada = new construtos_1.Chamada(this.hashArquivo, entidadeChamada, argumentos);
|
|
3580
|
+
chamada.tipo = entidadeChamada.tipo;
|
|
3581
|
+
return chamada;
|
|
3574
3582
|
}
|
|
3575
3583
|
chamar() {
|
|
3576
3584
|
let expressao = this.primario();
|
|
@@ -3743,15 +3751,16 @@ class AvaliadorSintaticoPitugues {
|
|
|
3743
3751
|
expressao() {
|
|
3744
3752
|
return this.atribuir();
|
|
3745
3753
|
}
|
|
3746
|
-
declaracaoEscreva() {
|
|
3747
|
-
const simboloAtual = this.simboloAtual();
|
|
3754
|
+
declaracaoEscreva(simboloEscreva) {
|
|
3748
3755
|
this.consumir(pitugues_2.default.PARENTESE_ESQUERDO, "Esperado '(' antes dos valores em escreva.");
|
|
3749
3756
|
const argumentos = [];
|
|
3750
3757
|
do {
|
|
3751
3758
|
argumentos.push(this.expressao());
|
|
3752
3759
|
} while (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.VIRGULA));
|
|
3753
3760
|
this.consumir(pitugues_2.default.PARENTESE_DIREITO, "Esperado ')' após os valores em escreva.");
|
|
3754
|
-
|
|
3761
|
+
const declaracaoEscreva = new declaracoes_1.Escreva(Number(simboloEscreva.linha), simboloEscreva.hashArquivo, argumentos);
|
|
3762
|
+
declaracaoEscreva.simboloEscreva = simboloEscreva;
|
|
3763
|
+
return declaracaoEscreva;
|
|
3755
3764
|
}
|
|
3756
3765
|
declaracaoExpressao() {
|
|
3757
3766
|
const expressao = this.expressao();
|
|
@@ -3775,8 +3784,8 @@ class AvaliadorSintaticoPitugues {
|
|
|
3775
3784
|
// Verifica-se o número de espaços à esquerda da linha através dos pragmas.
|
|
3776
3785
|
// Se número de espaços da linha do símbolo atual é menor ou igual ao número de espaços
|
|
3777
3786
|
// da linha anterior, e bloco ainda não começou, é uma situação de erro.
|
|
3778
|
-
let espacosIndentacaoLinhaAtual = this.
|
|
3779
|
-
const espacosIndentacaoLinhaAnterior = this.
|
|
3787
|
+
let espacosIndentacaoLinhaAtual = this.localizacoes[simboloAtual.linha].espacosIndentacao;
|
|
3788
|
+
const espacosIndentacaoLinhaAnterior = this.localizacoes[simboloAnterior.linha].espacosIndentacao;
|
|
3780
3789
|
if (espacosIndentacaoLinhaAtual <= espacosIndentacaoLinhaAnterior) {
|
|
3781
3790
|
throw this.erro(simboloAtual, `Indentação inconsistente na linha ${simboloAtual.linha}. ` +
|
|
3782
3791
|
`Esperado: >= ${espacosIndentacaoLinhaAnterior}. ` +
|
|
@@ -3799,7 +3808,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
3799
3808
|
simboloAtual = this.simboloAtual();
|
|
3800
3809
|
if (!simboloAtual)
|
|
3801
3810
|
break;
|
|
3802
|
-
espacosIndentacaoLinhaAtual = this.
|
|
3811
|
+
espacosIndentacaoLinhaAtual = this.localizacoes[simboloAtual.linha].espacosIndentacao;
|
|
3803
3812
|
}
|
|
3804
3813
|
}
|
|
3805
3814
|
this.pilhaEscopos.removerUltimo();
|
|
@@ -3912,6 +3921,10 @@ class AvaliadorSintaticoPitugues {
|
|
|
3912
3921
|
}
|
|
3913
3922
|
return new declaracoes_1.Sustar(this.simboloAtual());
|
|
3914
3923
|
}
|
|
3924
|
+
declaracaoComentario() {
|
|
3925
|
+
const simboloComentario = this.avancarEDevolverAnterior();
|
|
3926
|
+
return new declaracoes_1.Comentario(simboloComentario.hashArquivo, simboloComentario.linha, simboloComentario.literal, false);
|
|
3927
|
+
}
|
|
3915
3928
|
declaracaoContinua() {
|
|
3916
3929
|
if (this.blocos < 1) {
|
|
3917
3930
|
throw this.erro(this.simboloAnterior(), "'continua' precisa estar em um laço de repetição.");
|
|
@@ -3939,8 +3952,26 @@ class AvaliadorSintaticoPitugues {
|
|
|
3939
3952
|
const blocoTente = this.blocoEscopo();
|
|
3940
3953
|
let blocoPegue = null;
|
|
3941
3954
|
if (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.PEGUE)) {
|
|
3942
|
-
this.
|
|
3943
|
-
|
|
3955
|
+
if (this.verificarTipoSimboloAtual(pitugues_2.default.COMO)) {
|
|
3956
|
+
this.avancarEDevolverAnterior();
|
|
3957
|
+
const variavelExcecao = this.consumir(pitugues_2.default.IDENTIFICADOR, `Esperado identificador após palavra reservada 'como' em bloco tente. Atual: ${this.simbolos[this.atual].lexema}.`);
|
|
3958
|
+
// Caso 1: com parâmetro de erro.
|
|
3959
|
+
// `pegue` recebe um `FuncaoConstruto`.
|
|
3960
|
+
this.consumir(pitugues_2.default.DOIS_PONTOS, `Esperado ':' antes do escopo do bloco 'pegue'.`);
|
|
3961
|
+
this.pilhaEscopos.definirInformacoesVariavel(variavelExcecao.lexema, new informacao_elemento_sintatico_1.InformacaoElementoSintatico(variavelExcecao.lexema, 'qualquer'));
|
|
3962
|
+
const corpo = this.blocoEscopo();
|
|
3963
|
+
blocoPegue = new construtos_1.FuncaoConstruto(this.hashArquivo, simboloTente.linha, [{
|
|
3964
|
+
abrangencia: "padrao",
|
|
3965
|
+
nome: variavelExcecao,
|
|
3966
|
+
tipoDado: "qualquer",
|
|
3967
|
+
}], corpo, "vazio", false);
|
|
3968
|
+
}
|
|
3969
|
+
else {
|
|
3970
|
+
// Caso 2: sem parâmetro de erro.
|
|
3971
|
+
// `pegue` recebe um bloco.
|
|
3972
|
+
this.consumir(pitugues_2.default.DOIS_PONTOS, "Esperado ':' após a declaração 'pegue'.");
|
|
3973
|
+
blocoPegue = this.blocoEscopo();
|
|
3974
|
+
}
|
|
3944
3975
|
}
|
|
3945
3976
|
let blocoSenao = null;
|
|
3946
3977
|
if (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.SENAO, pitugues_2.default.SENÃO)) {
|
|
@@ -3967,53 +3998,6 @@ class AvaliadorSintaticoPitugues {
|
|
|
3967
3998
|
this.blocos -= 1;
|
|
3968
3999
|
}
|
|
3969
4000
|
}
|
|
3970
|
-
resolverDeclaracao() {
|
|
3971
|
-
switch (this.simbolos[this.atual].tipo) {
|
|
3972
|
-
case pitugues_2.default.CONTINUA:
|
|
3973
|
-
this.avancarEDevolverAnterior();
|
|
3974
|
-
return this.declaracaoContinua();
|
|
3975
|
-
case pitugues_2.default.DOIS_PONTOS:
|
|
3976
|
-
this.avancarEDevolverAnterior();
|
|
3977
|
-
const simboloInicioBloco = this.simboloAnterior();
|
|
3978
|
-
return new declaracoes_1.Bloco(simboloInicioBloco.hashArquivo, Number(simboloInicioBloco.linha), this.blocoEscopo());
|
|
3979
|
-
case pitugues_2.default.ENQUANTO:
|
|
3980
|
-
this.avancarEDevolverAnterior();
|
|
3981
|
-
return this.declaracaoEnquanto();
|
|
3982
|
-
case pitugues_2.default.ESCOLHA:
|
|
3983
|
-
this.avancarEDevolverAnterior();
|
|
3984
|
-
return this.declaracaoEscolha();
|
|
3985
|
-
case pitugues_2.default.IMPRIMA:
|
|
3986
|
-
case pitugues_2.default.ESCREVA:
|
|
3987
|
-
this.avancarEDevolverAnterior();
|
|
3988
|
-
return this.declaracaoEscreva();
|
|
3989
|
-
case pitugues_2.default.FALHAR:
|
|
3990
|
-
this.avancarEDevolverAnterior();
|
|
3991
|
-
return this.declaracaoFalhar();
|
|
3992
|
-
case pitugues_2.default.FAZER:
|
|
3993
|
-
this.avancarEDevolverAnterior();
|
|
3994
|
-
return this.declaracaoFazer();
|
|
3995
|
-
case pitugues_2.default.PARA:
|
|
3996
|
-
this.avancarEDevolverAnterior();
|
|
3997
|
-
return this.declaracaoPara();
|
|
3998
|
-
case pitugues_2.default.QUEBRAR:
|
|
3999
|
-
case pitugues_2.default.SUSTAR:
|
|
4000
|
-
this.avancarEDevolverAnterior();
|
|
4001
|
-
return this.declaracaoSustar();
|
|
4002
|
-
case pitugues_2.default.SE:
|
|
4003
|
-
this.avancarEDevolverAnterior();
|
|
4004
|
-
return this.declaracaoSe();
|
|
4005
|
-
case pitugues_2.default.RETORNA:
|
|
4006
|
-
this.avancarEDevolverAnterior();
|
|
4007
|
-
return this.declaracaoRetorna();
|
|
4008
|
-
case pitugues_2.default.TENTE:
|
|
4009
|
-
this.avancarEDevolverAnterior();
|
|
4010
|
-
return this.declaracaoTente();
|
|
4011
|
-
case pitugues_2.default.VARIAVEL:
|
|
4012
|
-
this.avancarEDevolverAnterior();
|
|
4013
|
-
return this.declaracaoDeVariaveis();
|
|
4014
|
-
}
|
|
4015
|
-
return this.declaracaoExpressao();
|
|
4016
|
-
}
|
|
4017
4001
|
funcao(tipo, construtor) {
|
|
4018
4002
|
const simbolo = !construtor
|
|
4019
4003
|
? this.consumir(pitugues_2.default.IDENTIFICADOR, `Esperado nome ${tipo}.`)
|
|
@@ -4043,6 +4027,11 @@ class AvaliadorSintaticoPitugues {
|
|
|
4043
4027
|
parametro.abrangencia = 'padrao';
|
|
4044
4028
|
}
|
|
4045
4029
|
parametro.nome = this.consumir(pitugues_2.default.IDENTIFICADOR, 'Esperado nome do parâmetro.');
|
|
4030
|
+
if (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.DOIS_PONTOS)) {
|
|
4031
|
+
let tipoDadoParametro = this.verificarDefinicaoTipoAtual();
|
|
4032
|
+
parametro.tipoDado = tipoDadoParametro;
|
|
4033
|
+
this.avancarEDevolverAnterior();
|
|
4034
|
+
}
|
|
4046
4035
|
if (this.verificarSeSimboloAtualEIgualA(pitugues_2.default.IGUAL)) {
|
|
4047
4036
|
parametro.valorPadrao = this.primario();
|
|
4048
4037
|
}
|
|
@@ -4128,10 +4117,10 @@ class AvaliadorSintaticoPitugues {
|
|
|
4128
4117
|
}
|
|
4129
4118
|
return tipoElementarResolvido;
|
|
4130
4119
|
}
|
|
4131
|
-
|
|
4120
|
+
declaracaoTextoDeDocumentacao() {
|
|
4132
4121
|
if (this.simbolos[this.atual].tipo === pitugues_2.default.TEXTO_MULTILINHAS) {
|
|
4133
|
-
const
|
|
4134
|
-
return new declaracoes_1.
|
|
4122
|
+
const simboloTexto = this.avancarEDevolverAnterior();
|
|
4123
|
+
return new declaracoes_1.TextoDocumentacao(this.hashArquivo, Number(simboloTexto.linha), simboloTexto.lexema);
|
|
4135
4124
|
}
|
|
4136
4125
|
}
|
|
4137
4126
|
corpoDaFuncao(tipo) {
|
|
@@ -4151,7 +4140,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
4151
4140
|
definicaoExplicitaDeTipo = true;
|
|
4152
4141
|
}
|
|
4153
4142
|
this.consumir(pitugues_2.default.DOIS_PONTOS, `Esperado ':' antes do escopo do ${tipo}.`);
|
|
4154
|
-
const documentacao = this.
|
|
4143
|
+
const documentacao = this.declaracaoTextoDeDocumentacao();
|
|
4155
4144
|
const corpo = this.blocoEscopo();
|
|
4156
4145
|
tipoRetorno = (0, comum_1.logicaDescobertaRetornoFuncao)(this, corpo, tipoRetorno, definicaoExplicitaDeTipo, parenteseEsquerdo);
|
|
4157
4146
|
return new construtos_1.FuncaoConstruto(this.hashArquivo, 0, parametros, corpo, tipoRetorno, definicaoExplicitaDeTipo, documentacao);
|
|
@@ -4166,14 +4155,24 @@ class AvaliadorSintaticoPitugues {
|
|
|
4166
4155
|
this.consumir(pitugues_2.default.PARENTESE_DIREITO, "Esperado ')' após declaração.");
|
|
4167
4156
|
}
|
|
4168
4157
|
this.consumir(pitugues_2.default.DOIS_PONTOS, "Esperado ':' antes do escopo da classe.");
|
|
4169
|
-
const possivelDocumentacao = this.
|
|
4158
|
+
const possivelDocumentacao = this.declaracaoTextoDeDocumentacao();
|
|
4170
4159
|
const metodos = [];
|
|
4160
|
+
const propriedades = [];
|
|
4171
4161
|
while (!this.estaNoFinal() &&
|
|
4172
|
-
this.verificarSeSimboloAtualEIgualA(pitugues_2.default.CONSTRUTOR, pitugues_2.default.FUNCAO, pitugues_2.default.FUNÇÃO)) {
|
|
4173
|
-
|
|
4162
|
+
this.verificarSeSimboloAtualEIgualA(pitugues_2.default.CONSTRUTOR, pitugues_2.default.FUNCAO, pitugues_2.default.FUNÇÃO, pitugues_2.default.IDENTIFICADOR)) {
|
|
4163
|
+
const simboloAnterior = this.simbolos[this.atual - 1];
|
|
4164
|
+
if (simboloAnterior.tipo === pitugues_2.default.IDENTIFICADOR) {
|
|
4165
|
+
this.consumir(pitugues_2.default.DOIS_PONTOS, "Esperado ':' antes do escopo da classe.");
|
|
4166
|
+
const tipoPropriedade = this.consumir(pitugues_2.default.IDENTIFICADOR, "Esperado tipo de propriedade após dois-pontos, em declaração de classe.");
|
|
4167
|
+
const propriedade = new declaracoes_1.PropriedadeClasse(simboloAnterior, tipoPropriedade.lexema, []);
|
|
4168
|
+
propriedades.push(propriedade);
|
|
4169
|
+
}
|
|
4170
|
+
else {
|
|
4171
|
+
metodos.push(this.funcao('método', this.simbolos[this.atual - 1].tipo === pitugues_2.default.CONSTRUTOR));
|
|
4172
|
+
}
|
|
4174
4173
|
}
|
|
4175
4174
|
this.superclasseAtual = undefined;
|
|
4176
|
-
const definicaoClasse = new declaracoes_1.Classe(simbolo, superClasse, metodos);
|
|
4175
|
+
const definicaoClasse = new declaracoes_1.Classe(simbolo, superClasse, metodos, propriedades);
|
|
4177
4176
|
if (possivelDocumentacao) {
|
|
4178
4177
|
definicaoClasse.documentacao = possivelDocumentacao;
|
|
4179
4178
|
}
|
|
@@ -4207,6 +4206,57 @@ class AvaliadorSintaticoPitugues {
|
|
|
4207
4206
|
return null;
|
|
4208
4207
|
}
|
|
4209
4208
|
}
|
|
4209
|
+
resolverDeclaracao() {
|
|
4210
|
+
switch (this.simbolos[this.atual].tipo) {
|
|
4211
|
+
case pitugues_2.default.COMENTARIO:
|
|
4212
|
+
return this.declaracaoComentario();
|
|
4213
|
+
case pitugues_2.default.CONTINUA:
|
|
4214
|
+
this.avancarEDevolverAnterior();
|
|
4215
|
+
return this.declaracaoContinua();
|
|
4216
|
+
case pitugues_2.default.DOIS_PONTOS:
|
|
4217
|
+
this.avancarEDevolverAnterior();
|
|
4218
|
+
const simboloInicioBloco = this.simboloAnterior();
|
|
4219
|
+
return new declaracoes_1.Bloco(simboloInicioBloco.hashArquivo, Number(simboloInicioBloco.linha), this.blocoEscopo());
|
|
4220
|
+
case pitugues_2.default.ENQUANTO:
|
|
4221
|
+
this.avancarEDevolverAnterior();
|
|
4222
|
+
return this.declaracaoEnquanto();
|
|
4223
|
+
case pitugues_2.default.ESCOLHA:
|
|
4224
|
+
this.avancarEDevolverAnterior();
|
|
4225
|
+
return this.declaracaoEscolha();
|
|
4226
|
+
case pitugues_2.default.IMPRIMA:
|
|
4227
|
+
case pitugues_2.default.ESCREVA:
|
|
4228
|
+
const simboloEscrevaOuImprima = this.avancarEDevolverAnterior();
|
|
4229
|
+
return this.declaracaoEscreva(simboloEscrevaOuImprima);
|
|
4230
|
+
case pitugues_2.default.FALHAR:
|
|
4231
|
+
this.avancarEDevolverAnterior();
|
|
4232
|
+
return this.declaracaoFalhar();
|
|
4233
|
+
case pitugues_2.default.FAZER:
|
|
4234
|
+
this.avancarEDevolverAnterior();
|
|
4235
|
+
return this.declaracaoFazer();
|
|
4236
|
+
case pitugues_2.default.PARA:
|
|
4237
|
+
this.avancarEDevolverAnterior();
|
|
4238
|
+
return this.declaracaoPara();
|
|
4239
|
+
case pitugues_2.default.QUEBRAR:
|
|
4240
|
+
case pitugues_2.default.SUSTAR:
|
|
4241
|
+
this.avancarEDevolverAnterior();
|
|
4242
|
+
return this.declaracaoSustar();
|
|
4243
|
+
case pitugues_2.default.SE:
|
|
4244
|
+
this.avancarEDevolverAnterior();
|
|
4245
|
+
return this.declaracaoSe();
|
|
4246
|
+
case pitugues_2.default.RETORNA:
|
|
4247
|
+
this.avancarEDevolverAnterior();
|
|
4248
|
+
return this.declaracaoRetorna();
|
|
4249
|
+
case pitugues_2.default.TENTE:
|
|
4250
|
+
this.avancarEDevolverAnterior();
|
|
4251
|
+
return this.declaracaoTente();
|
|
4252
|
+
case pitugues_2.default.TEXTO_MULTILINHAS:
|
|
4253
|
+
return this.declaracaoTextoDeDocumentacao();
|
|
4254
|
+
case pitugues_2.default.VARIAVEL:
|
|
4255
|
+
this.avancarEDevolverAnterior();
|
|
4256
|
+
return this.declaracaoDeVariaveis();
|
|
4257
|
+
}
|
|
4258
|
+
return this.declaracaoExpressao();
|
|
4259
|
+
}
|
|
4210
4260
|
/**
|
|
4211
4261
|
* Inicializa o primeiro nível da pilha de escopos, normalmente com ítens da biblioteca global.
|
|
4212
4262
|
* É separada da inicialização do avaliador sintático, pois é necessário manipular essa
|
|
@@ -4252,6 +4302,10 @@ class AvaliadorSintaticoPitugues {
|
|
|
4252
4302
|
this.pilhaEscopos.definirInformacoesVariavel('inteiro', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('inteiro', 'inteiro', true, [
|
|
4253
4303
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valor', 'qualquer'),
|
|
4254
4304
|
]));
|
|
4305
|
+
this.pilhaEscopos.definirInformacoesVariavel('intervalo', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('intervalo', 'inteiro[]', true, [
|
|
4306
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valorInicial', 'inteiro'),
|
|
4307
|
+
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('valorFinal', 'inteiro'),
|
|
4308
|
+
]));
|
|
4255
4309
|
this.pilhaEscopos.definirInformacoesVariavel('mapear', new informacao_elemento_sintatico_1.InformacaoElementoSintatico('mapear', 'qualquer[]', true, [
|
|
4256
4310
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('vetor', 'qualquer[]'),
|
|
4257
4311
|
new informacao_elemento_sintatico_1.InformacaoElementoSintatico('funcaoMapeamento', 'função'),
|
|
@@ -4306,7 +4360,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
4306
4360
|
this.tiposDefinidosEmCodigo = {};
|
|
4307
4361
|
this.hashArquivo = hashArquivo || 0;
|
|
4308
4362
|
this.simbolos = (retornoLexador === null || retornoLexador === void 0 ? void 0 : retornoLexador.simbolos) || [];
|
|
4309
|
-
this.
|
|
4363
|
+
this.localizacoes = (retornoLexador === null || retornoLexador === void 0 ? void 0 : retornoLexador.pragmas) || {};
|
|
4310
4364
|
let declaracoes = [];
|
|
4311
4365
|
while (!this.estaNoFinal()) {
|
|
4312
4366
|
const retornoDeclaracao = this.resolverDeclaracaoForaDeBloco();
|
|
@@ -4330,7 +4384,7 @@ class AvaliadorSintaticoPitugues {
|
|
|
4330
4384
|
}
|
|
4331
4385
|
exports.AvaliadorSintaticoPitugues = AvaliadorSintaticoPitugues;
|
|
4332
4386
|
|
|
4333
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":
|
|
4387
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-dados/dialetos/pitugues":186,"../../tipos-de-simbolos/pitugues":194,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":371}],7:[function(require,module,exports){
|
|
4334
4388
|
"use strict";
|
|
4335
4389
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4336
4390
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -4504,7 +4558,7 @@ class AvaliadorSintaticoPortugolIpt extends avaliador_sintatico_base_1.Avaliador
|
|
|
4504
4558
|
}
|
|
4505
4559
|
exports.AvaliadorSintaticoPortugolIpt = AvaliadorSintaticoPortugolIpt;
|
|
4506
4560
|
|
|
4507
|
-
},{"../../construtos":51,"../../declaracoes":96,"../../tipos-de-simbolos/portugol-ipt":
|
|
4561
|
+
},{"../../construtos":51,"../../declaracoes":96,"../../tipos-de-simbolos/portugol-ipt":195,"../avaliador-sintatico-base":1}],8:[function(require,module,exports){
|
|
4508
4562
|
"use strict";
|
|
4509
4563
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
4510
4564
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -5219,7 +5273,7 @@ class AvaliadorSintaticoPrisma extends avaliador_sintatico_base_1.AvaliadorSinta
|
|
|
5219
5273
|
}
|
|
5220
5274
|
exports.AvaliadorSintaticoPrisma = AvaliadorSintaticoPrisma;
|
|
5221
5275
|
|
|
5222
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":
|
|
5276
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador":177,"../../tipos-de-simbolos/prisma":196,"../avaliador-sintatico-base":1,"../comum":3,"../erro-avaliador-sintatico":12,"../informacao-escopo":14,"../pilha-escopos":18,"browser-process-hrtime":371}],9:[function(require,module,exports){
|
|
5223
5277
|
"use strict";
|
|
5224
5278
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
5225
5279
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -5573,7 +5627,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5573
5627
|
* @returns A entidade chamada resolvida, se as validações passarem.
|
|
5574
5628
|
*/
|
|
5575
5629
|
resolverEntidadeChamada(entidadeChamada, argumentos, tipoPrimitiva = undefined) {
|
|
5576
|
-
if (entidadeChamada.constructor
|
|
5630
|
+
if (entidadeChamada.constructor === construtos_1.Variavel) {
|
|
5577
5631
|
const entidadeChamadaResolvidaVariavel = entidadeChamada;
|
|
5578
5632
|
if (tipoPrimitiva === undefined) {
|
|
5579
5633
|
// Provavelmente uma chamada a alguma função da biblioteca global.
|
|
@@ -5604,7 +5658,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5604
5658
|
}
|
|
5605
5659
|
return new construtos_1.ArgumentoReferenciaFuncao(entidadeChamada.hashArquivo, entidadeChamada.linha, entidadeChamadaResolvidaVariavel.simbolo);
|
|
5606
5660
|
}
|
|
5607
|
-
if (entidadeChamada.constructor
|
|
5661
|
+
if (entidadeChamada.constructor === construtos_1.AcessoMetodoOuPropriedade) {
|
|
5608
5662
|
return this.resolverEntidadeChamadaAcessoMetodoOuPropriedade(entidadeChamada);
|
|
5609
5663
|
}
|
|
5610
5664
|
return entidadeChamada;
|
|
@@ -5747,13 +5801,13 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5747
5801
|
if (this.verificarSeSimboloAtualEIgualA(tenda_1.default.IGUAL)) {
|
|
5748
5802
|
const igual = this.simbolos[this.atual - 1];
|
|
5749
5803
|
const valor = this.expressao();
|
|
5750
|
-
switch (expressao.constructor
|
|
5751
|
-
case
|
|
5804
|
+
switch (expressao.constructor) {
|
|
5805
|
+
case construtos_1.Variavel:
|
|
5752
5806
|
return new construtos_1.Atribuir(this.hashArquivo, expressao, valor);
|
|
5753
|
-
case
|
|
5807
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
5754
5808
|
const expressaoAcessoMetodoOuPropriedade = expressao;
|
|
5755
5809
|
return new construtos_1.DefinirValor(this.hashArquivo, igual.linha, expressaoAcessoMetodoOuPropriedade.objeto, expressaoAcessoMetodoOuPropriedade.simbolo, valor);
|
|
5756
|
-
case
|
|
5810
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
5757
5811
|
const expressaoAcessoIndiceVariavel = expressao;
|
|
5758
5812
|
return new construtos_1.AtribuicaoPorIndice(this.hashArquivo, expressaoAcessoIndiceVariavel.linha, expressaoAcessoIndiceVariavel.entidadeChamada, expressaoAcessoIndiceVariavel.indice, valor);
|
|
5759
5813
|
}
|
|
@@ -5852,12 +5906,10 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5852
5906
|
// tradicional de Delégua, com variável de controle e passo positivo, incrementado em 1.
|
|
5853
5907
|
const literalOuVariavelInicio = this.adicaoOuSubtracao();
|
|
5854
5908
|
this.blocos -= 1;
|
|
5855
|
-
switch (literalOuVariavelInicio.constructor
|
|
5856
|
-
case
|
|
5909
|
+
switch (literalOuVariavelInicio.constructor) {
|
|
5910
|
+
case construtos_1.Literal:
|
|
5857
5911
|
return this.declaracaoParaTradicional(simboloPara, nomeVariavelIteracao, literalOuVariavelInicio);
|
|
5858
5912
|
// TODO: Terminar
|
|
5859
|
-
case 'Variavel':
|
|
5860
|
-
case 'Vetor':
|
|
5861
5913
|
default:
|
|
5862
5914
|
return this.declaracaoParaCada(simboloPara, nomeVariavelIteracao, literalOuVariavelInicio);
|
|
5863
5915
|
}
|
|
@@ -5998,18 +6050,18 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
5998
6050
|
return this.declaracaoExpressao();
|
|
5999
6051
|
}
|
|
6000
6052
|
logicaComumInferenciaTiposVariaveis(inicializador) {
|
|
6001
|
-
switch (inicializador.constructor
|
|
6002
|
-
case
|
|
6053
|
+
switch (inicializador.constructor) {
|
|
6054
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
6003
6055
|
const entidadeChamadaAcessoIndiceVariavel = inicializador
|
|
6004
6056
|
.entidadeChamada;
|
|
6005
6057
|
return entidadeChamadaAcessoIndiceVariavel.tipo.slice(0, -2);
|
|
6006
|
-
case
|
|
6058
|
+
case construtos_1.Chamada:
|
|
6007
6059
|
const entidadeChamadaChamada = inicializador.entidadeChamada;
|
|
6008
|
-
switch (entidadeChamadaChamada.constructor
|
|
6009
|
-
case
|
|
6060
|
+
switch (entidadeChamadaChamada.constructor) {
|
|
6061
|
+
case construtos_1.AcessoMetodo:
|
|
6010
6062
|
const entidadeChamadaAcessoMetodo = entidadeChamadaChamada;
|
|
6011
6063
|
return entidadeChamadaAcessoMetodo.tipoRetornoMetodo;
|
|
6012
|
-
case
|
|
6064
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
6013
6065
|
// Este caso ocorre quando a variável/constante é do tipo 'qualquer',
|
|
6014
6066
|
// e a chamada normalmente é feita para uma primitiva.
|
|
6015
6067
|
// A inferência, portanto, ocorre pelo uso da primitiva.
|
|
@@ -6018,38 +6070,38 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6018
6070
|
return this.primitivasConhecidas[entidadeChamadaAcessoMetodoOuPropriedade.simbolo.lexema].tipo;
|
|
6019
6071
|
}
|
|
6020
6072
|
throw new erro_avaliador_sintatico_1.ErroAvaliadorSintatico(entidadeChamadaAcessoMetodoOuPropriedade.simbolo, `Primitiva '${entidadeChamadaAcessoMetodoOuPropriedade.simbolo.lexema}' não existe.`);
|
|
6021
|
-
case
|
|
6073
|
+
case construtos_1.AcessoPropriedade:
|
|
6022
6074
|
const entidadeChamadaAcessoPropriedade = entidadeChamadaChamada;
|
|
6023
6075
|
return entidadeChamadaAcessoPropriedade.tipoRetornoPropriedade;
|
|
6024
|
-
case
|
|
6076
|
+
case construtos_1.ArgumentoReferenciaFuncao:
|
|
6025
6077
|
// TODO: Voltar aqui se necessário.
|
|
6026
6078
|
return 'qualquer';
|
|
6027
|
-
case
|
|
6079
|
+
case construtos_1.ReferenciaFuncao:
|
|
6028
6080
|
const entidadeChamadaReferenciaFuncao = entidadeChamadaChamada;
|
|
6029
6081
|
return entidadeChamadaReferenciaFuncao.tipo;
|
|
6030
|
-
case
|
|
6082
|
+
case construtos_1.Variavel:
|
|
6031
6083
|
const entidadeChamadaVariavel = entidadeChamadaChamada;
|
|
6032
6084
|
return entidadeChamadaVariavel.tipo;
|
|
6033
6085
|
}
|
|
6034
6086
|
break;
|
|
6035
|
-
case
|
|
6087
|
+
case construtos_1.FuncaoConstruto:
|
|
6036
6088
|
const funcaoConstruto = inicializador;
|
|
6037
6089
|
return `função<${funcaoConstruto.tipo}>`;
|
|
6038
|
-
case
|
|
6090
|
+
case construtos_1.Leia:
|
|
6039
6091
|
return 'texto';
|
|
6040
|
-
case
|
|
6041
|
-
case
|
|
6042
|
-
case
|
|
6043
|
-
case
|
|
6044
|
-
case
|
|
6045
|
-
case
|
|
6046
|
-
case
|
|
6047
|
-
case
|
|
6048
|
-
case
|
|
6092
|
+
case tuplas_1.Dupla:
|
|
6093
|
+
case tuplas_1.Trio:
|
|
6094
|
+
case tuplas_1.Quarteto:
|
|
6095
|
+
case tuplas_1.Quinteto:
|
|
6096
|
+
case tuplas_1.Sexteto:
|
|
6097
|
+
case tuplas_1.Septeto:
|
|
6098
|
+
case tuplas_1.Octeto:
|
|
6099
|
+
case tuplas_1.Noneto:
|
|
6100
|
+
case tuplas_1.Deceto:
|
|
6049
6101
|
return delegua_1.default.TUPLA;
|
|
6050
|
-
case 'ImportarBiblioteca':
|
|
6102
|
+
/* case 'ImportarBiblioteca':
|
|
6051
6103
|
case 'ModuloDeclaracoes':
|
|
6052
|
-
return 'módulo';
|
|
6104
|
+
return 'módulo'; */
|
|
6053
6105
|
default:
|
|
6054
6106
|
return inicializador.tipo;
|
|
6055
6107
|
}
|
|
@@ -6113,7 +6165,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6113
6165
|
// Se o corpo for uma `Expressao`, corpo é convertido para `Retorna`.
|
|
6114
6166
|
// Tenda trabalha com retornos implícitos.
|
|
6115
6167
|
let corpoResolvido = [];
|
|
6116
|
-
if (corpo.constructor
|
|
6168
|
+
if (corpo.constructor === declaracoes_1.Expressao) {
|
|
6117
6169
|
const expressaoComoRetorna = new declaracoes_1.Retorna(new simbolo_1.Simbolo(tenda_1.default.RETORNA, 'retorna', 'retorna', parenteseEsquerdo.linha, this.hashArquivo), corpo.expressao);
|
|
6118
6170
|
corpoResolvido.push(expressaoComoRetorna);
|
|
6119
6171
|
}
|
|
@@ -6207,7 +6259,7 @@ class AvaliadorSintaticoTenda extends avaliador_sintatico_base_1.AvaliadorSintat
|
|
|
6207
6259
|
}
|
|
6208
6260
|
exports.AvaliadorSintaticoTenda = AvaliadorSintaticoTenda;
|
|
6209
6261
|
|
|
6210
|
-
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../construtos/tuplas":68,"../../declaracoes":96,"../../inferenciador":
|
|
6262
|
+
},{"../../bibliotecas/primitivas-dicionario":20,"../../bibliotecas/primitivas-numero":21,"../../bibliotecas/primitivas-texto":22,"../../bibliotecas/primitivas-vetor":23,"../../construtos":51,"../../construtos/tuplas":68,"../../declaracoes":96,"../../inferenciador":116,"../../informacao-elemento-sintatico":117,"../../lexador/simbolo":183,"../../tipos-de-dados/delegua":185,"../../tipos-de-simbolos/tenda":197,"../avaliador-sintatico-base":1,"./../erro-avaliador-sintatico":12,"./../informacao-escopo":14,"./../pilha-escopos":18,"browser-process-hrtime":371}],10:[function(require,module,exports){
|
|
6211
6263
|
"use strict";
|
|
6212
6264
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6213
6265
|
if (k2 === undefined) k2 = k;
|
|
@@ -6412,7 +6464,7 @@ class MicroAvaliadorSintaticoBase {
|
|
|
6412
6464
|
}
|
|
6413
6465
|
exports.MicroAvaliadorSintaticoBase = MicroAvaliadorSintaticoBase;
|
|
6414
6466
|
|
|
6415
|
-
},{"../construtos":51,"../tipos-de-simbolos/comum":
|
|
6467
|
+
},{"../construtos":51,"../tipos-de-simbolos/comum":189,"./erro-avaliador-sintatico":12}],16:[function(require,module,exports){
|
|
6416
6468
|
"use strict";
|
|
6417
6469
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
6418
6470
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -6634,7 +6686,7 @@ class MicroAvaliadorSintatico extends micro_avaliador_sintatico_base_1.MicroAval
|
|
|
6634
6686
|
}
|
|
6635
6687
|
exports.MicroAvaliadorSintatico = MicroAvaliadorSintatico;
|
|
6636
6688
|
|
|
6637
|
-
},{"../construtos":51,"../tipos-de-simbolos/microgramaticas/delegua":
|
|
6689
|
+
},{"../construtos":51,"../tipos-de-simbolos/microgramaticas/delegua":193,"./micro-avaliador-sintatico-base":15}],17:[function(require,module,exports){
|
|
6638
6690
|
"use strict";
|
|
6639
6691
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6640
6692
|
exports.MontaoTipos = void 0;
|
|
@@ -6685,7 +6737,7 @@ class MontaoTipos {
|
|
|
6685
6737
|
}
|
|
6686
6738
|
exports.MontaoTipos = MontaoTipos;
|
|
6687
6739
|
|
|
6688
|
-
},{"../geracao-identificadores":
|
|
6740
|
+
},{"../geracao-identificadores":114,"./erro-avaliador-sintatico":12}],18:[function(require,module,exports){
|
|
6689
6741
|
"use strict";
|
|
6690
6742
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6691
6743
|
exports.PilhaEscopos = void 0;
|
|
@@ -6769,6 +6821,7 @@ exports.encontrarUltimoIndice = encontrarUltimoIndice;
|
|
|
6769
6821
|
exports.filtrarPor = filtrarPor;
|
|
6770
6822
|
exports.incluido = incluido;
|
|
6771
6823
|
exports.inteiro = inteiro;
|
|
6824
|
+
exports.intervalo = intervalo;
|
|
6772
6825
|
exports.mapear = mapear;
|
|
6773
6826
|
exports.numero = numero;
|
|
6774
6827
|
exports.ordenar = ordenar;
|
|
@@ -6856,7 +6909,7 @@ async function algum(interpretador, vetor, funcaoPesquisa) {
|
|
|
6856
6909
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
6857
6910
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
6858
6911
|
}
|
|
6859
|
-
if (valorFuncaoPesquisa.constructor
|
|
6912
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
6860
6913
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
6861
6914
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
6862
6915
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7093,7 +7146,7 @@ async function encontrar(interpretador, vetor, funcaoPesquisa) {
|
|
|
7093
7146
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7094
7147
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7095
7148
|
}
|
|
7096
|
-
if (valorFuncaoPesquisa.constructor
|
|
7149
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7097
7150
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7098
7151
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7099
7152
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7125,7 +7178,7 @@ async function encontrarIndice(interpretador, vetor, funcaoPesquisa) {
|
|
|
7125
7178
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7126
7179
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7127
7180
|
}
|
|
7128
|
-
if (valorFuncaoPesquisa.constructor
|
|
7181
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7129
7182
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7130
7183
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7131
7184
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7157,7 +7210,7 @@ async function encontrarUltimo(interpretador, vetor, funcaoPesquisa) {
|
|
|
7157
7210
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7158
7211
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7159
7212
|
}
|
|
7160
|
-
if (valorFuncaoPesquisa.constructor
|
|
7213
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7161
7214
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7162
7215
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7163
7216
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7188,7 +7241,7 @@ async function encontrarUltimoIndice(interpretador, vetor, funcaoPesquisa) {
|
|
|
7188
7241
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7189
7242
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7190
7243
|
}
|
|
7191
|
-
if (valorFuncaoPesquisa.constructor
|
|
7244
|
+
if (valorFuncaoPesquisa.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7192
7245
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7193
7246
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7194
7247
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7224,8 +7277,7 @@ async function filtrarPor(interpretador, vetor, funcaoFiltragem) {
|
|
|
7224
7277
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7225
7278
|
}, 'Parâmetro inválido. O primeiro parâmetro da função filtrarPor() deve ser um vetor.'));
|
|
7226
7279
|
}
|
|
7227
|
-
|
|
7228
|
-
if (construtorResolvido !== 'DeleguaFuncao') {
|
|
7280
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7229
7281
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7230
7282
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7231
7283
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7299,6 +7351,29 @@ async function inteiro(interpretador, valorParaConverter) {
|
|
|
7299
7351
|
const resultadoValidacao = validacaoComumNumeros(interpretador, valor);
|
|
7300
7352
|
return resultadoValidacao || Promise.resolve(parseInt(valor));
|
|
7301
7353
|
}
|
|
7354
|
+
/**
|
|
7355
|
+
* Cria um vetor com números inteiros no intervalo especificado.
|
|
7356
|
+
* O valor inicial é inclusivo e o valor final é exclusivo.
|
|
7357
|
+
* @param {InterpretadorInterface} interpretador A instância do interpretador.
|
|
7358
|
+
* @param {VariavelInterface | number} valorInicial O valor inicial (inclusivo).
|
|
7359
|
+
* @param {VariavelInterface | number} valorFinal O valor final (exclusivo).
|
|
7360
|
+
* @returns {Promise<number[]>} Um vetor com os números no intervalo.
|
|
7361
|
+
*/
|
|
7362
|
+
async function intervalo(interpretador, valorInicial, valorFinal) {
|
|
7363
|
+
const inicio = interpretador.resolverValor(valorInicial);
|
|
7364
|
+
const fim = interpretador.resolverValor(valorFinal);
|
|
7365
|
+
if (typeof inicio !== 'number' || typeof fim !== 'number') {
|
|
7366
|
+
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7367
|
+
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7368
|
+
linha: interpretador.linhaDeclaracaoAtual,
|
|
7369
|
+
}, 'Os dois parâmetros devem ser do tipo número.'));
|
|
7370
|
+
}
|
|
7371
|
+
const resultado = [];
|
|
7372
|
+
for (let i = inicio; i < fim; i++) {
|
|
7373
|
+
resultado.push(i);
|
|
7374
|
+
}
|
|
7375
|
+
return Promise.resolve(resultado);
|
|
7376
|
+
}
|
|
7302
7377
|
/**
|
|
7303
7378
|
* Dado um vetor e uma função de mapeamento, executa a função de mapeamento
|
|
7304
7379
|
* passando como argumento cada elemento do vetor.
|
|
@@ -7323,8 +7398,7 @@ async function mapear(interpretador, vetor, funcaoMapeamento) {
|
|
|
7323
7398
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7324
7399
|
}, 'Parâmetro inválido. O primeiro parâmetro da função mapear() deve ser um vetor.'));
|
|
7325
7400
|
}
|
|
7326
|
-
|
|
7327
|
-
if (nomeConstrutorFuncaoMapeamento !== 'DeleguaFuncao') {
|
|
7401
|
+
if (valorFuncaoMapeamento.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7328
7402
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7329
7403
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7330
7404
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7418,7 +7492,7 @@ async function paraCada(interpretador, vetor, funcaoFiltragem) {
|
|
|
7418
7492
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7419
7493
|
}, 'Parâmetro inválido. O primeiro parâmetro da função paraCada() deve ser um vetor.'));
|
|
7420
7494
|
}
|
|
7421
|
-
if (valorFuncaoFiltragem.constructor
|
|
7495
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7422
7496
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7423
7497
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7424
7498
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7451,7 +7525,7 @@ async function primeiroEmCondicao(interpretador, vetor, funcaoFiltragem) {
|
|
|
7451
7525
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7452
7526
|
}, 'Parâmetro inválido. O primeiro parâmetro da função primeiroEmCondicao() deve ser um vetor.'));
|
|
7453
7527
|
}
|
|
7454
|
-
if (valorFuncaoFiltragem.constructor
|
|
7528
|
+
if (valorFuncaoFiltragem.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7455
7529
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7456
7530
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7457
7531
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7505,7 +7579,7 @@ async function reduzir(interpretador, vetor, funcaoReducao, valorInicial = null)
|
|
|
7505
7579
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7506
7580
|
}, 'Parâmetro inválido. O primeiro parâmetro da função deve ser um vetor.'));
|
|
7507
7581
|
}
|
|
7508
|
-
if (valorFuncaoReducao.constructor
|
|
7582
|
+
if (valorFuncaoReducao.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7509
7583
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7510
7584
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7511
7585
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7592,7 +7666,7 @@ async function todosEmCondicao(interpretador, vetor, funcaoCondicional) {
|
|
|
7592
7666
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
7593
7667
|
}, 'Parâmetro inválido. O primeiro parâmetro da função todosEmCondicao() deve ser um vetor.'));
|
|
7594
7668
|
}
|
|
7595
|
-
if (valorFuncaoCondicional.constructor
|
|
7669
|
+
if (valorFuncaoCondicional.constructor !== estruturas_1.DeleguaFuncao) {
|
|
7596
7670
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao({
|
|
7597
7671
|
hashArquivo: interpretador.hashArquivoDeclaracaoAtual,
|
|
7598
7672
|
linha: interpretador.linhaDeclaracaoAtual,
|
|
@@ -7649,7 +7723,7 @@ async function tupla(interpretador, vetor) {
|
|
|
7649
7723
|
}
|
|
7650
7724
|
}
|
|
7651
7725
|
|
|
7652
|
-
},{"../construtos":51,"../excecoes":
|
|
7726
|
+
},{"../construtos":51,"../excecoes":110,"../inferenciador":116,"../interpretador/estruturas":151,"../interpretador/estruturas/descritor-tipo-classe":149,"../interpretador/estruturas/funcao-padrao":150,"../interpretador/estruturas/objeto-delegua-classe":154,"../quebras":184}],20:[function(require,module,exports){
|
|
7653
7727
|
"use strict";
|
|
7654
7728
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7655
7729
|
const construtos_1 = require("../construtos");
|
|
@@ -7731,7 +7805,7 @@ exports.default = {
|
|
|
7731
7805
|
}
|
|
7732
7806
|
};
|
|
7733
7807
|
|
|
7734
|
-
},{"../construtos":51,"../informacao-elemento-sintatico":
|
|
7808
|
+
},{"../construtos":51,"../informacao-elemento-sintatico":117}],21:[function(require,module,exports){
|
|
7735
7809
|
"use strict";
|
|
7736
7810
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7737
7811
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
@@ -7816,7 +7890,7 @@ exports.default = {
|
|
|
7816
7890
|
},
|
|
7817
7891
|
};
|
|
7818
7892
|
|
|
7819
|
-
},{"../informacao-elemento-sintatico":
|
|
7893
|
+
},{"../informacao-elemento-sintatico":117}],22:[function(require,module,exports){
|
|
7820
7894
|
"use strict";
|
|
7821
7895
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7822
7896
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
@@ -8088,7 +8162,7 @@ exports.default = {
|
|
|
8088
8162
|
},
|
|
8089
8163
|
};
|
|
8090
8164
|
|
|
8091
|
-
},{"../informacao-elemento-sintatico":
|
|
8165
|
+
},{"../informacao-elemento-sintatico":117}],23:[function(require,module,exports){
|
|
8092
8166
|
"use strict";
|
|
8093
8167
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8094
8168
|
const informacao_elemento_sintatico_1 = require("../informacao-elemento-sintatico");
|
|
@@ -8463,7 +8537,7 @@ exports.default = {
|
|
|
8463
8537
|
},
|
|
8464
8538
|
};
|
|
8465
8539
|
|
|
8466
|
-
},{"../informacao-elemento-sintatico":
|
|
8540
|
+
},{"../informacao-elemento-sintatico":117}],24:[function(require,module,exports){
|
|
8467
8541
|
"use strict";
|
|
8468
8542
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8469
8543
|
exports.AcessoElementoMatriz = void 0;
|
|
@@ -8849,7 +8923,7 @@ class Chamada {
|
|
|
8849
8923
|
}
|
|
8850
8924
|
exports.Chamada = Chamada;
|
|
8851
8925
|
|
|
8852
|
-
},{"../geracao-identificadores":
|
|
8926
|
+
},{"../geracao-identificadores":114}],36:[function(require,module,exports){
|
|
8853
8927
|
"use strict";
|
|
8854
8928
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8855
8929
|
exports.ComentarioComoConstruto = void 0;
|
|
@@ -9175,6 +9249,7 @@ class FuncaoConstruto {
|
|
|
9175
9249
|
this.corpo = corpo;
|
|
9176
9250
|
this.tipo = tipoRetorno;
|
|
9177
9251
|
this.tipoExplicito = tipoExplicito || false;
|
|
9252
|
+
this.documentacao = documentacao;
|
|
9178
9253
|
}
|
|
9179
9254
|
async aceitar(visitante) {
|
|
9180
9255
|
return Promise.resolve(visitante.visitarExpressaoFuncaoConstruto(this));
|
|
@@ -9283,10 +9358,10 @@ __exportStar(require("./vetor"), exports);
|
|
|
9283
9358
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9284
9359
|
exports.Isto = void 0;
|
|
9285
9360
|
class Isto {
|
|
9286
|
-
constructor(hashArquivo, linha,
|
|
9361
|
+
constructor(hashArquivo, linha, simboloChave) {
|
|
9287
9362
|
this.linha = linha;
|
|
9288
9363
|
this.hashArquivo = hashArquivo;
|
|
9289
|
-
this.
|
|
9364
|
+
this.simboloChave = simboloChave;
|
|
9290
9365
|
}
|
|
9291
9366
|
async aceitar(visitante) {
|
|
9292
9367
|
return Promise.resolve(visitante.visitarExpressaoIsto(this));
|
|
@@ -9329,7 +9404,7 @@ class Leia {
|
|
|
9329
9404
|
}
|
|
9330
9405
|
exports.Leia = Leia;
|
|
9331
9406
|
|
|
9332
|
-
},{"../geracao-identificadores":
|
|
9407
|
+
},{"../geracao-identificadores":114}],54:[function(require,module,exports){
|
|
9333
9408
|
"use strict";
|
|
9334
9409
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9335
9410
|
exports.ListaCompreensao = void 0;
|
|
@@ -10439,7 +10514,7 @@ class FuncaoDeclaracao extends declaracao_1.Declaracao {
|
|
|
10439
10514
|
}
|
|
10440
10515
|
exports.FuncaoDeclaracao = FuncaoDeclaracao;
|
|
10441
10516
|
|
|
10442
|
-
},{"../geracao-identificadores":
|
|
10517
|
+
},{"../geracao-identificadores":114,"./declaracao":86}],95:[function(require,module,exports){
|
|
10443
10518
|
"use strict";
|
|
10444
10519
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10445
10520
|
exports.Importar = void 0;
|
|
@@ -10509,10 +10584,11 @@ __exportStar(require("./se"), exports);
|
|
|
10509
10584
|
__exportStar(require("./sustar"), exports);
|
|
10510
10585
|
__exportStar(require("./tendo-como"), exports);
|
|
10511
10586
|
__exportStar(require("./tente"), exports);
|
|
10587
|
+
__exportStar(require("./texto-documentacao"), exports);
|
|
10512
10588
|
__exportStar(require("./var"), exports);
|
|
10513
10589
|
__exportStar(require("./var-multiplo"), exports);
|
|
10514
10590
|
|
|
10515
|
-
},{"./bloco":79,"./cabecalho-programa":80,"./classe":81,"./comentario":82,"./const":84,"./const-multiplo":83,"./continua":85,"./declaracao":86,"./enquanto":87,"./escolha":88,"./escreva":90,"./escreva-mesma-linha":89,"./expressao":91,"./falhar":92,"./fazer":93,"./funcao":94,"./importar":95,"./inicio-algoritmo":97,"./para":99,"./para-cada":98,"./propriedade-classe":100,"./retorna":101,"./se":102,"./sustar":103,"./tendo-como":104,"./tente":105,"./var":
|
|
10591
|
+
},{"./bloco":79,"./cabecalho-programa":80,"./classe":81,"./comentario":82,"./const":84,"./const-multiplo":83,"./continua":85,"./declaracao":86,"./enquanto":87,"./escolha":88,"./escreva":90,"./escreva-mesma-linha":89,"./expressao":91,"./falhar":92,"./fazer":93,"./funcao":94,"./importar":95,"./inicio-algoritmo":97,"./para":99,"./para-cada":98,"./propriedade-classe":100,"./retorna":101,"./se":102,"./sustar":103,"./tendo-como":104,"./tente":105,"./texto-documentacao":106,"./var":108,"./var-multiplo":107}],97:[function(require,module,exports){
|
|
10516
10592
|
"use strict";
|
|
10517
10593
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10518
10594
|
exports.InicioAlgoritmo = void 0;
|
|
@@ -10736,6 +10812,28 @@ exports.Tente = Tente;
|
|
|
10736
10812
|
},{"./declaracao":86}],106:[function(require,module,exports){
|
|
10737
10813
|
"use strict";
|
|
10738
10814
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10815
|
+
exports.TextoDocumentacao = void 0;
|
|
10816
|
+
const declaracao_1 = require("./declaracao");
|
|
10817
|
+
/**
|
|
10818
|
+
* Texto de documentação.
|
|
10819
|
+
*/
|
|
10820
|
+
class TextoDocumentacao extends declaracao_1.Declaracao {
|
|
10821
|
+
constructor(hashArquivo, linha, conteudo) {
|
|
10822
|
+
super(linha, hashArquivo);
|
|
10823
|
+
this.conteudo = conteudo;
|
|
10824
|
+
}
|
|
10825
|
+
async aceitar(visitante) {
|
|
10826
|
+
return await visitante.visitarDeclaracaoTextoDocumentacao(this);
|
|
10827
|
+
}
|
|
10828
|
+
paraTexto() {
|
|
10829
|
+
return `<texto-documentação conteúdo=${this.conteudo} />`;
|
|
10830
|
+
}
|
|
10831
|
+
}
|
|
10832
|
+
exports.TextoDocumentacao = TextoDocumentacao;
|
|
10833
|
+
|
|
10834
|
+
},{"./declaracao":86}],107:[function(require,module,exports){
|
|
10835
|
+
"use strict";
|
|
10836
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10739
10837
|
exports.VarMultiplo = void 0;
|
|
10740
10838
|
const declaracao_1 = require("./declaracao");
|
|
10741
10839
|
/**
|
|
@@ -10759,7 +10857,7 @@ class VarMultiplo extends declaracao_1.Declaracao {
|
|
|
10759
10857
|
}
|
|
10760
10858
|
exports.VarMultiplo = VarMultiplo;
|
|
10761
10859
|
|
|
10762
|
-
},{"./declaracao":86}],
|
|
10860
|
+
},{"./declaracao":86}],108:[function(require,module,exports){
|
|
10763
10861
|
"use strict";
|
|
10764
10862
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10765
10863
|
exports.Var = void 0;
|
|
@@ -10791,7 +10889,7 @@ class Var extends declaracao_1.Declaracao {
|
|
|
10791
10889
|
}
|
|
10792
10890
|
exports.Var = Var;
|
|
10793
10891
|
|
|
10794
|
-
},{"./declaracao":86}],
|
|
10892
|
+
},{"./declaracao":86}],109:[function(require,module,exports){
|
|
10795
10893
|
"use strict";
|
|
10796
10894
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10797
10895
|
exports.ErroEmTempoDeExecucao = void 0;
|
|
@@ -10806,7 +10904,7 @@ class ErroEmTempoDeExecucao extends Error {
|
|
|
10806
10904
|
}
|
|
10807
10905
|
exports.ErroEmTempoDeExecucao = ErroEmTempoDeExecucao;
|
|
10808
10906
|
|
|
10809
|
-
},{}],
|
|
10907
|
+
},{}],110:[function(require,module,exports){
|
|
10810
10908
|
"use strict";
|
|
10811
10909
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
10812
10910
|
if (k2 === undefined) k2 = k;
|
|
@@ -10825,7 +10923,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10825
10923
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10826
10924
|
__exportStar(require("./erro-em-tempo-de-execucao"), exports);
|
|
10827
10925
|
|
|
10828
|
-
},{"./erro-em-tempo-de-execucao":
|
|
10926
|
+
},{"./erro-em-tempo-de-execucao":109}],111:[function(require,module,exports){
|
|
10829
10927
|
"use strict";
|
|
10830
10928
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
10831
10929
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -10848,6 +10946,9 @@ class FormatadorDelegua {
|
|
|
10848
10946
|
this.devePularLinha = true;
|
|
10849
10947
|
this.deveIndentar = true;
|
|
10850
10948
|
}
|
|
10949
|
+
visitarDeclaracaoTextoDocumentacao(declaracao) {
|
|
10950
|
+
throw new Error('Método não implementado.');
|
|
10951
|
+
}
|
|
10851
10952
|
visitarExpressaoSeparador(expressao) {
|
|
10852
10953
|
throw new Error('Método não implementado.');
|
|
10853
10954
|
}
|
|
@@ -11356,7 +11457,7 @@ class FormatadorDelegua {
|
|
|
11356
11457
|
this.codigoFormatado += `${' '.repeat(this.indentacaoAtual)}retorna`;
|
|
11357
11458
|
if (declaracao.valor) {
|
|
11358
11459
|
this.codigoFormatado += ` `;
|
|
11359
|
-
if (declaracao.valor.constructor
|
|
11460
|
+
if (declaracao.valor.constructor === construtos_1.FuncaoConstruto) {
|
|
11360
11461
|
this.codigoFormatado += `função`;
|
|
11361
11462
|
}
|
|
11362
11463
|
this.formatarDeclaracaoOuConstruto(declaracao.valor);
|
|
@@ -11566,243 +11667,406 @@ class FormatadorDelegua {
|
|
|
11566
11667
|
}
|
|
11567
11668
|
exports.FormatadorDelegua = FormatadorDelegua;
|
|
11568
11669
|
|
|
11569
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":
|
|
11670
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],112:[function(require,module,exports){
|
|
11570
11671
|
"use strict";
|
|
11672
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11673
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
11674
|
+
};
|
|
11571
11675
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11572
11676
|
exports.FormatadorPitugues = void 0;
|
|
11677
|
+
const construtos_1 = require("../construtos");
|
|
11678
|
+
const declaracoes_1 = require("../declaracoes");
|
|
11679
|
+
const pitugues_1 = __importDefault(require("../tipos-de-simbolos/pitugues"));
|
|
11573
11680
|
class FormatadorPitugues {
|
|
11574
|
-
|
|
11575
|
-
|
|
11576
|
-
|
|
11577
|
-
|
|
11578
|
-
|
|
11579
|
-
|
|
11580
|
-
|
|
11581
|
-
|
|
11582
|
-
|
|
11583
|
-
|
|
11584
|
-
|
|
11585
|
-
}
|
|
11586
|
-
|
|
11587
|
-
|
|
11588
|
-
|
|
11589
|
-
|
|
11590
|
-
|
|
11591
|
-
|
|
11592
|
-
|
|
11593
|
-
}
|
|
11594
|
-
|
|
11595
|
-
|
|
11596
|
-
|
|
11597
|
-
}
|
|
11598
|
-
|
|
11599
|
-
|
|
11600
|
-
|
|
11601
|
-
}
|
|
11602
|
-
|
|
11603
|
-
|
|
11604
|
-
|
|
11605
|
-
}
|
|
11606
|
-
|
|
11607
|
-
|
|
11608
|
-
|
|
11609
|
-
}
|
|
11610
|
-
|
|
11611
|
-
visitarDeclaracaoDeExpressao(declaracao) {
|
|
11612
|
-
|
|
11613
|
-
|
|
11614
|
-
|
|
11615
|
-
|
|
11616
|
-
|
|
11617
|
-
|
|
11618
|
-
|
|
11619
|
-
|
|
11620
|
-
|
|
11621
|
-
|
|
11622
|
-
|
|
11623
|
-
|
|
11624
|
-
|
|
11625
|
-
|
|
11626
|
-
|
|
11627
|
-
|
|
11628
|
-
|
|
11629
|
-
|
|
11630
|
-
|
|
11631
|
-
|
|
11632
|
-
|
|
11633
|
-
|
|
11634
|
-
|
|
11635
|
-
|
|
11636
|
-
|
|
11637
|
-
|
|
11638
|
-
|
|
11639
|
-
|
|
11640
|
-
|
|
11641
|
-
|
|
11642
|
-
|
|
11643
|
-
|
|
11644
|
-
|
|
11645
|
-
|
|
11646
|
-
|
|
11647
|
-
|
|
11648
|
-
|
|
11649
|
-
}
|
|
11650
|
-
|
|
11651
|
-
|
|
11652
|
-
|
|
11653
|
-
|
|
11654
|
-
|
|
11655
|
-
|
|
11656
|
-
|
|
11657
|
-
|
|
11658
|
-
|
|
11659
|
-
|
|
11660
|
-
|
|
11661
|
-
|
|
11662
|
-
|
|
11663
|
-
|
|
11664
|
-
|
|
11665
|
-
|
|
11666
|
-
|
|
11667
|
-
|
|
11668
|
-
|
|
11669
|
-
}
|
|
11670
|
-
|
|
11671
|
-
|
|
11672
|
-
|
|
11673
|
-
|
|
11674
|
-
|
|
11675
|
-
|
|
11676
|
-
|
|
11677
|
-
|
|
11678
|
-
|
|
11679
|
-
visitarExpressaoAcessoIndiceVariavel(expressao) {
|
|
11680
|
-
throw new Error('Método não implementado.');
|
|
11681
|
-
}
|
|
11682
|
-
/* istanbul ignore next */
|
|
11683
|
-
visitarExpressaoAcessoElementoMatriz(expressao) {
|
|
11684
|
-
throw new Error('Método não implementado.');
|
|
11685
|
-
}
|
|
11686
|
-
/* istanbul ignore next */
|
|
11687
|
-
visitarExpressaoAcessoMetodo(expressao) {
|
|
11688
|
-
throw new Error('Método não implementado.');
|
|
11689
|
-
}
|
|
11690
|
-
/* istanbul ignore next */
|
|
11691
|
-
visitarExpressaoAcessoMetodoOuPropriedade(expressao) {
|
|
11692
|
-
throw new Error('Método não implementado.');
|
|
11693
|
-
}
|
|
11694
|
-
/* istanbul ignore next */
|
|
11695
|
-
visitarExpressaoAcessoPropriedade(expressao) {
|
|
11696
|
-
throw new Error('Método não implementado.');
|
|
11697
|
-
}
|
|
11698
|
-
/* istanbul ignore next */
|
|
11699
|
-
visitarExpressaoAgrupamento(expressao) {
|
|
11700
|
-
throw new Error('Método não implementado.');
|
|
11701
|
-
}
|
|
11702
|
-
/* istanbul ignore next */
|
|
11703
|
-
visitarExpressaoAtribuicaoPorIndice(expressao) {
|
|
11704
|
-
throw new Error('Método não implementado.');
|
|
11705
|
-
}
|
|
11706
|
-
/* istanbul ignore next */
|
|
11707
|
-
visitarExpressaoAtribuicaoPorIndicesMatriz(expressao) {
|
|
11708
|
-
throw new Error('Método não implementado.');
|
|
11709
|
-
}
|
|
11710
|
-
/* istanbul ignore next */
|
|
11711
|
-
visitarExpressaoBinaria(expressao) {
|
|
11712
|
-
throw new Error('Método não implementado.');
|
|
11713
|
-
}
|
|
11714
|
-
/* istanbul ignore next */
|
|
11715
|
-
visitarExpressaoBloco(declaracao) {
|
|
11716
|
-
throw new Error('Método não implementado.');
|
|
11717
|
-
}
|
|
11718
|
-
/* istanbul ignore next */
|
|
11719
|
-
visitarExpressaoContinua(declaracao) {
|
|
11720
|
-
throw new Error('Método não implementado.');
|
|
11721
|
-
}
|
|
11722
|
-
/* istanbul ignore next */
|
|
11723
|
-
visitarExpressaoDeChamada(expressao) {
|
|
11724
|
-
throw new Error('Método não implementado.');
|
|
11725
|
-
}
|
|
11726
|
-
/* istanbul ignore next */
|
|
11727
|
-
visitarExpressaoDefinirValor(expressao) {
|
|
11728
|
-
throw new Error('Método não implementado.');
|
|
11729
|
-
}
|
|
11730
|
-
/* istanbul ignore next */
|
|
11731
|
-
visitarExpressaoFuncaoConstruto(expressao) {
|
|
11732
|
-
throw new Error('Método não implementado.');
|
|
11733
|
-
}
|
|
11734
|
-
/* istanbul ignore next */
|
|
11735
|
-
visitarExpressaoDeVariavel(expressao) {
|
|
11736
|
-
throw new Error('Método não implementado.');
|
|
11681
|
+
constructor() {
|
|
11682
|
+
this.nívelIndentação = 0;
|
|
11683
|
+
this.tamanhoIndentação = 4;
|
|
11684
|
+
this.códigoFormatado = '';
|
|
11685
|
+
this.quebraLinha = '\n';
|
|
11686
|
+
}
|
|
11687
|
+
indentar() {
|
|
11688
|
+
return ' '.repeat(this.nívelIndentação);
|
|
11689
|
+
}
|
|
11690
|
+
adicionarLinha(texto = '') {
|
|
11691
|
+
this.códigoFormatado += this.indentar() + texto + this.quebraLinha;
|
|
11692
|
+
}
|
|
11693
|
+
aumentarIndentação() {
|
|
11694
|
+
this.nívelIndentação += this.tamanhoIndentação;
|
|
11695
|
+
}
|
|
11696
|
+
diminuirIndentação() {
|
|
11697
|
+
this.nívelIndentação -= this.tamanhoIndentação;
|
|
11698
|
+
}
|
|
11699
|
+
// Métodos obrigatórios da interface, não usados no Pituguês.
|
|
11700
|
+
visitarDeclaracaoCabecalhoPrograma() { return Promise.resolve(); }
|
|
11701
|
+
visitarDeclaracaoConstMultiplo() { return Promise.resolve(); }
|
|
11702
|
+
visitarDeclaracaoEscrevaMesmaLinha() { return Promise.resolve(); }
|
|
11703
|
+
visitarDeclaracaoInicioAlgoritmo() { return Promise.resolve(); }
|
|
11704
|
+
visitarDeclaracaoTendoComo() { return Promise.resolve(); }
|
|
11705
|
+
visitarDeclaracaoVarMultiplo() { return Promise.resolve(); }
|
|
11706
|
+
visitarExpressaoAcessoElementoMatriz() { return Promise.resolve(); }
|
|
11707
|
+
visitarExpressaoAcessoMetodo() { return Promise.resolve(); }
|
|
11708
|
+
visitarExpressaoAcessoPropriedade() { return Promise.resolve(); }
|
|
11709
|
+
visitarExpressaoArgumentoReferenciaFuncao() { return Promise.resolve(); }
|
|
11710
|
+
visitarExpressaoAtribuicaoPorIndicesMatriz() { return Promise.resolve(); }
|
|
11711
|
+
visitarExpressaoComentario() { return Promise.resolve(); }
|
|
11712
|
+
visitarExpressaoExpressaoRegular() { return Promise.resolve(); }
|
|
11713
|
+
visitarExpressaoFimPara() { return Promise.resolve(); }
|
|
11714
|
+
visitarExpressaoFormatacaoEscrita() { return Promise.resolve(); }
|
|
11715
|
+
visitarExpressaoReferenciaFuncao() { return Promise.resolve(); }
|
|
11716
|
+
visitarExpressaoSeparador() { return Promise.resolve(); }
|
|
11717
|
+
visitarExpressaoTupla() { return Promise.resolve(); }
|
|
11718
|
+
async visitarDeclaracaoDeExpressao(declaracao) {
|
|
11719
|
+
this.códigoFormatado += this.indentar();
|
|
11720
|
+
this.códigoFormatado += await declaracao.expressao.aceitar(this) + `\n`;
|
|
11721
|
+
}
|
|
11722
|
+
async visitarDeclaracaoClasse(declaração) {
|
|
11723
|
+
this.adicionarLinha(`classe ${declaração.simbolo.lexema}:`);
|
|
11724
|
+
this.aumentarIndentação();
|
|
11725
|
+
// Atributos
|
|
11726
|
+
for (const atributo of declaração.propriedades || []) {
|
|
11727
|
+
const tipo = atributo.tipo ? `: ${atributo.tipo}` : '';
|
|
11728
|
+
this.adicionarLinha(`${atributo.nome.lexema}${tipo}`);
|
|
11729
|
+
}
|
|
11730
|
+
// Métodos
|
|
11731
|
+
for (const método of declaração.metodos || []) {
|
|
11732
|
+
const nome = método.simbolo.lexema;
|
|
11733
|
+
const éConstrutor = nome === 'construtor';
|
|
11734
|
+
const parâmetros = método.funcao.parametros;
|
|
11735
|
+
this.códigoFormatado += this.indentar();
|
|
11736
|
+
this.códigoFormatado += `${éConstrutor ? 'construtor' : `função ${nome}`}(`;
|
|
11737
|
+
if (parâmetros.length > 0) {
|
|
11738
|
+
for (let i = 0; i < parâmetros.length; i++) {
|
|
11739
|
+
const p = parâmetros[i];
|
|
11740
|
+
const tipo = p.tipoDado ? `: ${p.tipoDado}` : '';
|
|
11741
|
+
this.códigoFormatado += `${p.nome.lexema}${tipo}`;
|
|
11742
|
+
this.códigoFormatado += ', ';
|
|
11743
|
+
}
|
|
11744
|
+
if (parâmetros.length > 1) {
|
|
11745
|
+
this.códigoFormatado = this.códigoFormatado.slice(0, -2);
|
|
11746
|
+
}
|
|
11747
|
+
}
|
|
11748
|
+
this.códigoFormatado += '):\n';
|
|
11749
|
+
this.aumentarIndentação();
|
|
11750
|
+
for (const instrução of método.funcao.corpo) {
|
|
11751
|
+
await instrução.aceitar(this);
|
|
11752
|
+
}
|
|
11753
|
+
this.diminuirIndentação();
|
|
11754
|
+
}
|
|
11755
|
+
this.diminuirIndentação();
|
|
11756
|
+
}
|
|
11757
|
+
async visitarDeclaracaoDefinicaoFuncao(declaração) {
|
|
11758
|
+
const parâmetros = declaração.funcao.parametros;
|
|
11759
|
+
this.códigoFormatado += this.indentar() + `função ${declaração.simbolo.lexema}(`;
|
|
11760
|
+
for (let i = 0; i < parâmetros.length; i++) {
|
|
11761
|
+
const p = parâmetros[i];
|
|
11762
|
+
const tipo = p.tipoDado ? `: ${p.tipoDado}` : '';
|
|
11763
|
+
this.códigoFormatado += `${p.nome.lexema}${tipo}`;
|
|
11764
|
+
if (i < parâmetros.length - 1)
|
|
11765
|
+
this.códigoFormatado += ', ';
|
|
11766
|
+
}
|
|
11767
|
+
this.códigoFormatado += '):\n';
|
|
11768
|
+
this.aumentarIndentação();
|
|
11769
|
+
for (const instrução of declaração.funcao.corpo) {
|
|
11770
|
+
await instrução.aceitar(this);
|
|
11771
|
+
}
|
|
11772
|
+
this.diminuirIndentação();
|
|
11773
|
+
}
|
|
11774
|
+
visitarDeclaracaoTextoDocumentacao(declaracao) {
|
|
11775
|
+
this.códigoFormatado += `'''${declaracao.conteudo}'''`;
|
|
11776
|
+
}
|
|
11777
|
+
async visitarDeclaracaoVar(declaração) {
|
|
11778
|
+
this.códigoFormatado += this.indentar() + `var ${declaração.simbolo.lexema} = `;
|
|
11779
|
+
if (declaração.inicializador) {
|
|
11780
|
+
this.códigoFormatado += await declaração.inicializador.aceitar(this);
|
|
11781
|
+
}
|
|
11782
|
+
else {
|
|
11783
|
+
this.códigoFormatado += 'nulo';
|
|
11784
|
+
}
|
|
11785
|
+
this.códigoFormatado += `\n`;
|
|
11737
11786
|
}
|
|
11738
|
-
|
|
11739
|
-
|
|
11740
|
-
throw new Error('Método não implementado.');
|
|
11787
|
+
async visitarDeclaracaoConst(declaração) {
|
|
11788
|
+
return Promise.resolve();
|
|
11741
11789
|
}
|
|
11742
|
-
|
|
11743
|
-
|
|
11744
|
-
|
|
11790
|
+
async visitarDeclaracaoSe(declaração) {
|
|
11791
|
+
this.adicionarLinha(`se ${await declaração.condicao.aceitar(this)}:`);
|
|
11792
|
+
this.aumentarIndentação();
|
|
11793
|
+
for (const instrução of declaração.caminhoEntao.declaracoes) {
|
|
11794
|
+
await instrução.aceitar(this);
|
|
11795
|
+
}
|
|
11796
|
+
this.diminuirIndentação();
|
|
11797
|
+
if (declaração.caminhoSenao) {
|
|
11798
|
+
this.adicionarLinha('senão:');
|
|
11799
|
+
this.aumentarIndentação();
|
|
11800
|
+
if (declaração.caminhoSenao instanceof declaracoes_1.Bloco) {
|
|
11801
|
+
for (const instrução of declaração.caminhoSenao.declaracoes) {
|
|
11802
|
+
await instrução.aceitar(this);
|
|
11803
|
+
}
|
|
11804
|
+
}
|
|
11805
|
+
else {
|
|
11806
|
+
await declaração.caminhoSenao.aceitar(this);
|
|
11807
|
+
}
|
|
11808
|
+
this.diminuirIndentação();
|
|
11809
|
+
}
|
|
11745
11810
|
}
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11811
|
+
async visitarDeclaracaoEnquanto(declaração) {
|
|
11812
|
+
this.adicionarLinha(`enquanto ${await declaração.condicao.aceitar(this)}:`);
|
|
11813
|
+
this.aumentarIndentação();
|
|
11814
|
+
for (const instrução of declaração.corpo.declaracoes) {
|
|
11815
|
+
await instrução.aceitar(this);
|
|
11816
|
+
}
|
|
11817
|
+
this.diminuirIndentação();
|
|
11749
11818
|
}
|
|
11750
|
-
|
|
11751
|
-
|
|
11752
|
-
|
|
11819
|
+
async visitarDeclaracaoEscolha(declaração) {
|
|
11820
|
+
var _a, _b;
|
|
11821
|
+
const valor = await declaração.identificadorOuLiteral.aceitar(this);
|
|
11822
|
+
this.adicionarLinha(`escolha ${valor}:`);
|
|
11823
|
+
this.aumentarIndentação();
|
|
11824
|
+
for (const caminho of declaração.caminhos) {
|
|
11825
|
+
for (const condição of caminho.condicoes) {
|
|
11826
|
+
this.adicionarLinha(`caso ${await condição.aceitar(this)}:`);
|
|
11827
|
+
this.aumentarIndentação();
|
|
11828
|
+
for (const instrução of caminho.declaracoes) {
|
|
11829
|
+
await instrução.aceitar(this);
|
|
11830
|
+
}
|
|
11831
|
+
this.diminuirIndentação();
|
|
11832
|
+
}
|
|
11833
|
+
}
|
|
11834
|
+
if ((_b = (_a = declaração.caminhoPadrao) === null || _a === void 0 ? void 0 : _a.declaracoes) === null || _b === void 0 ? void 0 : _b.length) {
|
|
11835
|
+
this.adicionarLinha('padrão:');
|
|
11836
|
+
this.aumentarIndentação();
|
|
11837
|
+
for (const instrução of declaração.caminhoPadrao.declaracoes) {
|
|
11838
|
+
await instrução.aceitar(this);
|
|
11839
|
+
}
|
|
11840
|
+
this.diminuirIndentação();
|
|
11841
|
+
}
|
|
11842
|
+
this.diminuirIndentação();
|
|
11753
11843
|
}
|
|
11754
|
-
|
|
11755
|
-
|
|
11756
|
-
|
|
11844
|
+
async visitarDeclaracaoFazer(declaração) {
|
|
11845
|
+
this.adicionarLinha('fazer:');
|
|
11846
|
+
this.aumentarIndentação();
|
|
11847
|
+
for (const instrução of declaração.caminhoFazer.declaracoes) {
|
|
11848
|
+
await instrução.aceitar(this);
|
|
11849
|
+
}
|
|
11850
|
+
this.diminuirIndentação();
|
|
11851
|
+
this.adicionarLinha(`enquanto ${await declaração.condicaoEnquanto.aceitar(this)}`);
|
|
11757
11852
|
}
|
|
11758
|
-
|
|
11759
|
-
|
|
11760
|
-
|
|
11853
|
+
async visitarDeclaracaoParaCada(declaração) {
|
|
11854
|
+
const variavelIteracao = await declaração.variavelIteracao.aceitar(this);
|
|
11855
|
+
const vetorOuDicionario = await declaração.vetorOuDicionario.aceitar(this);
|
|
11856
|
+
this.adicionarLinha(`para cada ${variavelIteracao} de ${vetorOuDicionario}:`);
|
|
11857
|
+
this.aumentarIndentação();
|
|
11858
|
+
for (const instrução of declaração.corpo.declaracoes) {
|
|
11859
|
+
await instrução.aceitar(this);
|
|
11860
|
+
}
|
|
11861
|
+
this.diminuirIndentação();
|
|
11761
11862
|
}
|
|
11762
|
-
|
|
11763
|
-
|
|
11764
|
-
throw new Error('Método não implementado.');
|
|
11863
|
+
async visitarDeclaracaoPara(declaração) {
|
|
11864
|
+
return Promise.resolve();
|
|
11765
11865
|
}
|
|
11766
|
-
|
|
11767
|
-
|
|
11768
|
-
|
|
11866
|
+
async visitarDeclaracaoTente(declaração) {
|
|
11867
|
+
this.adicionarLinha('tente:');
|
|
11868
|
+
this.aumentarIndentação();
|
|
11869
|
+
for (const instrução of declaração.caminhoTente)
|
|
11870
|
+
await instrução.aceitar(this);
|
|
11871
|
+
this.diminuirIndentação();
|
|
11872
|
+
if (declaração.caminhoPegue) {
|
|
11873
|
+
this.adicionarLinha('pegue como erro:');
|
|
11874
|
+
this.aumentarIndentação();
|
|
11875
|
+
const declaracoes = declaração.caminhoPegue instanceof construtos_1.FuncaoConstruto ? declaração.caminhoPegue.corpo : declaração.caminhoPegue;
|
|
11876
|
+
for (const instrução of declaracoes) {
|
|
11877
|
+
await instrução.aceitar(this);
|
|
11878
|
+
}
|
|
11879
|
+
this.diminuirIndentação();
|
|
11880
|
+
}
|
|
11881
|
+
if (declaração.caminhoFinalmente) {
|
|
11882
|
+
this.adicionarLinha('finalmente:');
|
|
11883
|
+
this.aumentarIndentação();
|
|
11884
|
+
for (const instrução of declaração.caminhoFinalmente)
|
|
11885
|
+
await instrução.aceitar(this);
|
|
11886
|
+
this.diminuirIndentação();
|
|
11887
|
+
}
|
|
11888
|
+
}
|
|
11889
|
+
async visitarDeclaracaoEscreva(declaração) {
|
|
11890
|
+
this.códigoFormatado += this.indentar() + `${declaração.simboloEscreva ? declaração.simboloEscreva.lexema : 'imprima'}(`;
|
|
11891
|
+
for (let i = 0; i < declaração.argumentos.length; i++) {
|
|
11892
|
+
this.códigoFormatado += await declaração.argumentos[i].aceitar(this);
|
|
11893
|
+
if (i < declaração.argumentos.length - 1)
|
|
11894
|
+
this.códigoFormatado += ', ';
|
|
11895
|
+
}
|
|
11896
|
+
this.códigoFormatado += `)${this.quebraLinha}`;
|
|
11897
|
+
}
|
|
11898
|
+
async visitarDeclaracaoImportar(declaração) {
|
|
11899
|
+
const caminho = await declaração.caminho.aceitar(this);
|
|
11900
|
+
this.adicionarLinha(`importar "${caminho.replace(/'/g, '')}"`);
|
|
11901
|
+
}
|
|
11902
|
+
async visitarDeclaracaoComentario(declaração) {
|
|
11903
|
+
this.adicionarLinha(`# ${declaração.conteudo}`);
|
|
11904
|
+
}
|
|
11905
|
+
// ================================================================
|
|
11906
|
+
// Expressões
|
|
11907
|
+
// ================================================================
|
|
11908
|
+
async visitarExpressaoBloco(declaração) {
|
|
11909
|
+
for (const instrução of declaração.declaracoes) {
|
|
11910
|
+
await instrução.aceitar(this);
|
|
11911
|
+
}
|
|
11912
|
+
}
|
|
11913
|
+
async visitarExpressaoRetornar(declaração) {
|
|
11914
|
+
if (declaração.valor) {
|
|
11915
|
+
return `retorna ${await declaração.valor.aceitar(this)}`;
|
|
11916
|
+
}
|
|
11917
|
+
else {
|
|
11918
|
+
return 'retorna';
|
|
11919
|
+
}
|
|
11769
11920
|
}
|
|
11770
|
-
|
|
11771
|
-
|
|
11772
|
-
throw new Error('Método não implementado.');
|
|
11921
|
+
visitarExpressaoContinua() {
|
|
11922
|
+
this.adicionarLinha('continue');
|
|
11773
11923
|
}
|
|
11774
|
-
|
|
11775
|
-
|
|
11776
|
-
throw new Error('Método não implementado.');
|
|
11924
|
+
visitarExpressaoSustar() {
|
|
11925
|
+
this.adicionarLinha('sustar');
|
|
11777
11926
|
}
|
|
11778
|
-
|
|
11779
|
-
|
|
11780
|
-
|
|
11927
|
+
async visitarExpressaoFalhar(expressão) {
|
|
11928
|
+
const mensagem = expressão.explicacao ? await expressão.explicacao.aceitar(this) : '"Erro"';
|
|
11929
|
+
this.adicionarLinha(`levante Erro(${mensagem})`);
|
|
11781
11930
|
}
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
throw new Error('Método não implementado.');
|
|
11931
|
+
async visitarExpressaoDeAtribuicao(expressão) {
|
|
11932
|
+
return `${await expressão.alvo.aceitar(this)} = ${await expressão.valor.aceitar(this)}`;
|
|
11785
11933
|
}
|
|
11786
|
-
|
|
11787
|
-
|
|
11788
|
-
|
|
11934
|
+
async visitarExpressaoBinaria(expressão) {
|
|
11935
|
+
const esquerda = await expressão.esquerda.aceitar(this);
|
|
11936
|
+
const direita = await expressão.direita.aceitar(this);
|
|
11937
|
+
const operador = this.mapearOperador(expressão.operador.tipo);
|
|
11938
|
+
return `${esquerda} ${operador} ${direita}`;
|
|
11789
11939
|
}
|
|
11790
|
-
|
|
11791
|
-
|
|
11792
|
-
|
|
11940
|
+
async visitarExpressaoLogica(expressão) {
|
|
11941
|
+
const esquerda = await expressão.esquerda.aceitar(this);
|
|
11942
|
+
const direita = await expressão.direita.aceitar(this);
|
|
11943
|
+
const operador = expressão.operador.tipo === pitugues_1.default.E ? 'e' : 'ou';
|
|
11944
|
+
return `${esquerda} ${operador} ${direita}`;
|
|
11793
11945
|
}
|
|
11794
|
-
|
|
11795
|
-
|
|
11796
|
-
|
|
11946
|
+
async visitarExpressaoLiteral(expressão) {
|
|
11947
|
+
if (expressão.valor === null)
|
|
11948
|
+
return 'nulo';
|
|
11949
|
+
if (expressão.valor === true)
|
|
11950
|
+
return 'verdadeiro';
|
|
11951
|
+
if (expressão.valor === false)
|
|
11952
|
+
return 'falso';
|
|
11953
|
+
if (typeof expressão.valor === 'string') {
|
|
11954
|
+
return `'${expressão.valor.replace(/'/g, "\\'")}'`;
|
|
11955
|
+
}
|
|
11956
|
+
return String(expressão.valor);
|
|
11957
|
+
}
|
|
11958
|
+
async visitarExpressaoDeVariavel(expressão) {
|
|
11959
|
+
return expressão.simbolo.lexema;
|
|
11960
|
+
}
|
|
11961
|
+
async visitarExpressaoAgrupamento(expressão) {
|
|
11962
|
+
return `(${await expressão.expressao.aceitar(this)})`;
|
|
11963
|
+
}
|
|
11964
|
+
async visitarExpressaoUnaria(expressão) {
|
|
11965
|
+
const operador = expressão.operador.tipo === pitugues_1.default.SUBTRACAO ? '-'
|
|
11966
|
+
: expressão.operador.tipo === pitugues_1.default.NEGACAO ? 'não '
|
|
11967
|
+
: '';
|
|
11968
|
+
const operando = await expressão.operando.aceitar(this);
|
|
11969
|
+
return expressão.incidenciaOperador === 'ANTES'
|
|
11970
|
+
? `${operador}${operando}`
|
|
11971
|
+
: `${operando}${operador}`;
|
|
11972
|
+
}
|
|
11973
|
+
async visitarExpressaoDeChamada(expressão) {
|
|
11974
|
+
const função = await expressão.entidadeChamada.aceitar(this);
|
|
11975
|
+
const argumentos = await Promise.all(expressão.argumentos.map(a => a.aceitar(this)));
|
|
11976
|
+
return `${função}(${argumentos.join(', ')})`;
|
|
11977
|
+
}
|
|
11978
|
+
visitarExpressaoIsto() {
|
|
11979
|
+
return Promise.resolve('isto');
|
|
11980
|
+
}
|
|
11981
|
+
async visitarExpressaoSuper() {
|
|
11982
|
+
return 'super()';
|
|
11983
|
+
}
|
|
11984
|
+
async visitarExpressaoVetor(expressão) {
|
|
11985
|
+
const valores = await Promise.all(expressão.valores.map(v => v.aceitar(this)));
|
|
11986
|
+
return `[${valores.join(', ')}]`;
|
|
11987
|
+
}
|
|
11988
|
+
async visitarExpressaoDicionario(expressão) {
|
|
11989
|
+
const pares = await Promise.all(expressão.chaves.map(async (chave, i) => {
|
|
11990
|
+
const k = await chave.aceitar(this);
|
|
11991
|
+
const v = await expressão.valores[i].aceitar(this);
|
|
11992
|
+
return `${k}: ${v}`;
|
|
11993
|
+
}));
|
|
11994
|
+
return `{${pares.join(', ')}}`;
|
|
11995
|
+
}
|
|
11996
|
+
async visitarExpressaoAcessoIndiceVariavel(expressão) {
|
|
11997
|
+
const entidade = await expressão.entidadeChamada.aceitar(this);
|
|
11998
|
+
const índice = await expressão.indice.aceitar(this);
|
|
11999
|
+
return `${entidade}[${índice}]`;
|
|
12000
|
+
}
|
|
12001
|
+
async visitarExpressaoAtribuicaoPorIndice(expressão) {
|
|
12002
|
+
const objeto = await expressão.objeto.aceitar(this);
|
|
12003
|
+
const índice = await expressão.indice.aceitar(this);
|
|
12004
|
+
const valor = await expressão.valor.aceitar(this);
|
|
12005
|
+
return `${objeto}[${índice}] = ${valor}`;
|
|
12006
|
+
}
|
|
12007
|
+
async visitarExpressaoAcessoMetodoOuPropriedade(expressão) {
|
|
12008
|
+
const objeto = await expressão.objeto.aceitar(this);
|
|
12009
|
+
return `${objeto}.${expressão.simbolo.lexema}`;
|
|
12010
|
+
}
|
|
12011
|
+
async visitarExpressaoDefinirValor(expressão) {
|
|
12012
|
+
const objeto = await expressão.objeto.aceitar(this);
|
|
12013
|
+
const valor = await expressão.valor.aceitar(this);
|
|
12014
|
+
return `${objeto}.${expressão.nome.lexema} = ${valor}`;
|
|
12015
|
+
}
|
|
12016
|
+
async visitarExpressaoFuncaoConstruto(expressão) {
|
|
12017
|
+
const parâmetros = expressão.parametros.map(p => {
|
|
12018
|
+
const tipo = p.tipoDado ? `: ${p.tipoDado}` : '';
|
|
12019
|
+
return p.nome.lexema + tipo;
|
|
12020
|
+
}).join(', ');
|
|
12021
|
+
let funçãoStr = `função(${parâmetros || ''}):\n`;
|
|
12022
|
+
this.aumentarIndentação();
|
|
12023
|
+
for (const instrução of expressão.corpo) {
|
|
12024
|
+
const linha = await instrução.aceitar(this);
|
|
12025
|
+
if (linha) { // Only add if it returns something
|
|
12026
|
+
funçãoStr += this.indentar() + linha;
|
|
12027
|
+
if (!linha.endsWith('\n'))
|
|
12028
|
+
funçãoStr += '\n';
|
|
12029
|
+
}
|
|
12030
|
+
}
|
|
12031
|
+
this.diminuirIndentação();
|
|
12032
|
+
return funçãoStr.trimEnd();
|
|
12033
|
+
}
|
|
12034
|
+
async visitarExpressaoLeia(expressão) {
|
|
12035
|
+
const argumentos = await Promise.all(expressão.argumentos.map(a => a.aceitar(this)));
|
|
12036
|
+
return argumentos.length > 0 ? `input(${argumentos.join(', ')})` : 'input()';
|
|
12037
|
+
}
|
|
12038
|
+
async visitarExpressaoTipoDe(expressão) {
|
|
12039
|
+
const valor = await expressão.valor.aceitar(this);
|
|
12040
|
+
return `type(${valor})`;
|
|
12041
|
+
}
|
|
12042
|
+
mapearOperador(tipo) {
|
|
12043
|
+
const mapa = {
|
|
12044
|
+
[pitugues_1.default.ADICAO]: '+',
|
|
12045
|
+
[pitugues_1.default.SUBTRACAO]: '-',
|
|
12046
|
+
[pitugues_1.default.MULTIPLICACAO]: '*',
|
|
12047
|
+
[pitugues_1.default.DIVISAO]: '/',
|
|
12048
|
+
[pitugues_1.default.MODULO]: '%',
|
|
12049
|
+
[pitugues_1.default.MAIOR]: '>',
|
|
12050
|
+
[pitugues_1.default.MAIOR_IGUAL]: '>=',
|
|
12051
|
+
[pitugues_1.default.MENOR]: '<',
|
|
12052
|
+
[pitugues_1.default.MENOR_IGUAL]: '<=',
|
|
12053
|
+
[pitugues_1.default.IGUAL_IGUAL]: '==',
|
|
12054
|
+
[pitugues_1.default.DIFERENTE]: '!=',
|
|
12055
|
+
};
|
|
12056
|
+
return mapa[tipo] || String(tipo);
|
|
11797
12057
|
}
|
|
11798
|
-
|
|
11799
|
-
|
|
11800
|
-
|
|
12058
|
+
async formatar(declarações) {
|
|
12059
|
+
this.códigoFormatado = '';
|
|
12060
|
+
this.nívelIndentação = 0;
|
|
12061
|
+
for (const declaração of declarações) {
|
|
12062
|
+
await declaração.aceitar(this);
|
|
12063
|
+
}
|
|
12064
|
+
return this.códigoFormatado.trimEnd() + '\n';
|
|
11801
12065
|
}
|
|
11802
12066
|
}
|
|
11803
12067
|
exports.FormatadorPitugues = FormatadorPitugues;
|
|
11804
12068
|
|
|
11805
|
-
},{}],
|
|
12069
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/pitugues":194}],113:[function(require,module,exports){
|
|
11806
12070
|
"use strict";
|
|
11807
12071
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11808
12072
|
if (k2 === undefined) k2 = k;
|
|
@@ -11822,7 +12086,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
11822
12086
|
__exportStar(require("./formatador-delegua"), exports);
|
|
11823
12087
|
__exportStar(require("./formatador-pitugues"), exports);
|
|
11824
12088
|
|
|
11825
|
-
},{"./formatador-delegua":
|
|
12089
|
+
},{"./formatador-delegua":111,"./formatador-pitugues":112}],114:[function(require,module,exports){
|
|
11826
12090
|
"use strict";
|
|
11827
12091
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11828
12092
|
exports.cyrb53 = cyrb53;
|
|
@@ -11866,7 +12130,7 @@ function uuidv4() {
|
|
|
11866
12130
|
});
|
|
11867
12131
|
}
|
|
11868
12132
|
|
|
11869
|
-
},{}],
|
|
12133
|
+
},{}],115:[function(require,module,exports){
|
|
11870
12134
|
"use strict";
|
|
11871
12135
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11872
12136
|
if (k2 === undefined) k2 = k;
|
|
@@ -11893,7 +12157,7 @@ __exportStar(require("./interpretador"), exports);
|
|
|
11893
12157
|
__exportStar(require("./lexador"), exports);
|
|
11894
12158
|
__exportStar(require("./tradutores"), exports);
|
|
11895
12159
|
|
|
11896
|
-
},{"./avaliador-sintatico":13,"./construtos":51,"./declaracoes":96,"./formatadores":
|
|
12160
|
+
},{"./avaliador-sintatico":13,"./construtos":51,"./declaracoes":96,"./formatadores":113,"./geracao-identificadores":114,"./interfaces":123,"./interpretador":157,"./lexador":177,"./tradutores":198}],116:[function(require,module,exports){
|
|
11897
12161
|
"use strict";
|
|
11898
12162
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
11899
12163
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -12020,7 +12284,7 @@ function tipoInferenciaParaTipoDadosElementar(tipoInferencia) {
|
|
|
12020
12284
|
}
|
|
12021
12285
|
}
|
|
12022
12286
|
|
|
12023
|
-
},{"./tipos-de-dados/delegua":
|
|
12287
|
+
},{"./tipos-de-dados/delegua":185,"./tipos-de-dados/primitivos":187,"./tipos-de-simbolos/delegua":190}],117:[function(require,module,exports){
|
|
12024
12288
|
"use strict";
|
|
12025
12289
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12026
12290
|
exports.InformacaoElementoSintatico = void 0;
|
|
@@ -12039,15 +12303,15 @@ class InformacaoElementoSintatico {
|
|
|
12039
12303
|
}
|
|
12040
12304
|
exports.InformacaoElementoSintatico = InformacaoElementoSintatico;
|
|
12041
12305
|
|
|
12042
|
-
},{}],
|
|
12306
|
+
},{}],118:[function(require,module,exports){
|
|
12043
12307
|
"use strict";
|
|
12044
12308
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12045
12309
|
|
|
12046
|
-
},{}],
|
|
12310
|
+
},{}],119:[function(require,module,exports){
|
|
12047
12311
|
"use strict";
|
|
12048
12312
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12049
12313
|
|
|
12050
|
-
},{}],
|
|
12314
|
+
},{}],120:[function(require,module,exports){
|
|
12051
12315
|
"use strict";
|
|
12052
12316
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12053
12317
|
exports.DiagnosticoSeveridade = void 0;
|
|
@@ -12059,7 +12323,7 @@ var DiagnosticoSeveridade;
|
|
|
12059
12323
|
DiagnosticoSeveridade[DiagnosticoSeveridade["SUGESTAO"] = 3] = "SUGESTAO";
|
|
12060
12324
|
})(DiagnosticoSeveridade || (exports.DiagnosticoSeveridade = DiagnosticoSeveridade = {}));
|
|
12061
12325
|
|
|
12062
|
-
},{}],
|
|
12326
|
+
},{}],121:[function(require,module,exports){
|
|
12063
12327
|
"use strict";
|
|
12064
12328
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12065
12329
|
if (k2 === undefined) k2 = k;
|
|
@@ -12078,11 +12342,11 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
12078
12342
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12079
12343
|
__exportStar(require("./diagnostico-analisador-semantico"), exports);
|
|
12080
12344
|
|
|
12081
|
-
},{"./diagnostico-analisador-semantico":
|
|
12345
|
+
},{"./diagnostico-analisador-semantico":120}],122:[function(require,module,exports){
|
|
12082
12346
|
"use strict";
|
|
12083
12347
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12084
12348
|
|
|
12085
|
-
},{}],
|
|
12349
|
+
},{}],123:[function(require,module,exports){
|
|
12086
12350
|
"use strict";
|
|
12087
12351
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12088
12352
|
if (k2 === undefined) k2 = k;
|
|
@@ -12119,11 +12383,7 @@ __exportStar(require("./construtos"), exports);
|
|
|
12119
12383
|
__exportStar(require("./erros"), exports);
|
|
12120
12384
|
__exportStar(require("./retornos"), exports);
|
|
12121
12385
|
|
|
12122
|
-
},{"./avaliador-sintatico-interface":
|
|
12123
|
-
"use strict";
|
|
12124
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12125
|
-
|
|
12126
|
-
},{}],124:[function(require,module,exports){
|
|
12386
|
+
},{"./avaliador-sintatico-interface":118,"./construtos":119,"./erros":121,"./formatador-comum-interface":122,"./interpretador-com-depuracao-interface":124,"./interpretador-interface":125,"./lexador-interface":126,"./parametro-interface":127,"./pilha-interface":128,"./primitiva-interface":129,"./resolvedor-interface":130,"./resultado-parcial-interpretador-interface":131,"./retornos":132,"./retornos/retorno-execucao-interface":135,"./simbolo-interface":138,"./tradutor-interface":139,"./variavel-interface":140,"./visitante-comum-interface":141,"./visitante-delegua-interface":142}],124:[function(require,module,exports){
|
|
12127
12387
|
"use strict";
|
|
12128
12388
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12129
12389
|
|
|
@@ -12153,6 +12413,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12153
12413
|
|
|
12154
12414
|
},{}],131:[function(require,module,exports){
|
|
12155
12415
|
"use strict";
|
|
12416
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12417
|
+
|
|
12418
|
+
},{}],132:[function(require,module,exports){
|
|
12419
|
+
"use strict";
|
|
12156
12420
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12157
12421
|
if (k2 === undefined) k2 = k;
|
|
12158
12422
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -12174,11 +12438,7 @@ __exportStar(require("./retorno-execucao-interface"), exports);
|
|
|
12174
12438
|
__exportStar(require("./retorno-interpretador-interface"), exports);
|
|
12175
12439
|
__exportStar(require("./retorno-lexador"), exports);
|
|
12176
12440
|
|
|
12177
|
-
},{"./retorno-analisador-semantico":
|
|
12178
|
-
"use strict";
|
|
12179
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12180
|
-
|
|
12181
|
-
},{}],133:[function(require,module,exports){
|
|
12441
|
+
},{"./retorno-analisador-semantico":133,"./retorno-avaliador-sintatico":134,"./retorno-execucao-interface":135,"./retorno-interpretador-interface":136,"./retorno-lexador":137}],133:[function(require,module,exports){
|
|
12182
12442
|
"use strict";
|
|
12183
12443
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12184
12444
|
|
|
@@ -12216,6 +12476,10 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12216
12476
|
|
|
12217
12477
|
},{}],142:[function(require,module,exports){
|
|
12218
12478
|
"use strict";
|
|
12479
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12480
|
+
|
|
12481
|
+
},{}],143:[function(require,module,exports){
|
|
12482
|
+
"use strict";
|
|
12219
12483
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12220
12484
|
if (k2 === undefined) k2 = k;
|
|
12221
12485
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
@@ -12280,7 +12544,7 @@ function carregarBibliotecasGlobais(pilhaEscoposExecucao) {
|
|
|
12280
12544
|
pilhaEscoposExecucao.definirVariavel('tupla', new funcao_padrao_1.FuncaoPadrao(1, bibliotecaGlobal.tupla));
|
|
12281
12545
|
}
|
|
12282
12546
|
|
|
12283
|
-
},{"../bibliotecas/biblioteca-global":19,"./estruturas/funcao-padrao":
|
|
12547
|
+
},{"../bibliotecas/biblioteca-global":19,"./estruturas/funcao-padrao":150}],144:[function(require,module,exports){
|
|
12284
12548
|
"use strict";
|
|
12285
12549
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12286
12550
|
exports.EspacoMemoria = void 0;
|
|
@@ -12305,7 +12569,7 @@ class EspacoMemoria {
|
|
|
12305
12569
|
}
|
|
12306
12570
|
exports.EspacoMemoria = EspacoMemoria;
|
|
12307
12571
|
|
|
12308
|
-
},{}],
|
|
12572
|
+
},{}],145:[function(require,module,exports){
|
|
12309
12573
|
"use strict";
|
|
12310
12574
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12311
12575
|
exports.Chamavel = void 0;
|
|
@@ -12319,7 +12583,7 @@ class Chamavel {
|
|
|
12319
12583
|
}
|
|
12320
12584
|
exports.Chamavel = Chamavel;
|
|
12321
12585
|
|
|
12322
|
-
},{}],
|
|
12586
|
+
},{}],146:[function(require,module,exports){
|
|
12323
12587
|
"use strict";
|
|
12324
12588
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12325
12589
|
exports.ClasseDeModulo = void 0;
|
|
@@ -12340,7 +12604,7 @@ class ClasseDeModulo extends chamavel_1.Chamavel {
|
|
|
12340
12604
|
}
|
|
12341
12605
|
exports.ClasseDeModulo = ClasseDeModulo;
|
|
12342
12606
|
|
|
12343
|
-
},{"./chamavel":
|
|
12607
|
+
},{"./chamavel":145}],147:[function(require,module,exports){
|
|
12344
12608
|
"use strict";
|
|
12345
12609
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12346
12610
|
exports.ClassePadrao = void 0;
|
|
@@ -12381,7 +12645,7 @@ class ClassePadrao extends chamavel_1.Chamavel {
|
|
|
12381
12645
|
}
|
|
12382
12646
|
exports.ClassePadrao = ClassePadrao;
|
|
12383
12647
|
|
|
12384
|
-
},{"./chamavel":
|
|
12648
|
+
},{"./chamavel":145}],148:[function(require,module,exports){
|
|
12385
12649
|
"use strict";
|
|
12386
12650
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12387
12651
|
exports.DeleguaFuncao = void 0;
|
|
@@ -12526,7 +12790,7 @@ class DeleguaFuncao extends chamavel_1.Chamavel {
|
|
|
12526
12790
|
}
|
|
12527
12791
|
exports.DeleguaFuncao = DeleguaFuncao;
|
|
12528
12792
|
|
|
12529
|
-
},{"../../declaracoes":96,"../../quebras":
|
|
12793
|
+
},{"../../declaracoes":96,"../../quebras":184,"../espaco-memoria":144,"./chamavel":145}],149:[function(require,module,exports){
|
|
12530
12794
|
"use strict";
|
|
12531
12795
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12532
12796
|
exports.DescritorTipoClasse = void 0;
|
|
@@ -12607,7 +12871,7 @@ class DescritorTipoClasse extends chamavel_1.Chamavel {
|
|
|
12607
12871
|
}
|
|
12608
12872
|
exports.DescritorTipoClasse = DescritorTipoClasse;
|
|
12609
12873
|
|
|
12610
|
-
},{"../../excecoes":
|
|
12874
|
+
},{"../../excecoes":110,"./chamavel":145,"./objeto-delegua-classe":154}],150:[function(require,module,exports){
|
|
12611
12875
|
"use strict";
|
|
12612
12876
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12613
12877
|
exports.FuncaoPadrao = void 0;
|
|
@@ -12644,7 +12908,7 @@ class FuncaoPadrao extends chamavel_1.Chamavel {
|
|
|
12644
12908
|
}
|
|
12645
12909
|
exports.FuncaoPadrao = FuncaoPadrao;
|
|
12646
12910
|
|
|
12647
|
-
},{"./chamavel":
|
|
12911
|
+
},{"./chamavel":145}],151:[function(require,module,exports){
|
|
12648
12912
|
"use strict";
|
|
12649
12913
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12650
12914
|
if (k2 === undefined) k2 = k;
|
|
@@ -12673,7 +12937,7 @@ __exportStar(require("./objeto-delegua-classe"), exports);
|
|
|
12673
12937
|
__exportStar(require("./objeto-padrao"), exports);
|
|
12674
12938
|
__exportStar(require("./referencia-montao"), exports);
|
|
12675
12939
|
|
|
12676
|
-
},{"./chamavel":
|
|
12940
|
+
},{"./chamavel":145,"./classe-de-modulo":146,"./classe-padrao":147,"./delegua-funcao":148,"./descritor-tipo-classe":149,"./funcao-padrao":150,"./metodo-primitiva":152,"./modulo":153,"./objeto-delegua-classe":154,"./objeto-padrao":155,"./referencia-montao":156}],152:[function(require,module,exports){
|
|
12677
12941
|
"use strict";
|
|
12678
12942
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12679
12943
|
exports.MetodoPrimitiva = void 0;
|
|
@@ -12689,11 +12953,14 @@ const chamavel_1 = require("./chamavel");
|
|
|
12689
12953
|
* primeiro parâmetro é sempre a referência para a primitiva.
|
|
12690
12954
|
*/
|
|
12691
12955
|
class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
12692
|
-
constructor(nome, primitiva, metodo) {
|
|
12956
|
+
constructor(nome, primitiva, metodo, nomeMetodo, tipo = 'qualquer') {
|
|
12693
12957
|
super();
|
|
12958
|
+
this.tipo = 'qualquer';
|
|
12694
12959
|
this.nome = nome;
|
|
12695
12960
|
this.primitiva = primitiva;
|
|
12696
12961
|
this.metodo = metodo;
|
|
12962
|
+
this.nomeMetodo = nomeMetodo;
|
|
12963
|
+
this.tipo = tipo;
|
|
12697
12964
|
this.valorAridade = metodo.length - 1;
|
|
12698
12965
|
}
|
|
12699
12966
|
async chamar(interpretador, argumentos = []) {
|
|
@@ -12704,7 +12971,7 @@ class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
|
12704
12971
|
* @returns {string} A representação do método como texto.
|
|
12705
12972
|
*/
|
|
12706
12973
|
paraTexto() {
|
|
12707
|
-
return `<método nome=${this.
|
|
12974
|
+
return `<método nome=${this.nomeMetodo} primitiva=${this.nome} tipo-da-primitiva=${this.tipo} />`;
|
|
12708
12975
|
}
|
|
12709
12976
|
/**
|
|
12710
12977
|
* Método utilizado pelo VSCode para representar este método quando impressa.
|
|
@@ -12716,7 +12983,7 @@ class MetodoPrimitiva extends chamavel_1.Chamavel {
|
|
|
12716
12983
|
}
|
|
12717
12984
|
exports.MetodoPrimitiva = MetodoPrimitiva;
|
|
12718
12985
|
|
|
12719
|
-
},{"./chamavel":
|
|
12986
|
+
},{"./chamavel":145}],153:[function(require,module,exports){
|
|
12720
12987
|
"use strict";
|
|
12721
12988
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12722
12989
|
exports.DeleguaModulo = void 0;
|
|
@@ -12742,7 +13009,7 @@ class DeleguaModulo {
|
|
|
12742
13009
|
}
|
|
12743
13010
|
exports.DeleguaModulo = DeleguaModulo;
|
|
12744
13011
|
|
|
12745
|
-
},{}],
|
|
13012
|
+
},{}],154:[function(require,module,exports){
|
|
12746
13013
|
"use strict";
|
|
12747
13014
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12748
13015
|
exports.ObjetoDeleguaClasse = void 0;
|
|
@@ -12810,7 +13077,7 @@ class ObjetoDeleguaClasse {
|
|
|
12810
13077
|
}
|
|
12811
13078
|
exports.ObjetoDeleguaClasse = ObjetoDeleguaClasse;
|
|
12812
13079
|
|
|
12813
|
-
},{"../../excecoes":
|
|
13080
|
+
},{"../../excecoes":110}],155:[function(require,module,exports){
|
|
12814
13081
|
"use strict";
|
|
12815
13082
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12816
13083
|
exports.ObjetoPadrao = void 0;
|
|
@@ -12844,7 +13111,7 @@ class ObjetoPadrao {
|
|
|
12844
13111
|
}
|
|
12845
13112
|
exports.ObjetoPadrao = ObjetoPadrao;
|
|
12846
13113
|
|
|
12847
|
-
},{}],
|
|
13114
|
+
},{}],156:[function(require,module,exports){
|
|
12848
13115
|
"use strict";
|
|
12849
13116
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12850
13117
|
exports.ReferenciaMontao = void 0;
|
|
@@ -12869,7 +13136,7 @@ class ReferenciaMontao {
|
|
|
12869
13136
|
}
|
|
12870
13137
|
exports.ReferenciaMontao = ReferenciaMontao;
|
|
12871
13138
|
|
|
12872
|
-
},{}],
|
|
13139
|
+
},{}],157:[function(require,module,exports){
|
|
12873
13140
|
"use strict";
|
|
12874
13141
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
12875
13142
|
if (k2 === undefined) k2 = k;
|
|
@@ -12889,7 +13156,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12889
13156
|
__exportStar(require("./interpretador"), exports);
|
|
12890
13157
|
__exportStar(require("./interpretador-base"), exports);
|
|
12891
13158
|
|
|
12892
|
-
},{"./interpretador":
|
|
13159
|
+
},{"./interpretador":159,"./interpretador-base":158}],158:[function(require,module,exports){
|
|
12893
13160
|
(function (process){(function (){
|
|
12894
13161
|
"use strict";
|
|
12895
13162
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
@@ -12912,6 +13179,7 @@ const primitivas_dicionario_1 = __importDefault(require("../bibliotecas/primitiv
|
|
|
12912
13179
|
const delegua_1 = __importDefault(require("../tipos-de-simbolos/delegua"));
|
|
12913
13180
|
const primitivos_1 = __importDefault(require("../tipos-de-dados/primitivos"));
|
|
12914
13181
|
const delegua_2 = __importDefault(require("../tipos-de-dados/delegua"));
|
|
13182
|
+
const primitivas_vetor_1 = __importDefault(require("../bibliotecas/primitivas-vetor"));
|
|
12915
13183
|
/**
|
|
12916
13184
|
* O Interpretador visita todos os elementos complexos gerados pelo avaliador sintático (_parser_),
|
|
12917
13185
|
* e de fato executa a lógica de programação descrita no código. Este interpretador base é usado
|
|
@@ -12963,6 +13231,9 @@ class InterpretadorBase {
|
|
|
12963
13231
|
};
|
|
12964
13232
|
this.pilhaEscoposExecucao.empilhar(escopoExecucao);
|
|
12965
13233
|
}
|
|
13234
|
+
visitarDeclaracaoTextoDocumentacao(declaracao) {
|
|
13235
|
+
throw new Error('Método não implementado.');
|
|
13236
|
+
}
|
|
12966
13237
|
visitarExpressaoSeparador(expressao) {
|
|
12967
13238
|
throw new Error('Método não implementado.');
|
|
12968
13239
|
}
|
|
@@ -12978,13 +13249,28 @@ class InterpretadorBase {
|
|
|
12978
13249
|
* @see resolverValor
|
|
12979
13250
|
*/
|
|
12980
13251
|
resolverNomeObjectoAcessado(objetoAcessado) {
|
|
12981
|
-
|
|
12982
|
-
|
|
12983
|
-
|
|
12984
|
-
|
|
12985
|
-
|
|
13252
|
+
switch (objetoAcessado.constructor) {
|
|
13253
|
+
// TODO: Não habilitar isso até que vetores sejam repassados para o montão.
|
|
13254
|
+
/* case AcessoMetodoOuPropriedade:
|
|
13255
|
+
return (objetoAcessado as AcessoMetodoOuPropriedade).simbolo.lexema;
|
|
13256
|
+
case AcessoIndiceVariavel:
|
|
13257
|
+
return this.resolverNomeObjectoAcessado((objetoAcessado as AcessoIndiceVariavel).entidadeChamada); */
|
|
13258
|
+
case construtos_1.Constante:
|
|
13259
|
+
return objetoAcessado.simbolo.lexema;
|
|
13260
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
13261
|
+
case construtos_1.AcessoIndiceVariavel:
|
|
13262
|
+
case construtos_1.Dicionario:
|
|
13263
|
+
case construtos_1.Literal:
|
|
13264
|
+
case construtos_1.Vetor:
|
|
13265
|
+
return '';
|
|
13266
|
+
case construtos_1.Isto:
|
|
13267
|
+
return objetoAcessado.simboloChave.lexema;
|
|
13268
|
+
case construtos_1.Super:
|
|
13269
|
+
return objetoAcessado.simboloChave.lexema;
|
|
13270
|
+
case construtos_1.Variavel:
|
|
13271
|
+
return objetoAcessado.simbolo.lexema;
|
|
12986
13272
|
}
|
|
12987
|
-
|
|
13273
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(objetoAcessado.simbolo, `Construto ${objetoAcessado.constructor.name} não possui resolução de nome apropriada.`);
|
|
12988
13274
|
}
|
|
12989
13275
|
resolverValor(objeto) {
|
|
12990
13276
|
if (objeto === null || objeto === undefined) {
|
|
@@ -13482,7 +13768,8 @@ class InterpretadorBase {
|
|
|
13482
13768
|
}
|
|
13483
13769
|
if (entidadeChamada instanceof estruturas_1.FuncaoPadrao) {
|
|
13484
13770
|
try {
|
|
13485
|
-
return entidadeChamada.chamar(this, argumentos.map((a) => a && this.resolverValor(a.valor)), expressao.entidadeChamada.simbolo
|
|
13771
|
+
return entidadeChamada.chamar(this, argumentos.map((a) => a && this.resolverValor(a.valor)), expressao.entidadeChamada.simbolo // TODO: O que exatamente pode ser aqui?
|
|
13772
|
+
);
|
|
13486
13773
|
}
|
|
13487
13774
|
catch (erro) {
|
|
13488
13775
|
this.erros.push({
|
|
@@ -13513,7 +13800,7 @@ class InterpretadorBase {
|
|
|
13513
13800
|
// Casos que passam aqui: chamadas a métodos de bibliotecas de Delégua.
|
|
13514
13801
|
if (typeof entidadeChamada === primitivos_1.default.FUNCAO) {
|
|
13515
13802
|
let objeto = null;
|
|
13516
|
-
if (expressao.entidadeChamada.objeto) {
|
|
13803
|
+
if (expressao.entidadeChamada.objeto) { // TODO: Qual o tipo certo aqui?
|
|
13517
13804
|
objeto = await this.avaliar(expressao.entidadeChamada.objeto);
|
|
13518
13805
|
}
|
|
13519
13806
|
return entidadeChamada.apply(this.resolverValor(objeto), argumentos);
|
|
@@ -13540,24 +13827,24 @@ class InterpretadorBase {
|
|
|
13540
13827
|
if (expressao.indice) {
|
|
13541
13828
|
indice = await this.avaliar(expressao.indice);
|
|
13542
13829
|
}
|
|
13543
|
-
switch (expressao.alvo.constructor
|
|
13544
|
-
case
|
|
13830
|
+
switch (expressao.alvo.constructor) {
|
|
13831
|
+
case construtos_1.Variavel:
|
|
13545
13832
|
const alvoVariavel = expressao.alvo;
|
|
13546
13833
|
this.pilhaEscoposExecucao.atribuirVariavel(alvoVariavel.simbolo, valorResolvido, indice);
|
|
13547
13834
|
break;
|
|
13548
|
-
case
|
|
13835
|
+
case construtos_1.AcessoMetodoOuPropriedade:
|
|
13549
13836
|
// Nunca será método aqui: apenas propriedade.
|
|
13550
13837
|
const alvoPropriedade = expressao.alvo;
|
|
13551
13838
|
const variavelObjeto = await this.avaliar(alvoPropriedade.objeto);
|
|
13552
13839
|
const objeto = this.resolverValor(variavelObjeto);
|
|
13553
13840
|
const valor = await this.avaliar(expressao.valor);
|
|
13554
|
-
if (objeto.constructor
|
|
13841
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
13555
13842
|
const objetoDeleguaClasse = objeto;
|
|
13556
13843
|
objetoDeleguaClasse.definir(alvoPropriedade.simbolo, valor);
|
|
13557
13844
|
}
|
|
13558
13845
|
break;
|
|
13559
13846
|
default:
|
|
13560
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${expressao
|
|
13847
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${JSON.stringify(expressao)}.`);
|
|
13561
13848
|
}
|
|
13562
13849
|
return valorResolvido;
|
|
13563
13850
|
}
|
|
@@ -13843,7 +14130,7 @@ class InterpretadorBase {
|
|
|
13843
14130
|
let formatoTexto = '';
|
|
13844
14131
|
for (const argumento of argumentos) {
|
|
13845
14132
|
let resultadoAvaliacao = await this.avaliar(argumento);
|
|
13846
|
-
if (resultadoAvaliacao && resultadoAvaliacao.hasOwnProperty('valorRetornado')) {
|
|
14133
|
+
if (resultadoAvaliacao && resultadoAvaliacao.hasOwnProperty && resultadoAvaliacao.hasOwnProperty('valorRetornado')) {
|
|
13847
14134
|
resultadoAvaliacao = resultadoAvaliacao.valorRetornado;
|
|
13848
14135
|
}
|
|
13849
14136
|
let valor = this.resolverValor(resultadoAvaliacao);
|
|
@@ -14070,11 +14357,11 @@ class InterpretadorBase {
|
|
|
14070
14357
|
async visitarExpressaoDefinirValor(expressao) {
|
|
14071
14358
|
const variavelObjeto = await this.avaliar(expressao.objeto);
|
|
14072
14359
|
const objeto = this.resolverValor(variavelObjeto);
|
|
14073
|
-
if (objeto.constructor
|
|
14360
|
+
if (objeto.constructor !== estruturas_1.ObjetoDeleguaClasse && objeto.constructor !== Object) {
|
|
14074
14361
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(expressao.nome, 'Somente instâncias e dicionários podem possuir campos.', expressao.linha));
|
|
14075
14362
|
}
|
|
14076
14363
|
const valor = await this.avaliar(expressao.valor);
|
|
14077
|
-
if (objeto.constructor
|
|
14364
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
14078
14365
|
objeto.definir(expressao.nome, valor);
|
|
14079
14366
|
return valor;
|
|
14080
14367
|
}
|
|
@@ -14131,11 +14418,12 @@ class InterpretadorBase {
|
|
|
14131
14418
|
*/
|
|
14132
14419
|
async visitarExpressaoAcessoMetodoOuPropriedade(expressao) {
|
|
14133
14420
|
let variavelObjeto = await this.avaliar(expressao.objeto);
|
|
14421
|
+
const nomeObjeto = this.resolverNomeObjectoAcessado(expressao.objeto);
|
|
14134
14422
|
// Este caso acontece quando há encadeamento de métodos.
|
|
14135
14423
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
14136
14424
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
14137
14425
|
// valor dele primeiro.
|
|
14138
|
-
if (variavelObjeto.constructor
|
|
14426
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
14139
14427
|
variavelObjeto = variavelObjeto.valor;
|
|
14140
14428
|
}
|
|
14141
14429
|
const objeto = this.resolverValor(variavelObjeto);
|
|
@@ -14152,7 +14440,7 @@ class InterpretadorBase {
|
|
|
14152
14440
|
if (objeto.constructor === Object) {
|
|
14153
14441
|
if (expressao.simbolo.lexema in primitivas_dicionario_1.default) {
|
|
14154
14442
|
const metodoDePrimitivaDicionario = primitivas_dicionario_1.default[expressao.simbolo.lexema].implementacao;
|
|
14155
|
-
return new metodo_primitiva_1.MetodoPrimitiva(
|
|
14443
|
+
return new metodo_primitiva_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario, expressao.simbolo.lexema, 'dicionário');
|
|
14156
14444
|
}
|
|
14157
14445
|
return objeto[expressao.simbolo.lexema];
|
|
14158
14446
|
}
|
|
@@ -14167,19 +14455,32 @@ class InterpretadorBase {
|
|
|
14167
14455
|
if (typeof objeto[expressao.simbolo.lexema] === primitivos_1.default.OBJETO) {
|
|
14168
14456
|
return objeto[expressao.simbolo.lexema];
|
|
14169
14457
|
}
|
|
14458
|
+
let tipoObjeto = variavelObjeto.tipo;
|
|
14459
|
+
if (tipoObjeto === null || tipoObjeto === undefined) {
|
|
14460
|
+
tipoObjeto = (0, inferenciador_1.inferirTipoVariavel)(variavelObjeto);
|
|
14461
|
+
}
|
|
14462
|
+
// Caso 3: Vetor simples do JavaScript.
|
|
14463
|
+
// TODO: Em teoria, isso deve estar no interpretador de Delégua, não aqui.
|
|
14464
|
+
if (Array.isArray(objeto)) {
|
|
14465
|
+
if (expressao.simbolo.lexema in primitivas_vetor_1.default) {
|
|
14466
|
+
const metodoDePrimitivaVetor = primitivas_vetor_1.default[expressao.simbolo.lexema].implementacao;
|
|
14467
|
+
// TODO: Um problema a ser resolvido na questão de vetores é quando eles pertencem a outro objeto.
|
|
14468
|
+
// Por exemplo, um dicionário.
|
|
14469
|
+
// Existe uma lógica nas bibliotecas padrão que, quando a primitiva tem um nome, ela deve ser definida na
|
|
14470
|
+
// pilha de escopos, para registrar a mutação do vetor corretamente.
|
|
14471
|
+
// Não é uma boa solução. Algo melhor precisa ser feito.
|
|
14472
|
+
return new metodo_primitiva_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaVetor, expressao.simbolo.lexema, tipoObjeto);
|
|
14473
|
+
}
|
|
14474
|
+
}
|
|
14170
14475
|
// A partir daqui, presume-se que o objeto é uma das estruturas
|
|
14171
14476
|
// de Delégua.
|
|
14172
14477
|
if (objeto instanceof estruturas_1.DeleguaModulo) {
|
|
14173
14478
|
return objeto.componentes[expressao.simbolo.lexema] || null;
|
|
14174
14479
|
}
|
|
14175
|
-
let tipoObjeto = variavelObjeto.tipo;
|
|
14176
|
-
if (tipoObjeto === null || tipoObjeto === undefined) {
|
|
14177
|
-
tipoObjeto = (0, inferenciador_1.inferirTipoVariavel)(variavelObjeto);
|
|
14178
|
-
}
|
|
14179
14480
|
return Promise.reject(new excecoes_1.ErroEmTempoDeExecucao(expressao.simbolo, `Método ou propriedade para objeto não encontrado: ${expressao.simbolo.lexema}.`, expressao.linha));
|
|
14180
14481
|
}
|
|
14181
14482
|
visitarExpressaoIsto(expressao) {
|
|
14182
|
-
return this.procurarVariavel(expressao.
|
|
14483
|
+
return this.procurarVariavel(expressao.simboloChave);
|
|
14183
14484
|
}
|
|
14184
14485
|
async visitarExpressaoDicionario(expressao) {
|
|
14185
14486
|
const dicionario = {};
|
|
@@ -14282,8 +14583,8 @@ class InterpretadorBase {
|
|
|
14282
14583
|
retornoVetor += ']';
|
|
14283
14584
|
return retornoVetor;
|
|
14284
14585
|
}
|
|
14285
|
-
switch (objeto.constructor
|
|
14286
|
-
case
|
|
14586
|
+
switch (objeto.constructor) {
|
|
14587
|
+
case Object:
|
|
14287
14588
|
if ('tipo' in objeto) {
|
|
14288
14589
|
switch (objeto.tipo) {
|
|
14289
14590
|
case 'dicionário':
|
|
@@ -14440,7 +14741,7 @@ class InterpretadorBase {
|
|
|
14440
14741
|
exports.InterpretadorBase = InterpretadorBase;
|
|
14441
14742
|
|
|
14442
14743
|
}).call(this)}).call(this,require('_process'))
|
|
14443
|
-
},{"../avaliador-sintatico":13,"../bibliotecas/primitivas-dicionario":20,"../construtos":51,"../excecoes":
|
|
14744
|
+
},{"../avaliador-sintatico":13,"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../excecoes":110,"../inferenciador":116,"../lexador":177,"../quebras":184,"../tipos-de-dados/delegua":185,"../tipos-de-dados/primitivos":187,"../tipos-de-simbolos/delegua":190,"./espaco-memoria":144,"./estruturas":151,"./estruturas/metodo-primitiva":152,"./pilha-escopos-execucao":161,"_process":425,"browser-process-hrtime":371}],159:[function(require,module,exports){
|
|
14444
14745
|
"use strict";
|
|
14445
14746
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
14446
14747
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -14541,6 +14842,9 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14541
14842
|
if (typeof objeto.valor === 'boolean')
|
|
14542
14843
|
return objeto.valor ? 'verdadeiro' : 'falso';
|
|
14543
14844
|
}
|
|
14845
|
+
if (objeto instanceof estruturas_1.MetodoPrimitiva) {
|
|
14846
|
+
return objeto.paraTexto();
|
|
14847
|
+
}
|
|
14544
14848
|
if (objeto instanceof Date) {
|
|
14545
14849
|
const formato = Intl.DateTimeFormat('pt', {
|
|
14546
14850
|
dateStyle: 'full',
|
|
@@ -14585,8 +14889,8 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14585
14889
|
}
|
|
14586
14890
|
return JSON.stringify(objetoEscrita);
|
|
14587
14891
|
}
|
|
14588
|
-
switch (objeto.constructor
|
|
14589
|
-
case
|
|
14892
|
+
switch (objeto.constructor) {
|
|
14893
|
+
case Object:
|
|
14590
14894
|
if ('tipo' in objeto) {
|
|
14591
14895
|
switch (objeto.tipo) {
|
|
14592
14896
|
case 'dicionário':
|
|
@@ -14883,18 +15187,18 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14883
15187
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
14884
15188
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
14885
15189
|
// valor dele primeiro.
|
|
14886
|
-
if (variavelObjeto.constructor
|
|
15190
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
14887
15191
|
variavelObjeto = variavelObjeto.valor;
|
|
14888
15192
|
}
|
|
14889
15193
|
const objeto = this.resolverValor(variavelObjeto);
|
|
14890
|
-
if (objeto.constructor && objeto.constructor
|
|
15194
|
+
if (objeto.constructor && objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
14891
15195
|
return objeto.obterMetodo(expressao.nomeMetodo) || null;
|
|
14892
15196
|
}
|
|
14893
15197
|
// Objeto simples do JavaScript, ou dicionário de Delégua.
|
|
14894
15198
|
if (objeto.constructor === Object) {
|
|
14895
15199
|
if (expressao.nomeMetodo in primitivas_dicionario_1.default) {
|
|
14896
15200
|
const metodoDePrimitivaDicionario = primitivas_dicionario_1.default[expressao.nomeMetodo].implementacao;
|
|
14897
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario);
|
|
15201
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario, expressao.nomeMetodo, 'dicionário');
|
|
14898
15202
|
}
|
|
14899
15203
|
return objeto[expressao.nomeMetodo] || null;
|
|
14900
15204
|
}
|
|
@@ -14927,13 +15231,13 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14927
15231
|
case delegua_1.default.NÚMERO:
|
|
14928
15232
|
const metodoDePrimitivaNumero = primitivas_numero_1.default[expressao.nomeMetodo].implementacao;
|
|
14929
15233
|
if (metodoDePrimitivaNumero) {
|
|
14930
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaNumero);
|
|
15234
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaNumero, expressao.nomeMetodo, tipoObjeto);
|
|
14931
15235
|
}
|
|
14932
15236
|
break;
|
|
14933
15237
|
case delegua_1.default.TEXTO:
|
|
14934
15238
|
const metodoDePrimitivaTexto = primitivas_texto_1.default[expressao.nomeMetodo].implementacao;
|
|
14935
15239
|
if (metodoDePrimitivaTexto) {
|
|
14936
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto);
|
|
15240
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto, expressao.nomeMetodo, 'texto');
|
|
14937
15241
|
}
|
|
14938
15242
|
break;
|
|
14939
15243
|
case delegua_1.default.VETOR:
|
|
@@ -14942,7 +15246,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14942
15246
|
case delegua_1.default.VETOR_TEXTO:
|
|
14943
15247
|
const metodoDePrimitivaVetor = primitivas_vetor_1.default[expressao.nomeMetodo].implementacao;
|
|
14944
15248
|
if (metodoDePrimitivaVetor) {
|
|
14945
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaVetor);
|
|
15249
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaVetor, expressao.nomeMetodo, tipoObjeto);
|
|
14946
15250
|
}
|
|
14947
15251
|
break;
|
|
14948
15252
|
}
|
|
@@ -14979,7 +15283,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14979
15283
|
if (objeto.constructor === Object) {
|
|
14980
15284
|
if (expressao.simbolo.lexema in primitivas_dicionario_1.default) {
|
|
14981
15285
|
const metodoDePrimitivaDicionario = primitivas_dicionario_1.default[expressao.simbolo.lexema].implementacao;
|
|
14982
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario);
|
|
15286
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario, expressao.simbolo.lexema, 'dicionário');
|
|
14983
15287
|
}
|
|
14984
15288
|
return objeto[expressao.simbolo.lexema];
|
|
14985
15289
|
}
|
|
@@ -14989,7 +15293,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
14989
15293
|
throw new excecoes_1.ErroEmTempoDeExecucao(expressao.simbolo, `Método de primitiva '${expressao.simbolo.lexema}' não existe para o tipo texto.`);
|
|
14990
15294
|
}
|
|
14991
15295
|
const metodoDePrimitivaTexto = primitivas_texto_1.default[expressao.simbolo.lexema].implementacao;
|
|
14992
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto);
|
|
15296
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto, expressao.simbolo.lexema, 'texto');
|
|
14993
15297
|
}
|
|
14994
15298
|
// A partir daqui, presume-se que o objeto é uma das estruturas
|
|
14995
15299
|
// de Delégua.
|
|
@@ -15012,7 +15316,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15012
15316
|
}
|
|
15013
15317
|
const metodoDePrimitivaNumero = primitivas_numero_1.default[expressao.simbolo.lexema].implementacao;
|
|
15014
15318
|
if (metodoDePrimitivaNumero) {
|
|
15015
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaNumero);
|
|
15319
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaNumero, expressao.simbolo.lexema, 'número');
|
|
15016
15320
|
}
|
|
15017
15321
|
break;
|
|
15018
15322
|
case delegua_1.default.TEXTO:
|
|
@@ -15021,7 +15325,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15021
15325
|
}
|
|
15022
15326
|
const metodoDePrimitivaTexto = primitivas_texto_1.default[expressao.simbolo.lexema].implementacao;
|
|
15023
15327
|
if (metodoDePrimitivaTexto) {
|
|
15024
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto);
|
|
15328
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaTexto, expressao.simbolo.lexema, 'texto');
|
|
15025
15329
|
}
|
|
15026
15330
|
break;
|
|
15027
15331
|
case delegua_1.default.VETOR:
|
|
@@ -15037,7 +15341,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15037
15341
|
}
|
|
15038
15342
|
const metodoDePrimitivaVetor = primitivas_vetor_1.default[expressao.simbolo.lexema].implementacao;
|
|
15039
15343
|
if (metodoDePrimitivaVetor) {
|
|
15040
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaVetor);
|
|
15344
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaVetor, expressao.simbolo.lexema, tipoObjeto);
|
|
15041
15345
|
}
|
|
15042
15346
|
break;
|
|
15043
15347
|
}
|
|
@@ -15060,21 +15364,20 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15060
15364
|
// Por exemplo, `objeto1.metodo1().metodo2()`.
|
|
15061
15365
|
// Como `RetornoQuebra` também possui `valor`, precisamos extrair o
|
|
15062
15366
|
// valor dele primeiro.
|
|
15063
|
-
if (variavelObjeto.constructor
|
|
15367
|
+
if (variavelObjeto.constructor === quebras_1.RetornoQuebra) {
|
|
15064
15368
|
variavelObjeto = variavelObjeto.valor;
|
|
15065
15369
|
}
|
|
15066
15370
|
const objeto = this.resolverValor(variavelObjeto);
|
|
15067
15371
|
// Outro caso que `instanceof` simplesmente não funciona para casos em Liquido,
|
|
15068
15372
|
// então testamos também o nome do construtor.
|
|
15069
|
-
if (objeto
|
|
15070
|
-
(objeto.constructor && objeto.constructor.name === 'ObjetoDeleguaClasse')) {
|
|
15373
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
15071
15374
|
return objeto.obterMetodo(expressao.nomePropriedade) || null;
|
|
15072
15375
|
}
|
|
15073
15376
|
// Objeto simples do JavaScript, ou dicionário de Delégua.
|
|
15074
15377
|
if (objeto.constructor === Object) {
|
|
15075
15378
|
if (expressao.nomePropriedade in primitivas_dicionario_1.default) {
|
|
15076
15379
|
const metodoDePrimitivaDicionario = primitivas_dicionario_1.default[expressao.nomePropriedade].implementacao;
|
|
15077
|
-
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario);
|
|
15380
|
+
return new estruturas_1.MetodoPrimitiva(nomeObjeto, objeto, metodoDePrimitivaDicionario, expressao.nomePropriedade, 'dicionário');
|
|
15078
15381
|
}
|
|
15079
15382
|
return objeto[expressao.nomePropriedade] || null;
|
|
15080
15383
|
}
|
|
@@ -15191,7 +15494,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15191
15494
|
const variavelObjeto = await this.avaliar(alvoPropriedade.objeto);
|
|
15192
15495
|
const objeto = this.resolverValor(variavelObjeto);
|
|
15193
15496
|
const valor = await this.avaliar(expressao.valor);
|
|
15194
|
-
if (objeto.constructor
|
|
15497
|
+
if (objeto.constructor === estruturas_1.ObjetoDeleguaClasse) {
|
|
15195
15498
|
const objetoDeleguaClasse = objeto;
|
|
15196
15499
|
objetoDeleguaClasse.definir(alvoPropriedade.simbolo, valor);
|
|
15197
15500
|
}
|
|
@@ -15201,7 +15504,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15201
15504
|
}
|
|
15202
15505
|
break;
|
|
15203
15506
|
default:
|
|
15204
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${expressao
|
|
15507
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(null, `Atribuição com caso faltante: ${JSON.stringify(expressao)}.`);
|
|
15205
15508
|
}
|
|
15206
15509
|
return valorResolvido;
|
|
15207
15510
|
}
|
|
@@ -15438,7 +15741,7 @@ class Interpretador extends interpretador_base_1.InterpretadorBase {
|
|
|
15438
15741
|
}
|
|
15439
15742
|
exports.Interpretador = Interpretador;
|
|
15440
15743
|
|
|
15441
|
-
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../declaracoes":96,"../excecoes":
|
|
15744
|
+
},{"../bibliotecas/primitivas-dicionario":20,"../bibliotecas/primitivas-numero":21,"../bibliotecas/primitivas-texto":22,"../bibliotecas/primitivas-vetor":23,"../construtos":51,"../declaracoes":96,"../excecoes":110,"../inferenciador":116,"../quebras":184,"../tipos-de-dados/delegua":185,"../tipos-de-dados/primitivos":187,"./comum":143,"./estruturas":151,"./interpretador-base":158,"./montao":160}],160:[function(require,module,exports){
|
|
15442
15745
|
"use strict";
|
|
15443
15746
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15444
15747
|
exports.Montao = void 0;
|
|
@@ -15495,7 +15798,7 @@ class Montao {
|
|
|
15495
15798
|
}
|
|
15496
15799
|
exports.Montao = Montao;
|
|
15497
15800
|
|
|
15498
|
-
},{"../excecoes":
|
|
15801
|
+
},{"../excecoes":110,"../geracao-identificadores":114}],161:[function(require,module,exports){
|
|
15499
15802
|
"use strict";
|
|
15500
15803
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15501
15804
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -15783,7 +16086,7 @@ class PilhaEscoposExecucao {
|
|
|
15783
16086
|
}
|
|
15784
16087
|
exports.PilhaEscoposExecucao = PilhaEscoposExecucao;
|
|
15785
16088
|
|
|
15786
|
-
},{"../excecoes":
|
|
16089
|
+
},{"../excecoes":110,"../inferenciador":116,"../lexador":177,"../tipos-de-dados/delegua":185,"./estruturas":151}],162:[function(require,module,exports){
|
|
15787
16090
|
"use strict";
|
|
15788
16091
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15789
16092
|
if (k2 === undefined) k2 = k;
|
|
@@ -15808,7 +16111,7 @@ __exportStar(require("./lexador-portugol-ipt"), exports);
|
|
|
15808
16111
|
__exportStar(require("./lexador-prisma"), exports);
|
|
15809
16112
|
__exportStar(require("./lexador-tenda"), exports);
|
|
15810
16113
|
|
|
15811
|
-
},{"./lexador-calango":
|
|
16114
|
+
},{"./lexador-calango":163,"./lexador-egua-classico":164,"./lexador-guarani":165,"./lexador-pitugues":166,"./lexador-portugol-ipt":167,"./lexador-prisma":168,"./lexador-tenda":169}],163:[function(require,module,exports){
|
|
15812
16115
|
"use strict";
|
|
15813
16116
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
15814
16117
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -16041,7 +16344,7 @@ class LexadorCalango {
|
|
|
16041
16344
|
}
|
|
16042
16345
|
exports.LexadorCalango = LexadorCalango;
|
|
16043
16346
|
|
|
16044
|
-
},{"../../tipos-de-simbolos/calango":
|
|
16347
|
+
},{"../../tipos-de-simbolos/calango":188,"../simbolo":183,"./palavras-reservadas/calango":170}],164:[function(require,module,exports){
|
|
16045
16348
|
"use strict";
|
|
16046
16349
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16047
16350
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -16331,7 +16634,7 @@ class LexadorEguaClassico {
|
|
|
16331
16634
|
}
|
|
16332
16635
|
exports.LexadorEguaClassico = LexadorEguaClassico;
|
|
16333
16636
|
|
|
16334
|
-
},{"../../tipos-de-simbolos/egua-classico":
|
|
16637
|
+
},{"../../tipos-de-simbolos/egua-classico":191,"../simbolo":183,"./palavras-reservadas/egua-classico":171}],165:[function(require,module,exports){
|
|
16335
16638
|
"use strict";
|
|
16336
16639
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16337
16640
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -16450,7 +16753,7 @@ class LexadorGuarani extends lexador_base_1.LexadorBase {
|
|
|
16450
16753
|
}
|
|
16451
16754
|
exports.LexadorGuarani = LexadorGuarani;
|
|
16452
16755
|
|
|
16453
|
-
},{"../../tipos-de-simbolos/guarani":
|
|
16756
|
+
},{"../../tipos-de-simbolos/guarani":192,"../lexador-base":179,"./palavras-reservadas/guarani":172}],166:[function(require,module,exports){
|
|
16454
16757
|
"use strict";
|
|
16455
16758
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16456
16759
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -16901,7 +17204,7 @@ class LexadorPitugues {
|
|
|
16901
17204
|
}
|
|
16902
17205
|
exports.LexadorPitugues = LexadorPitugues;
|
|
16903
17206
|
|
|
16904
|
-
},{"../../tipos-de-simbolos/pitugues":
|
|
17207
|
+
},{"../../tipos-de-simbolos/pitugues":194,"../simbolo":183,"./palavras-reservadas/pitugues":173,"browser-process-hrtime":371}],167:[function(require,module,exports){
|
|
16905
17208
|
"use strict";
|
|
16906
17209
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
16907
17210
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17153,7 +17456,7 @@ class LexadorPortugolIpt {
|
|
|
17153
17456
|
}
|
|
17154
17457
|
exports.LexadorPortugolIpt = LexadorPortugolIpt;
|
|
17155
17458
|
|
|
17156
|
-
},{"../../tipos-de-simbolos/portugol-ipt":
|
|
17459
|
+
},{"../../tipos-de-simbolos/portugol-ipt":195,"../simbolo":183,"./palavras-reservadas/portugol-ipt":174}],168:[function(require,module,exports){
|
|
17157
17460
|
"use strict";
|
|
17158
17461
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17159
17462
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17511,7 +17814,7 @@ class LexadorPrisma {
|
|
|
17511
17814
|
}
|
|
17512
17815
|
exports.LexadorPrisma = LexadorPrisma;
|
|
17513
17816
|
|
|
17514
|
-
},{"../../tipos-de-simbolos/prisma":
|
|
17817
|
+
},{"../../tipos-de-simbolos/prisma":196,"../simbolo":183,"./palavras-reservadas/prisma":175,"browser-process-hrtime":371}],169:[function(require,module,exports){
|
|
17515
17818
|
"use strict";
|
|
17516
17819
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17517
17820
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17902,7 +18205,7 @@ class LexadorTenda {
|
|
|
17902
18205
|
}
|
|
17903
18206
|
exports.LexadorTenda = LexadorTenda;
|
|
17904
18207
|
|
|
17905
|
-
},{"../../tipos-de-simbolos/tenda":
|
|
18208
|
+
},{"../../tipos-de-simbolos/tenda":197,"../simbolo":183,"./palavras-reservadas/tenda":176,"browser-process-hrtime":371}],170:[function(require,module,exports){
|
|
17906
18209
|
"use strict";
|
|
17907
18210
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17908
18211
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17923,7 +18226,7 @@ exports.default = {
|
|
|
17923
18226
|
fimSe: calango_1.default.FIM_SE,
|
|
17924
18227
|
};
|
|
17925
18228
|
|
|
17926
|
-
},{"../../../tipos-de-simbolos/calango":
|
|
18229
|
+
},{"../../../tipos-de-simbolos/calango":188}],171:[function(require,module,exports){
|
|
17927
18230
|
"use strict";
|
|
17928
18231
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17929
18232
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17964,7 +18267,7 @@ exports.palavrasReservadas = {
|
|
|
17964
18267
|
verdadeiro: egua_classico_1.default.VERDADEIRO,
|
|
17965
18268
|
};
|
|
17966
18269
|
|
|
17967
|
-
},{"../../../tipos-de-simbolos/egua-classico":
|
|
18270
|
+
},{"../../../tipos-de-simbolos/egua-classico":191}],172:[function(require,module,exports){
|
|
17968
18271
|
"use strict";
|
|
17969
18272
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17970
18273
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -17976,7 +18279,7 @@ exports.palavrasReservadas = {
|
|
|
17976
18279
|
hai: guarani_1.default.HAI,
|
|
17977
18280
|
};
|
|
17978
18281
|
|
|
17979
|
-
},{"../../../tipos-de-simbolos/guarani":
|
|
18282
|
+
},{"../../../tipos-de-simbolos/guarani":192}],173:[function(require,module,exports){
|
|
17980
18283
|
"use strict";
|
|
17981
18284
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
17982
18285
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18041,7 +18344,7 @@ exports.palavrasReservadasMicroGramatica = {
|
|
|
18041
18344
|
verdadeiro: pitugues_1.default.VERDADEIRO,
|
|
18042
18345
|
};
|
|
18043
18346
|
|
|
18044
|
-
},{"../../../tipos-de-simbolos/pitugues":
|
|
18347
|
+
},{"../../../tipos-de-simbolos/pitugues":194}],174:[function(require,module,exports){
|
|
18045
18348
|
"use strict";
|
|
18046
18349
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18047
18350
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18063,7 +18366,7 @@ exports.palavrasReservadas = {
|
|
|
18063
18366
|
senão: portugol_ipt_1.default.SENAO,
|
|
18064
18367
|
};
|
|
18065
18368
|
|
|
18066
|
-
},{"../../../tipos-de-simbolos/portugol-ipt":
|
|
18369
|
+
},{"../../../tipos-de-simbolos/portugol-ipt":195}],175:[function(require,module,exports){
|
|
18067
18370
|
"use strict";
|
|
18068
18371
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18069
18372
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18111,7 +18414,7 @@ exports.palavrasReservadas = {
|
|
|
18111
18414
|
verdadeiro: prisma_1.default.VERDADEIRO,
|
|
18112
18415
|
};
|
|
18113
18416
|
|
|
18114
|
-
},{"../../../tipos-de-simbolos/prisma":
|
|
18417
|
+
},{"../../../tipos-de-simbolos/prisma":196}],176:[function(require,module,exports){
|
|
18115
18418
|
"use strict";
|
|
18116
18419
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18117
18420
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18169,7 +18472,7 @@ exports.palavrasReservadas = {
|
|
|
18169
18472
|
Texto: tenda_1.default.BIBLIOTECA_GLOBAL,
|
|
18170
18473
|
};
|
|
18171
18474
|
|
|
18172
|
-
},{"../../../tipos-de-simbolos/tenda":
|
|
18475
|
+
},{"../../../tipos-de-simbolos/tenda":197}],177:[function(require,module,exports){
|
|
18173
18476
|
"use strict";
|
|
18174
18477
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18175
18478
|
if (k2 === undefined) k2 = k;
|
|
@@ -18192,7 +18495,7 @@ __exportStar(require("./lexador-base-linha-unica"), exports);
|
|
|
18192
18495
|
__exportStar(require("./micro-lexador"), exports);
|
|
18193
18496
|
__exportStar(require("./simbolo"), exports);
|
|
18194
18497
|
|
|
18195
|
-
},{"./dialetos":
|
|
18498
|
+
},{"./dialetos":162,"./lexador":180,"./lexador-base-linha-unica":178,"./micro-lexador":181,"./simbolo":183}],178:[function(require,module,exports){
|
|
18196
18499
|
"use strict";
|
|
18197
18500
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18198
18501
|
exports.LexadorBaseLinhaUnica = void 0;
|
|
@@ -18276,7 +18579,7 @@ class LexadorBaseLinhaUnica {
|
|
|
18276
18579
|
}
|
|
18277
18580
|
exports.LexadorBaseLinhaUnica = LexadorBaseLinhaUnica;
|
|
18278
18581
|
|
|
18279
|
-
},{"./simbolo":
|
|
18582
|
+
},{"./simbolo":183}],179:[function(require,module,exports){
|
|
18280
18583
|
"use strict";
|
|
18281
18584
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18282
18585
|
exports.LexadorBase = void 0;
|
|
@@ -18390,7 +18693,7 @@ class LexadorBase {
|
|
|
18390
18693
|
}
|
|
18391
18694
|
exports.LexadorBase = LexadorBase;
|
|
18392
18695
|
|
|
18393
|
-
},{"./simbolo":
|
|
18696
|
+
},{"./simbolo":183}],180:[function(require,module,exports){
|
|
18394
18697
|
"use strict";
|
|
18395
18698
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18396
18699
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -18861,7 +19164,7 @@ class Lexador {
|
|
|
18861
19164
|
}
|
|
18862
19165
|
exports.Lexador = Lexador;
|
|
18863
19166
|
|
|
18864
|
-
},{"../tipos-de-simbolos/delegua":
|
|
19167
|
+
},{"../tipos-de-simbolos/delegua":190,"./palavras-reservadas":182,"./simbolo":183,"browser-process-hrtime":371}],181:[function(require,module,exports){
|
|
18865
19168
|
"use strict";
|
|
18866
19169
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
18867
19170
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -19094,7 +19397,7 @@ class MicroLexador {
|
|
|
19094
19397
|
}
|
|
19095
19398
|
exports.MicroLexador = MicroLexador;
|
|
19096
19399
|
|
|
19097
|
-
},{"../tipos-de-simbolos/microgramaticas/delegua":
|
|
19400
|
+
},{"../tipos-de-simbolos/microgramaticas/delegua":193,"./palavras-reservadas":182,"./simbolo":183}],182:[function(require,module,exports){
|
|
19098
19401
|
"use strict";
|
|
19099
19402
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
19100
19403
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -19164,7 +19467,7 @@ exports.palavrasReservadasMicroGramatica = {
|
|
|
19164
19467
|
verdadeiro: delegua_1.default.VERDADEIRO,
|
|
19165
19468
|
};
|
|
19166
19469
|
|
|
19167
|
-
},{"../tipos-de-simbolos/delegua":
|
|
19470
|
+
},{"../tipos-de-simbolos/delegua":190}],183:[function(require,module,exports){
|
|
19168
19471
|
"use strict";
|
|
19169
19472
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19170
19473
|
exports.Simbolo = void 0;
|
|
@@ -19182,7 +19485,7 @@ class Simbolo {
|
|
|
19182
19485
|
}
|
|
19183
19486
|
exports.Simbolo = Simbolo;
|
|
19184
19487
|
|
|
19185
|
-
},{}],
|
|
19488
|
+
},{}],184:[function(require,module,exports){
|
|
19186
19489
|
"use strict";
|
|
19187
19490
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19188
19491
|
exports.ContinuarQuebra = exports.SustarQuebra = exports.RetornoQuebra = exports.Quebra = void 0;
|
|
@@ -19207,7 +19510,7 @@ class ContinuarQuebra extends Quebra {
|
|
|
19207
19510
|
}
|
|
19208
19511
|
exports.ContinuarQuebra = ContinuarQuebra;
|
|
19209
19512
|
|
|
19210
|
-
},{}],
|
|
19513
|
+
},{}],185:[function(require,module,exports){
|
|
19211
19514
|
"use strict";
|
|
19212
19515
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19213
19516
|
exports.default = {
|
|
@@ -19237,7 +19540,7 @@ exports.default = {
|
|
|
19237
19540
|
VETOR_TEXTO: 'texto[]',
|
|
19238
19541
|
};
|
|
19239
19542
|
|
|
19240
|
-
},{}],
|
|
19543
|
+
},{}],186:[function(require,module,exports){
|
|
19241
19544
|
"use strict";
|
|
19242
19545
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19243
19546
|
exports.default = {
|
|
@@ -19267,7 +19570,7 @@ exports.default = {
|
|
|
19267
19570
|
VETOR_TEXTO: 'texto[]',
|
|
19268
19571
|
};
|
|
19269
19572
|
|
|
19270
|
-
},{}],
|
|
19573
|
+
},{}],187:[function(require,module,exports){
|
|
19271
19574
|
"use strict";
|
|
19272
19575
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19273
19576
|
exports.default = {
|
|
@@ -19286,7 +19589,7 @@ exports.default = {
|
|
|
19286
19589
|
TEXTO: 'string',
|
|
19287
19590
|
};
|
|
19288
19591
|
|
|
19289
|
-
},{}],
|
|
19592
|
+
},{}],188:[function(require,module,exports){
|
|
19290
19593
|
"use strict";
|
|
19291
19594
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19292
19595
|
exports.default = {
|
|
@@ -19330,7 +19633,7 @@ exports.default = {
|
|
|
19330
19633
|
VIRGULA: 'VIRGULA',
|
|
19331
19634
|
};
|
|
19332
19635
|
|
|
19333
|
-
},{}],
|
|
19636
|
+
},{}],189:[function(require,module,exports){
|
|
19334
19637
|
"use strict";
|
|
19335
19638
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19336
19639
|
exports.default = {
|
|
@@ -19356,7 +19659,7 @@ exports.default = {
|
|
|
19356
19659
|
VIRGULA: 'VIRGULA',
|
|
19357
19660
|
};
|
|
19358
19661
|
|
|
19359
|
-
},{}],
|
|
19662
|
+
},{}],190:[function(require,module,exports){
|
|
19360
19663
|
"use strict";
|
|
19361
19664
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19362
19665
|
exports.default = {
|
|
@@ -19457,7 +19760,7 @@ exports.default = {
|
|
|
19457
19760
|
VIRGULA: 'VIRGULA',
|
|
19458
19761
|
};
|
|
19459
19762
|
|
|
19460
|
-
},{}],
|
|
19763
|
+
},{}],191:[function(require,module,exports){
|
|
19461
19764
|
"use strict";
|
|
19462
19765
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19463
19766
|
exports.default = {
|
|
@@ -19535,7 +19838,7 @@ exports.default = {
|
|
|
19535
19838
|
VIRGULA: 'VIRGULA',
|
|
19536
19839
|
};
|
|
19537
19840
|
|
|
19538
|
-
},{}],
|
|
19841
|
+
},{}],192:[function(require,module,exports){
|
|
19539
19842
|
"use strict";
|
|
19540
19843
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19541
19844
|
exports.default = {
|
|
@@ -19552,7 +19855,7 @@ exports.default = {
|
|
|
19552
19855
|
VIRGULA: 'VIRGULA',
|
|
19553
19856
|
};
|
|
19554
19857
|
|
|
19555
|
-
},{}],
|
|
19858
|
+
},{}],193:[function(require,module,exports){
|
|
19556
19859
|
"use strict";
|
|
19557
19860
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19558
19861
|
exports.default = {
|
|
@@ -19605,7 +19908,7 @@ exports.default = {
|
|
|
19605
19908
|
VIRGULA: 'VIRGULA',
|
|
19606
19909
|
};
|
|
19607
19910
|
|
|
19608
|
-
},{}],
|
|
19911
|
+
},{}],194:[function(require,module,exports){
|
|
19609
19912
|
"use strict";
|
|
19610
19913
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19611
19914
|
exports.default = {
|
|
@@ -19692,7 +19995,7 @@ exports.default = {
|
|
|
19692
19995
|
VIRGULA: 'VIRGULA',
|
|
19693
19996
|
};
|
|
19694
19997
|
|
|
19695
|
-
},{}],
|
|
19998
|
+
},{}],195:[function(require,module,exports){
|
|
19696
19999
|
"use strict";
|
|
19697
20000
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19698
20001
|
exports.default = {
|
|
@@ -19731,7 +20034,7 @@ exports.default = {
|
|
|
19731
20034
|
VIRGULA: 'VIRGULA',
|
|
19732
20035
|
};
|
|
19733
20036
|
|
|
19734
|
-
},{}],
|
|
20037
|
+
},{}],196:[function(require,module,exports){
|
|
19735
20038
|
"use strict";
|
|
19736
20039
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19737
20040
|
exports.default = {
|
|
@@ -19811,7 +20114,7 @@ exports.default = {
|
|
|
19811
20114
|
VIRGULA: 'VIRGULA',
|
|
19812
20115
|
};
|
|
19813
20116
|
|
|
19814
|
-
},{}],
|
|
20117
|
+
},{}],197:[function(require,module,exports){
|
|
19815
20118
|
"use strict";
|
|
19816
20119
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19817
20120
|
// Em Tenda, isto é implementado em https://github.com/gabrielbrunop/tenda/blob/main/crates/scanner/src/token.rs#L42.
|
|
@@ -19906,7 +20209,7 @@ exports.default = {
|
|
|
19906
20209
|
VIRGULA: 'VIRGULA',
|
|
19907
20210
|
};
|
|
19908
20211
|
|
|
19909
|
-
},{}],
|
|
20212
|
+
},{}],198:[function(require,module,exports){
|
|
19910
20213
|
"use strict";
|
|
19911
20214
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
19912
20215
|
if (k2 === undefined) k2 = k;
|
|
@@ -19933,7 +20236,7 @@ __exportStar(require("./tradutor-reverso-javascript"), exports);
|
|
|
19933
20236
|
__exportStar(require("./tradutor-reverso-python"), exports);
|
|
19934
20237
|
__exportStar(require("./tradutor-reverso-tenda"), exports);
|
|
19935
20238
|
|
|
19936
|
-
},{"./tradutor-assemblyscript":
|
|
20239
|
+
},{"./tradutor-assemblyscript":201,"./tradutor-calango":202,"./tradutor-javascript":203,"./tradutor-mermaidjs":204,"./tradutor-portugol-ipt":205,"./tradutor-python":206,"./tradutor-reverso-javascript":207,"./tradutor-reverso-python":208,"./tradutor-reverso-tenda":209}],199:[function(require,module,exports){
|
|
19937
20240
|
"use strict";
|
|
19938
20241
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
19939
20242
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -21173,7 +21476,7 @@ __decorate([
|
|
|
21173
21476
|
Decorators_1.Override
|
|
21174
21477
|
], Python3Lexer.prototype, "nextToken", null);
|
|
21175
21478
|
|
|
21176
|
-
},{"./python3-parser":
|
|
21479
|
+
},{"./python3-parser":200,"antlr4ts/CommonToken":219,"antlr4ts/Decorators":223,"antlr4ts/Lexer":231,"antlr4ts/Token":248,"antlr4ts/VocabularyImpl":254,"antlr4ts/atn/ATNDeserializer":260,"antlr4ts/atn/LexerATNSimulator":281,"antlr4ts/misc/Utils":342}],200:[function(require,module,exports){
|
|
21177
21480
|
"use strict";
|
|
21178
21481
|
// Generated from fontes\tradutores\python\Python3.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
21179
21482
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
@@ -32420,7 +32723,7 @@ class Yield_argContext extends ParserRuleContext_1.ParserRuleContext {
|
|
|
32420
32723
|
}
|
|
32421
32724
|
exports.Yield_argContext = Yield_argContext;
|
|
32422
32725
|
|
|
32423
|
-
},{"antlr4ts/FailedPredicateException":
|
|
32726
|
+
},{"antlr4ts/FailedPredicateException":227,"antlr4ts/NoViableAltException":235,"antlr4ts/Parser":236,"antlr4ts/ParserRuleContext":239,"antlr4ts/RecognitionException":242,"antlr4ts/Token":248,"antlr4ts/VocabularyImpl":254,"antlr4ts/atn/ATN":256,"antlr4ts/atn/ATNDeserializer":260,"antlr4ts/atn/ParserATNSimulator":297,"antlr4ts/misc/Utils":342}],201:[function(require,module,exports){
|
|
32424
32727
|
"use strict";
|
|
32425
32728
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
32426
32729
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -33055,7 +33358,7 @@ class TradutorAssemblyScript {
|
|
|
33055
33358
|
}
|
|
33056
33359
|
exports.TradutorAssemblyScript = TradutorAssemblyScript;
|
|
33057
33360
|
|
|
33058
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":
|
|
33361
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],202:[function(require,module,exports){
|
|
33059
33362
|
"use strict";
|
|
33060
33363
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
33061
33364
|
exports.TradutorCalango = void 0;
|
|
@@ -33117,7 +33420,7 @@ class TradutorCalango {
|
|
|
33117
33420
|
}
|
|
33118
33421
|
exports.TradutorCalango = TradutorCalango;
|
|
33119
33422
|
|
|
33120
|
-
},{"../avaliador-sintatico/dialetos/avaliador-sintatico-calango":4,"../lexador/dialetos":
|
|
33423
|
+
},{"../avaliador-sintatico/dialetos/avaliador-sintatico-calango":4,"../lexador/dialetos":162}],203:[function(require,module,exports){
|
|
33121
33424
|
"use strict";
|
|
33122
33425
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33123
33426
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -33870,7 +34173,7 @@ class TradutorJavaScript {
|
|
|
33870
34173
|
}
|
|
33871
34174
|
exports.TradutorJavaScript = TradutorJavaScript;
|
|
33872
34175
|
|
|
33873
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":
|
|
34176
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],204:[function(require,module,exports){
|
|
33874
34177
|
"use strict";
|
|
33875
34178
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
33876
34179
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -34324,7 +34627,7 @@ class TradutorMermaidJs {
|
|
|
34324
34627
|
}
|
|
34325
34628
|
exports.TradutorMermaidJs = TradutorMermaidJs;
|
|
34326
34629
|
|
|
34327
|
-
},{"../tipos-de-simbolos/delegua":
|
|
34630
|
+
},{"../tipos-de-simbolos/delegua":190}],205:[function(require,module,exports){
|
|
34328
34631
|
"use strict";
|
|
34329
34632
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34330
34633
|
exports.TradutorPortugolIpt = void 0;
|
|
@@ -34386,7 +34689,7 @@ class TradutorPortugolIpt {
|
|
|
34386
34689
|
}
|
|
34387
34690
|
exports.TradutorPortugolIpt = TradutorPortugolIpt;
|
|
34388
34691
|
|
|
34389
|
-
},{"../avaliador-sintatico/dialetos":10,"../lexador/dialetos":
|
|
34692
|
+
},{"../avaliador-sintatico/dialetos":10,"../lexador/dialetos":162}],206:[function(require,module,exports){
|
|
34390
34693
|
"use strict";
|
|
34391
34694
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
34392
34695
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -35035,7 +35338,7 @@ class TradutorPython {
|
|
|
35035
35338
|
}
|
|
35036
35339
|
exports.TradutorPython = TradutorPython;
|
|
35037
35340
|
|
|
35038
|
-
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":
|
|
35341
|
+
},{"../construtos":51,"../declaracoes":96,"../tipos-de-simbolos/delegua":190}],207:[function(require,module,exports){
|
|
35039
35342
|
"use strict";
|
|
35040
35343
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35041
35344
|
exports.TradutorReversoJavaScript = void 0;
|
|
@@ -35432,7 +35735,7 @@ class TradutorReversoJavaScript {
|
|
|
35432
35735
|
}
|
|
35433
35736
|
exports.TradutorReversoJavaScript = TradutorReversoJavaScript;
|
|
35434
35737
|
|
|
35435
|
-
},{}],
|
|
35738
|
+
},{}],208:[function(require,module,exports){
|
|
35436
35739
|
"use strict";
|
|
35437
35740
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
35438
35741
|
exports.TradutorReversoPython = void 0;
|
|
@@ -35505,7 +35808,7 @@ class TradutorReversoPython {
|
|
|
35505
35808
|
}
|
|
35506
35809
|
exports.TradutorReversoPython = TradutorReversoPython;
|
|
35507
35810
|
|
|
35508
|
-
},{"./python/python3-lexer":
|
|
35811
|
+
},{"./python/python3-lexer":199,"./python/python3-parser":200,"antlr4ts":325,"antlr4ts/tree/ParseTreeWalker":344}],209:[function(require,module,exports){
|
|
35509
35812
|
"use strict";
|
|
35510
35813
|
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
35511
35814
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
@@ -36099,7 +36402,7 @@ class TradutorReversoTenda {
|
|
|
36099
36402
|
}
|
|
36100
36403
|
exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
36101
36404
|
|
|
36102
|
-
},{"../construtos":51,"../tipos-de-simbolos/tenda":
|
|
36405
|
+
},{"../construtos":51,"../tipos-de-simbolos/tenda":197}],210:[function(require,module,exports){
|
|
36103
36406
|
"use strict";
|
|
36104
36407
|
/*!
|
|
36105
36408
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36107,7 +36410,7 @@ exports.TradutorReversoTenda = TradutorReversoTenda;
|
|
|
36107
36410
|
*/
|
|
36108
36411
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36109
36412
|
|
|
36110
|
-
},{}],
|
|
36413
|
+
},{}],211:[function(require,module,exports){
|
|
36111
36414
|
"use strict";
|
|
36112
36415
|
/*!
|
|
36113
36416
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36115,7 +36418,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
36115
36418
|
*/
|
|
36116
36419
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36117
36420
|
|
|
36118
|
-
},{}],
|
|
36421
|
+
},{}],212:[function(require,module,exports){
|
|
36119
36422
|
"use strict";
|
|
36120
36423
|
/*!
|
|
36121
36424
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36277,7 +36580,7 @@ __decorate([
|
|
|
36277
36580
|
], ANTLRInputStream.prototype, "toString", null);
|
|
36278
36581
|
exports.ANTLRInputStream = ANTLRInputStream;
|
|
36279
36582
|
|
|
36280
|
-
},{"./Decorators":
|
|
36583
|
+
},{"./Decorators":223,"./IntStream":229,"assert":366}],213:[function(require,module,exports){
|
|
36281
36584
|
"use strict";
|
|
36282
36585
|
/*!
|
|
36283
36586
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36360,7 +36663,7 @@ __decorate([
|
|
|
36360
36663
|
], BailErrorStrategy.prototype, "sync", null);
|
|
36361
36664
|
exports.BailErrorStrategy = BailErrorStrategy;
|
|
36362
36665
|
|
|
36363
|
-
},{"./Decorators":
|
|
36666
|
+
},{"./Decorators":223,"./DefaultErrorStrategy":224,"./InputMismatchException":228,"./misc/ParseCancellationException":340}],214:[function(require,module,exports){
|
|
36364
36667
|
"use strict";
|
|
36365
36668
|
/*!
|
|
36366
36669
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36850,7 +37153,7 @@ BufferedTokenStream = __decorate([
|
|
|
36850
37153
|
], BufferedTokenStream);
|
|
36851
37154
|
exports.BufferedTokenStream = BufferedTokenStream;
|
|
36852
37155
|
|
|
36853
|
-
},{"./CommonToken":
|
|
37156
|
+
},{"./CommonToken":219,"./Decorators":223,"./Lexer":231,"./Token":248,"./misc/Interval":335,"assert":366}],215:[function(require,module,exports){
|
|
36854
37157
|
"use strict";
|
|
36855
37158
|
/*!
|
|
36856
37159
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36858,7 +37161,7 @@ exports.BufferedTokenStream = BufferedTokenStream;
|
|
|
36858
37161
|
*/
|
|
36859
37162
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36860
37163
|
|
|
36861
|
-
},{}],
|
|
37164
|
+
},{}],216:[function(require,module,exports){
|
|
36862
37165
|
"use strict";
|
|
36863
37166
|
/*!
|
|
36864
37167
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -36992,7 +37295,7 @@ var CharStreams;
|
|
|
36992
37295
|
// }
|
|
36993
37296
|
})(CharStreams = exports.CharStreams || (exports.CharStreams = {}));
|
|
36994
37297
|
|
|
36995
|
-
},{"./CodePointBuffer":
|
|
37298
|
+
},{"./CodePointBuffer":217,"./CodePointCharStream":218,"./IntStream":229}],217:[function(require,module,exports){
|
|
36996
37299
|
"use strict";
|
|
36997
37300
|
/*!
|
|
36998
37301
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37227,7 +37530,7 @@ exports.CodePointBuffer = CodePointBuffer;
|
|
|
37227
37530
|
CodePointBuffer.Builder = Builder;
|
|
37228
37531
|
})(CodePointBuffer = exports.CodePointBuffer || (exports.CodePointBuffer = {}));
|
|
37229
37532
|
|
|
37230
|
-
},{"./misc/Character":
|
|
37533
|
+
},{"./misc/Character":331,"assert":366}],218:[function(require,module,exports){
|
|
37231
37534
|
"use strict";
|
|
37232
37535
|
/*!
|
|
37233
37536
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37377,7 +37680,7 @@ __decorate([
|
|
|
37377
37680
|
], CodePointCharStream.prototype, "getText", null);
|
|
37378
37681
|
exports.CodePointCharStream = CodePointCharStream;
|
|
37379
37682
|
|
|
37380
|
-
},{"./Decorators":
|
|
37683
|
+
},{"./Decorators":223,"./IntStream":229,"./misc/Interval":335,"assert":366}],219:[function(require,module,exports){
|
|
37381
37684
|
"use strict";
|
|
37382
37685
|
/*!
|
|
37383
37686
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37607,7 +37910,7 @@ CommonToken = __decorate([
|
|
|
37607
37910
|
], CommonToken);
|
|
37608
37911
|
exports.CommonToken = CommonToken;
|
|
37609
37912
|
|
|
37610
|
-
},{"./Decorators":
|
|
37913
|
+
},{"./Decorators":223,"./Token":248,"./misc/Interval":335}],220:[function(require,module,exports){
|
|
37611
37914
|
"use strict";
|
|
37612
37915
|
/*!
|
|
37613
37916
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37671,7 +37974,7 @@ exports.CommonTokenFactory = CommonTokenFactory;
|
|
|
37671
37974
|
CommonTokenFactory.DEFAULT = new CommonTokenFactory();
|
|
37672
37975
|
})(CommonTokenFactory = exports.CommonTokenFactory || (exports.CommonTokenFactory = {}));
|
|
37673
37976
|
|
|
37674
|
-
},{"./CommonToken":
|
|
37977
|
+
},{"./CommonToken":219,"./Decorators":223,"./misc/Interval":335}],221:[function(require,module,exports){
|
|
37675
37978
|
"use strict";
|
|
37676
37979
|
/*!
|
|
37677
37980
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37798,7 +38101,7 @@ CommonTokenStream = __decorate([
|
|
|
37798
38101
|
], CommonTokenStream);
|
|
37799
38102
|
exports.CommonTokenStream = CommonTokenStream;
|
|
37800
38103
|
|
|
37801
|
-
},{"./BufferedTokenStream":
|
|
38104
|
+
},{"./BufferedTokenStream":214,"./Decorators":223,"./Token":248}],222:[function(require,module,exports){
|
|
37802
38105
|
"use strict";
|
|
37803
38106
|
/*!
|
|
37804
38107
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37832,7 +38135,7 @@ exports.ConsoleErrorListener = ConsoleErrorListener;
|
|
|
37832
38135
|
*/
|
|
37833
38136
|
ConsoleErrorListener.INSTANCE = new ConsoleErrorListener();
|
|
37834
38137
|
|
|
37835
|
-
},{}],
|
|
38138
|
+
},{}],223:[function(require,module,exports){
|
|
37836
38139
|
"use strict";
|
|
37837
38140
|
/*!
|
|
37838
38141
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -37859,7 +38162,7 @@ function SuppressWarnings(options) {
|
|
|
37859
38162
|
}
|
|
37860
38163
|
exports.SuppressWarnings = SuppressWarnings;
|
|
37861
38164
|
|
|
37862
|
-
},{}],
|
|
38165
|
+
},{}],224:[function(require,module,exports){
|
|
37863
38166
|
"use strict";
|
|
37864
38167
|
/*!
|
|
37865
38168
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38673,7 +38976,7 @@ __decorate([
|
|
|
38673
38976
|
], DefaultErrorStrategy.prototype, "consumeUntil", null);
|
|
38674
38977
|
exports.DefaultErrorStrategy = DefaultErrorStrategy;
|
|
38675
38978
|
|
|
38676
|
-
},{"./Decorators":
|
|
38979
|
+
},{"./Decorators":223,"./FailedPredicateException":227,"./InputMismatchException":228,"./NoViableAltException":235,"./Token":248,"./atn/ATNState":262,"./atn/ATNStateType":263,"./atn/PredictionContext":303,"./misc/IntervalSet":336}],225:[function(require,module,exports){
|
|
38677
38980
|
"use strict";
|
|
38678
38981
|
/*!
|
|
38679
38982
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38749,7 +39052,7 @@ var Dependents;
|
|
|
38749
39052
|
Dependents[Dependents["FOLLOWING"] = 9] = "FOLLOWING";
|
|
38750
39053
|
})(Dependents = exports.Dependents || (exports.Dependents = {}));
|
|
38751
39054
|
|
|
38752
|
-
},{}],
|
|
39055
|
+
},{}],226:[function(require,module,exports){
|
|
38753
39056
|
"use strict";
|
|
38754
39057
|
/*!
|
|
38755
39058
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38897,7 +39200,7 @@ __decorate([
|
|
|
38897
39200
|
], DiagnosticErrorListener.prototype, "getConflictingAlts", null);
|
|
38898
39201
|
exports.DiagnosticErrorListener = DiagnosticErrorListener;
|
|
38899
39202
|
|
|
38900
|
-
},{"./Decorators":
|
|
39203
|
+
},{"./Decorators":223,"./misc/BitSet":330,"./misc/Interval":335}],227:[function(require,module,exports){
|
|
38901
39204
|
"use strict";
|
|
38902
39205
|
/*!
|
|
38903
39206
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -38962,7 +39265,7 @@ FailedPredicateException = __decorate([
|
|
|
38962
39265
|
], FailedPredicateException);
|
|
38963
39266
|
exports.FailedPredicateException = FailedPredicateException;
|
|
38964
39267
|
|
|
38965
|
-
},{"./Decorators":
|
|
39268
|
+
},{"./Decorators":223,"./RecognitionException":242,"./atn/PredicateTransition":302}],228:[function(require,module,exports){
|
|
38966
39269
|
"use strict";
|
|
38967
39270
|
/*!
|
|
38968
39271
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39002,7 +39305,7 @@ InputMismatchException = __decorate([
|
|
|
39002
39305
|
], InputMismatchException);
|
|
39003
39306
|
exports.InputMismatchException = InputMismatchException;
|
|
39004
39307
|
|
|
39005
|
-
},{"./Decorators":
|
|
39308
|
+
},{"./Decorators":223,"./RecognitionException":242}],229:[function(require,module,exports){
|
|
39006
39309
|
"use strict";
|
|
39007
39310
|
/*!
|
|
39008
39311
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39025,7 +39328,7 @@ var IntStream;
|
|
|
39025
39328
|
IntStream.UNKNOWN_SOURCE_NAME = "<unknown>";
|
|
39026
39329
|
})(IntStream = exports.IntStream || (exports.IntStream = {}));
|
|
39027
39330
|
|
|
39028
|
-
},{}],
|
|
39331
|
+
},{}],230:[function(require,module,exports){
|
|
39029
39332
|
"use strict";
|
|
39030
39333
|
/*!
|
|
39031
39334
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39072,7 +39375,7 @@ __decorate([
|
|
|
39072
39375
|
], InterpreterRuleContext.prototype, "ruleIndex", null);
|
|
39073
39376
|
exports.InterpreterRuleContext = InterpreterRuleContext;
|
|
39074
39377
|
|
|
39075
|
-
},{"./Decorators":
|
|
39378
|
+
},{"./Decorators":223,"./ParserRuleContext":239}],231:[function(require,module,exports){
|
|
39076
39379
|
"use strict";
|
|
39077
39380
|
/*!
|
|
39078
39381
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39408,7 +39711,7 @@ __decorate([
|
|
|
39408
39711
|
], Lexer.prototype, "charPositionInLine", null);
|
|
39409
39712
|
exports.Lexer = Lexer;
|
|
39410
39713
|
|
|
39411
|
-
},{"./CommonTokenFactory":
|
|
39714
|
+
},{"./CommonTokenFactory":220,"./Decorators":223,"./IntStream":229,"./LexerNoViableAltException":233,"./Recognizer":243,"./Token":248,"./atn/LexerATNSimulator":281,"./misc/IntegerStack":334,"./misc/Interval":335}],232:[function(require,module,exports){
|
|
39412
39715
|
"use strict";
|
|
39413
39716
|
/*!
|
|
39414
39717
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39488,7 +39791,7 @@ LexerInterpreter = __decorate([
|
|
|
39488
39791
|
], LexerInterpreter);
|
|
39489
39792
|
exports.LexerInterpreter = LexerInterpreter;
|
|
39490
39793
|
|
|
39491
|
-
},{"./Decorators":
|
|
39794
|
+
},{"./Decorators":223,"./Lexer":231,"./atn/LexerATNSimulator":281}],233:[function(require,module,exports){
|
|
39492
39795
|
"use strict";
|
|
39493
39796
|
/*!
|
|
39494
39797
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39545,7 +39848,7 @@ LexerNoViableAltException = __decorate([
|
|
|
39545
39848
|
], LexerNoViableAltException);
|
|
39546
39849
|
exports.LexerNoViableAltException = LexerNoViableAltException;
|
|
39547
39850
|
|
|
39548
|
-
},{"./Decorators":
|
|
39851
|
+
},{"./Decorators":223,"./RecognitionException":242,"./misc/Interval":335,"./misc/Utils":342}],234:[function(require,module,exports){
|
|
39549
39852
|
"use strict";
|
|
39550
39853
|
/*!
|
|
39551
39854
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39755,7 +40058,7 @@ ListTokenSource = __decorate([
|
|
|
39755
40058
|
], ListTokenSource);
|
|
39756
40059
|
exports.ListTokenSource = ListTokenSource;
|
|
39757
40060
|
|
|
39758
|
-
},{"./CommonTokenFactory":
|
|
40061
|
+
},{"./CommonTokenFactory":220,"./Decorators":223,"./Token":248}],235:[function(require,module,exports){
|
|
39759
40062
|
"use strict";
|
|
39760
40063
|
/*!
|
|
39761
40064
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -39810,7 +40113,7 @@ __decorate([
|
|
|
39810
40113
|
], NoViableAltException.prototype, "_startToken", void 0);
|
|
39811
40114
|
exports.NoViableAltException = NoViableAltException;
|
|
39812
40115
|
|
|
39813
|
-
},{"./Decorators":
|
|
40116
|
+
},{"./Decorators":223,"./Parser":236,"./RecognitionException":242}],236:[function(require,module,exports){
|
|
39814
40117
|
(function (process){(function (){
|
|
39815
40118
|
"use strict";
|
|
39816
40119
|
/*!
|
|
@@ -40656,7 +40959,7 @@ __decorate([
|
|
|
40656
40959
|
exports.Parser = Parser;
|
|
40657
40960
|
|
|
40658
40961
|
}).call(this)}).call(this,require('_process'))
|
|
40659
|
-
},{"./Decorators":
|
|
40962
|
+
},{"./Decorators":223,"./DefaultErrorStrategy":224,"./Lexer":231,"./ProxyParserErrorListener":241,"./Recognizer":243,"./Token":248,"./atn/ATNDeserializationOptions":259,"./atn/ATNDeserializer":260,"./atn/ParseInfo":296,"./atn/ParserATNSimulator":297,"./atn/ProfilingATNSimulator":306,"./misc/IntegerStack":334,"./misc/Utils":342,"./tree/ErrorNode":343,"./tree/TerminalNode":346,"./tree/pattern/ParseTreePatternMatcher":351,"_process":425}],237:[function(require,module,exports){
|
|
40660
40963
|
"use strict";
|
|
40661
40964
|
/*!
|
|
40662
40965
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -40664,7 +40967,7 @@ exports.Parser = Parser;
|
|
|
40664
40967
|
*/
|
|
40665
40968
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
40666
40969
|
|
|
40667
|
-
},{}],
|
|
40970
|
+
},{}],238:[function(require,module,exports){
|
|
40668
40971
|
"use strict";
|
|
40669
40972
|
/*!
|
|
40670
40973
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41072,7 +41375,7 @@ ParserInterpreter = __decorate([
|
|
|
41072
41375
|
], ParserInterpreter);
|
|
41073
41376
|
exports.ParserInterpreter = ParserInterpreter;
|
|
41074
41377
|
|
|
41075
|
-
},{"./Decorators":
|
|
41378
|
+
},{"./Decorators":223,"./FailedPredicateException":227,"./InputMismatchException":228,"./InterpreterRuleContext":230,"./Parser":236,"./RecognitionException":242,"./Token":248,"./atn/ATNState":262,"./atn/ATNStateType":263,"./atn/LoopEndState":293,"./atn/ParserATNSimulator":297,"./atn/StarLoopEntryState":315,"./misc/BitSet":330}],239:[function(require,module,exports){
|
|
41076
41379
|
"use strict";
|
|
41077
41380
|
/*!
|
|
41078
41381
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41373,7 +41676,7 @@ __decorate([
|
|
|
41373
41676
|
], ParserRuleContext.prototype, "sourceInterval", null);
|
|
41374
41677
|
exports.ParserRuleContext = ParserRuleContext;
|
|
41375
41678
|
|
|
41376
|
-
},{"./Decorators":
|
|
41679
|
+
},{"./Decorators":223,"./RuleContext":244,"./misc/Interval":335,"./tree/ErrorNode":343,"./tree/TerminalNode":346}],240:[function(require,module,exports){
|
|
41377
41680
|
"use strict";
|
|
41378
41681
|
/*!
|
|
41379
41682
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41423,7 +41726,7 @@ __decorate([
|
|
|
41423
41726
|
], ProxyErrorListener.prototype, "syntaxError", null);
|
|
41424
41727
|
exports.ProxyErrorListener = ProxyErrorListener;
|
|
41425
41728
|
|
|
41426
|
-
},{"./Decorators":
|
|
41729
|
+
},{"./Decorators":223}],241:[function(require,module,exports){
|
|
41427
41730
|
"use strict";
|
|
41428
41731
|
/*!
|
|
41429
41732
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41482,7 +41785,7 @@ __decorate([
|
|
|
41482
41785
|
], ProxyParserErrorListener.prototype, "reportContextSensitivity", null);
|
|
41483
41786
|
exports.ProxyParserErrorListener = ProxyParserErrorListener;
|
|
41484
41787
|
|
|
41485
|
-
},{"./Decorators":
|
|
41788
|
+
},{"./Decorators":223,"./ProxyErrorListener":240}],242:[function(require,module,exports){
|
|
41486
41789
|
"use strict";
|
|
41487
41790
|
/*!
|
|
41488
41791
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41587,7 +41890,7 @@ class RecognitionException extends Error {
|
|
|
41587
41890
|
}
|
|
41588
41891
|
exports.RecognitionException = RecognitionException;
|
|
41589
41892
|
|
|
41590
|
-
},{}],
|
|
41893
|
+
},{}],243:[function(require,module,exports){
|
|
41591
41894
|
"use strict";
|
|
41592
41895
|
/*!
|
|
41593
41896
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -41806,7 +42109,7 @@ __decorate([
|
|
|
41806
42109
|
], Recognizer.prototype, "getErrorListeners", null);
|
|
41807
42110
|
exports.Recognizer = Recognizer;
|
|
41808
42111
|
|
|
41809
|
-
},{"./ConsoleErrorListener":
|
|
42112
|
+
},{"./ConsoleErrorListener":222,"./Decorators":223,"./ProxyErrorListener":240,"./Token":248,"./misc/Utils":342}],244:[function(require,module,exports){
|
|
41810
42113
|
"use strict";
|
|
41811
42114
|
/*!
|
|
41812
42115
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42023,7 +42326,7 @@ __decorate([
|
|
|
42023
42326
|
], RuleContext.prototype, "toStringTree", null);
|
|
42024
42327
|
exports.RuleContext = RuleContext;
|
|
42025
42328
|
|
|
42026
|
-
},{"./Decorators":
|
|
42329
|
+
},{"./Decorators":223,"./ParserRuleContext":239,"./Recognizer":243,"./atn/ATN":256,"./misc/Interval":335,"./tree/RuleNode":345,"./tree/Trees":347}],245:[function(require,module,exports){
|
|
42027
42330
|
"use strict";
|
|
42028
42331
|
/*!
|
|
42029
42332
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42074,7 +42377,7 @@ __decorate([
|
|
|
42074
42377
|
], RuleContextWithAltNum.prototype, "altNumber", null);
|
|
42075
42378
|
exports.RuleContextWithAltNum = RuleContextWithAltNum;
|
|
42076
42379
|
|
|
42077
|
-
},{"./Decorators":
|
|
42380
|
+
},{"./Decorators":223,"./ParserRuleContext":239,"./atn/ATN":256}],246:[function(require,module,exports){
|
|
42078
42381
|
"use strict";
|
|
42079
42382
|
/*!
|
|
42080
42383
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42097,7 +42400,7 @@ function RuleDependency(dependency) {
|
|
|
42097
42400
|
}
|
|
42098
42401
|
exports.RuleDependency = RuleDependency;
|
|
42099
42402
|
|
|
42100
|
-
},{}],
|
|
42403
|
+
},{}],247:[function(require,module,exports){
|
|
42101
42404
|
"use strict";
|
|
42102
42405
|
/*!
|
|
42103
42406
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42116,7 +42419,7 @@ function RuleVersion(version) {
|
|
|
42116
42419
|
}
|
|
42117
42420
|
exports.RuleVersion = RuleVersion;
|
|
42118
42421
|
|
|
42119
|
-
},{}],
|
|
42422
|
+
},{}],248:[function(require,module,exports){
|
|
42120
42423
|
"use strict";
|
|
42121
42424
|
/*!
|
|
42122
42425
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42156,7 +42459,7 @@ var Token;
|
|
|
42156
42459
|
Token.MIN_USER_CHANNEL_VALUE = 2;
|
|
42157
42460
|
})(Token = exports.Token || (exports.Token = {}));
|
|
42158
42461
|
|
|
42159
|
-
},{"./IntStream":
|
|
42462
|
+
},{"./IntStream":229}],249:[function(require,module,exports){
|
|
42160
42463
|
"use strict";
|
|
42161
42464
|
/*!
|
|
42162
42465
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42164,7 +42467,7 @@ var Token;
|
|
|
42164
42467
|
*/
|
|
42165
42468
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42166
42469
|
|
|
42167
|
-
},{}],
|
|
42470
|
+
},{}],250:[function(require,module,exports){
|
|
42168
42471
|
"use strict";
|
|
42169
42472
|
/*!
|
|
42170
42473
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42172,7 +42475,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42172
42475
|
*/
|
|
42173
42476
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42174
42477
|
|
|
42175
|
-
},{}],
|
|
42478
|
+
},{}],251:[function(require,module,exports){
|
|
42176
42479
|
"use strict";
|
|
42177
42480
|
/*!
|
|
42178
42481
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42180,7 +42483,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
42180
42483
|
*/
|
|
42181
42484
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42182
42485
|
|
|
42183
|
-
},{}],
|
|
42486
|
+
},{}],252:[function(require,module,exports){
|
|
42184
42487
|
"use strict";
|
|
42185
42488
|
/*!
|
|
42186
42489
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42688,7 +42991,7 @@ __decorate([
|
|
|
42688
42991
|
Decorators_1.Override
|
|
42689
42992
|
], ReplaceOp.prototype, "toString", null);
|
|
42690
42993
|
|
|
42691
|
-
},{"./Decorators":
|
|
42994
|
+
},{"./Decorators":223,"./Token":248,"./misc/Interval":335}],253:[function(require,module,exports){
|
|
42692
42995
|
"use strict";
|
|
42693
42996
|
/*!
|
|
42694
42997
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42696,7 +42999,7 @@ __decorate([
|
|
|
42696
42999
|
*/
|
|
42697
43000
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42698
43001
|
|
|
42699
|
-
},{}],
|
|
43002
|
+
},{}],254:[function(require,module,exports){
|
|
42700
43003
|
"use strict";
|
|
42701
43004
|
/*!
|
|
42702
43005
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42816,7 +43119,7 @@ __decorate([
|
|
|
42816
43119
|
], VocabularyImpl, "EMPTY_VOCABULARY", void 0);
|
|
42817
43120
|
exports.VocabularyImpl = VocabularyImpl;
|
|
42818
43121
|
|
|
42819
|
-
},{"./Decorators":
|
|
43122
|
+
},{"./Decorators":223,"./Token":248}],255:[function(require,module,exports){
|
|
42820
43123
|
"use strict";
|
|
42821
43124
|
/*!
|
|
42822
43125
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -42824,7 +43127,7 @@ exports.VocabularyImpl = VocabularyImpl;
|
|
|
42824
43127
|
*/
|
|
42825
43128
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42826
43129
|
|
|
42827
|
-
},{}],
|
|
43130
|
+
},{}],256:[function(require,module,exports){
|
|
42828
43131
|
"use strict";
|
|
42829
43132
|
/*!
|
|
42830
43133
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43046,7 +43349,7 @@ exports.ATN = ATN;
|
|
|
43046
43349
|
})(ATN = exports.ATN || (exports.ATN = {}));
|
|
43047
43350
|
exports.ATN = ATN;
|
|
43048
43351
|
|
|
43049
|
-
},{"../Decorators":
|
|
43352
|
+
},{"../Decorators":223,"../Token":248,"../dfa/DFA":321,"../misc/Array2DHashMap":326,"../misc/IntervalSet":336,"../misc/ObjectEqualityComparator":339,"./InvalidState":279,"./LL1Analyzer":280,"./PredictionContext":303,"assert":366}],257:[function(require,module,exports){
|
|
43050
43353
|
"use strict";
|
|
43051
43354
|
/*!
|
|
43052
43355
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -43571,7 +43874,7 @@ ActionSemanticContextATNConfig = __decorate([
|
|
|
43571
43874
|
__param(1, Decorators_1.NotNull), __param(2, Decorators_1.NotNull)
|
|
43572
43875
|
], ActionSemanticContextATNConfig);
|
|
43573
43876
|
|
|
43574
|
-
},{"../Decorators":
|
|
43877
|
+
},{"../Decorators":223,"../misc/Array2DHashMap":326,"../misc/MurmurHash":338,"../misc/ObjectEqualityComparator":339,"./DecisionState":276,"./PredictionContext":303,"./SemanticContext":311,"assert":366}],258:[function(require,module,exports){
|
|
43575
43878
|
"use strict";
|
|
43576
43879
|
/*!
|
|
43577
43880
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44018,7 +44321,7 @@ __decorate([
|
|
|
44018
44321
|
], ATNConfigSet.prototype, "hashCode", null);
|
|
44019
44322
|
exports.ATNConfigSet = ATNConfigSet;
|
|
44020
44323
|
|
|
44021
|
-
},{"../Decorators":
|
|
44324
|
+
},{"../Decorators":223,"../misc/Array2DHashMap":326,"../misc/Array2DHashSet":327,"../misc/ArrayEqualityComparator":328,"../misc/BitSet":330,"../misc/ObjectEqualityComparator":339,"../misc/Utils":342,"./ATN":256,"./ATNConfig":257,"./PredictionContext":303,"./PredictionContextCache":304,"./SemanticContext":311,"assert":366}],259:[function(require,module,exports){
|
|
44022
44325
|
"use strict";
|
|
44023
44326
|
/*!
|
|
44024
44327
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -44097,7 +44400,7 @@ __decorate([
|
|
|
44097
44400
|
], ATNDeserializationOptions, "defaultOptions", null);
|
|
44098
44401
|
exports.ATNDeserializationOptions = ATNDeserializationOptions;
|
|
44099
44402
|
|
|
44100
|
-
},{"../Decorators":
|
|
44403
|
+
},{"../Decorators":223}],260:[function(require,module,exports){
|
|
44101
44404
|
"use strict";
|
|
44102
44405
|
/*!
|
|
44103
44406
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45184,7 +45487,7 @@ __decorate([
|
|
|
45184
45487
|
], ATNDeserializer.prototype, "edgeFactory", null);
|
|
45185
45488
|
exports.ATNDeserializer = ATNDeserializer;
|
|
45186
45489
|
|
|
45187
|
-
},{"../Decorators":
|
|
45490
|
+
},{"../Decorators":223,"../Token":248,"../dfa/DFA":321,"../misc/Array2DHashSet":327,"../misc/BitSet":330,"../misc/IntervalSet":336,"../misc/UUID":341,"./ATN":256,"./ATNDeserializationOptions":259,"./ATNStateType":263,"./ActionTransition":265,"./AtomTransition":267,"./BasicBlockStartState":268,"./BasicState":269,"./BlockEndState":270,"./BlockStartState":271,"./DecisionState":276,"./EpsilonTransition":277,"./InvalidState":279,"./LexerChannelAction":283,"./LexerCustomAction":284,"./LexerModeAction":286,"./LexerMoreAction":287,"./LexerPopModeAction":288,"./LexerPushModeAction":289,"./LexerSkipAction":290,"./LexerTypeAction":291,"./LoopEndState":293,"./NotSetTransition":294,"./ParserATNSimulator":297,"./PlusBlockStartState":298,"./PlusLoopbackState":299,"./PrecedencePredicateTransition":300,"./PredicateTransition":302,"./RangeTransition":307,"./RuleStartState":308,"./RuleStopState":309,"./RuleTransition":310,"./SetTransition":312,"./StarBlockStartState":314,"./StarLoopEntryState":315,"./StarLoopbackState":316,"./TokensStartState":317,"./WildcardTransition":319}],261:[function(require,module,exports){
|
|
45188
45491
|
"use strict";
|
|
45189
45492
|
/*!
|
|
45190
45493
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45248,7 +45551,7 @@ exports.ATNSimulator = ATNSimulator;
|
|
|
45248
45551
|
})(ATNSimulator = exports.ATNSimulator || (exports.ATNSimulator = {}));
|
|
45249
45552
|
exports.ATNSimulator = ATNSimulator;
|
|
45250
45553
|
|
|
45251
|
-
},{"../Decorators":
|
|
45554
|
+
},{"../Decorators":223,"../dfa/DFAState":323,"./ATNConfigSet":258,"./PredictionContext":303}],262:[function(require,module,exports){
|
|
45252
45555
|
"use strict";
|
|
45253
45556
|
/*!
|
|
45254
45557
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45435,7 +45738,7 @@ exports.ATNState = ATNState;
|
|
|
45435
45738
|
ATNState.INVALID_STATE_NUMBER = -1;
|
|
45436
45739
|
})(ATNState = exports.ATNState || (exports.ATNState = {}));
|
|
45437
45740
|
|
|
45438
|
-
},{"../Decorators":
|
|
45741
|
+
},{"../Decorators":223}],263:[function(require,module,exports){
|
|
45439
45742
|
"use strict";
|
|
45440
45743
|
/*!
|
|
45441
45744
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45461,7 +45764,7 @@ var ATNStateType;
|
|
|
45461
45764
|
ATNStateType[ATNStateType["LOOP_END"] = 12] = "LOOP_END";
|
|
45462
45765
|
})(ATNStateType = exports.ATNStateType || (exports.ATNStateType = {}));
|
|
45463
45766
|
|
|
45464
|
-
},{}],
|
|
45767
|
+
},{}],264:[function(require,module,exports){
|
|
45465
45768
|
"use strict";
|
|
45466
45769
|
/*!
|
|
45467
45770
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45481,7 +45784,7 @@ class AbstractPredicateTransition extends Transition_1.Transition {
|
|
|
45481
45784
|
}
|
|
45482
45785
|
exports.AbstractPredicateTransition = AbstractPredicateTransition;
|
|
45483
45786
|
|
|
45484
|
-
},{"./Transition":
|
|
45787
|
+
},{"./Transition":318}],265:[function(require,module,exports){
|
|
45485
45788
|
"use strict";
|
|
45486
45789
|
/*!
|
|
45487
45790
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45537,7 +45840,7 @@ ActionTransition = __decorate([
|
|
|
45537
45840
|
], ActionTransition);
|
|
45538
45841
|
exports.ActionTransition = ActionTransition;
|
|
45539
45842
|
|
|
45540
|
-
},{"../Decorators":
|
|
45843
|
+
},{"../Decorators":223,"./Transition":318}],266:[function(require,module,exports){
|
|
45541
45844
|
"use strict";
|
|
45542
45845
|
/*!
|
|
45543
45846
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45624,7 +45927,7 @@ AmbiguityInfo = __decorate([
|
|
|
45624
45927
|
], AmbiguityInfo);
|
|
45625
45928
|
exports.AmbiguityInfo = AmbiguityInfo;
|
|
45626
45929
|
|
|
45627
|
-
},{"../Decorators":
|
|
45930
|
+
},{"../Decorators":223,"./DecisionEventInfo":274}],267:[function(require,module,exports){
|
|
45628
45931
|
"use strict";
|
|
45629
45932
|
/*!
|
|
45630
45933
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45682,7 +45985,7 @@ AtomTransition = __decorate([
|
|
|
45682
45985
|
], AtomTransition);
|
|
45683
45986
|
exports.AtomTransition = AtomTransition;
|
|
45684
45987
|
|
|
45685
|
-
},{"../Decorators":
|
|
45988
|
+
},{"../Decorators":223,"../misc/IntervalSet":336,"./Transition":318}],268:[function(require,module,exports){
|
|
45686
45989
|
"use strict";
|
|
45687
45990
|
/*!
|
|
45688
45991
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45714,7 +46017,7 @@ __decorate([
|
|
|
45714
46017
|
], BasicBlockStartState.prototype, "stateType", null);
|
|
45715
46018
|
exports.BasicBlockStartState = BasicBlockStartState;
|
|
45716
46019
|
|
|
45717
|
-
},{"../Decorators":
|
|
46020
|
+
},{"../Decorators":223,"./ATNStateType":263,"./BlockStartState":271}],269:[function(require,module,exports){
|
|
45718
46021
|
"use strict";
|
|
45719
46022
|
/*!
|
|
45720
46023
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45746,7 +46049,7 @@ __decorate([
|
|
|
45746
46049
|
], BasicState.prototype, "stateType", null);
|
|
45747
46050
|
exports.BasicState = BasicState;
|
|
45748
46051
|
|
|
45749
|
-
},{"../Decorators":
|
|
46052
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],270:[function(require,module,exports){
|
|
45750
46053
|
"use strict";
|
|
45751
46054
|
/*!
|
|
45752
46055
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45775,7 +46078,7 @@ __decorate([
|
|
|
45775
46078
|
], BlockEndState.prototype, "stateType", null);
|
|
45776
46079
|
exports.BlockEndState = BlockEndState;
|
|
45777
46080
|
|
|
45778
|
-
},{"../Decorators":
|
|
46081
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],271:[function(require,module,exports){
|
|
45779
46082
|
"use strict";
|
|
45780
46083
|
/*!
|
|
45781
46084
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45789,7 +46092,7 @@ class BlockStartState extends DecisionState_1.DecisionState {
|
|
|
45789
46092
|
}
|
|
45790
46093
|
exports.BlockStartState = BlockStartState;
|
|
45791
46094
|
|
|
45792
|
-
},{"./DecisionState":
|
|
46095
|
+
},{"./DecisionState":276}],272:[function(require,module,exports){
|
|
45793
46096
|
"use strict";
|
|
45794
46097
|
/*!
|
|
45795
46098
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45859,7 +46162,7 @@ __decorate([
|
|
|
45859
46162
|
], ConflictInfo.prototype, "hashCode", null);
|
|
45860
46163
|
exports.ConflictInfo = ConflictInfo;
|
|
45861
46164
|
|
|
45862
|
-
},{"../Decorators":
|
|
46165
|
+
},{"../Decorators":223,"../misc/Utils":342}],273:[function(require,module,exports){
|
|
45863
46166
|
"use strict";
|
|
45864
46167
|
/*!
|
|
45865
46168
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45919,7 +46222,7 @@ ContextSensitivityInfo = __decorate([
|
|
|
45919
46222
|
], ContextSensitivityInfo);
|
|
45920
46223
|
exports.ContextSensitivityInfo = ContextSensitivityInfo;
|
|
45921
46224
|
|
|
45922
|
-
},{"../Decorators":
|
|
46225
|
+
},{"../Decorators":223,"./DecisionEventInfo":274}],274:[function(require,module,exports){
|
|
45923
46226
|
"use strict";
|
|
45924
46227
|
/*!
|
|
45925
46228
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -45971,7 +46274,7 @@ DecisionEventInfo = __decorate([
|
|
|
45971
46274
|
], DecisionEventInfo);
|
|
45972
46275
|
exports.DecisionEventInfo = DecisionEventInfo;
|
|
45973
46276
|
|
|
45974
|
-
},{"../Decorators":
|
|
46277
|
+
},{"../Decorators":223}],275:[function(require,module,exports){
|
|
45975
46278
|
"use strict";
|
|
45976
46279
|
/*!
|
|
45977
46280
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46184,7 +46487,7 @@ __decorate([
|
|
|
46184
46487
|
], DecisionInfo.prototype, "toString", null);
|
|
46185
46488
|
exports.DecisionInfo = DecisionInfo;
|
|
46186
46489
|
|
|
46187
|
-
},{"../Decorators":
|
|
46490
|
+
},{"../Decorators":223}],276:[function(require,module,exports){
|
|
46188
46491
|
"use strict";
|
|
46189
46492
|
/*!
|
|
46190
46493
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46204,7 +46507,7 @@ class DecisionState extends ATNState_1.ATNState {
|
|
|
46204
46507
|
}
|
|
46205
46508
|
exports.DecisionState = DecisionState;
|
|
46206
46509
|
|
|
46207
|
-
},{"./ATNState":
|
|
46510
|
+
},{"./ATNState":262}],277:[function(require,module,exports){
|
|
46208
46511
|
"use strict";
|
|
46209
46512
|
/*!
|
|
46210
46513
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46270,7 +46573,7 @@ EpsilonTransition = __decorate([
|
|
|
46270
46573
|
], EpsilonTransition);
|
|
46271
46574
|
exports.EpsilonTransition = EpsilonTransition;
|
|
46272
46575
|
|
|
46273
|
-
},{"../Decorators":
|
|
46576
|
+
},{"../Decorators":223,"./Transition":318}],278:[function(require,module,exports){
|
|
46274
46577
|
"use strict";
|
|
46275
46578
|
/*!
|
|
46276
46579
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46323,7 +46626,7 @@ ErrorInfo = __decorate([
|
|
|
46323
46626
|
], ErrorInfo);
|
|
46324
46627
|
exports.ErrorInfo = ErrorInfo;
|
|
46325
46628
|
|
|
46326
|
-
},{"../Decorators":
|
|
46629
|
+
},{"../Decorators":223,"./DecisionEventInfo":274}],279:[function(require,module,exports){
|
|
46327
46630
|
"use strict";
|
|
46328
46631
|
/*!
|
|
46329
46632
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46354,7 +46657,7 @@ __decorate([
|
|
|
46354
46657
|
], InvalidState.prototype, "stateType", null);
|
|
46355
46658
|
exports.InvalidState = InvalidState;
|
|
46356
46659
|
|
|
46357
|
-
},{"../Decorators":
|
|
46660
|
+
},{"../Decorators":223,"./ATNStateType":263,"./BasicState":269}],280:[function(require,module,exports){
|
|
46358
46661
|
"use strict";
|
|
46359
46662
|
/*!
|
|
46360
46663
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -46576,7 +46879,7 @@ LL1Analyzer = __decorate([
|
|
|
46576
46879
|
], LL1Analyzer);
|
|
46577
46880
|
exports.LL1Analyzer = LL1Analyzer;
|
|
46578
46881
|
|
|
46579
|
-
},{"../Decorators":
|
|
46882
|
+
},{"../Decorators":223,"../Token":248,"../misc/Array2DHashSet":327,"../misc/BitSet":330,"../misc/IntervalSet":336,"../misc/ObjectEqualityComparator":339,"./ATNConfig":257,"./AbstractPredicateTransition":264,"./NotSetTransition":294,"./PredictionContext":303,"./RuleStopState":309,"./RuleTransition":310,"./WildcardTransition":319}],281:[function(require,module,exports){
|
|
46580
46883
|
"use strict";
|
|
46581
46884
|
/*!
|
|
46582
46885
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47293,7 +47596,7 @@ exports.LexerATNSimulator = LexerATNSimulator;
|
|
|
47293
47596
|
})(LexerATNSimulator = exports.LexerATNSimulator || (exports.LexerATNSimulator = {}));
|
|
47294
47597
|
exports.LexerATNSimulator = LexerATNSimulator;
|
|
47295
47598
|
|
|
47296
|
-
},{"../Decorators":
|
|
47599
|
+
},{"../Decorators":223,"../IntStream":229,"../Lexer":231,"../LexerNoViableAltException":233,"../Token":248,"../dfa/AcceptStateInfo":320,"../dfa/DFAState":323,"../misc/Interval":335,"./ATN":256,"./ATNConfig":257,"./ATNConfigSet":258,"./ATNSimulator":261,"./LexerActionExecutor":282,"./OrderedATNConfigSet":295,"./PredictionContext":303,"./RuleStopState":309,"assert":366}],282:[function(require,module,exports){
|
|
47297
47600
|
"use strict";
|
|
47298
47601
|
/*!
|
|
47299
47602
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47494,7 +47797,7 @@ LexerActionExecutor = __decorate([
|
|
|
47494
47797
|
], LexerActionExecutor);
|
|
47495
47798
|
exports.LexerActionExecutor = LexerActionExecutor;
|
|
47496
47799
|
|
|
47497
|
-
},{"../Decorators":
|
|
47800
|
+
},{"../Decorators":223,"../misc/ArrayEqualityComparator":328,"../misc/MurmurHash":338,"./LexerIndexedCustomAction":285}],283:[function(require,module,exports){
|
|
47498
47801
|
"use strict";
|
|
47499
47802
|
/*!
|
|
47500
47803
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47599,7 +47902,7 @@ __decorate([
|
|
|
47599
47902
|
], LexerChannelAction.prototype, "toString", null);
|
|
47600
47903
|
exports.LexerChannelAction = LexerChannelAction;
|
|
47601
47904
|
|
|
47602
|
-
},{"../Decorators":
|
|
47905
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],284:[function(require,module,exports){
|
|
47603
47906
|
"use strict";
|
|
47604
47907
|
/*!
|
|
47605
47908
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47728,7 +48031,7 @@ __decorate([
|
|
|
47728
48031
|
], LexerCustomAction.prototype, "equals", null);
|
|
47729
48032
|
exports.LexerCustomAction = LexerCustomAction;
|
|
47730
48033
|
|
|
47731
|
-
},{"../Decorators":
|
|
48034
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],285:[function(require,module,exports){
|
|
47732
48035
|
"use strict";
|
|
47733
48036
|
/*!
|
|
47734
48037
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47863,7 +48166,7 @@ LexerIndexedCustomAction = __decorate([
|
|
|
47863
48166
|
], LexerIndexedCustomAction);
|
|
47864
48167
|
exports.LexerIndexedCustomAction = LexerIndexedCustomAction;
|
|
47865
48168
|
|
|
47866
|
-
},{"../Decorators":
|
|
48169
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],286:[function(require,module,exports){
|
|
47867
48170
|
"use strict";
|
|
47868
48171
|
/*!
|
|
47869
48172
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -47968,7 +48271,7 @@ __decorate([
|
|
|
47968
48271
|
], LexerModeAction.prototype, "toString", null);
|
|
47969
48272
|
exports.LexerModeAction = LexerModeAction;
|
|
47970
48273
|
|
|
47971
|
-
},{"../Decorators":
|
|
48274
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],287:[function(require,module,exports){
|
|
47972
48275
|
"use strict";
|
|
47973
48276
|
/*!
|
|
47974
48277
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48064,7 +48367,7 @@ exports.LexerMoreAction = LexerMoreAction;
|
|
|
48064
48367
|
LexerMoreAction.INSTANCE = new LexerMoreAction();
|
|
48065
48368
|
})(LexerMoreAction = exports.LexerMoreAction || (exports.LexerMoreAction = {}));
|
|
48066
48369
|
|
|
48067
|
-
},{"../Decorators":
|
|
48370
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],288:[function(require,module,exports){
|
|
48068
48371
|
"use strict";
|
|
48069
48372
|
/*!
|
|
48070
48373
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48160,7 +48463,7 @@ exports.LexerPopModeAction = LexerPopModeAction;
|
|
|
48160
48463
|
LexerPopModeAction.INSTANCE = new LexerPopModeAction();
|
|
48161
48464
|
})(LexerPopModeAction = exports.LexerPopModeAction || (exports.LexerPopModeAction = {}));
|
|
48162
48465
|
|
|
48163
|
-
},{"../Decorators":
|
|
48466
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],289:[function(require,module,exports){
|
|
48164
48467
|
"use strict";
|
|
48165
48468
|
/*!
|
|
48166
48469
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48265,7 +48568,7 @@ __decorate([
|
|
|
48265
48568
|
], LexerPushModeAction.prototype, "toString", null);
|
|
48266
48569
|
exports.LexerPushModeAction = LexerPushModeAction;
|
|
48267
48570
|
|
|
48268
|
-
},{"../Decorators":
|
|
48571
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],290:[function(require,module,exports){
|
|
48269
48572
|
"use strict";
|
|
48270
48573
|
/*!
|
|
48271
48574
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48361,7 +48664,7 @@ exports.LexerSkipAction = LexerSkipAction;
|
|
|
48361
48664
|
LexerSkipAction.INSTANCE = new LexerSkipAction();
|
|
48362
48665
|
})(LexerSkipAction = exports.LexerSkipAction || (exports.LexerSkipAction = {}));
|
|
48363
48666
|
|
|
48364
|
-
},{"../Decorators":
|
|
48667
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],291:[function(require,module,exports){
|
|
48365
48668
|
"use strict";
|
|
48366
48669
|
/*!
|
|
48367
48670
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48465,7 +48768,7 @@ __decorate([
|
|
|
48465
48768
|
], LexerTypeAction.prototype, "toString", null);
|
|
48466
48769
|
exports.LexerTypeAction = LexerTypeAction;
|
|
48467
48770
|
|
|
48468
|
-
},{"../Decorators":
|
|
48771
|
+
},{"../Decorators":223,"../misc/MurmurHash":338}],292:[function(require,module,exports){
|
|
48469
48772
|
"use strict";
|
|
48470
48773
|
/*!
|
|
48471
48774
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48517,7 +48820,7 @@ LookaheadEventInfo = __decorate([
|
|
|
48517
48820
|
], LookaheadEventInfo);
|
|
48518
48821
|
exports.LookaheadEventInfo = LookaheadEventInfo;
|
|
48519
48822
|
|
|
48520
|
-
},{"../Decorators":
|
|
48823
|
+
},{"../Decorators":223,"./DecisionEventInfo":274}],293:[function(require,module,exports){
|
|
48521
48824
|
"use strict";
|
|
48522
48825
|
/*!
|
|
48523
48826
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48546,7 +48849,7 @@ __decorate([
|
|
|
48546
48849
|
], LoopEndState.prototype, "stateType", null);
|
|
48547
48850
|
exports.LoopEndState = LoopEndState;
|
|
48548
48851
|
|
|
48549
|
-
},{"../Decorators":
|
|
48852
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],294:[function(require,module,exports){
|
|
48550
48853
|
"use strict";
|
|
48551
48854
|
/*!
|
|
48552
48855
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48595,7 +48898,7 @@ NotSetTransition = __decorate([
|
|
|
48595
48898
|
], NotSetTransition);
|
|
48596
48899
|
exports.NotSetTransition = NotSetTransition;
|
|
48597
48900
|
|
|
48598
|
-
},{"../Decorators":
|
|
48901
|
+
},{"../Decorators":223,"./SetTransition":312}],295:[function(require,module,exports){
|
|
48599
48902
|
"use strict";
|
|
48600
48903
|
/*!
|
|
48601
48904
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48650,7 +48953,7 @@ __decorate([
|
|
|
48650
48953
|
], OrderedATNConfigSet.prototype, "canMerge", null);
|
|
48651
48954
|
exports.OrderedATNConfigSet = OrderedATNConfigSet;
|
|
48652
48955
|
|
|
48653
|
-
},{"../Decorators":
|
|
48956
|
+
},{"../Decorators":223,"./ATNConfigSet":258}],296:[function(require,module,exports){
|
|
48654
48957
|
"use strict";
|
|
48655
48958
|
/*!
|
|
48656
48959
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -48812,7 +49115,7 @@ ParseInfo = __decorate([
|
|
|
48812
49115
|
], ParseInfo);
|
|
48813
49116
|
exports.ParseInfo = ParseInfo;
|
|
48814
49117
|
|
|
48815
|
-
},{"../Decorators":
|
|
49118
|
+
},{"../Decorators":223}],297:[function(require,module,exports){
|
|
48816
49119
|
"use strict";
|
|
48817
49120
|
/*!
|
|
48818
49121
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51085,7 +51388,7 @@ ParserATNSimulator = __decorate([
|
|
|
51085
51388
|
], ParserATNSimulator);
|
|
51086
51389
|
exports.ParserATNSimulator = ParserATNSimulator;
|
|
51087
51390
|
|
|
51088
|
-
},{"../Decorators":
|
|
51391
|
+
},{"../Decorators":223,"../IntStream":229,"../NoViableAltException":235,"../ParserRuleContext":239,"../Token":248,"../VocabularyImpl":254,"../dfa/AcceptStateInfo":320,"../dfa/DFAState":323,"../misc/Array2DHashSet":327,"../misc/Arrays":329,"../misc/BitSet":330,"../misc/IntegerList":333,"../misc/Interval":335,"../misc/ObjectEqualityComparator":339,"./ATN":256,"./ATNConfig":257,"./ATNConfigSet":258,"./ATNSimulator":261,"./ATNStateType":263,"./ActionTransition":265,"./AtomTransition":267,"./ConflictInfo":272,"./DecisionState":276,"./NotSetTransition":294,"./PredictionContext":303,"./PredictionContextCache":304,"./PredictionMode":305,"./RuleStopState":309,"./RuleTransition":310,"./SemanticContext":311,"./SetTransition":312,"./SimulatorState":313,"assert":366}],298:[function(require,module,exports){
|
|
51089
51392
|
"use strict";
|
|
51090
51393
|
/*!
|
|
51091
51394
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51118,7 +51421,7 @@ __decorate([
|
|
|
51118
51421
|
], PlusBlockStartState.prototype, "stateType", null);
|
|
51119
51422
|
exports.PlusBlockStartState = PlusBlockStartState;
|
|
51120
51423
|
|
|
51121
|
-
},{"../Decorators":
|
|
51424
|
+
},{"../Decorators":223,"./ATNStateType":263,"./BlockStartState":271}],299:[function(require,module,exports){
|
|
51122
51425
|
"use strict";
|
|
51123
51426
|
/*!
|
|
51124
51427
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51149,7 +51452,7 @@ __decorate([
|
|
|
51149
51452
|
], PlusLoopbackState.prototype, "stateType", null);
|
|
51150
51453
|
exports.PlusLoopbackState = PlusLoopbackState;
|
|
51151
51454
|
|
|
51152
|
-
},{"../Decorators":
|
|
51455
|
+
},{"../Decorators":223,"./ATNStateType":263,"./DecisionState":276}],300:[function(require,module,exports){
|
|
51153
51456
|
"use strict";
|
|
51154
51457
|
/*!
|
|
51155
51458
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51212,7 +51515,7 @@ PrecedencePredicateTransition = __decorate([
|
|
|
51212
51515
|
], PrecedencePredicateTransition);
|
|
51213
51516
|
exports.PrecedencePredicateTransition = PrecedencePredicateTransition;
|
|
51214
51517
|
|
|
51215
|
-
},{"../Decorators":
|
|
51518
|
+
},{"../Decorators":223,"./AbstractPredicateTransition":264,"./SemanticContext":311}],301:[function(require,module,exports){
|
|
51216
51519
|
"use strict";
|
|
51217
51520
|
/*!
|
|
51218
51521
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51275,7 +51578,7 @@ PredicateEvalInfo = __decorate([
|
|
|
51275
51578
|
], PredicateEvalInfo);
|
|
51276
51579
|
exports.PredicateEvalInfo = PredicateEvalInfo;
|
|
51277
51580
|
|
|
51278
|
-
},{"../Decorators":
|
|
51581
|
+
},{"../Decorators":223,"./DecisionEventInfo":274}],302:[function(require,module,exports){
|
|
51279
51582
|
"use strict";
|
|
51280
51583
|
/*!
|
|
51281
51584
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -51341,7 +51644,7 @@ PredicateTransition = __decorate([
|
|
|
51341
51644
|
], PredicateTransition);
|
|
51342
51645
|
exports.PredicateTransition = PredicateTransition;
|
|
51343
51646
|
|
|
51344
|
-
},{"../Decorators":
|
|
51647
|
+
},{"../Decorators":223,"./AbstractPredicateTransition":264,"./SemanticContext":311}],303:[function(require,module,exports){
|
|
51345
51648
|
"use strict";
|
|
51346
51649
|
/*!
|
|
51347
51650
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52032,7 +52335,7 @@ exports.SingletonPredictionContext = SingletonPredictionContext;
|
|
|
52032
52335
|
PredictionContext.IdentityEqualityComparator = IdentityEqualityComparator;
|
|
52033
52336
|
})(PredictionContext = exports.PredictionContext || (exports.PredictionContext = {}));
|
|
52034
52337
|
|
|
52035
|
-
},{"../Decorators":
|
|
52338
|
+
},{"../Decorators":223,"../misc/Array2DHashMap":326,"../misc/Array2DHashSet":327,"../misc/Arrays":329,"../misc/MurmurHash":338,"./PredictionContextCache":304,"assert":366}],304:[function(require,module,exports){
|
|
52036
52339
|
"use strict";
|
|
52037
52340
|
/*!
|
|
52038
52341
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52173,7 +52476,7 @@ PredictionContextCache.UNCACHED = new PredictionContextCache(false);
|
|
|
52173
52476
|
PredictionContextCache.IdentityCommutativePredictionContextOperands = IdentityCommutativePredictionContextOperands;
|
|
52174
52477
|
})(PredictionContextCache = exports.PredictionContextCache || (exports.PredictionContextCache = {}));
|
|
52175
52478
|
|
|
52176
|
-
},{"../Decorators":
|
|
52479
|
+
},{"../Decorators":223,"../misc/Array2DHashMap":326,"../misc/ObjectEqualityComparator":339,"./PredictionContext":303,"assert":366}],305:[function(require,module,exports){
|
|
52177
52480
|
"use strict";
|
|
52178
52481
|
/*!
|
|
52179
52482
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52334,7 +52637,7 @@ var PredictionMode;
|
|
|
52334
52637
|
PredictionMode.allConfigsInRuleStopStates = allConfigsInRuleStopStates;
|
|
52335
52638
|
})(PredictionMode = exports.PredictionMode || (exports.PredictionMode = {}));
|
|
52336
52639
|
|
|
52337
|
-
},{"../Decorators":
|
|
52640
|
+
},{"../Decorators":223,"../misc/Array2DHashMap":326,"../misc/MurmurHash":338,"./RuleStopState":309}],306:[function(require,module,exports){
|
|
52338
52641
|
(function (process){(function (){
|
|
52339
52642
|
"use strict";
|
|
52340
52643
|
/*!
|
|
@@ -52603,7 +52906,7 @@ __decorate([
|
|
|
52603
52906
|
exports.ProfilingATNSimulator = ProfilingATNSimulator;
|
|
52604
52907
|
|
|
52605
52908
|
}).call(this)}).call(this,require('_process'))
|
|
52606
|
-
},{"../Decorators":
|
|
52909
|
+
},{"../Decorators":223,"./ATN":256,"./ATNSimulator":261,"./AmbiguityInfo":266,"./ContextSensitivityInfo":273,"./DecisionInfo":275,"./ErrorInfo":278,"./LookaheadEventInfo":292,"./ParserATNSimulator":297,"./PredicateEvalInfo":301,"./SemanticContext":311,"./SimulatorState":313,"_process":425}],307:[function(require,module,exports){
|
|
52607
52910
|
"use strict";
|
|
52608
52911
|
/*!
|
|
52609
52912
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52661,7 +52964,7 @@ RangeTransition = __decorate([
|
|
|
52661
52964
|
], RangeTransition);
|
|
52662
52965
|
exports.RangeTransition = RangeTransition;
|
|
52663
52966
|
|
|
52664
|
-
},{"../Decorators":
|
|
52967
|
+
},{"../Decorators":223,"../misc/IntervalSet":336,"./Transition":318}],308:[function(require,module,exports){
|
|
52665
52968
|
"use strict";
|
|
52666
52969
|
/*!
|
|
52667
52970
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52694,7 +52997,7 @@ __decorate([
|
|
|
52694
52997
|
], RuleStartState.prototype, "stateType", null);
|
|
52695
52998
|
exports.RuleStartState = RuleStartState;
|
|
52696
52999
|
|
|
52697
|
-
},{"../Decorators":
|
|
53000
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],309:[function(require,module,exports){
|
|
52698
53001
|
"use strict";
|
|
52699
53002
|
/*!
|
|
52700
53003
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52733,7 +53036,7 @@ __decorate([
|
|
|
52733
53036
|
], RuleStopState.prototype, "stateType", null);
|
|
52734
53037
|
exports.RuleStopState = RuleStopState;
|
|
52735
53038
|
|
|
52736
|
-
},{"../Decorators":
|
|
53039
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],310:[function(require,module,exports){
|
|
52737
53040
|
"use strict";
|
|
52738
53041
|
/*!
|
|
52739
53042
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -52789,7 +53092,7 @@ RuleTransition = __decorate([
|
|
|
52789
53092
|
], RuleTransition);
|
|
52790
53093
|
exports.RuleTransition = RuleTransition;
|
|
52791
53094
|
|
|
52792
|
-
},{"../Decorators":
|
|
53095
|
+
},{"../Decorators":223,"./Transition":318}],311:[function(require,module,exports){
|
|
52793
53096
|
"use strict";
|
|
52794
53097
|
/*!
|
|
52795
53098
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53269,7 +53572,7 @@ exports.SemanticContext = SemanticContext;
|
|
|
53269
53572
|
SemanticContext.OR = OR;
|
|
53270
53573
|
})(SemanticContext = exports.SemanticContext || (exports.SemanticContext = {}));
|
|
53271
53574
|
|
|
53272
|
-
},{"../Decorators":
|
|
53575
|
+
},{"../Decorators":223,"../misc/Array2DHashSet":327,"../misc/ArrayEqualityComparator":328,"../misc/MurmurHash":338,"../misc/ObjectEqualityComparator":339,"../misc/Utils":342}],312:[function(require,module,exports){
|
|
53273
53576
|
"use strict";
|
|
53274
53577
|
/*!
|
|
53275
53578
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53335,7 +53638,7 @@ SetTransition = __decorate([
|
|
|
53335
53638
|
], SetTransition);
|
|
53336
53639
|
exports.SetTransition = SetTransition;
|
|
53337
53640
|
|
|
53338
|
-
},{"../Decorators":
|
|
53641
|
+
},{"../Decorators":223,"../Token":248,"../misc/IntervalSet":336,"./Transition":318}],313:[function(require,module,exports){
|
|
53339
53642
|
"use strict";
|
|
53340
53643
|
/*!
|
|
53341
53644
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53371,7 +53674,7 @@ SimulatorState = __decorate([
|
|
|
53371
53674
|
], SimulatorState);
|
|
53372
53675
|
exports.SimulatorState = SimulatorState;
|
|
53373
53676
|
|
|
53374
|
-
},{"../Decorators":
|
|
53677
|
+
},{"../Decorators":223,"../ParserRuleContext":239}],314:[function(require,module,exports){
|
|
53375
53678
|
"use strict";
|
|
53376
53679
|
/*!
|
|
53377
53680
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53399,7 +53702,7 @@ __decorate([
|
|
|
53399
53702
|
], StarBlockStartState.prototype, "stateType", null);
|
|
53400
53703
|
exports.StarBlockStartState = StarBlockStartState;
|
|
53401
53704
|
|
|
53402
|
-
},{"../Decorators":
|
|
53705
|
+
},{"../Decorators":223,"./ATNStateType":263,"./BlockStartState":271}],315:[function(require,module,exports){
|
|
53403
53706
|
"use strict";
|
|
53404
53707
|
/*!
|
|
53405
53708
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53456,7 +53759,7 @@ __decorate([
|
|
|
53456
53759
|
], StarLoopEntryState.prototype, "stateType", null);
|
|
53457
53760
|
exports.StarLoopEntryState = StarLoopEntryState;
|
|
53458
53761
|
|
|
53459
|
-
},{"../Decorators":
|
|
53762
|
+
},{"../Decorators":223,"../misc/BitSet":330,"./ATNStateType":263,"./DecisionState":276}],316:[function(require,module,exports){
|
|
53460
53763
|
"use strict";
|
|
53461
53764
|
/*!
|
|
53462
53765
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53487,7 +53790,7 @@ __decorate([
|
|
|
53487
53790
|
], StarLoopbackState.prototype, "stateType", null);
|
|
53488
53791
|
exports.StarLoopbackState = StarLoopbackState;
|
|
53489
53792
|
|
|
53490
|
-
},{"../Decorators":
|
|
53793
|
+
},{"../Decorators":223,"./ATNState":262,"./ATNStateType":263}],317:[function(require,module,exports){
|
|
53491
53794
|
"use strict";
|
|
53492
53795
|
/*!
|
|
53493
53796
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53516,7 +53819,7 @@ __decorate([
|
|
|
53516
53819
|
], TokensStartState.prototype, "stateType", null);
|
|
53517
53820
|
exports.TokensStartState = TokensStartState;
|
|
53518
53821
|
|
|
53519
|
-
},{"../Decorators":
|
|
53822
|
+
},{"../Decorators":223,"./ATNStateType":263,"./DecisionState":276}],318:[function(require,module,exports){
|
|
53520
53823
|
"use strict";
|
|
53521
53824
|
/*!
|
|
53522
53825
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53590,7 +53893,7 @@ Transition = __decorate([
|
|
|
53590
53893
|
], Transition);
|
|
53591
53894
|
exports.Transition = Transition;
|
|
53592
53895
|
|
|
53593
|
-
},{"../Decorators":
|
|
53896
|
+
},{"../Decorators":223}],319:[function(require,module,exports){
|
|
53594
53897
|
"use strict";
|
|
53595
53898
|
/*!
|
|
53596
53899
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53638,7 +53941,7 @@ WildcardTransition = __decorate([
|
|
|
53638
53941
|
], WildcardTransition);
|
|
53639
53942
|
exports.WildcardTransition = WildcardTransition;
|
|
53640
53943
|
|
|
53641
|
-
},{"../Decorators":
|
|
53944
|
+
},{"../Decorators":223,"./Transition":318}],320:[function(require,module,exports){
|
|
53642
53945
|
"use strict";
|
|
53643
53946
|
/*!
|
|
53644
53947
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53680,7 +53983,7 @@ class AcceptStateInfo {
|
|
|
53680
53983
|
}
|
|
53681
53984
|
exports.AcceptStateInfo = AcceptStateInfo;
|
|
53682
53985
|
|
|
53683
|
-
},{}],
|
|
53986
|
+
},{}],321:[function(require,module,exports){
|
|
53684
53987
|
"use strict";
|
|
53685
53988
|
/*!
|
|
53686
53989
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53855,7 +54158,7 @@ DFA = __decorate([
|
|
|
53855
54158
|
], DFA);
|
|
53856
54159
|
exports.DFA = DFA;
|
|
53857
54160
|
|
|
53858
|
-
},{"../Decorators":
|
|
54161
|
+
},{"../Decorators":223,"../VocabularyImpl":254,"../atn/ATNConfigSet":258,"../atn/StarLoopEntryState":315,"../misc/Array2DHashSet":327,"../misc/ObjectEqualityComparator":339,"./DFASerializer":322,"./DFAState":323,"./LexerDFASerializer":324}],322:[function(require,module,exports){
|
|
53859
54162
|
"use strict";
|
|
53860
54163
|
/*!
|
|
53861
54164
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -53997,7 +54300,7 @@ __decorate([
|
|
|
53997
54300
|
], DFASerializer.prototype, "toString", null);
|
|
53998
54301
|
exports.DFASerializer = DFASerializer;
|
|
53999
54302
|
|
|
54000
|
-
},{"../Decorators":
|
|
54303
|
+
},{"../Decorators":223,"../Recognizer":243,"../VocabularyImpl":254,"../atn/ATNSimulator":261,"../atn/PredictionContext":303}],323:[function(require,module,exports){
|
|
54001
54304
|
"use strict";
|
|
54002
54305
|
/*!
|
|
54003
54306
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54228,7 +54531,7 @@ exports.DFAState = DFAState;
|
|
|
54228
54531
|
DFAState.PredPrediction = PredPrediction;
|
|
54229
54532
|
})(DFAState = exports.DFAState || (exports.DFAState = {}));
|
|
54230
54533
|
|
|
54231
|
-
},{"../Decorators":
|
|
54534
|
+
},{"../Decorators":223,"../atn/ATN":256,"../atn/PredictionContext":303,"../misc/BitSet":330,"../misc/MurmurHash":338,"assert":366}],324:[function(require,module,exports){
|
|
54232
54535
|
"use strict";
|
|
54233
54536
|
/*!
|
|
54234
54537
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54265,7 +54568,7 @@ LexerDFASerializer = __decorate([
|
|
|
54265
54568
|
], LexerDFASerializer);
|
|
54266
54569
|
exports.LexerDFASerializer = LexerDFASerializer;
|
|
54267
54570
|
|
|
54268
|
-
},{"../Decorators":
|
|
54571
|
+
},{"../Decorators":223,"../VocabularyImpl":254,"./DFASerializer":322}],325:[function(require,module,exports){
|
|
54269
54572
|
"use strict";
|
|
54270
54573
|
/*!
|
|
54271
54574
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54331,7 +54634,7 @@ __exportStar(require("./Vocabulary"), exports);
|
|
|
54331
54634
|
__exportStar(require("./VocabularyImpl"), exports);
|
|
54332
54635
|
__exportStar(require("./WritableToken"), exports);
|
|
54333
54636
|
|
|
54334
|
-
},{"./ANTLRErrorListener":
|
|
54637
|
+
},{"./ANTLRErrorListener":210,"./ANTLRErrorStrategy":211,"./ANTLRInputStream":212,"./BailErrorStrategy":213,"./BufferedTokenStream":214,"./CharStream":215,"./CharStreams":216,"./CodePointBuffer":217,"./CodePointCharStream":218,"./CommonToken":219,"./CommonTokenFactory":220,"./CommonTokenStream":221,"./ConsoleErrorListener":222,"./DefaultErrorStrategy":224,"./Dependents":225,"./DiagnosticErrorListener":226,"./FailedPredicateException":227,"./InputMismatchException":228,"./IntStream":229,"./InterpreterRuleContext":230,"./Lexer":231,"./LexerInterpreter":232,"./LexerNoViableAltException":233,"./ListTokenSource":234,"./NoViableAltException":235,"./Parser":236,"./ParserErrorListener":237,"./ParserInterpreter":238,"./ParserRuleContext":239,"./ProxyErrorListener":240,"./ProxyParserErrorListener":241,"./RecognitionException":242,"./Recognizer":243,"./RuleContext":244,"./RuleContextWithAltNum":245,"./RuleDependency":246,"./RuleVersion":247,"./Token":248,"./TokenFactory":249,"./TokenSource":250,"./TokenStream":251,"./TokenStreamRewriter":252,"./Vocabulary":253,"./VocabularyImpl":254,"./WritableToken":255}],326:[function(require,module,exports){
|
|
54335
54638
|
"use strict";
|
|
54336
54639
|
/*!
|
|
54337
54640
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54414,7 +54717,7 @@ class Array2DHashMap {
|
|
|
54414
54717
|
}
|
|
54415
54718
|
exports.Array2DHashMap = Array2DHashMap;
|
|
54416
54719
|
|
|
54417
|
-
},{"./Array2DHashSet":
|
|
54720
|
+
},{"./Array2DHashSet":327}],327:[function(require,module,exports){
|
|
54418
54721
|
"use strict";
|
|
54419
54722
|
/*!
|
|
54420
54723
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54781,7 +55084,7 @@ __decorate([
|
|
|
54781
55084
|
], Array2DHashSet.prototype, "createBuckets", null);
|
|
54782
55085
|
exports.Array2DHashSet = Array2DHashSet;
|
|
54783
55086
|
|
|
54784
|
-
},{"../Decorators":
|
|
55087
|
+
},{"../Decorators":223,"./DefaultEqualityComparator":332,"./MurmurHash":338,"assert":366}],328:[function(require,module,exports){
|
|
54785
55088
|
"use strict";
|
|
54786
55089
|
/*!
|
|
54787
55090
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54853,7 +55156,7 @@ __decorate([
|
|
|
54853
55156
|
], ArrayEqualityComparator.prototype, "equals", null);
|
|
54854
55157
|
exports.ArrayEqualityComparator = ArrayEqualityComparator;
|
|
54855
55158
|
|
|
54856
|
-
},{"../Decorators":
|
|
55159
|
+
},{"../Decorators":223,"./MurmurHash":338,"./ObjectEqualityComparator":339}],329:[function(require,module,exports){
|
|
54857
55160
|
"use strict";
|
|
54858
55161
|
/*!
|
|
54859
55162
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -54923,7 +55226,7 @@ var Arrays;
|
|
|
54923
55226
|
Arrays.toString = toString;
|
|
54924
55227
|
})(Arrays = exports.Arrays || (exports.Arrays = {}));
|
|
54925
55228
|
|
|
54926
|
-
},{}],
|
|
55229
|
+
},{}],330:[function(require,module,exports){
|
|
54927
55230
|
"use strict";
|
|
54928
55231
|
/*!
|
|
54929
55232
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55595,7 +55898,7 @@ class BitSetIterator {
|
|
|
55595
55898
|
[Symbol.iterator]() { return this; }
|
|
55596
55899
|
}
|
|
55597
55900
|
|
|
55598
|
-
},{"./MurmurHash":
|
|
55901
|
+
},{"./MurmurHash":338,"util":430}],331:[function(require,module,exports){
|
|
55599
55902
|
"use strict";
|
|
55600
55903
|
/*!
|
|
55601
55904
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55616,7 +55919,7 @@ function isSupplementaryCodePoint(ch) {
|
|
|
55616
55919
|
}
|
|
55617
55920
|
exports.isSupplementaryCodePoint = isSupplementaryCodePoint;
|
|
55618
55921
|
|
|
55619
|
-
},{}],
|
|
55922
|
+
},{}],332:[function(require,module,exports){
|
|
55620
55923
|
"use strict";
|
|
55621
55924
|
/*!
|
|
55622
55925
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55687,7 +55990,7 @@ __decorate([
|
|
|
55687
55990
|
], DefaultEqualityComparator.prototype, "equals", null);
|
|
55688
55991
|
exports.DefaultEqualityComparator = DefaultEqualityComparator;
|
|
55689
55992
|
|
|
55690
|
-
},{"../Decorators":
|
|
55993
|
+
},{"../Decorators":223,"./MurmurHash":338,"./ObjectEqualityComparator":339}],333:[function(require,module,exports){
|
|
55691
55994
|
"use strict";
|
|
55692
55995
|
/*!
|
|
55693
55996
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -55981,7 +56284,7 @@ __decorate([
|
|
|
55981
56284
|
], IntegerList.prototype, "toString", null);
|
|
55982
56285
|
exports.IntegerList = IntegerList;
|
|
55983
56286
|
|
|
55984
|
-
},{"../Decorators":
|
|
56287
|
+
},{"../Decorators":223,"./Arrays":329}],334:[function(require,module,exports){
|
|
55985
56288
|
"use strict";
|
|
55986
56289
|
/*!
|
|
55987
56290
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56011,7 +56314,7 @@ class IntegerStack extends IntegerList_1.IntegerList {
|
|
|
56011
56314
|
}
|
|
56012
56315
|
exports.IntegerStack = IntegerStack;
|
|
56013
56316
|
|
|
56014
|
-
},{"./IntegerList":
|
|
56317
|
+
},{"./IntegerList":333}],335:[function(require,module,exports){
|
|
56015
56318
|
"use strict";
|
|
56016
56319
|
/*!
|
|
56017
56320
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56154,7 +56457,7 @@ __decorate([
|
|
|
56154
56457
|
], Interval.prototype, "toString", null);
|
|
56155
56458
|
exports.Interval = Interval;
|
|
56156
56459
|
|
|
56157
|
-
},{"../Decorators":
|
|
56460
|
+
},{"../Decorators":223}],336:[function(require,module,exports){
|
|
56158
56461
|
"use strict";
|
|
56159
56462
|
/*!
|
|
56160
56463
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56800,7 +57103,7 @@ __decorate([
|
|
|
56800
57103
|
], IntervalSet, "subtract", null);
|
|
56801
57104
|
exports.IntervalSet = IntervalSet;
|
|
56802
57105
|
|
|
56803
|
-
},{"../Decorators":
|
|
57106
|
+
},{"../Decorators":223,"../Lexer":231,"../Token":248,"./ArrayEqualityComparator":328,"./IntegerList":333,"./Interval":335,"./MurmurHash":338}],337:[function(require,module,exports){
|
|
56804
57107
|
"use strict";
|
|
56805
57108
|
/*!
|
|
56806
57109
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56833,7 +57136,7 @@ class MultiMap extends Map {
|
|
|
56833
57136
|
}
|
|
56834
57137
|
exports.MultiMap = MultiMap;
|
|
56835
57138
|
|
|
56836
|
-
},{}],
|
|
57139
|
+
},{}],338:[function(require,module,exports){
|
|
56837
57140
|
"use strict";
|
|
56838
57141
|
/*!
|
|
56839
57142
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -56948,7 +57251,7 @@ var MurmurHash;
|
|
|
56948
57251
|
}
|
|
56949
57252
|
})(MurmurHash = exports.MurmurHash || (exports.MurmurHash = {}));
|
|
56950
57253
|
|
|
56951
|
-
},{}],
|
|
57254
|
+
},{}],339:[function(require,module,exports){
|
|
56952
57255
|
"use strict";
|
|
56953
57256
|
/*!
|
|
56954
57257
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57007,7 +57310,7 @@ __decorate([
|
|
|
57007
57310
|
], ObjectEqualityComparator.prototype, "equals", null);
|
|
57008
57311
|
exports.ObjectEqualityComparator = ObjectEqualityComparator;
|
|
57009
57312
|
|
|
57010
|
-
},{"../Decorators":
|
|
57313
|
+
},{"../Decorators":223}],340:[function(require,module,exports){
|
|
57011
57314
|
"use strict";
|
|
57012
57315
|
/*!
|
|
57013
57316
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57036,7 +57339,7 @@ class ParseCancellationException extends Error {
|
|
|
57036
57339
|
}
|
|
57037
57340
|
exports.ParseCancellationException = ParseCancellationException;
|
|
57038
57341
|
|
|
57039
|
-
},{}],
|
|
57342
|
+
},{}],341:[function(require,module,exports){
|
|
57040
57343
|
"use strict";
|
|
57041
57344
|
/*!
|
|
57042
57345
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57090,7 +57393,7 @@ class UUID {
|
|
|
57090
57393
|
}
|
|
57091
57394
|
exports.UUID = UUID;
|
|
57092
57395
|
|
|
57093
|
-
},{"./MurmurHash":
|
|
57396
|
+
},{"./MurmurHash":338}],342:[function(require,module,exports){
|
|
57094
57397
|
"use strict";
|
|
57095
57398
|
/*!
|
|
57096
57399
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57265,7 +57568,7 @@ exports.toCharArray = toCharArray;
|
|
|
57265
57568
|
// return s;
|
|
57266
57569
|
// }
|
|
57267
57570
|
|
|
57268
|
-
},{}],
|
|
57571
|
+
},{}],343:[function(require,module,exports){
|
|
57269
57572
|
"use strict";
|
|
57270
57573
|
/*!
|
|
57271
57574
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57301,7 +57604,7 @@ __decorate([
|
|
|
57301
57604
|
], ErrorNode.prototype, "accept", null);
|
|
57302
57605
|
exports.ErrorNode = ErrorNode;
|
|
57303
57606
|
|
|
57304
|
-
},{"../Decorators":
|
|
57607
|
+
},{"../Decorators":223,"./TerminalNode":346}],344:[function(require,module,exports){
|
|
57305
57608
|
"use strict";
|
|
57306
57609
|
/*!
|
|
57307
57610
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57406,7 +57709,7 @@ exports.ParseTreeWalker = ParseTreeWalker;
|
|
|
57406
57709
|
ParseTreeWalker.DEFAULT = new ParseTreeWalker();
|
|
57407
57710
|
})(ParseTreeWalker = exports.ParseTreeWalker || (exports.ParseTreeWalker = {}));
|
|
57408
57711
|
|
|
57409
|
-
},{"./ErrorNode":
|
|
57712
|
+
},{"./ErrorNode":343,"./RuleNode":345,"./TerminalNode":346}],345:[function(require,module,exports){
|
|
57410
57713
|
"use strict";
|
|
57411
57714
|
/*!
|
|
57412
57715
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57418,7 +57721,7 @@ class RuleNode {
|
|
|
57418
57721
|
}
|
|
57419
57722
|
exports.RuleNode = RuleNode;
|
|
57420
57723
|
|
|
57421
|
-
},{}],
|
|
57724
|
+
},{}],346:[function(require,module,exports){
|
|
57422
57725
|
"use strict";
|
|
57423
57726
|
/*!
|
|
57424
57727
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57510,7 +57813,7 @@ __decorate([
|
|
|
57510
57813
|
], TerminalNode.prototype, "toString", null);
|
|
57511
57814
|
exports.TerminalNode = TerminalNode;
|
|
57512
57815
|
|
|
57513
|
-
},{"../Decorators":
|
|
57816
|
+
},{"../Decorators":223,"../Token":248,"../misc/Interval":335}],347:[function(require,module,exports){
|
|
57514
57817
|
"use strict";
|
|
57515
57818
|
/*!
|
|
57516
57819
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57754,7 +58057,7 @@ __decorate([
|
|
|
57754
58057
|
], Trees, "getRootOfSubtreeEnclosingRegion", null);
|
|
57755
58058
|
exports.Trees = Trees;
|
|
57756
58059
|
|
|
57757
|
-
},{"../CommonToken":
|
|
58060
|
+
},{"../CommonToken":219,"../Decorators":223,"../Parser":236,"../ParserRuleContext":239,"../Token":248,"../atn/ATN":256,"../misc/Utils":342,"./ErrorNode":343,"./RuleNode":345,"./TerminalNode":346}],348:[function(require,module,exports){
|
|
57758
58061
|
"use strict";
|
|
57759
58062
|
/*!
|
|
57760
58063
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57778,7 +58081,7 @@ class Chunk {
|
|
|
57778
58081
|
}
|
|
57779
58082
|
exports.Chunk = Chunk;
|
|
57780
58083
|
|
|
57781
|
-
},{}],
|
|
58084
|
+
},{}],349:[function(require,module,exports){
|
|
57782
58085
|
"use strict";
|
|
57783
58086
|
/*!
|
|
57784
58087
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -57958,7 +58261,7 @@ ParseTreeMatch = __decorate([
|
|
|
57958
58261
|
], ParseTreeMatch);
|
|
57959
58262
|
exports.ParseTreeMatch = ParseTreeMatch;
|
|
57960
58263
|
|
|
57961
|
-
},{"../../Decorators":
|
|
58264
|
+
},{"../../Decorators":223}],350:[function(require,module,exports){
|
|
57962
58265
|
"use strict";
|
|
57963
58266
|
/*!
|
|
57964
58267
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58116,7 +58419,7 @@ ParseTreePattern = __decorate([
|
|
|
58116
58419
|
], ParseTreePattern);
|
|
58117
58420
|
exports.ParseTreePattern = ParseTreePattern;
|
|
58118
58421
|
|
|
58119
|
-
},{"../../Decorators":
|
|
58422
|
+
},{"../../Decorators":223,"../xpath/XPath":356}],351:[function(require,module,exports){
|
|
58120
58423
|
"use strict";
|
|
58121
58424
|
/*!
|
|
58122
58425
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58594,7 +58897,7 @@ exports.ParseTreePatternMatcher = ParseTreePatternMatcher;
|
|
|
58594
58897
|
ParseTreePatternMatcher.StartRuleDoesNotConsumeFullPattern = StartRuleDoesNotConsumeFullPattern;
|
|
58595
58898
|
})(ParseTreePatternMatcher = exports.ParseTreePatternMatcher || (exports.ParseTreePatternMatcher = {}));
|
|
58596
58899
|
|
|
58597
|
-
},{"../../BailErrorStrategy":
|
|
58900
|
+
},{"../../BailErrorStrategy":213,"../../CharStreams":216,"../../CommonTokenStream":221,"../../Decorators":223,"../../ListTokenSource":234,"../../ParserInterpreter":238,"../../ParserRuleContext":239,"../../RecognitionException":242,"../../Token":248,"../../misc/MultiMap":337,"../../misc/ParseCancellationException":340,"../RuleNode":345,"../TerminalNode":346,"./ParseTreeMatch":349,"./ParseTreePattern":350,"./RuleTagToken":352,"./TagChunk":353,"./TextChunk":354,"./TokenTagToken":355}],352:[function(require,module,exports){
|
|
58598
58901
|
"use strict";
|
|
58599
58902
|
/*!
|
|
58600
58903
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58792,7 +59095,7 @@ RuleTagToken = __decorate([
|
|
|
58792
59095
|
], RuleTagToken);
|
|
58793
59096
|
exports.RuleTagToken = RuleTagToken;
|
|
58794
59097
|
|
|
58795
|
-
},{"../../Decorators":
|
|
59098
|
+
},{"../../Decorators":223,"../../Token":248}],353:[function(require,module,exports){
|
|
58796
59099
|
"use strict";
|
|
58797
59100
|
/*!
|
|
58798
59101
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58879,7 +59182,7 @@ __decorate([
|
|
|
58879
59182
|
], TagChunk.prototype, "toString", null);
|
|
58880
59183
|
exports.TagChunk = TagChunk;
|
|
58881
59184
|
|
|
58882
|
-
},{"../../Decorators":
|
|
59185
|
+
},{"../../Decorators":223,"./Chunk":348}],354:[function(require,module,exports){
|
|
58883
59186
|
"use strict";
|
|
58884
59187
|
/*!
|
|
58885
59188
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -58949,7 +59252,7 @@ TextChunk = __decorate([
|
|
|
58949
59252
|
], TextChunk);
|
|
58950
59253
|
exports.TextChunk = TextChunk;
|
|
58951
59254
|
|
|
58952
|
-
},{"../../Decorators":
|
|
59255
|
+
},{"../../Decorators":223,"./Chunk":348}],355:[function(require,module,exports){
|
|
58953
59256
|
"use strict";
|
|
58954
59257
|
/*!
|
|
58955
59258
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59044,7 +59347,7 @@ TokenTagToken = __decorate([
|
|
|
59044
59347
|
], TokenTagToken);
|
|
59045
59348
|
exports.TokenTagToken = TokenTagToken;
|
|
59046
59349
|
|
|
59047
|
-
},{"../../CommonToken":
|
|
59350
|
+
},{"../../CommonToken":219,"../../Decorators":223}],356:[function(require,module,exports){
|
|
59048
59351
|
"use strict";
|
|
59049
59352
|
/*!
|
|
59050
59353
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59241,7 +59544,7 @@ exports.XPath = XPath;
|
|
|
59241
59544
|
XPath.WILDCARD = "*"; // word not operator/separator
|
|
59242
59545
|
XPath.NOT = "!"; // word for invert operator
|
|
59243
59546
|
|
|
59244
|
-
},{"../../CharStreams":
|
|
59547
|
+
},{"../../CharStreams":216,"../../CommonTokenStream":221,"../../LexerNoViableAltException":233,"../../ParserRuleContext":239,"../../Token":248,"./XPathLexer":358,"./XPathLexerErrorListener":359,"./XPathRuleAnywhereElement":360,"./XPathRuleElement":361,"./XPathTokenAnywhereElement":362,"./XPathTokenElement":363,"./XPathWildcardAnywhereElement":364,"./XPathWildcardElement":365}],357:[function(require,module,exports){
|
|
59245
59548
|
"use strict";
|
|
59246
59549
|
/*!
|
|
59247
59550
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59276,7 +59579,7 @@ __decorate([
|
|
|
59276
59579
|
], XPathElement.prototype, "toString", null);
|
|
59277
59580
|
exports.XPathElement = XPathElement;
|
|
59278
59581
|
|
|
59279
|
-
},{"../../Decorators":
|
|
59582
|
+
},{"../../Decorators":223}],358:[function(require,module,exports){
|
|
59280
59583
|
"use strict";
|
|
59281
59584
|
// Generated from XPathLexer.g4 by ANTLR 4.9.0-SNAPSHOT
|
|
59282
59585
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -59751,7 +60054,7 @@ XPathLexer._serializedATN = Utils.join([
|
|
|
59751
60054
|
XPathLexer._serializedATNSegment1,
|
|
59752
60055
|
], "");
|
|
59753
60056
|
|
|
59754
|
-
},{"../../Lexer":
|
|
60057
|
+
},{"../../Lexer":231,"../../VocabularyImpl":254,"../../atn/ATNDeserializer":260,"../../atn/LexerATNSimulator":281,"../../misc/Utils":342}],359:[function(require,module,exports){
|
|
59755
60058
|
"use strict";
|
|
59756
60059
|
/*!
|
|
59757
60060
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59776,7 +60079,7 @@ __decorate([
|
|
|
59776
60079
|
], XPathLexerErrorListener.prototype, "syntaxError", null);
|
|
59777
60080
|
exports.XPathLexerErrorListener = XPathLexerErrorListener;
|
|
59778
60081
|
|
|
59779
|
-
},{"../../Decorators":
|
|
60082
|
+
},{"../../Decorators":223}],360:[function(require,module,exports){
|
|
59780
60083
|
"use strict";
|
|
59781
60084
|
/*!
|
|
59782
60085
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59810,7 +60113,7 @@ __decorate([
|
|
|
59810
60113
|
], XPathRuleAnywhereElement.prototype, "evaluate", null);
|
|
59811
60114
|
exports.XPathRuleAnywhereElement = XPathRuleAnywhereElement;
|
|
59812
60115
|
|
|
59813
|
-
},{"../../Decorators":
|
|
60116
|
+
},{"../../Decorators":223,"../Trees":347,"./XPathElement":357}],361:[function(require,module,exports){
|
|
59814
60117
|
"use strict";
|
|
59815
60118
|
/*!
|
|
59816
60119
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59853,7 +60156,7 @@ __decorate([
|
|
|
59853
60156
|
], XPathRuleElement.prototype, "evaluate", null);
|
|
59854
60157
|
exports.XPathRuleElement = XPathRuleElement;
|
|
59855
60158
|
|
|
59856
|
-
},{"../../Decorators":
|
|
60159
|
+
},{"../../Decorators":223,"../../ParserRuleContext":239,"../Trees":347,"./XPathElement":357}],362:[function(require,module,exports){
|
|
59857
60160
|
"use strict";
|
|
59858
60161
|
/*!
|
|
59859
60162
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59885,7 +60188,7 @@ __decorate([
|
|
|
59885
60188
|
], XPathTokenAnywhereElement.prototype, "evaluate", null);
|
|
59886
60189
|
exports.XPathTokenAnywhereElement = XPathTokenAnywhereElement;
|
|
59887
60190
|
|
|
59888
|
-
},{"../../Decorators":
|
|
60191
|
+
},{"../../Decorators":223,"../Trees":347,"./XPathElement":357}],363:[function(require,module,exports){
|
|
59889
60192
|
"use strict";
|
|
59890
60193
|
/*!
|
|
59891
60194
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59928,7 +60231,7 @@ __decorate([
|
|
|
59928
60231
|
], XPathTokenElement.prototype, "evaluate", null);
|
|
59929
60232
|
exports.XPathTokenElement = XPathTokenElement;
|
|
59930
60233
|
|
|
59931
|
-
},{"../../Decorators":
|
|
60234
|
+
},{"../../Decorators":223,"../TerminalNode":346,"../Trees":347,"./XPathElement":357}],364:[function(require,module,exports){
|
|
59932
60235
|
"use strict";
|
|
59933
60236
|
/*!
|
|
59934
60237
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -59964,7 +60267,7 @@ __decorate([
|
|
|
59964
60267
|
], XPathWildcardAnywhereElement.prototype, "evaluate", null);
|
|
59965
60268
|
exports.XPathWildcardAnywhereElement = XPathWildcardAnywhereElement;
|
|
59966
60269
|
|
|
59967
|
-
},{"../../Decorators":
|
|
60270
|
+
},{"../../Decorators":223,"../Trees":347,"./XPath":356,"./XPathElement":357}],365:[function(require,module,exports){
|
|
59968
60271
|
"use strict";
|
|
59969
60272
|
/*!
|
|
59970
60273
|
* Copyright 2016 The ANTLR Project. All rights reserved.
|
|
@@ -60004,7 +60307,7 @@ __decorate([
|
|
|
60004
60307
|
], XPathWildcardElement.prototype, "evaluate", null);
|
|
60005
60308
|
exports.XPathWildcardElement = XPathWildcardElement;
|
|
60006
60309
|
|
|
60007
|
-
},{"../../Decorators":
|
|
60310
|
+
},{"../../Decorators":223,"../Trees":347,"./XPath":356,"./XPathElement":357}],366:[function(require,module,exports){
|
|
60008
60311
|
(function (global){(function (){
|
|
60009
60312
|
'use strict';
|
|
60010
60313
|
|
|
@@ -60514,7 +60817,7 @@ var objectKeys = Object.keys || function (obj) {
|
|
|
60514
60817
|
};
|
|
60515
60818
|
|
|
60516
60819
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
60517
|
-
},{"object.assign/polyfill":
|
|
60820
|
+
},{"object.assign/polyfill":423,"util/":369}],367:[function(require,module,exports){
|
|
60518
60821
|
if (typeof Object.create === 'function') {
|
|
60519
60822
|
// implementation from standard node.js 'util' module
|
|
60520
60823
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -60539,14 +60842,14 @@ if (typeof Object.create === 'function') {
|
|
|
60539
60842
|
}
|
|
60540
60843
|
}
|
|
60541
60844
|
|
|
60542
|
-
},{}],
|
|
60845
|
+
},{}],368:[function(require,module,exports){
|
|
60543
60846
|
module.exports = function isBuffer(arg) {
|
|
60544
60847
|
return arg && typeof arg === 'object'
|
|
60545
60848
|
&& typeof arg.copy === 'function'
|
|
60546
60849
|
&& typeof arg.fill === 'function'
|
|
60547
60850
|
&& typeof arg.readUInt8 === 'function';
|
|
60548
60851
|
}
|
|
60549
|
-
},{}],
|
|
60852
|
+
},{}],369:[function(require,module,exports){
|
|
60550
60853
|
(function (process,global){(function (){
|
|
60551
60854
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
60552
60855
|
//
|
|
@@ -61136,7 +61439,7 @@ function hasOwnProperty(obj, prop) {
|
|
|
61136
61439
|
}
|
|
61137
61440
|
|
|
61138
61441
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61139
|
-
},{"./support/isBuffer":
|
|
61442
|
+
},{"./support/isBuffer":368,"_process":425,"inherits":367}],370:[function(require,module,exports){
|
|
61140
61443
|
(function (global){(function (){
|
|
61141
61444
|
'use strict';
|
|
61142
61445
|
|
|
@@ -61157,7 +61460,7 @@ module.exports = function availableTypedArrays() {
|
|
|
61157
61460
|
};
|
|
61158
61461
|
|
|
61159
61462
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61160
|
-
},{"possible-typed-array-names":
|
|
61463
|
+
},{"possible-typed-array-names":424}],371:[function(require,module,exports){
|
|
61161
61464
|
(function (process,global){(function (){
|
|
61162
61465
|
module.exports = process.hrtime || hrtime
|
|
61163
61466
|
|
|
@@ -61188,7 +61491,7 @@ function hrtime(previousTimestamp){
|
|
|
61188
61491
|
return [seconds,nanoseconds]
|
|
61189
61492
|
}
|
|
61190
61493
|
}).call(this)}).call(this,require('_process'),typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
61191
|
-
},{"_process":
|
|
61494
|
+
},{"_process":425}],372:[function(require,module,exports){
|
|
61192
61495
|
'use strict';
|
|
61193
61496
|
|
|
61194
61497
|
var bind = require('function-bind');
|
|
@@ -61200,7 +61503,7 @@ var $reflectApply = require('./reflectApply');
|
|
|
61200
61503
|
/** @type {import('./actualApply')} */
|
|
61201
61504
|
module.exports = $reflectApply || bind.call($call, $apply);
|
|
61202
61505
|
|
|
61203
|
-
},{"./functionApply":
|
|
61506
|
+
},{"./functionApply":374,"./functionCall":375,"./reflectApply":377,"function-bind":393}],373:[function(require,module,exports){
|
|
61204
61507
|
'use strict';
|
|
61205
61508
|
|
|
61206
61509
|
var bind = require('function-bind');
|
|
@@ -61212,19 +61515,19 @@ module.exports = function applyBind() {
|
|
|
61212
61515
|
return actualApply(bind, $apply, arguments);
|
|
61213
61516
|
};
|
|
61214
61517
|
|
|
61215
|
-
},{"./actualApply":
|
|
61518
|
+
},{"./actualApply":372,"./functionApply":374,"function-bind":393}],374:[function(require,module,exports){
|
|
61216
61519
|
'use strict';
|
|
61217
61520
|
|
|
61218
61521
|
/** @type {import('./functionApply')} */
|
|
61219
61522
|
module.exports = Function.prototype.apply;
|
|
61220
61523
|
|
|
61221
|
-
},{}],
|
|
61524
|
+
},{}],375:[function(require,module,exports){
|
|
61222
61525
|
'use strict';
|
|
61223
61526
|
|
|
61224
61527
|
/** @type {import('./functionCall')} */
|
|
61225
61528
|
module.exports = Function.prototype.call;
|
|
61226
61529
|
|
|
61227
|
-
},{}],
|
|
61530
|
+
},{}],376:[function(require,module,exports){
|
|
61228
61531
|
'use strict';
|
|
61229
61532
|
|
|
61230
61533
|
var bind = require('function-bind');
|
|
@@ -61241,13 +61544,13 @@ module.exports = function callBindBasic(args) {
|
|
|
61241
61544
|
return $actualApply(bind, $call, args);
|
|
61242
61545
|
};
|
|
61243
61546
|
|
|
61244
|
-
},{"./actualApply":
|
|
61547
|
+
},{"./actualApply":372,"./functionCall":375,"es-errors/type":388,"function-bind":393}],377:[function(require,module,exports){
|
|
61245
61548
|
'use strict';
|
|
61246
61549
|
|
|
61247
61550
|
/** @type {import('./reflectApply')} */
|
|
61248
61551
|
module.exports = typeof Reflect !== 'undefined' && Reflect && Reflect.apply;
|
|
61249
61552
|
|
|
61250
|
-
},{}],
|
|
61553
|
+
},{}],378:[function(require,module,exports){
|
|
61251
61554
|
'use strict';
|
|
61252
61555
|
|
|
61253
61556
|
var setFunctionLength = require('set-function-length');
|
|
@@ -61273,7 +61576,7 @@ if ($defineProperty) {
|
|
|
61273
61576
|
module.exports.apply = applyBind;
|
|
61274
61577
|
}
|
|
61275
61578
|
|
|
61276
|
-
},{"call-bind-apply-helpers":
|
|
61579
|
+
},{"call-bind-apply-helpers":376,"call-bind-apply-helpers/applyBind":373,"es-define-property":382,"set-function-length":427}],379:[function(require,module,exports){
|
|
61277
61580
|
'use strict';
|
|
61278
61581
|
|
|
61279
61582
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -61294,7 +61597,7 @@ module.exports = function callBoundIntrinsic(name, allowMissing) {
|
|
|
61294
61597
|
return intrinsic;
|
|
61295
61598
|
};
|
|
61296
61599
|
|
|
61297
|
-
},{"call-bind-apply-helpers":
|
|
61600
|
+
},{"call-bind-apply-helpers":376,"get-intrinsic":394}],380:[function(require,module,exports){
|
|
61298
61601
|
'use strict';
|
|
61299
61602
|
|
|
61300
61603
|
var $defineProperty = require('es-define-property');
|
|
@@ -61352,7 +61655,7 @@ module.exports = function defineDataProperty(
|
|
|
61352
61655
|
}
|
|
61353
61656
|
};
|
|
61354
61657
|
|
|
61355
|
-
},{"es-define-property":
|
|
61658
|
+
},{"es-define-property":382,"es-errors/syntax":387,"es-errors/type":388,"gopd":399}],381:[function(require,module,exports){
|
|
61356
61659
|
'use strict';
|
|
61357
61660
|
|
|
61358
61661
|
var callBind = require('call-bind-apply-helpers');
|
|
@@ -61384,7 +61687,7 @@ module.exports = desc && typeof desc.get === 'function'
|
|
|
61384
61687
|
}
|
|
61385
61688
|
: false;
|
|
61386
61689
|
|
|
61387
|
-
},{"call-bind-apply-helpers":
|
|
61690
|
+
},{"call-bind-apply-helpers":376,"gopd":399}],382:[function(require,module,exports){
|
|
61388
61691
|
'use strict';
|
|
61389
61692
|
|
|
61390
61693
|
/** @type {import('.')} */
|
|
@@ -61400,55 +61703,55 @@ if ($defineProperty) {
|
|
|
61400
61703
|
|
|
61401
61704
|
module.exports = $defineProperty;
|
|
61402
61705
|
|
|
61403
|
-
},{}],
|
|
61706
|
+
},{}],383:[function(require,module,exports){
|
|
61404
61707
|
'use strict';
|
|
61405
61708
|
|
|
61406
61709
|
/** @type {import('./eval')} */
|
|
61407
61710
|
module.exports = EvalError;
|
|
61408
61711
|
|
|
61409
|
-
},{}],
|
|
61712
|
+
},{}],384:[function(require,module,exports){
|
|
61410
61713
|
'use strict';
|
|
61411
61714
|
|
|
61412
61715
|
/** @type {import('.')} */
|
|
61413
61716
|
module.exports = Error;
|
|
61414
61717
|
|
|
61415
|
-
},{}],
|
|
61718
|
+
},{}],385:[function(require,module,exports){
|
|
61416
61719
|
'use strict';
|
|
61417
61720
|
|
|
61418
61721
|
/** @type {import('./range')} */
|
|
61419
61722
|
module.exports = RangeError;
|
|
61420
61723
|
|
|
61421
|
-
},{}],
|
|
61724
|
+
},{}],386:[function(require,module,exports){
|
|
61422
61725
|
'use strict';
|
|
61423
61726
|
|
|
61424
61727
|
/** @type {import('./ref')} */
|
|
61425
61728
|
module.exports = ReferenceError;
|
|
61426
61729
|
|
|
61427
|
-
},{}],
|
|
61730
|
+
},{}],387:[function(require,module,exports){
|
|
61428
61731
|
'use strict';
|
|
61429
61732
|
|
|
61430
61733
|
/** @type {import('./syntax')} */
|
|
61431
61734
|
module.exports = SyntaxError;
|
|
61432
61735
|
|
|
61433
|
-
},{}],
|
|
61736
|
+
},{}],388:[function(require,module,exports){
|
|
61434
61737
|
'use strict';
|
|
61435
61738
|
|
|
61436
61739
|
/** @type {import('./type')} */
|
|
61437
61740
|
module.exports = TypeError;
|
|
61438
61741
|
|
|
61439
|
-
},{}],
|
|
61742
|
+
},{}],389:[function(require,module,exports){
|
|
61440
61743
|
'use strict';
|
|
61441
61744
|
|
|
61442
61745
|
/** @type {import('./uri')} */
|
|
61443
61746
|
module.exports = URIError;
|
|
61444
61747
|
|
|
61445
|
-
},{}],
|
|
61748
|
+
},{}],390:[function(require,module,exports){
|
|
61446
61749
|
'use strict';
|
|
61447
61750
|
|
|
61448
61751
|
/** @type {import('.')} */
|
|
61449
61752
|
module.exports = Object;
|
|
61450
61753
|
|
|
61451
|
-
},{}],
|
|
61754
|
+
},{}],391:[function(require,module,exports){
|
|
61452
61755
|
'use strict';
|
|
61453
61756
|
|
|
61454
61757
|
var isCallable = require('is-callable');
|
|
@@ -61519,7 +61822,7 @@ module.exports = function forEach(list, iterator, thisArg) {
|
|
|
61519
61822
|
}
|
|
61520
61823
|
};
|
|
61521
61824
|
|
|
61522
|
-
},{"is-callable":
|
|
61825
|
+
},{"is-callable":407}],392:[function(require,module,exports){
|
|
61523
61826
|
'use strict';
|
|
61524
61827
|
|
|
61525
61828
|
/* eslint no-invalid-this: 1 */
|
|
@@ -61605,14 +61908,14 @@ module.exports = function bind(that) {
|
|
|
61605
61908
|
return bound;
|
|
61606
61909
|
};
|
|
61607
61910
|
|
|
61608
|
-
},{}],
|
|
61911
|
+
},{}],393:[function(require,module,exports){
|
|
61609
61912
|
'use strict';
|
|
61610
61913
|
|
|
61611
61914
|
var implementation = require('./implementation');
|
|
61612
61915
|
|
|
61613
61916
|
module.exports = Function.prototype.bind || implementation;
|
|
61614
61917
|
|
|
61615
|
-
},{"./implementation":
|
|
61918
|
+
},{"./implementation":392}],394:[function(require,module,exports){
|
|
61616
61919
|
'use strict';
|
|
61617
61920
|
|
|
61618
61921
|
var undefined;
|
|
@@ -61992,7 +62295,7 @@ module.exports = function GetIntrinsic(name, allowMissing) {
|
|
|
61992
62295
|
return value;
|
|
61993
62296
|
};
|
|
61994
62297
|
|
|
61995
|
-
},{"call-bind-apply-helpers/functionApply":
|
|
62298
|
+
},{"call-bind-apply-helpers/functionApply":374,"call-bind-apply-helpers/functionCall":375,"es-define-property":382,"es-errors":384,"es-errors/eval":383,"es-errors/range":385,"es-errors/ref":386,"es-errors/syntax":387,"es-errors/type":388,"es-errors/uri":389,"es-object-atoms":390,"function-bind":393,"get-proto":397,"get-proto/Object.getPrototypeOf":395,"get-proto/Reflect.getPrototypeOf":396,"gopd":399,"has-symbols":401,"hasown":404,"math-intrinsics/abs":411,"math-intrinsics/floor":412,"math-intrinsics/max":414,"math-intrinsics/min":415,"math-intrinsics/pow":416,"math-intrinsics/round":417,"math-intrinsics/sign":418}],395:[function(require,module,exports){
|
|
61996
62299
|
'use strict';
|
|
61997
62300
|
|
|
61998
62301
|
var $Object = require('es-object-atoms');
|
|
@@ -62000,13 +62303,13 @@ var $Object = require('es-object-atoms');
|
|
|
62000
62303
|
/** @type {import('./Object.getPrototypeOf')} */
|
|
62001
62304
|
module.exports = $Object.getPrototypeOf || null;
|
|
62002
62305
|
|
|
62003
|
-
},{"es-object-atoms":
|
|
62306
|
+
},{"es-object-atoms":390}],396:[function(require,module,exports){
|
|
62004
62307
|
'use strict';
|
|
62005
62308
|
|
|
62006
62309
|
/** @type {import('./Reflect.getPrototypeOf')} */
|
|
62007
62310
|
module.exports = (typeof Reflect !== 'undefined' && Reflect.getPrototypeOf) || null;
|
|
62008
62311
|
|
|
62009
|
-
},{}],
|
|
62312
|
+
},{}],397:[function(require,module,exports){
|
|
62010
62313
|
'use strict';
|
|
62011
62314
|
|
|
62012
62315
|
var reflectGetProto = require('./Reflect.getPrototypeOf');
|
|
@@ -62035,13 +62338,13 @@ module.exports = reflectGetProto
|
|
|
62035
62338
|
}
|
|
62036
62339
|
: null;
|
|
62037
62340
|
|
|
62038
|
-
},{"./Object.getPrototypeOf":
|
|
62341
|
+
},{"./Object.getPrototypeOf":395,"./Reflect.getPrototypeOf":396,"dunder-proto/get":381}],398:[function(require,module,exports){
|
|
62039
62342
|
'use strict';
|
|
62040
62343
|
|
|
62041
62344
|
/** @type {import('./gOPD')} */
|
|
62042
62345
|
module.exports = Object.getOwnPropertyDescriptor;
|
|
62043
62346
|
|
|
62044
|
-
},{}],
|
|
62347
|
+
},{}],399:[function(require,module,exports){
|
|
62045
62348
|
'use strict';
|
|
62046
62349
|
|
|
62047
62350
|
/** @type {import('.')} */
|
|
@@ -62058,7 +62361,7 @@ if ($gOPD) {
|
|
|
62058
62361
|
|
|
62059
62362
|
module.exports = $gOPD;
|
|
62060
62363
|
|
|
62061
|
-
},{"./gOPD":
|
|
62364
|
+
},{"./gOPD":398}],400:[function(require,module,exports){
|
|
62062
62365
|
'use strict';
|
|
62063
62366
|
|
|
62064
62367
|
var $defineProperty = require('es-define-property');
|
|
@@ -62082,7 +62385,7 @@ hasPropertyDescriptors.hasArrayLengthDefineBug = function hasArrayLengthDefineBu
|
|
|
62082
62385
|
|
|
62083
62386
|
module.exports = hasPropertyDescriptors;
|
|
62084
62387
|
|
|
62085
|
-
},{"es-define-property":
|
|
62388
|
+
},{"es-define-property":382}],401:[function(require,module,exports){
|
|
62086
62389
|
'use strict';
|
|
62087
62390
|
|
|
62088
62391
|
var origSymbol = typeof Symbol !== 'undefined' && Symbol;
|
|
@@ -62098,7 +62401,7 @@ module.exports = function hasNativeSymbols() {
|
|
|
62098
62401
|
return hasSymbolSham();
|
|
62099
62402
|
};
|
|
62100
62403
|
|
|
62101
|
-
},{"./shams":
|
|
62404
|
+
},{"./shams":402}],402:[function(require,module,exports){
|
|
62102
62405
|
'use strict';
|
|
62103
62406
|
|
|
62104
62407
|
/** @type {import('./shams')} */
|
|
@@ -62145,7 +62448,7 @@ module.exports = function hasSymbols() {
|
|
|
62145
62448
|
return true;
|
|
62146
62449
|
};
|
|
62147
62450
|
|
|
62148
|
-
},{}],
|
|
62451
|
+
},{}],403:[function(require,module,exports){
|
|
62149
62452
|
'use strict';
|
|
62150
62453
|
|
|
62151
62454
|
var hasSymbols = require('has-symbols/shams');
|
|
@@ -62155,7 +62458,7 @@ module.exports = function hasToStringTagShams() {
|
|
|
62155
62458
|
return hasSymbols() && !!Symbol.toStringTag;
|
|
62156
62459
|
};
|
|
62157
62460
|
|
|
62158
|
-
},{"has-symbols/shams":
|
|
62461
|
+
},{"has-symbols/shams":402}],404:[function(require,module,exports){
|
|
62159
62462
|
'use strict';
|
|
62160
62463
|
|
|
62161
62464
|
var call = Function.prototype.call;
|
|
@@ -62165,7 +62468,7 @@ var bind = require('function-bind');
|
|
|
62165
62468
|
/** @type {import('.')} */
|
|
62166
62469
|
module.exports = bind.call(call, $hasOwn);
|
|
62167
62470
|
|
|
62168
|
-
},{"function-bind":
|
|
62471
|
+
},{"function-bind":393}],405:[function(require,module,exports){
|
|
62169
62472
|
if (typeof Object.create === 'function') {
|
|
62170
62473
|
// implementation from standard node.js 'util' module
|
|
62171
62474
|
module.exports = function inherits(ctor, superCtor) {
|
|
@@ -62194,7 +62497,7 @@ if (typeof Object.create === 'function') {
|
|
|
62194
62497
|
}
|
|
62195
62498
|
}
|
|
62196
62499
|
|
|
62197
|
-
},{}],
|
|
62500
|
+
},{}],406:[function(require,module,exports){
|
|
62198
62501
|
'use strict';
|
|
62199
62502
|
|
|
62200
62503
|
var hasToStringTag = require('has-tostringtag/shams')();
|
|
@@ -62240,7 +62543,7 @@ isStandardArguments.isLegacyArguments = isLegacyArguments; // for tests
|
|
|
62240
62543
|
/** @type {import('.')} */
|
|
62241
62544
|
module.exports = supportsStandardArguments ? isStandardArguments : isLegacyArguments;
|
|
62242
62545
|
|
|
62243
|
-
},{"call-bound":
|
|
62546
|
+
},{"call-bound":379,"has-tostringtag/shams":403}],407:[function(require,module,exports){
|
|
62244
62547
|
'use strict';
|
|
62245
62548
|
|
|
62246
62549
|
var fnToStr = Function.prototype.toString;
|
|
@@ -62343,7 +62646,7 @@ module.exports = reflectApply
|
|
|
62343
62646
|
return tryFunctionObject(value);
|
|
62344
62647
|
};
|
|
62345
62648
|
|
|
62346
|
-
},{}],
|
|
62649
|
+
},{}],408:[function(require,module,exports){
|
|
62347
62650
|
'use strict';
|
|
62348
62651
|
|
|
62349
62652
|
var callBound = require('call-bound');
|
|
@@ -62392,7 +62695,7 @@ module.exports = function isGeneratorFunction(fn) {
|
|
|
62392
62695
|
return getProto(fn) === GeneratorFunction;
|
|
62393
62696
|
};
|
|
62394
62697
|
|
|
62395
|
-
},{"call-bound":
|
|
62698
|
+
},{"call-bound":379,"get-proto":397,"has-tostringtag/shams":403,"safe-regex-test":426}],409:[function(require,module,exports){
|
|
62396
62699
|
'use strict';
|
|
62397
62700
|
|
|
62398
62701
|
var callBound = require('call-bound');
|
|
@@ -62463,7 +62766,7 @@ if (hasToStringTag) {
|
|
|
62463
62766
|
|
|
62464
62767
|
module.exports = fn;
|
|
62465
62768
|
|
|
62466
|
-
},{"call-bound":
|
|
62769
|
+
},{"call-bound":379,"gopd":399,"has-tostringtag/shams":403,"hasown":404}],410:[function(require,module,exports){
|
|
62467
62770
|
'use strict';
|
|
62468
62771
|
|
|
62469
62772
|
var whichTypedArray = require('which-typed-array');
|
|
@@ -62473,19 +62776,19 @@ module.exports = function isTypedArray(value) {
|
|
|
62473
62776
|
return !!whichTypedArray(value);
|
|
62474
62777
|
};
|
|
62475
62778
|
|
|
62476
|
-
},{"which-typed-array":
|
|
62779
|
+
},{"which-typed-array":431}],411:[function(require,module,exports){
|
|
62477
62780
|
'use strict';
|
|
62478
62781
|
|
|
62479
62782
|
/** @type {import('./abs')} */
|
|
62480
62783
|
module.exports = Math.abs;
|
|
62481
62784
|
|
|
62482
|
-
},{}],
|
|
62785
|
+
},{}],412:[function(require,module,exports){
|
|
62483
62786
|
'use strict';
|
|
62484
62787
|
|
|
62485
62788
|
/** @type {import('./floor')} */
|
|
62486
62789
|
module.exports = Math.floor;
|
|
62487
62790
|
|
|
62488
|
-
},{}],
|
|
62791
|
+
},{}],413:[function(require,module,exports){
|
|
62489
62792
|
'use strict';
|
|
62490
62793
|
|
|
62491
62794
|
/** @type {import('./isNaN')} */
|
|
@@ -62493,31 +62796,31 @@ module.exports = Number.isNaN || function isNaN(a) {
|
|
|
62493
62796
|
return a !== a;
|
|
62494
62797
|
};
|
|
62495
62798
|
|
|
62496
|
-
},{}],
|
|
62799
|
+
},{}],414:[function(require,module,exports){
|
|
62497
62800
|
'use strict';
|
|
62498
62801
|
|
|
62499
62802
|
/** @type {import('./max')} */
|
|
62500
62803
|
module.exports = Math.max;
|
|
62501
62804
|
|
|
62502
|
-
},{}],
|
|
62805
|
+
},{}],415:[function(require,module,exports){
|
|
62503
62806
|
'use strict';
|
|
62504
62807
|
|
|
62505
62808
|
/** @type {import('./min')} */
|
|
62506
62809
|
module.exports = Math.min;
|
|
62507
62810
|
|
|
62508
|
-
},{}],
|
|
62811
|
+
},{}],416:[function(require,module,exports){
|
|
62509
62812
|
'use strict';
|
|
62510
62813
|
|
|
62511
62814
|
/** @type {import('./pow')} */
|
|
62512
62815
|
module.exports = Math.pow;
|
|
62513
62816
|
|
|
62514
|
-
},{}],
|
|
62817
|
+
},{}],417:[function(require,module,exports){
|
|
62515
62818
|
'use strict';
|
|
62516
62819
|
|
|
62517
62820
|
/** @type {import('./round')} */
|
|
62518
62821
|
module.exports = Math.round;
|
|
62519
62822
|
|
|
62520
|
-
},{}],
|
|
62823
|
+
},{}],418:[function(require,module,exports){
|
|
62521
62824
|
'use strict';
|
|
62522
62825
|
|
|
62523
62826
|
var $isNaN = require('./isNaN');
|
|
@@ -62530,7 +62833,7 @@ module.exports = function sign(number) {
|
|
|
62530
62833
|
return number < 0 ? -1 : +1;
|
|
62531
62834
|
};
|
|
62532
62835
|
|
|
62533
|
-
},{"./isNaN":
|
|
62836
|
+
},{"./isNaN":413}],419:[function(require,module,exports){
|
|
62534
62837
|
'use strict';
|
|
62535
62838
|
|
|
62536
62839
|
var keysShim;
|
|
@@ -62654,7 +62957,7 @@ if (!Object.keys) {
|
|
|
62654
62957
|
}
|
|
62655
62958
|
module.exports = keysShim;
|
|
62656
62959
|
|
|
62657
|
-
},{"./isArguments":
|
|
62960
|
+
},{"./isArguments":421}],420:[function(require,module,exports){
|
|
62658
62961
|
'use strict';
|
|
62659
62962
|
|
|
62660
62963
|
var slice = Array.prototype.slice;
|
|
@@ -62688,7 +62991,7 @@ keysShim.shim = function shimObjectKeys() {
|
|
|
62688
62991
|
|
|
62689
62992
|
module.exports = keysShim;
|
|
62690
62993
|
|
|
62691
|
-
},{"./implementation":
|
|
62994
|
+
},{"./implementation":419,"./isArguments":421}],421:[function(require,module,exports){
|
|
62692
62995
|
'use strict';
|
|
62693
62996
|
|
|
62694
62997
|
var toStr = Object.prototype.toString;
|
|
@@ -62707,7 +63010,7 @@ module.exports = function isArguments(value) {
|
|
|
62707
63010
|
return isArgs;
|
|
62708
63011
|
};
|
|
62709
63012
|
|
|
62710
|
-
},{}],
|
|
63013
|
+
},{}],422:[function(require,module,exports){
|
|
62711
63014
|
'use strict';
|
|
62712
63015
|
|
|
62713
63016
|
// modified from https://github.com/es-shims/es6-shim
|
|
@@ -62755,7 +63058,7 @@ module.exports = function assign(target, source1) {
|
|
|
62755
63058
|
return to; // step 4
|
|
62756
63059
|
};
|
|
62757
63060
|
|
|
62758
|
-
},{"call-bound":
|
|
63061
|
+
},{"call-bound":379,"es-object-atoms":390,"has-symbols/shams":402,"object-keys":420}],423:[function(require,module,exports){
|
|
62759
63062
|
'use strict';
|
|
62760
63063
|
|
|
62761
63064
|
var implementation = require('./implementation');
|
|
@@ -62812,7 +63115,7 @@ module.exports = function getPolyfill() {
|
|
|
62812
63115
|
return Object.assign;
|
|
62813
63116
|
};
|
|
62814
63117
|
|
|
62815
|
-
},{"./implementation":
|
|
63118
|
+
},{"./implementation":422}],424:[function(require,module,exports){
|
|
62816
63119
|
'use strict';
|
|
62817
63120
|
|
|
62818
63121
|
/** @type {import('.')} */
|
|
@@ -62831,7 +63134,7 @@ module.exports = [
|
|
|
62831
63134
|
'BigUint64Array'
|
|
62832
63135
|
];
|
|
62833
63136
|
|
|
62834
|
-
},{}],
|
|
63137
|
+
},{}],425:[function(require,module,exports){
|
|
62835
63138
|
// shim for using process in browser
|
|
62836
63139
|
var process = module.exports = {};
|
|
62837
63140
|
|
|
@@ -63017,7 +63320,7 @@ process.chdir = function (dir) {
|
|
|
63017
63320
|
};
|
|
63018
63321
|
process.umask = function() { return 0; };
|
|
63019
63322
|
|
|
63020
|
-
},{}],
|
|
63323
|
+
},{}],426:[function(require,module,exports){
|
|
63021
63324
|
'use strict';
|
|
63022
63325
|
|
|
63023
63326
|
var callBound = require('call-bound');
|
|
@@ -63036,7 +63339,7 @@ module.exports = function regexTester(regex) {
|
|
|
63036
63339
|
};
|
|
63037
63340
|
};
|
|
63038
63341
|
|
|
63039
|
-
},{"call-bound":
|
|
63342
|
+
},{"call-bound":379,"es-errors/type":388,"is-regex":409}],427:[function(require,module,exports){
|
|
63040
63343
|
'use strict';
|
|
63041
63344
|
|
|
63042
63345
|
var GetIntrinsic = require('get-intrinsic');
|
|
@@ -63080,9 +63383,9 @@ module.exports = function setFunctionLength(fn, length) {
|
|
|
63080
63383
|
return fn;
|
|
63081
63384
|
};
|
|
63082
63385
|
|
|
63083
|
-
},{"define-data-property":
|
|
63084
|
-
arguments[4][
|
|
63085
|
-
},{"dup":
|
|
63386
|
+
},{"define-data-property":380,"es-errors/type":388,"get-intrinsic":394,"gopd":399,"has-property-descriptors":400}],428:[function(require,module,exports){
|
|
63387
|
+
arguments[4][368][0].apply(exports,arguments)
|
|
63388
|
+
},{"dup":368}],429:[function(require,module,exports){
|
|
63086
63389
|
// Currently in sync with Node.js lib/internal/util/types.js
|
|
63087
63390
|
// https://github.com/nodejs/node/commit/112cc7c27551254aa2b17098fb774867f05ed0d9
|
|
63088
63391
|
|
|
@@ -63418,7 +63721,7 @@ exports.isAnyArrayBuffer = isAnyArrayBuffer;
|
|
|
63418
63721
|
});
|
|
63419
63722
|
});
|
|
63420
63723
|
|
|
63421
|
-
},{"is-arguments":
|
|
63724
|
+
},{"is-arguments":406,"is-generator-function":408,"is-typed-array":410,"which-typed-array":431}],430:[function(require,module,exports){
|
|
63422
63725
|
(function (process){(function (){
|
|
63423
63726
|
// Copyright Joyent, Inc. and other Node contributors.
|
|
63424
63727
|
//
|
|
@@ -64137,7 +64440,7 @@ function callbackify(original) {
|
|
|
64137
64440
|
exports.callbackify = callbackify;
|
|
64138
64441
|
|
|
64139
64442
|
}).call(this)}).call(this,require('_process'))
|
|
64140
|
-
},{"./support/isBuffer":
|
|
64443
|
+
},{"./support/isBuffer":428,"./support/types":429,"_process":425,"inherits":405}],431:[function(require,module,exports){
|
|
64141
64444
|
(function (global){(function (){
|
|
64142
64445
|
'use strict';
|
|
64143
64446
|
|
|
@@ -64258,5 +64561,5 @@ module.exports = function whichTypedArray(value) {
|
|
|
64258
64561
|
};
|
|
64259
64562
|
|
|
64260
64563
|
}).call(this)}).call(this,typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : typeof window !== "undefined" ? window : {})
|
|
64261
|
-
},{"available-typed-arrays":
|
|
64564
|
+
},{"available-typed-arrays":370,"call-bind":378,"call-bound":379,"for-each":391,"get-proto":397,"gopd":399,"has-tostringtag/shams":403}]},{},[115])(115)
|
|
64262
64565
|
});
|