@designliquido/delegua 0.1.8 → 0.1.12
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 -9
- package/bin/package.json +4 -3
- package/package.json +4 -3
- package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +2 -2
- package/src/avaliador-sintatico/dialetos/egua-classico.js +24 -24
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
- package/src/avaliador-sintatico/index.d.ts +4 -4
- package/src/avaliador-sintatico/index.js +34 -28
- 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.d.ts +4 -4
- package/src/delegua.js +7 -7
- package/src/delegua.js.map +1 -1
- package/src/estruturas/classe.d.ts +1 -1
- package/src/estruturas/classe.js +2 -2
- package/src/estruturas/classe.js.map +1 -1
- package/src/estruturas/funcao-padrao.d.ts +1 -1
- package/src/estruturas/funcao-padrao.js +1 -1
- package/src/estruturas/funcao-padrao.js.map +1 -1
- package/src/estruturas/funcao.d.ts +4 -4
- package/src/estruturas/funcao.js +9 -9
- package/src/estruturas/funcao.js.map +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/lexador-interface.d.ts +1 -1
- 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 +5 -5
- package/src/interpretador/dialetos/egua-classico.js.map +1 -1
- package/src/interpretador/index.js +5 -5
- 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 +11 -10
- package/src/lexador/dialetos/egua-classico.js.map +1 -1
- package/src/lexador/index.d.ts +1 -1
- package/src/lexador/index.js +28 -12
- 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 +12 -12
- 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 +10 -6
- package/src/tiposDeSimbolos.js +10 -6
- 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/resolvedor/Pilha.js +0 -27
- package/src/resolvedor/Pilha.js.map +0 -1
- package/src/resolvedor/ResolverError.js.map +0 -1
- package/src/web.d.ts +0 -11
- package/src/web.js +0 -66
- package/src/web.js.map +0 -1
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"}
|
package/src/construtos/isto.d.ts
CHANGED
package/src/construtos/isto.js
CHANGED
|
@@ -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.Isto = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Isto = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Isto, _super);
|
|
4
|
+
var Isto = /** @class */ (function () {
|
|
22
5
|
function Isto(palavraChave) {
|
|
23
|
-
|
|
24
|
-
_this.palavraChave = palavraChave;
|
|
25
|
-
return _this;
|
|
6
|
+
this.palavraChave = palavraChave;
|
|
26
7
|
}
|
|
27
|
-
Isto.prototype.aceitar = function (
|
|
28
|
-
return
|
|
8
|
+
Isto.prototype.aceitar = function (visitante) {
|
|
9
|
+
return visitante.visitarExpressaoIsto(this);
|
|
29
10
|
};
|
|
30
11
|
return Isto;
|
|
31
|
-
}(
|
|
12
|
+
}());
|
|
32
13
|
exports.Isto = Isto;
|
|
33
14
|
//# sourceMappingURL=isto.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"isto.js","sourceRoot":"","sources":["../../../src/construtos/isto.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"isto.js","sourceRoot":"","sources":["../../../src/construtos/isto.ts"],"names":[],"mappings":";;;AAGA;IAGI,cAAY,YAAkB;QAC1B,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAVD,IAUC;AAVY,oBAAI"}
|
|
@@ -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.Literal = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Literal = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Literal, _super);
|
|
4
|
+
var Literal = /** @class */ (function () {
|
|
22
5
|
function Literal(valor) {
|
|
23
|
-
|
|
24
|
-
_this.valor = valor;
|
|
25
|
-
return _this;
|
|
6
|
+
this.valor = valor;
|
|
26
7
|
}
|
|
27
|
-
Literal.prototype.aceitar = function (
|
|
28
|
-
return
|
|
8
|
+
Literal.prototype.aceitar = function (visitante) {
|
|
9
|
+
return visitante.visitarExpressaoLiteral(this);
|
|
29
10
|
};
|
|
30
11
|
return Literal;
|
|
31
|
-
}(
|
|
12
|
+
}());
|
|
32
13
|
exports.Literal = Literal;
|
|
33
14
|
//# sourceMappingURL=literal.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../src/construtos/literal.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"literal.js","sourceRoot":"","sources":["../../../src/construtos/literal.ts"],"names":[],"mappings":";;;AAGA;IAGI,iBAAY,KAAU;QAClB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAVD,IAUC;AAVY,0BAAO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Logical
|
|
2
|
+
export declare class Logical 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.Logical = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Logical = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Logical, _super);
|
|
4
|
+
var Logical = /** @class */ (function () {
|
|
22
5
|
function Logical(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
|
-
Logical.prototype.aceitar = function (
|
|
30
|
-
return
|
|
10
|
+
Logical.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoLogica(this);
|
|
31
12
|
};
|
|
32
13
|
return Logical;
|
|
33
|
-
}(
|
|
14
|
+
}());
|
|
34
15
|
exports.Logical = Logical;
|
|
35
16
|
//# sourceMappingURL=logical.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"logical.js","sourceRoot":"","sources":["../../../src/construtos/logical.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"logical.js","sourceRoot":"","sources":["../../../src/construtos/logical.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,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,cAAC;AAAD,CAAC,AAdD,IAcC;AAdY,0BAAO"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Subscript
|
|
2
|
+
export declare class Subscript implements Expr {
|
|
3
3
|
callee: any;
|
|
4
4
|
closeBracket: any;
|
|
5
5
|
indice: any;
|
|
6
6
|
constructor(callee: any, indice: any, closeBracket: 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.Subscript = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Subscript = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Subscript, _super);
|
|
4
|
+
var Subscript = /** @class */ (function () {
|
|
22
5
|
function Subscript(callee, indice, closeBracket) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
_this.closeBracket = closeBracket;
|
|
27
|
-
return _this;
|
|
6
|
+
this.callee = callee;
|
|
7
|
+
this.indice = indice;
|
|
8
|
+
this.closeBracket = closeBracket;
|
|
28
9
|
}
|
|
29
|
-
Subscript.prototype.aceitar = function (
|
|
30
|
-
return
|
|
10
|
+
Subscript.prototype.aceitar = function (visitante) {
|
|
11
|
+
return visitante.visitarExpressaoVetorIndice(this);
|
|
31
12
|
};
|
|
32
13
|
return Subscript;
|
|
33
|
-
}(
|
|
14
|
+
}());
|
|
34
15
|
exports.Subscript = Subscript;
|
|
35
16
|
//# sourceMappingURL=subscript.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscript.js","sourceRoot":"","sources":["../../../src/construtos/subscript.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"subscript.js","sourceRoot":"","sources":["../../../src/construtos/subscript.ts"],"names":[],"mappings":";;;AAGA;IAKI,mBAAY,MAAW,EAAE,MAAW,EAAE,YAAiB;QACnD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAED,2BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IACL,gBAAC;AAAD,CAAC,AAdD,IAcC;AAdY,8BAAS"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Super
|
|
2
|
+
export declare class Super implements Expr {
|
|
3
3
|
palavraChave: any;
|
|
4
4
|
metodo: any;
|
|
5
5
|
constructor(palavraChave: any, metodo: any);
|
|
6
|
-
aceitar(
|
|
6
|
+
aceitar(visitante: any): any;
|
|
7
7
|
}
|
package/src/construtos/super.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.Super = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Super = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Super, _super);
|
|
4
|
+
var Super = /** @class */ (function () {
|
|
22
5
|
function Super(palavraChave, metodo) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.metodo = metodo;
|
|
26
|
-
return _this;
|
|
6
|
+
this.palavraChave = palavraChave;
|
|
7
|
+
this.metodo = metodo;
|
|
27
8
|
}
|
|
28
|
-
Super.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Super.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoSuper(this);
|
|
30
11
|
};
|
|
31
12
|
return Super;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Super = Super;
|
|
34
15
|
//# sourceMappingURL=super.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"super.js","sourceRoot":"","sources":["../../../src/construtos/super.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"super.js","sourceRoot":"","sources":["../../../src/construtos/super.ts"],"names":[],"mappings":";;;AAGA;IAII,eAAY,YAAiB,EAAE,MAAW;QACtC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAZD,IAYC;AAZY,sBAAK"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Expr } from "./expr";
|
|
2
|
-
export declare class Unario
|
|
2
|
+
export declare class Unario implements Expr {
|
|
3
3
|
operador: any;
|
|
4
4
|
direita: any;
|
|
5
5
|
constructor(operador: any, direita: any);
|
|
6
|
-
aceitar(
|
|
6
|
+
aceitar(visitante: any): any;
|
|
7
7
|
}
|
package/src/construtos/unario.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.Unario = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Unario = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Unario, _super);
|
|
4
|
+
var Unario = /** @class */ (function () {
|
|
22
5
|
function Unario(operador, direita) {
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
_this.direita = direita;
|
|
26
|
-
return _this;
|
|
6
|
+
this.operador = operador;
|
|
7
|
+
this.direita = direita;
|
|
27
8
|
}
|
|
28
|
-
Unario.prototype.aceitar = function (
|
|
29
|
-
return
|
|
9
|
+
Unario.prototype.aceitar = function (visitante) {
|
|
10
|
+
return visitante.visitarExpressaoUnaria(this);
|
|
30
11
|
};
|
|
31
12
|
return Unario;
|
|
32
|
-
}(
|
|
13
|
+
}());
|
|
33
14
|
exports.Unario = Unario;
|
|
34
15
|
//# sourceMappingURL=unario.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unario.js","sourceRoot":"","sources":["../../../src/construtos/unario.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"unario.js","sourceRoot":"","sources":["../../../src/construtos/unario.ts"],"names":[],"mappings":";;;AAGA;IAII,gBAAY,QAAa,EAAE,OAAY;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAZD,IAYC;AAZY,wBAAM"}
|
|
@@ -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.Variavel = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Variavel = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Variavel, _super);
|
|
4
|
+
var Variavel = /** @class */ (function () {
|
|
22
5
|
function Variavel(nome) {
|
|
23
|
-
|
|
24
|
-
_this.nome = nome;
|
|
25
|
-
return _this;
|
|
6
|
+
this.nome = nome;
|
|
26
7
|
}
|
|
27
|
-
Variavel.prototype.aceitar = function (
|
|
28
|
-
return
|
|
8
|
+
Variavel.prototype.aceitar = function (visitante) {
|
|
9
|
+
return visitante.visitarExpressaoDeVariavel(this);
|
|
29
10
|
};
|
|
30
11
|
return Variavel;
|
|
31
|
-
}(
|
|
12
|
+
}());
|
|
32
13
|
exports.Variavel = Variavel;
|
|
33
14
|
//# sourceMappingURL=variavel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"variavel.js","sourceRoot":"","sources":["../../../src/construtos/variavel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"variavel.js","sourceRoot":"","sources":["../../../src/construtos/variavel.ts"],"names":[],"mappings":";;;AAGA;IAGI,kBAAY,IAAS;QACjB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACrB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,0BAA0B,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACL,eAAC;AAAD,CAAC,AAVD,IAUC;AAVY,4BAAQ"}
|
package/src/construtos/vetor.js
CHANGED
|
@@ -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.Vetor = void 0;
|
|
19
|
-
var
|
|
20
|
-
var Vetor = /** @class */ (function (_super) {
|
|
21
|
-
__extends(Vetor, _super);
|
|
4
|
+
var Vetor = /** @class */ (function () {
|
|
22
5
|
function Vetor(valores) {
|
|
23
|
-
|
|
24
|
-
_this.valores = valores;
|
|
25
|
-
return _this;
|
|
6
|
+
this.valores = valores;
|
|
26
7
|
}
|
|
27
|
-
Vetor.prototype.aceitar = function (
|
|
28
|
-
return
|
|
8
|
+
Vetor.prototype.aceitar = function (visitante) {
|
|
9
|
+
return visitante.visitarExpressaoVetor(this);
|
|
29
10
|
};
|
|
30
11
|
return Vetor;
|
|
31
|
-
}(
|
|
12
|
+
}());
|
|
32
13
|
exports.Vetor = Vetor;
|
|
33
14
|
//# sourceMappingURL=vetor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../src/construtos/vetor.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../src/construtos/vetor.ts"],"names":[],"mappings":";;;AAGA;IAGI,eAAY,OAAY;QACpB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAVD,IAUC;AAVY,sBAAK"}
|
|
@@ -15,19 +15,19 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
15
15
|
};
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.
|
|
18
|
+
exports.Bloco = void 0;
|
|
19
19
|
var stmt_1 = require("./stmt");
|
|
20
|
-
var
|
|
21
|
-
__extends(
|
|
22
|
-
function
|
|
20
|
+
var Bloco = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Bloco, _super);
|
|
22
|
+
function Bloco(declaracoes) {
|
|
23
23
|
var _this = _super.call(this) || this;
|
|
24
24
|
_this.declaracoes = declaracoes;
|
|
25
25
|
return _this;
|
|
26
26
|
}
|
|
27
|
-
|
|
28
|
-
return
|
|
27
|
+
Bloco.prototype.aceitar = function (visitante) {
|
|
28
|
+
return visitante.visitarExpressaoBloco(this);
|
|
29
29
|
};
|
|
30
|
-
return
|
|
30
|
+
return Bloco;
|
|
31
31
|
}(stmt_1.Stmt));
|
|
32
|
-
exports.
|
|
33
|
-
//# sourceMappingURL=
|
|
32
|
+
exports.Bloco = Bloco;
|
|
33
|
+
//# sourceMappingURL=bloco.js.map
|