@designliquido/delegua 0.1.9 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +13 -11
- package/bin/package.json +2 -2
- package/package.json +2 -2
- package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +2 -2
- package/src/avaliador-sintatico/dialetos/egua-classico.js +20 -20
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
- package/src/avaliador-sintatico/index.d.ts +2 -2
- package/src/avaliador-sintatico/index.js +22 -15
- package/src/avaliador-sintatico/index.js.map +1 -1
- package/src/bibliotecas/{bibliotecaGlobal.d.ts → biblioteca-global.d.ts} +0 -0
- package/src/bibliotecas/{bibliotecaGlobal.js → biblioteca-global.js} +2 -2
- package/src/bibliotecas/biblioteca-global.js.map +1 -0
- package/src/bibliotecas/importar-biblioteca.d.ts +2 -0
- package/src/bibliotecas/{importarBiblioteca.js → importar-biblioteca.js} +6 -6
- package/src/bibliotecas/importar-biblioteca.js.map +1 -0
- package/src/construtos/{assign-subscript.d.ts → atribuicao-sobrescrita.d.ts} +2 -2
- package/src/construtos/atribuicao-sobrescrita.js +16 -0
- package/src/construtos/atribuicao-sobrescrita.js.map +1 -0
- package/src/construtos/atribuir.d.ts +2 -2
- package/src/construtos/atribuir.js +6 -25
- package/src/construtos/atribuir.js.map +1 -1
- package/src/construtos/binario.d.ts +2 -2
- package/src/construtos/binario.js +7 -26
- package/src/construtos/binario.js.map +1 -1
- package/src/construtos/call.d.ts +2 -2
- package/src/construtos/call.js +7 -26
- package/src/construtos/call.js.map +1 -1
- package/src/construtos/conjunto.d.ts +2 -2
- package/src/construtos/conjunto.js +7 -26
- package/src/construtos/conjunto.js.map +1 -1
- package/src/construtos/dicionario.d.ts +2 -2
- package/src/construtos/dicionario.js +6 -25
- package/src/construtos/dicionario.js.map +1 -1
- package/src/construtos/expr.d.ts +2 -2
- package/src/construtos/expr.js +0 -8
- package/src/construtos/expr.js.map +1 -1
- package/src/construtos/funcao.d.ts +2 -2
- package/src/construtos/funcao.js +6 -25
- package/src/construtos/funcao.js.map +1 -1
- package/src/construtos/get.d.ts +2 -2
- package/src/construtos/get.js +6 -25
- package/src/construtos/get.js.map +1 -1
- package/src/construtos/grouping.d.ts +2 -2
- package/src/construtos/grouping.js +5 -24
- package/src/construtos/grouping.js.map +1 -1
- package/src/construtos/index.d.ts +1 -1
- package/src/construtos/index.js +1 -1
- package/src/construtos/index.js.map +1 -1
- package/src/construtos/isto.d.ts +2 -2
- package/src/construtos/isto.js +5 -24
- package/src/construtos/isto.js.map +1 -1
- package/src/construtos/literal.d.ts +2 -2
- package/src/construtos/literal.js +5 -24
- package/src/construtos/literal.js.map +1 -1
- package/src/construtos/logical.d.ts +2 -2
- package/src/construtos/logical.js +7 -26
- package/src/construtos/logical.js.map +1 -1
- package/src/construtos/subscript.d.ts +2 -2
- package/src/construtos/subscript.js +7 -26
- package/src/construtos/subscript.js.map +1 -1
- package/src/construtos/super.d.ts +2 -2
- package/src/construtos/super.js +6 -25
- package/src/construtos/super.js.map +1 -1
- package/src/construtos/unario.d.ts +2 -2
- package/src/construtos/unario.js +6 -25
- package/src/construtos/unario.js.map +1 -1
- package/src/construtos/variavel.d.ts +2 -2
- package/src/construtos/variavel.js +5 -24
- package/src/construtos/variavel.js.map +1 -1
- package/src/construtos/vetor.d.ts +2 -2
- package/src/construtos/vetor.js +5 -24
- package/src/construtos/vetor.js.map +1 -1
- package/src/declaracoes/{block.d.ts → bloco.d.ts} +2 -2
- package/src/declaracoes/{block.js → bloco.js} +9 -9
- package/src/declaracoes/bloco.js.map +1 -0
- package/src/declaracoes/classe.d.ts +1 -1
- package/src/declaracoes/classe.js +2 -2
- package/src/declaracoes/classe.js.map +1 -1
- package/src/declaracoes/continua.d.ts +1 -1
- package/src/declaracoes/continua.js +2 -2
- package/src/declaracoes/continua.js.map +1 -1
- package/src/declaracoes/enquanto.d.ts +1 -1
- package/src/declaracoes/enquanto.js +2 -2
- package/src/declaracoes/enquanto.js.map +1 -1
- package/src/declaracoes/escolha.d.ts +1 -1
- package/src/declaracoes/escolha.js +2 -2
- package/src/declaracoes/escolha.js.map +1 -1
- package/src/declaracoes/escreva.d.ts +1 -1
- package/src/declaracoes/escreva.js +2 -2
- package/src/declaracoes/escreva.js.map +1 -1
- package/src/declaracoes/expressao.d.ts +1 -1
- package/src/declaracoes/expressao.js +2 -2
- package/src/declaracoes/expressao.js.map +1 -1
- package/src/declaracoes/fazer.d.ts +1 -1
- package/src/declaracoes/fazer.js +2 -2
- package/src/declaracoes/fazer.js.map +1 -1
- package/src/declaracoes/funcao.d.ts +1 -1
- package/src/declaracoes/funcao.js +2 -2
- package/src/declaracoes/funcao.js.map +1 -1
- package/src/declaracoes/importar.d.ts +1 -1
- package/src/declaracoes/importar.js +2 -2
- package/src/declaracoes/importar.js.map +1 -1
- package/src/declaracoes/index.d.ts +1 -1
- package/src/declaracoes/index.js +1 -1
- package/src/declaracoes/para.d.ts +1 -1
- package/src/declaracoes/para.js +2 -2
- package/src/declaracoes/para.js.map +1 -1
- package/src/declaracoes/pausa.d.ts +1 -1
- package/src/declaracoes/pausa.js +2 -2
- package/src/declaracoes/pausa.js.map +1 -1
- package/src/declaracoes/retorna.d.ts +1 -1
- package/src/declaracoes/retorna.js +2 -2
- package/src/declaracoes/retorna.js.map +1 -1
- package/src/declaracoes/se.d.ts +1 -1
- package/src/declaracoes/se.js +2 -2
- package/src/declaracoes/se.js.map +1 -1
- package/src/declaracoes/stmt.d.ts +1 -1
- package/src/declaracoes/stmt.js +1 -1
- package/src/declaracoes/stmt.js.map +1 -1
- package/src/declaracoes/tente.d.ts +1 -1
- package/src/declaracoes/tente.js +2 -2
- package/src/declaracoes/tente.js.map +1 -1
- package/src/declaracoes/var.d.ts +1 -1
- package/src/declaracoes/var.js +2 -2
- package/src/declaracoes/var.js.map +1 -1
- package/src/delegua.js +5 -5
- package/src/delegua.js.map +1 -1
- package/src/estruturas/chamavel.d.ts +5 -0
- package/src/estruturas/chamavel.js +16 -0
- package/src/estruturas/{callable.js.map → chamavel.js.map} +1 -1
- package/src/estruturas/classe.d.ts +3 -3
- package/src/estruturas/classe.js +4 -4
- package/src/estruturas/classe.js.map +1 -1
- package/src/estruturas/funcao-padrao.d.ts +6 -6
- package/src/estruturas/funcao-padrao.js +3 -3
- package/src/estruturas/funcao-padrao.js.map +1 -1
- package/src/estruturas/funcao.d.ts +6 -6
- package/src/estruturas/funcao.js +11 -11
- package/src/estruturas/funcao.js.map +1 -1
- package/src/estruturas/index.d.ts +1 -1
- package/src/estruturas/index.js +1 -1
- package/src/estruturas/instancia.js +1 -1
- package/src/estruturas/instancia.js.map +1 -1
- package/src/interfaces/avaliador-sintatico-interface.d.ts +2 -2
- package/src/interfaces/pilha-interface.d.ts +1 -1
- package/src/interfaces/resolvedor-interface.d.ts +2 -1
- package/src/interpretador/dialetos/egua-classico.js +7 -7
- package/src/interpretador/dialetos/egua-classico.js.map +1 -1
- package/src/interpretador/index.js +7 -7
- package/src/interpretador/index.js.map +1 -1
- package/src/lexador/dialetos/egua-classico.d.ts +1 -1
- package/src/lexador/dialetos/egua-classico.js +30 -31
- package/src/lexador/dialetos/egua-classico.js.map +1 -1
- package/src/lexador/index.d.ts +1 -1
- package/src/lexador/index.js +44 -31
- package/src/lexador/index.js.map +1 -1
- package/src/resolvedor/dialetos/egua-classico.d.ts +2 -1
- package/src/resolvedor/dialetos/egua-classico.js +13 -13
- package/src/resolvedor/dialetos/egua-classico.js.map +1 -1
- package/src/resolvedor/{ResolverError.d.ts → erro-resolvedor.d.ts} +1 -1
- package/src/resolvedor/{ResolverError.js → erro-resolvedor.js} +7 -7
- package/src/resolvedor/erro-resolvedor.js.map +1 -0
- package/src/resolvedor/index.d.ts +2 -1
- package/src/resolvedor/index.js +10 -10
- package/src/resolvedor/index.js.map +1 -1
- package/src/resolvedor/{Pilha.d.ts → pilha-escopos.d.ts} +2 -2
- package/src/resolvedor/pilha-escopos.js +27 -0
- package/src/resolvedor/pilha-escopos.js.map +1 -0
- package/src/tiposDeSimbolos.d.ts +4 -1
- package/src/tiposDeSimbolos.js +4 -1
- package/src/tiposDeSimbolos.js.map +1 -1
- package/src/bibliotecas/bibliotecaGlobal.js.map +0 -1
- package/src/bibliotecas/importarBiblioteca.d.ts +0 -2
- package/src/bibliotecas/importarBiblioteca.js.map +0 -1
- package/src/construtos/assign-subscript.js +0 -35
- package/src/construtos/assign-subscript.js.map +0 -1
- package/src/declaracoes/block.js.map +0 -1
- package/src/estruturas/callable.d.ts +0 -5
- package/src/estruturas/callable.js +0 -16
- package/src/resolvedor/Pilha.js +0 -27
- package/src/resolvedor/Pilha.js.map +0 -1
- package/src/resolvedor/ResolverError.js.map +0 -1
|
@@ -36,7 +36,7 @@ function default_1(interpretador, global) {
|
|
|
36
36
|
}
|
|
37
37
|
var provisorio = [];
|
|
38
38
|
for (var indice = 0; indice < array.length; ++indice) {
|
|
39
|
-
provisorio.push(callback.
|
|
39
|
+
provisorio.push(callback.chamar(interpretador, [array[indice]]));
|
|
40
40
|
}
|
|
41
41
|
return provisorio;
|
|
42
42
|
}));
|
|
@@ -94,4 +94,4 @@ function default_1(interpretador, global) {
|
|
|
94
94
|
}
|
|
95
95
|
exports.default = default_1;
|
|
96
96
|
;
|
|
97
|
-
//# sourceMappingURL=
|
|
97
|
+
//# sourceMappingURL=biblioteca-global.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"biblioteca-global.js","sourceRoot":"","sources":["../../../src/bibliotecas/biblioteca-global.ts"],"names":[],"mappings":";;AAAA,wCAAoD;AACpD,+CAAqD;AACrD,qDAA2D;AAC3D,6DAA2D;AAC3D,+CAAqD;AAGrD,mBAAyB,aAAkB,EAAE,MAAW;IACpD,2CAA2C;IAC3C,MAAM,CAAC,eAAe,CAClB,WAAW,EACX,IAAI,4BAAY,CAAC,CAAC,EAAE;QAChB,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC;IACzB,CAAC,CAAC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B,OAAO,EACP,IAAI,4BAAY,CAAC,CAAC,EAAE,UAAU,KAAU;QACpC,OAAO,UAAG,KAAK,CAAE,CAAC;IACtB,CAAC,CAAC,CACL,CAAC;IAEF,MAAM,CAAC,eAAe,CAAC,SAAS,EAAE,EAAE,CAAC,CAAC;IAEtC,OAAO,MAAM,CAAC;AAClB,CAAC;AAnKD,4BAmKC;AAAA,CAAC"}
|
|
@@ -3,15 +3,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var excecoes_1 = require("../excecoes");
|
|
4
4
|
var funcao_padrao_1 = require("../estruturas/funcao-padrao");
|
|
5
5
|
var modulo_1 = require("../estruturas/modulo");
|
|
6
|
-
var
|
|
6
|
+
var carregarBiblioteca = function (nomeDaBiblioteca, caminhoDaBiblioteca) {
|
|
7
7
|
var dadosDoModulo;
|
|
8
8
|
try {
|
|
9
|
-
dadosDoModulo = require(
|
|
9
|
+
dadosDoModulo = require(caminhoDaBiblioteca);
|
|
10
10
|
}
|
|
11
11
|
catch (erro) {
|
|
12
|
-
throw new excecoes_1.ErroEmTempoDeExecucao(
|
|
12
|
+
throw new excecoes_1.ErroEmTempoDeExecucao(nomeDaBiblioteca, "Biblioteca ".concat(nomeDaBiblioteca, " n\u00E3o encontrada para importa\u00E7\u00E3o."));
|
|
13
13
|
}
|
|
14
|
-
var novoModulo = new modulo_1.DeleguaModulo(
|
|
14
|
+
var novoModulo = new modulo_1.DeleguaModulo(nomeDaBiblioteca);
|
|
15
15
|
var chaves = Object.keys(dadosDoModulo);
|
|
16
16
|
for (var i = 0; i < chaves.length; i++) {
|
|
17
17
|
var moduloAtual = dadosDoModulo[chaves[i]];
|
|
@@ -25,8 +25,8 @@ var carregarModulo = function (nomeDoModulo, caminhoDoModulo) {
|
|
|
25
25
|
return novoModulo;
|
|
26
26
|
};
|
|
27
27
|
function default_1(nome) {
|
|
28
|
-
return
|
|
28
|
+
return carregarBiblioteca(nome, nome);
|
|
29
29
|
}
|
|
30
30
|
exports.default = default_1;
|
|
31
31
|
;
|
|
32
|
-
//# sourceMappingURL=
|
|
32
|
+
//# sourceMappingURL=importar-biblioteca.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importar-biblioteca.js","sourceRoot":"","sources":["../../../src/bibliotecas/importar-biblioteca.ts"],"names":[],"mappings":";;AAAA,wCAAoD;AACpD,6DAA2D;AAC3D,+CAAqD;AAErD,IAAM,kBAAkB,GAAG,UAAU,gBAAqB,EAAE,mBAAwB;IAChF,IAAI,aAAkB,CAAC;IAEvB,IAAI;QACA,aAAa,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;KAChD;IAAC,OAAO,IAAI,EAAE;QACX,MAAM,IAAI,gCAAqB,CAAC,gBAAgB,EAAE,qBAAc,gBAAgB,oDAAkC,CAAC,CAAC;KACvH;IAED,IAAI,UAAU,GAAG,IAAI,sBAAa,CAAC,gBAAgB,CAAC,CAAC;IAErD,IAAI,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IACxC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACpC,IAAM,WAAW,GAAG,aAAa,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAE7C,IAAI,OAAO,WAAW,KAAK,UAAU,EAAE;YACnC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,4BAAY,CAAC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;SAC7E;aAAM;YACH,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,GAAG,WAAW,CAAC;SACvC;KACJ;IAED,OAAO,UAAU,CAAC;AACtB,CAAC,CAAC;AAEF,mBAAyB,IAAY;IACjC,OAAO,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AAC1C,CAAC;AAFD,4BAEC;AAAA,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class
|
|
2
|
+
export declare class AtribuicaoSobrescrita implements Expr {
|
|
3
3
|
objeto: any;
|
|
4
4
|
valor: any;
|
|
5
5
|
indice: any;
|
|
6
6
|
constructor(objeto: any, indice: any, valor: any);
|
|
7
|
-
aceitar(
|
|
7
|
+
aceitar(visitante: any): any;
|
|
8
8
|
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AtribuicaoSobrescrita = void 0;
|
|
4
|
+
var AtribuicaoSobrescrita = /** @class */ (function () {
|
|
5
|
+
function AtribuicaoSobrescrita(objeto, indice, valor) {
|
|
6
|
+
this.objeto = objeto;
|
|
7
|
+
this.indice = indice;
|
|
8
|
+
this.valor = valor;
|
|
9
|
+
}
|
|
10
|
+
AtribuicaoSobrescrita.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoAtribuicaoSobrescrita(this);
|
|
12
|
+
};
|
|
13
|
+
return AtribuicaoSobrescrita;
|
|
14
|
+
}());
|
|
15
|
+
exports.AtribuicaoSobrescrita = AtribuicaoSobrescrita;
|
|
16
|
+
//# sourceMappingURL=atribuicao-sobrescrita.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"atribuicao-sobrescrita.js","sourceRoot":"","sources":["../../../src/construtos/atribuicao-sobrescrita.ts"],"names":[],"mappings":";;;AAGA;IAKI,+BAAY,MAAW,EAAE,MAAW,EAAE,KAAU;QAC5C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,uCAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qCAAqC,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IACL,4BAAC;AAAD,CAAC,AAdD,IAcC;AAdY,sDAAqB"}
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Atribuir = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Atribuir = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Atribuir, _super);
|
|
4
|
+
var Atribuir = /** @class */ (function () {
|
|
22
5
|
function Atribuir(nome, valor) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.valor = valor;
|
|
26
|
-
return _this;
|
|
6
|
+
this.nome = nome;
|
|
7
|
+
this.valor = valor;
|
|
27
8
|
}
|
|
28
|
-
Atribuir.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Atribuir.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoDeAtribuicao(this);
|
|
30
11
|
};
|
|
31
12
|
return Atribuir;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Atribuir = Atribuir;
|
|
34
15
|
//# sourceMappingURL=atribuir.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"atribuir.js","sourceRoot":"","sources":["../../../src/construtos/atribuir.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"atribuir.js","sourceRoot":"","sources":["../../../src/construtos/atribuir.ts"],"names":[],"mappings":";;;AAGA;IAII,kBAAY,IAAS,EAAE,KAAU;QAC7B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,eAAC;AAAD,CAAC,AAZD,IAYC;AAZY,4BAAQ"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Binario
|
|
2
|
+
export declare class Binario implements Expr {
|
|
3
3
|
esquerda: any;
|
|
4
4
|
operador: any;
|
|
5
5
|
direita: any;
|
|
6
6
|
constructor(esquerda: any, operador: any, direita: any);
|
|
7
|
-
aceitar(
|
|
7
|
+
aceitar(visitante: any): any;
|
|
8
8
|
}
|
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Binario = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Binario = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Binario, _super);
|
|
4
|
+
var Binario = /** @class */ (function () {
|
|
22
5
|
function Binario(esquerda, operador, direita) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
_this.direita = direita;
|
|
27
|
-
return _this;
|
|
6
|
+
this.esquerda = esquerda;
|
|
7
|
+
this.operador = operador;
|
|
8
|
+
this.direita = direita;
|
|
28
9
|
}
|
|
29
|
-
Binario.prototype.aceitar = function (
|
|
30
|
-
return
|
|
10
|
+
Binario.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoBinaria(this);
|
|
31
12
|
};
|
|
32
13
|
return Binario;
|
|
33
|
-
}(
|
|
14
|
+
}());
|
|
34
15
|
exports.Binario = Binario;
|
|
35
16
|
//# sourceMappingURL=binario.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"binario.js","sourceRoot":"","sources":["../../../src/construtos/binario.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"binario.js","sourceRoot":"","sources":["../../../src/construtos/binario.ts"],"names":[],"mappings":";;;AAGA;IAKI,iBAAY,QAAa,EAAE,QAAa,EAAE,OAAY;QAClD,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAdD,IAcC;AAdY,0BAAO"}
|
package/src/construtos/call.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Call
|
|
2
|
+
export declare class Call implements Expr {
|
|
3
3
|
callee: any;
|
|
4
4
|
argumentos: any;
|
|
5
5
|
parentese: any;
|
|
6
6
|
constructor(callee: any, parentese: any, argumentos: any);
|
|
7
|
-
aceitar(
|
|
7
|
+
aceitar(visitante: any): any;
|
|
8
8
|
}
|
package/src/construtos/call.js
CHANGED
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Call = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Call = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Call, _super);
|
|
4
|
+
var Call = /** @class */ (function () {
|
|
22
5
|
function Call(callee, parentese, argumentos) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
_this.argumentos = argumentos;
|
|
27
|
-
return _this;
|
|
6
|
+
this.callee = callee;
|
|
7
|
+
this.parentese = parentese;
|
|
8
|
+
this.argumentos = argumentos;
|
|
28
9
|
}
|
|
29
|
-
Call.prototype.aceitar = function (
|
|
30
|
-
return
|
|
10
|
+
Call.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoDeChamada(this);
|
|
31
12
|
};
|
|
32
13
|
return Call;
|
|
33
|
-
}(
|
|
14
|
+
}());
|
|
34
15
|
exports.Call = Call;
|
|
35
16
|
//# sourceMappingURL=call.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../src/construtos/call.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"call.js","sourceRoot":"","sources":["../../../src/construtos/call.ts"],"names":[],"mappings":";;;AAGA;IAKI,cAAY,MAAW,EAAE,SAAc,EAAE,UAAe;QACpD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IACL,WAAC;AAAD,CAAC,AAdD,IAcC;AAdY,oBAAI"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Conjunto
|
|
2
|
+
export declare class Conjunto implements Expr {
|
|
3
3
|
objeto: any;
|
|
4
4
|
nome: any;
|
|
5
5
|
valor: any;
|
|
6
6
|
constructor(objeto: any, nome: any, valor: any);
|
|
7
|
-
aceitar(
|
|
7
|
+
aceitar(visitante: any): any;
|
|
8
8
|
}
|
|
@@ -1,35 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Conjunto = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Conjunto = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Conjunto, _super);
|
|
4
|
+
var Conjunto = /** @class */ (function () {
|
|
22
5
|
function Conjunto(objeto, nome, valor) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
_this.valor = valor;
|
|
27
|
-
return _this;
|
|
6
|
+
this.objeto = objeto;
|
|
7
|
+
this.nome = nome;
|
|
8
|
+
this.valor = valor;
|
|
28
9
|
}
|
|
29
|
-
Conjunto.prototype.aceitar = function (
|
|
30
|
-
return
|
|
10
|
+
Conjunto.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoDefinir(this);
|
|
31
12
|
};
|
|
32
13
|
return Conjunto;
|
|
33
|
-
}(
|
|
14
|
+
}());
|
|
34
15
|
exports.Conjunto = Conjunto;
|
|
35
16
|
//# sourceMappingURL=conjunto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"conjunto.js","sourceRoot":"","sources":["../../../src/construtos/conjunto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"conjunto.js","sourceRoot":"","sources":["../../../src/construtos/conjunto.ts"],"names":[],"mappings":";;;AAGA;IAKI,kBAAY,MAAW,EAAE,IAAS,EAAE,KAAU;QAC1C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,eAAC;AAAD,CAAC,AAdD,IAcC;AAdY,4BAAQ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Dicionario
|
|
2
|
+
export declare class Dicionario implements Expr {
|
|
3
3
|
chaves: any;
|
|
4
4
|
valores: any;
|
|
5
5
|
constructor(chaves: any, valores: any);
|
|
6
|
-
aceitar(
|
|
6
|
+
aceitar(visitante: any): any;
|
|
7
7
|
}
|
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Dicionario = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Dicionario = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Dicionario, _super);
|
|
4
|
+
var Dicionario = /** @class */ (function () {
|
|
22
5
|
function Dicionario(chaves, valores) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.valores = valores;
|
|
26
|
-
return _this;
|
|
6
|
+
this.chaves = chaves;
|
|
7
|
+
this.valores = valores;
|
|
27
8
|
}
|
|
28
|
-
Dicionario.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Dicionario.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoDicionario(this);
|
|
30
11
|
};
|
|
31
12
|
return Dicionario;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Dicionario = Dicionario;
|
|
34
15
|
//# sourceMappingURL=dicionario.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dicionario.js","sourceRoot":"","sources":["../../../src/construtos/dicionario.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"dicionario.js","sourceRoot":"","sources":["../../../src/construtos/dicionario.ts"],"names":[],"mappings":";;;AAGA;IAII,oBAAY,MAAW,EAAE,OAAY;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,4BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACL,iBAAC;AAAD,CAAC,AAZD,IAYC;AAZY,gCAAU"}
|
package/src/construtos/expr.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export
|
|
2
|
-
aceitar(
|
|
1
|
+
export interface Expr {
|
|
2
|
+
aceitar(visitante: any): any;
|
|
3
3
|
}
|
package/src/construtos/expr.js
CHANGED
|
@@ -1,11 +1,3 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Expr = void 0;
|
|
4
|
-
var Expr = /** @class */ (function () {
|
|
5
|
-
function Expr() {
|
|
6
|
-
}
|
|
7
|
-
Expr.prototype.aceitar = function (visitor) { };
|
|
8
|
-
return Expr;
|
|
9
|
-
}());
|
|
10
|
-
exports.Expr = Expr;
|
|
11
3
|
//# sourceMappingURL=expr.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"expr.js","sourceRoot":"","sources":["../../../src/construtos/expr.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"expr.js","sourceRoot":"","sources":["../../../src/construtos/expr.ts"],"names":[],"mappings":""}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Funcao
|
|
2
|
+
export declare class Funcao implements Expr {
|
|
3
3
|
parametros: any;
|
|
4
4
|
corpo: any;
|
|
5
5
|
constructor(parametros: any, corpo: any);
|
|
6
|
-
aceitar(
|
|
6
|
+
aceitar(visitante: any): any;
|
|
7
7
|
}
|
package/src/construtos/funcao.js
CHANGED
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Funcao = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Funcao = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Funcao, _super);
|
|
4
|
+
var Funcao = /** @class */ (function () {
|
|
22
5
|
function Funcao(parametros, corpo) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.corpo = corpo;
|
|
26
|
-
return _this;
|
|
6
|
+
this.parametros = parametros;
|
|
7
|
+
this.corpo = corpo;
|
|
27
8
|
}
|
|
28
|
-
Funcao.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Funcao.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoDeleguaFuncao(this);
|
|
30
11
|
};
|
|
31
12
|
return Funcao;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Funcao = Funcao;
|
|
34
15
|
//# sourceMappingURL=funcao.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../src/construtos/funcao.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../src/construtos/funcao.ts"],"names":[],"mappings":";;;AAGA;IAII,gBAAY,UAAe,EAAE,KAAU;QACnC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,6BAA6B,CAAC,IAAI,CAAC,CAAC;IACzD,CAAC;IACL,aAAC;AAAD,CAAC,AAZD,IAYC;AAZY,wBAAM"}
|
package/src/construtos/get.d.ts
CHANGED
package/src/construtos/get.js
CHANGED
|
@@ -1,34 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Get = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Get = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Get, _super);
|
|
4
|
+
var Get = /** @class */ (function () {
|
|
22
5
|
function Get(objeto, nome) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.nome = nome;
|
|
26
|
-
return _this;
|
|
6
|
+
this.objeto = objeto;
|
|
7
|
+
this.nome = nome;
|
|
27
8
|
}
|
|
28
|
-
Get.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Get.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoObter(this);
|
|
30
11
|
};
|
|
31
12
|
return Get;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Get = Get;
|
|
34
15
|
//# sourceMappingURL=get.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/construtos/get.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"get.js","sourceRoot":"","sources":["../../../src/construtos/get.ts"],"names":[],"mappings":";;;AAGA;IAII,aAAY,MAAW,EAAE,IAAS;QAC9B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,qBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,UAAC;AAAD,CAAC,AAZD,IAYC;AAZY,kBAAG"}
|
|
@@ -1,33 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __extends = (this && this.__extends) || (function () {
|
|
3
|
-
var extendStatics = function (d, b) {
|
|
4
|
-
extendStatics = Object.setPrototypeOf ||
|
|
5
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
6
|
-
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
7
|
-
return extendStatics(d, b);
|
|
8
|
-
};
|
|
9
|
-
return function (d, b) {
|
|
10
|
-
if (typeof b !== "function" && b !== null)
|
|
11
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
12
|
-
extendStatics(d, b);
|
|
13
|
-
function __() { this.constructor = d; }
|
|
14
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
15
|
-
};
|
|
16
|
-
})();
|
|
17
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
3
|
exports.Grouping = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Grouping = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Grouping, _super);
|
|
4
|
+
var Grouping = /** @class */ (function () {
|
|
22
5
|
function Grouping(expressao) {
|
|
23
|
-
|
|
24
|
-
_this.expressao = expressao;
|
|
25
|
-
return _this;
|
|
6
|
+
this.expressao = expressao;
|
|
26
7
|
}
|
|
27
|
-
Grouping.prototype.aceitar = function (
|
|
28
|
-
return
|
|
8
|
+
Grouping.prototype.aceitar = function (visitante) {
|
|
9
|
+
return visitante.visitarExpressaoAgrupamento(this);
|
|
29
10
|
};
|
|
30
11
|
return Grouping;
|
|
31
|
-
}(
|
|
12
|
+
}());
|
|
32
13
|
exports.Grouping = Grouping;
|
|
33
14
|
//# sourceMappingURL=grouping.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grouping.js","sourceRoot":"","sources":["../../../src/construtos/grouping.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"grouping.js","sourceRoot":"","sources":["../../../src/construtos/grouping.ts"],"names":[],"mappings":";;;AAGA;IAGI,kBAAY,SAAc;QACtB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IACL,eAAC;AAAD,CAAC,AAVD,IAUC;AAVY,4BAAQ"}
|
package/src/construtos/index.js
CHANGED
|
@@ -10,7 +10,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
10
10
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
11
|
};
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
-
__exportStar(require("./
|
|
13
|
+
__exportStar(require("./atribuicao-sobrescrita"), exports);
|
|
14
14
|
__exportStar(require("./atribuir"), exports);
|
|
15
15
|
__exportStar(require("./binario"), exports);
|
|
16
16
|
__exportStar(require("./call"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/construtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/construtos/index.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2DAAyC;AACzC,6CAA2B;AAC3B,4CAA0B;AAC1B,yCAAuB;AACvB,6CAA2B;AAC3B,+CAA6B;AAC7B,yCAAuB;AACvB,2CAAyB;AACzB,wCAAsB;AACtB,6CAA2B;AAC3B,yCAAuB;AACvB,4CAA0B;AAC1B,4CAA0B;AAC1B,8CAA4B;AAC5B,0CAAwB;AACxB,2CAAyB;AACzB,6CAA2B;AAC3B,0CAAwB"}
|