@designliquido/delegua 0.1.5 → 0.1.9
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 +2 -1
- package/bin/package.json +5 -3
- package/index.d.ts +1 -0
- package/package.json +4 -2
- package/src/ambiente.d.ts +11 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +60 -0
- package/src/avaliador-sintatico/dialetos/egua-classico.js +118 -118
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
- package/src/avaliador-sintatico/dialetos/index.d.ts +1 -0
- package/src/avaliador-sintatico/erros-avaliador.d.ts +2 -0
- package/src/avaliador-sintatico/{parser-error.js → erros-avaliador.js} +1 -1
- package/src/avaliador-sintatico/erros-avaliador.js.map +1 -0
- package/src/avaliador-sintatico/index.d.ts +61 -0
- package/src/avaliador-sintatico/index.js +131 -132
- package/src/avaliador-sintatico/index.js.map +1 -1
- package/src/bibliotecas/bibliotecaGlobal.d.ts +1 -0
- package/src/bibliotecas/importarBiblioteca.d.ts +2 -0
- package/src/construtos/assign-subscript.d.ts +8 -0
- package/src/construtos/assign-subscript.js +1 -1
- package/src/construtos/assign-subscript.js.map +1 -1
- package/src/construtos/atribuir.d.ts +7 -0
- package/src/construtos/atribuir.js +1 -1
- package/src/construtos/atribuir.js.map +1 -1
- package/src/construtos/binario.d.ts +8 -0
- package/src/construtos/binario.js +1 -1
- package/src/construtos/binario.js.map +1 -1
- package/src/construtos/call.d.ts +8 -0
- package/src/construtos/call.js +1 -1
- package/src/construtos/call.js.map +1 -1
- package/src/construtos/conjunto.d.ts +8 -0
- package/src/construtos/conjunto.js +1 -1
- package/src/construtos/conjunto.js.map +1 -1
- package/src/construtos/dicionario.d.ts +7 -0
- package/src/construtos/dicionario.js +1 -1
- package/src/construtos/dicionario.js.map +1 -1
- package/src/construtos/expr.d.ts +3 -0
- package/src/construtos/funcao.d.ts +7 -0
- package/src/construtos/funcao.js +1 -1
- package/src/construtos/funcao.js.map +1 -1
- package/src/construtos/get.d.ts +7 -0
- package/src/construtos/get.js +1 -1
- package/src/construtos/get.js.map +1 -1
- package/src/construtos/grouping.d.ts +6 -0
- package/src/construtos/grouping.js +1 -1
- package/src/construtos/grouping.js.map +1 -1
- package/src/construtos/index.d.ts +18 -0
- package/src/construtos/isto.d.ts +6 -0
- package/src/construtos/isto.js +1 -1
- package/src/construtos/isto.js.map +1 -1
- package/src/construtos/literal.d.ts +6 -0
- package/src/construtos/literal.js +1 -1
- package/src/construtos/literal.js.map +1 -1
- package/src/construtos/logical.d.ts +8 -0
- package/src/construtos/logical.js +1 -1
- package/src/construtos/logical.js.map +1 -1
- package/src/construtos/subscript.d.ts +8 -0
- package/src/construtos/subscript.js +1 -1
- package/src/construtos/subscript.js.map +1 -1
- package/src/construtos/super.d.ts +7 -0
- package/src/construtos/super.js +1 -1
- package/src/construtos/super.js.map +1 -1
- package/src/construtos/unario.d.ts +7 -0
- package/src/construtos/unario.js +1 -1
- package/src/construtos/unario.js.map +1 -1
- package/src/construtos/variavel.d.ts +6 -0
- package/src/construtos/variavel.js +1 -1
- package/src/construtos/variavel.js.map +1 -1
- package/src/construtos/vetor.d.ts +6 -0
- package/src/construtos/vetor.js +1 -1
- package/src/construtos/vetor.js.map +1 -1
- package/src/declaracoes/block.d.ts +6 -0
- package/src/declaracoes/block.js +33 -0
- package/src/declaracoes/block.js.map +1 -0
- package/src/declaracoes/classe.d.ts +8 -0
- package/src/declaracoes/classe.js +35 -0
- package/src/declaracoes/classe.js.map +1 -0
- package/src/declaracoes/continua.d.ts +5 -0
- package/src/declaracoes/continua.js +31 -0
- package/src/declaracoes/continua.js.map +1 -0
- package/src/declaracoes/enquanto.d.ts +7 -0
- package/src/declaracoes/enquanto.js +34 -0
- package/src/declaracoes/enquanto.js.map +1 -0
- package/src/declaracoes/escolha.d.ts +8 -0
- package/src/declaracoes/escolha.js +35 -0
- package/src/declaracoes/escolha.js.map +1 -0
- package/src/declaracoes/escreva.d.ts +6 -0
- package/src/declaracoes/escreva.js +33 -0
- package/src/declaracoes/escreva.js.map +1 -0
- package/src/declaracoes/expressao.d.ts +6 -0
- package/src/declaracoes/expressao.js +33 -0
- package/src/declaracoes/expressao.js.map +1 -0
- package/src/declaracoes/fazer.d.ts +7 -0
- package/src/declaracoes/fazer.js +34 -0
- package/src/declaracoes/fazer.js.map +1 -0
- package/src/declaracoes/funcao.d.ts +7 -0
- package/src/declaracoes/funcao.js +34 -0
- package/src/declaracoes/funcao.js.map +1 -0
- package/src/declaracoes/importar.d.ts +7 -0
- package/src/declaracoes/importar.js +34 -0
- package/src/declaracoes/importar.js.map +1 -0
- package/src/declaracoes/index.d.ts +17 -0
- package/src/declaracoes/index.js +27 -246
- package/src/declaracoes/index.js.map +1 -1
- package/src/declaracoes/para.d.ts +9 -0
- package/src/declaracoes/para.js +36 -0
- package/src/declaracoes/para.js.map +1 -0
- package/src/declaracoes/pausa.d.ts +5 -0
- package/src/declaracoes/pausa.js +31 -0
- package/src/declaracoes/pausa.js.map +1 -0
- package/src/declaracoes/retorna.d.ts +7 -0
- package/src/declaracoes/retorna.js +34 -0
- package/src/declaracoes/retorna.js.map +1 -0
- package/src/declaracoes/se.d.ts +9 -0
- package/src/declaracoes/se.js +36 -0
- package/src/declaracoes/se.js.map +1 -0
- package/src/declaracoes/stmt.d.ts +3 -0
- package/src/declaracoes/stmt.js +11 -0
- package/src/declaracoes/stmt.js.map +1 -0
- package/src/declaracoes/tente.d.ts +9 -0
- package/src/declaracoes/tente.js +36 -0
- package/src/declaracoes/tente.js.map +1 -0
- package/src/declaracoes/var.d.ts +7 -0
- package/src/declaracoes/var.js +34 -0
- package/src/declaracoes/var.js.map +1 -0
- package/src/delegua.d.ts +21 -0
- package/src/delegua.js +18 -12
- package/src/delegua.js.map +1 -1
- package/src/estruturas/callable.d.ts +5 -0
- package/src/estruturas/classe.d.ts +11 -0
- package/src/estruturas/funcao-padrao.d.ts +9 -0
- package/src/estruturas/funcao.d.ts +12 -0
- package/src/estruturas/funcao.js +1 -1
- package/src/estruturas/funcao.js.map +1 -1
- package/src/estruturas/index.d.ts +6 -0
- package/src/estruturas/instancia.d.ts +8 -0
- package/src/estruturas/modulo.d.ts +5 -0
- package/src/excecoes/break-exception.d.ts +2 -0
- package/src/excecoes/continue-exception.d.ts +2 -0
- package/src/excecoes/erro-em-tempo-de-execucao.d.ts +5 -0
- package/src/excecoes/index.d.ts +4 -0
- package/src/excecoes/return-exception.d.ts +4 -0
- package/src/interfaces/avaliador-sintatico-interface.d.ts +55 -0
- package/src/interfaces/index.d.ts +6 -0
- package/src/interfaces/interpretador-interface.d.ts +51 -0
- package/src/interfaces/lexador-interface.d.ts +23 -0
- package/src/interfaces/pilha-interface.d.ts +7 -0
- package/src/interfaces/resolvedor-interface.d.ts +48 -0
- package/src/interfaces/simbolo-interface.d.ts +6 -0
- package/src/interpretador/dialetos/egua-classico.d.ts +58 -0
- package/src/interpretador/dialetos/egua-classico.js +64 -68
- package/src/interpretador/dialetos/egua-classico.js.map +1 -1
- package/src/interpretador/dialetos/index.d.ts +1 -0
- package/src/interpretador/index.d.ts +58 -0
- package/src/interpretador/index.js +74 -75
- package/src/interpretador/index.js.map +1 -1
- package/src/lexador/dialetos/egua-classico.d.ts +31 -0
- package/src/lexador/dialetos/egua-classico.js +7 -9
- package/src/lexador/dialetos/egua-classico.js.map +1 -1
- package/src/lexador/dialetos/index.d.ts +1 -0
- package/src/lexador/index.d.ts +31 -0
- package/src/lexador/index.js +11 -13
- package/src/lexador/index.js.map +1 -1
- package/src/resolvedor/Pilha.d.ts +9 -0
- package/src/resolvedor/ResolverError.d.ts +4 -0
- package/src/resolvedor/dialetos/egua-classico.d.ts +56 -0
- package/src/resolvedor/dialetos/egua-classico.js +39 -39
- package/src/resolvedor/dialetos/egua-classico.js.map +1 -1
- package/src/resolvedor/dialetos/index.d.ts +1 -0
- package/src/resolvedor/index.d.ts +56 -0
- package/src/resolvedor/index.js +39 -39
- package/src/resolvedor/index.js.map +1 -1
- package/src/tiposDeSimbolos.d.ts +68 -0
- package/src/tiposDeSimbolos.js +7 -6
- package/src/tiposDeSimbolos.js.map +1 -1
- package/src/avaliador-sintatico/parser-error.js.map +0 -1
- package/src/web.js +0 -66
- package/src/web.js.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Block = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Block = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Block, _super);
|
|
22
|
+
function Block(declaracoes) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.declaracoes = declaracoes;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
Block.prototype.aceitar = function (visitor) {
|
|
28
|
+
return visitor.visitarExpressaoBloco(this);
|
|
29
|
+
};
|
|
30
|
+
return Block;
|
|
31
|
+
}(stmt_1.Stmt));
|
|
32
|
+
exports.Block = Block;
|
|
33
|
+
//# sourceMappingURL=block.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"block.js","sourceRoot":"","sources":["../../../src/declaracoes/block.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAG3B,eAAY,WAAgB;QAA5B,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;;IACnC,CAAC;IAED,uBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACL,YAAC;AAAD,CAAC,AAXD,CAA2B,WAAI,GAW9B;AAXY,sBAAK"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Classe = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Classe = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Classe, _super);
|
|
22
|
+
function Classe(nome, superClasse, metodos) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.nome = nome;
|
|
25
|
+
_this.superClasse = superClasse;
|
|
26
|
+
_this.metodos = metodos;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
Classe.prototype.aceitar = function (visitor) {
|
|
30
|
+
return visitor.visitarExpressaoClasse(this);
|
|
31
|
+
};
|
|
32
|
+
return Classe;
|
|
33
|
+
}(stmt_1.Stmt));
|
|
34
|
+
exports.Classe = Classe;
|
|
35
|
+
//# sourceMappingURL=classe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"classe.js","sourceRoot":"","sources":["../../../src/declaracoes/classe.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA4B,0BAAI;IAK5B,gBAAY,IAAS,EAAE,WAAgB,EAAE,OAAY;QAArD,YACI,iBAAO,SAIV;QAHG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IAC3B,CAAC;IAED,wBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,aAAC;AAAD,CAAC,AAfD,CAA4B,WAAI,GAe/B;AAfY,wBAAM"}
|
|
@@ -0,0 +1,31 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Continua = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Continua = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Continua, _super);
|
|
22
|
+
function Continua() {
|
|
23
|
+
return _super.call(this) || this;
|
|
24
|
+
}
|
|
25
|
+
Continua.prototype.aceitar = function (visitor) {
|
|
26
|
+
return visitor.visitarExpressaoContinua(this);
|
|
27
|
+
};
|
|
28
|
+
return Continua;
|
|
29
|
+
}(stmt_1.Stmt));
|
|
30
|
+
exports.Continua = Continua;
|
|
31
|
+
//# sourceMappingURL=continua.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"continua.js","sourceRoot":"","sources":["../../../src/declaracoes/continua.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA8B,4BAAI;IAC9B;eACI,iBAAO;IACX,CAAC;IAED,0BAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,eAAC;AAAD,CAAC,AARD,CAA8B,WAAI,GAQjC;AARY,4BAAQ"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Enquanto = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Enquanto = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Enquanto, _super);
|
|
22
|
+
function Enquanto(condicao, corpo) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.condicao = condicao;
|
|
25
|
+
_this.corpo = corpo;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Enquanto.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoEnquanto(this);
|
|
30
|
+
};
|
|
31
|
+
return Enquanto;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Enquanto = Enquanto;
|
|
34
|
+
//# sourceMappingURL=enquanto.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"enquanto.js","sourceRoot":"","sources":["../../../src/declaracoes/enquanto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA8B,4BAAI;IAI9B,kBAAY,QAAa,EAAE,KAAU;QAArC,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,WAAI,GAajC;AAbY,4BAAQ"}
|
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Escolha = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Escolha = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Escolha, _super);
|
|
22
|
+
function Escolha(condicao, branches, defaultBranch) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.condicao = condicao;
|
|
25
|
+
_this.branches = branches;
|
|
26
|
+
_this.defaultBranch = defaultBranch;
|
|
27
|
+
return _this;
|
|
28
|
+
}
|
|
29
|
+
Escolha.prototype.aceitar = function (visitor) {
|
|
30
|
+
return visitor.visitarExpressaoEscolha(this);
|
|
31
|
+
};
|
|
32
|
+
return Escolha;
|
|
33
|
+
}(stmt_1.Stmt));
|
|
34
|
+
exports.Escolha = Escolha;
|
|
35
|
+
//# sourceMappingURL=escolha.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escolha.js","sourceRoot":"","sources":["../../../src/declaracoes/escolha.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA6B,2BAAI;IAK7B,iBAAY,QAAa,EAAE,QAAa,EAAE,aAAkB;QAA5D,YACI,iBAAO,SAIV;QAHG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;;IACvC,CAAC;IAED,yBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,cAAC;AAAD,CAAC,AAfD,CAA6B,WAAI,GAehC;AAfY,0BAAO"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Escreva = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Escreva = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Escreva, _super);
|
|
22
|
+
function Escreva(expressao) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.expressao = expressao;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
Escreva.prototype.aceitar = function (visitor) {
|
|
28
|
+
return visitor.visitarExpressaoEscreva(this);
|
|
29
|
+
};
|
|
30
|
+
return Escreva;
|
|
31
|
+
}(stmt_1.Stmt));
|
|
32
|
+
exports.Escreva = Escreva;
|
|
33
|
+
//# sourceMappingURL=escreva.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"escreva.js","sourceRoot":"","sources":["../../../src/declaracoes/escreva.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA6B,2BAAI;IAG7B,iBAAY,SAAc;QAA1B,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC/B,CAAC;IAED,yBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,cAAC;AAAD,CAAC,AAXD,CAA6B,WAAI,GAWhC;AAXY,0BAAO"}
|
|
@@ -0,0 +1,33 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Expressao = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Expressao = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Expressao, _super);
|
|
22
|
+
function Expressao(expressao) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.expressao = expressao;
|
|
25
|
+
return _this;
|
|
26
|
+
}
|
|
27
|
+
Expressao.prototype.aceitar = function (visitor) {
|
|
28
|
+
return visitor.visitarDeclaracaoDeExpressao(this);
|
|
29
|
+
};
|
|
30
|
+
return Expressao;
|
|
31
|
+
}(stmt_1.Stmt));
|
|
32
|
+
exports.Expressao = Expressao;
|
|
33
|
+
//# sourceMappingURL=expressao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"expressao.js","sourceRoot":"","sources":["../../../src/declaracoes/expressao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA+B,6BAAI;IAG/B,mBAAY,SAAc;QAA1B,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC/B,CAAC;IAED,2BAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;IACL,gBAAC;AAAD,CAAC,AAXD,CAA+B,WAAI,GAWlC;AAXY,8BAAS"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Fazer = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Fazer = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Fazer, _super);
|
|
22
|
+
function Fazer(doBranch, whileCondition) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.doBranch = doBranch;
|
|
25
|
+
_this.whileCondition = whileCondition;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Fazer.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoFazer(this);
|
|
30
|
+
};
|
|
31
|
+
return Fazer;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Fazer = Fazer;
|
|
34
|
+
//# sourceMappingURL=fazer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"fazer.js","sourceRoot":"","sources":["../../../src/declaracoes/fazer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAI3B,eAAY,QAAa,EAAE,cAAmB;QAA9C,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,cAAc,GAAG,cAAc,CAAC;;IACzC,CAAC;IAED,uBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IAC/C,CAAC;IACL,YAAC;AAAD,CAAC,AAbD,CAA2B,WAAI,GAa9B;AAbY,sBAAK"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Funcao = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Funcao = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Funcao, _super);
|
|
22
|
+
function Funcao(nome, funcao) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.nome = nome;
|
|
25
|
+
_this.funcao = funcao;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Funcao.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoFuncao(this);
|
|
30
|
+
};
|
|
31
|
+
return Funcao;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Funcao = Funcao;
|
|
34
|
+
//# sourceMappingURL=funcao.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../src/declaracoes/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA4B,0BAAI;IAI5B,gBAAY,IAAS,EAAE,MAAW;QAAlC,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED,wBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,aAAC;AAAD,CAAC,AAbD,CAA4B,WAAI,GAa/B;AAbY,wBAAM"}
|
|
@@ -0,0 +1,34 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
exports.Importar = void 0;
|
|
19
|
+
var stmt_1 = require("./stmt");
|
|
20
|
+
var Importar = /** @class */ (function (_super) {
|
|
21
|
+
__extends(Importar, _super);
|
|
22
|
+
function Importar(caminho, closeBracket) {
|
|
23
|
+
var _this = _super.call(this) || this;
|
|
24
|
+
_this.caminho = caminho;
|
|
25
|
+
_this.closeBracket = closeBracket;
|
|
26
|
+
return _this;
|
|
27
|
+
}
|
|
28
|
+
Importar.prototype.aceitar = function (visitor) {
|
|
29
|
+
return visitor.visitarExpressaoImportar(this);
|
|
30
|
+
};
|
|
31
|
+
return Importar;
|
|
32
|
+
}(stmt_1.Stmt));
|
|
33
|
+
exports.Importar = Importar;
|
|
34
|
+
//# sourceMappingURL=importar.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../src/declaracoes/importar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA8B,4BAAI;IAI9B,kBAAY,OAAY,EAAE,YAAiB;QAA3C,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;;IACrC,CAAC;IAED,0BAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,WAAI,GAajC;AAbY,4BAAQ"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export * from './block';
|
|
2
|
+
export * from './classe';
|
|
3
|
+
export * from './continua';
|
|
4
|
+
export * from './enquanto';
|
|
5
|
+
export * from './escolha';
|
|
6
|
+
export * from './escreva';
|
|
7
|
+
export * from './expressao';
|
|
8
|
+
export * from './fazer';
|
|
9
|
+
export * from './funcao';
|
|
10
|
+
export * from './importar';
|
|
11
|
+
export * from './para';
|
|
12
|
+
export * from './pausa';
|
|
13
|
+
export * from './retorna';
|
|
14
|
+
export * from './se';
|
|
15
|
+
export * from './stmt';
|
|
16
|
+
export * from './tente';
|
|
17
|
+
export * from './var';
|