@designliquido/delegua 0.1.11 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -4
- package/bin/package.json +1 -1
- package/package.json +1 -1
- package/src/ambiente.d.ts +5 -0
- package/src/ambiente.js +15 -0
- package/src/ambiente.js.map +1 -1
- package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +1 -1
- package/src/avaliador-sintatico/dialetos/egua-classico.js +14 -14
- package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
- package/src/avaliador-sintatico/index.d.ts +1 -1
- package/src/avaliador-sintatico/index.js +16 -8
- package/src/avaliador-sintatico/index.js.map +1 -1
- package/src/bibliotecas/biblioteca-global.d.ts +3 -0
- package/src/bibliotecas/{bibliotecaGlobal.js → biblioteca-global.js} +1 -1
- 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} +1 -1
- package/src/construtos/atribuicao-sobrescrita.js +16 -0
- package/src/construtos/atribuicao-sobrescrita.js.map +1 -0
- package/src/construtos/atribuir.d.ts +1 -1
- package/src/construtos/atribuir.js +4 -23
- package/src/construtos/atribuir.js.map +1 -1
- package/src/construtos/binario.d.ts +1 -1
- package/src/construtos/binario.js +5 -24
- package/src/construtos/binario.js.map +1 -1
- package/src/construtos/chamada.d.ts +8 -0
- package/src/construtos/chamada.js +16 -0
- package/src/construtos/chamada.js.map +1 -0
- package/src/construtos/conjunto.d.ts +1 -1
- package/src/construtos/conjunto.js +5 -24
- package/src/construtos/conjunto.js.map +1 -1
- package/src/construtos/dicionario.d.ts +1 -1
- package/src/construtos/dicionario.js +4 -23
- 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 +1 -1
- package/src/construtos/funcao.js +4 -23
- package/src/construtos/funcao.js.map +1 -1
- package/src/construtos/get.d.ts +1 -1
- package/src/construtos/get.js +4 -23
- package/src/construtos/get.js.map +1 -1
- package/src/construtos/grouping.d.ts +1 -1
- package/src/construtos/grouping.js +3 -22
- package/src/construtos/grouping.js.map +1 -1
- package/src/construtos/index.d.ts +2 -2
- package/src/construtos/index.js +2 -2
- package/src/construtos/index.js.map +1 -1
- package/src/construtos/isto.d.ts +1 -1
- package/src/construtos/isto.js +3 -22
- package/src/construtos/isto.js.map +1 -1
- package/src/construtos/literal.d.ts +1 -1
- package/src/construtos/literal.js +3 -22
- package/src/construtos/literal.js.map +1 -1
- package/src/construtos/logical.d.ts +1 -1
- package/src/construtos/logical.js +5 -24
- package/src/construtos/logical.js.map +1 -1
- package/src/construtos/subscript.d.ts +3 -3
- package/src/construtos/subscript.js +6 -25
- package/src/construtos/subscript.js.map +1 -1
- package/src/construtos/super.d.ts +1 -1
- package/src/construtos/super.js +4 -23
- package/src/construtos/super.js.map +1 -1
- package/src/construtos/unario.d.ts +1 -1
- package/src/construtos/unario.js +4 -23
- package/src/construtos/unario.js.map +1 -1
- package/src/construtos/variavel.d.ts +1 -1
- package/src/construtos/variavel.js +3 -22
- package/src/construtos/variavel.js.map +1 -1
- package/src/construtos/vetor.d.ts +1 -1
- package/src/construtos/vetor.js +3 -22
- package/src/construtos/vetor.js.map +1 -1
- package/src/delegua.js +4 -4
- 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 +3 -3
- 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 +3 -3
- package/src/estruturas/funcao.js +3 -3
- 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/interfaces/avaliador-sintatico-interface.d.ts +1 -1
- package/src/interpretador/dialetos/egua-classico.js +19 -19
- package/src/interpretador/dialetos/egua-classico.js.map +1 -1
- package/src/interpretador/index.js +25 -25
- 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 +27 -28
- package/src/lexador/dialetos/egua-classico.js.map +1 -1
- package/src/lexador/index.d.ts +1 -1
- package/src/lexador/index.js +27 -25
- package/src/lexador/index.js.map +1 -1
- package/src/resolvedor/dialetos/egua-classico.js +6 -6
- package/src/resolvedor/dialetos/egua-classico.js.map +1 -1
- package/src/resolvedor/index.js +2 -2
- package/src/resolvedor/index.js.map +1 -1
- package/src/tiposDeSimbolos.d.ts +3 -0
- package/src/tiposDeSimbolos.js +3 -0
- package/src/tiposDeSimbolos.js.map +1 -1
- package/src/bibliotecas/bibliotecaGlobal.d.ts +0 -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/construtos/call.d.ts +0 -8
- package/src/construtos/call.js +0 -35
- package/src/construtos/call.js.map +0 -1
- package/src/estruturas/callable.d.ts +0 -5
- package/src/estruturas/callable.js +0 -16
|
@@ -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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
_this.callee = callee;
|
|
25
|
-
_this.indice = indice;
|
|
26
|
-
_this.closeBracket = closeBracket;
|
|
27
|
-
return _this;
|
|
4
|
+
var Subscript = /** @class */ (function () {
|
|
5
|
+
function Subscript(entidadeChamada, indice, closeBracket) {
|
|
6
|
+
this.entidadeChamada = entidadeChamada;
|
|
7
|
+
this.indice = indice;
|
|
8
|
+
this.closeBracket = closeBracket;
|
|
28
9
|
}
|
|
29
10
|
Subscript.prototype.aceitar = function (visitante) {
|
|
30
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,eAAoB,EAAE,MAAW,EAAE,YAAiB;QAC5D,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,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"}
|
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
9
|
Super.prototype.aceitar = function (visitante) {
|
|
29
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"}
|
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
9
|
Unario.prototype.aceitar = function (visitante) {
|
|
29
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
8
|
Variavel.prototype.aceitar = function (visitante) {
|
|
28
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
8
|
Vetor.prototype.aceitar = function (visitante) {
|
|
28
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"}
|
package/src/delegua.js
CHANGED
|
@@ -24,28 +24,28 @@ var Delegua = /** @class */ (function () {
|
|
|
24
24
|
switch (this.dialeto) {
|
|
25
25
|
case 'egua':
|
|
26
26
|
this.interpretador = new egua_classico_1.InterpretadorEguaClassico(this, process.cwd());
|
|
27
|
-
this.lexador = new egua_classico_4.
|
|
27
|
+
this.lexador = new egua_classico_4.LexadorEguaClassico(this);
|
|
28
28
|
this.avaliadorSintatico = new egua_classico_3.ParserEguaClassico(this);
|
|
29
29
|
this.resolvedor = new egua_classico_2.ResolverEguaClassico(this, this.interpretador);
|
|
30
30
|
console.log('Usando dialeto: Égua');
|
|
31
31
|
break;
|
|
32
32
|
case 'eguac':
|
|
33
33
|
this.interpretador = new interpretador_1.Interpretador(this, process.cwd());
|
|
34
|
-
this.lexador = new lexador_1.
|
|
34
|
+
this.lexador = new lexador_1.Lexador(this);
|
|
35
35
|
this.avaliadorSintatico = new avaliador_sintatico_1.Parser(this);
|
|
36
36
|
this.resolvedor = new resolvedor_1.Resolver(this, this.interpretador);
|
|
37
37
|
console.log('Usando dialeto: ÉguaC');
|
|
38
38
|
break;
|
|
39
39
|
case 'eguap':
|
|
40
40
|
this.interpretador = new interpretador_1.Interpretador(this, process.cwd());
|
|
41
|
-
this.lexador = new lexador_1.
|
|
41
|
+
this.lexador = new lexador_1.Lexador(this);
|
|
42
42
|
this.avaliadorSintatico = new avaliador_sintatico_1.Parser(this);
|
|
43
43
|
this.resolvedor = new resolvedor_1.Resolver(this, this.interpretador);
|
|
44
44
|
console.log('Usando dialeto: ÉguaP');
|
|
45
45
|
break;
|
|
46
46
|
default:
|
|
47
47
|
this.interpretador = new interpretador_1.Interpretador(this, process.cwd());
|
|
48
|
-
this.lexador = new lexador_1.
|
|
48
|
+
this.lexador = new lexador_1.Lexador(this);
|
|
49
49
|
this.avaliadorSintatico = new avaliador_sintatico_1.Parser(this);
|
|
50
50
|
this.resolvedor = new resolvedor_1.Resolver(this, this.interpretador);
|
|
51
51
|
console.log('Usando dialeto: padrão');
|
package/src/delegua.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"delegua.js","sourceRoot":"","sources":["../../src/delegua.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,8BAAgC;AAChC,mCAAqC;AAErC,
|
|
1
|
+
{"version":3,"file":"delegua.js","sourceRoot":"","sources":["../../src/delegua.ts"],"names":[],"mappings":";;;AAAA,uBAAyB;AACzB,8BAAgC;AAChC,mCAAqC;AAErC,qCAAoC;AACpC,6DAA+C;AAC/C,2CAAwC;AACxC,iDAAgD;AAChD,qDAAgD;AAEhD,uCAA6C;AAG7C,wEAAmF;AACnF,qEAA2E;AAC3E,8EAAkF;AAClF,kEAAuE;AAEvE;IAWI,iBAAY,OAA2B,EAAE,WAAoB;QAAjD,wBAAA,EAAA,mBAA2B;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACtB,IAAI,CAAC,yBAAyB,GAAG,KAAK,CAAC;QAEvC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,QAAQ,IAAI,CAAC,OAAO,EAAE;YAClB,KAAK,MAAM;gBACP,IAAI,CAAC,aAAa,GAAG,IAAI,yCAAyB,CAAC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;gBACxE,IAAI,CAAC,OAAO,GAAG,IAAI,mCAAmB,CAAC,IAAI,CAAC,CAAC;gBAC7C,IAAI,CA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@class */ (function () {
|
|
5
|
+
function Chamavel() {
|
|
6
|
+
}
|
|
7
|
+
Chamavel.prototype.aridade = function () {
|
|
8
|
+
return this.valorAridade;
|
|
9
|
+
};
|
|
10
|
+
Chamavel.prototype.chamar = function (interpretador, argumentos, simbolo) {
|
|
11
|
+
throw new Error("Este método não deveria ser chamado.");
|
|
12
|
+
};
|
|
13
|
+
return Chamavel;
|
|
14
|
+
}());
|
|
15
|
+
exports.Chamavel = Chamavel;
|
|
16
|
+
//# sourceMappingURL=chamavel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"chamavel.js","sourceRoot":"","sources":["../../../src/estruturas/chamavel.ts"],"names":[],"mappings":";;;AAAA;IAAA;IAUA,CAAC;IAPG,0BAAO,GAAP;QACI,OAAO,IAAI,CAAC,YAAY,CAAC;IAC7B,CAAC;IAED,yBAAM,GAAN,UAAO,aAAmB,EAAE,UAAgB,EAAE,OAAa;QACvD,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;IAC5D,CAAC;IACL,eAAC;AAAD,CAAC,AAVD,IAUC;AAVY,4BAAQ"}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class DeleguaClasse extends
|
|
1
|
+
import { Chamavel } from "./chamavel";
|
|
2
|
+
export declare class DeleguaClasse extends Chamavel {
|
|
3
3
|
nome: any;
|
|
4
4
|
superClasse: any;
|
|
5
5
|
metodos: any;
|
|
6
6
|
constructor(nome?: any, superClasse?: any, metodos?: any);
|
|
7
7
|
encontrarMetodo(nome: any): any;
|
|
8
|
-
|
|
8
|
+
paraTexto(): string;
|
|
9
9
|
aridade(): any;
|
|
10
10
|
chamar(interpretador: any, argumentos: any): any;
|
|
11
11
|
}
|
package/src/estruturas/classe.js
CHANGED
|
@@ -16,7 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.DeleguaClasse = void 0;
|
|
19
|
-
var
|
|
19
|
+
var chamavel_1 = require("./chamavel");
|
|
20
20
|
var instancia_1 = require("./instancia");
|
|
21
21
|
var DeleguaClasse = /** @class */ (function (_super) {
|
|
22
22
|
__extends(DeleguaClasse, _super);
|
|
@@ -36,7 +36,7 @@ var DeleguaClasse = /** @class */ (function (_super) {
|
|
|
36
36
|
}
|
|
37
37
|
return undefined;
|
|
38
38
|
};
|
|
39
|
-
DeleguaClasse.prototype.
|
|
39
|
+
DeleguaClasse.prototype.paraTexto = function () {
|
|
40
40
|
return "<classe ".concat(this.nome, ">");
|
|
41
41
|
};
|
|
42
42
|
DeleguaClasse.prototype.aridade = function () {
|
|
@@ -52,6 +52,6 @@ var DeleguaClasse = /** @class */ (function (_super) {
|
|
|
52
52
|
return instancia;
|
|
53
53
|
};
|
|
54
54
|
return DeleguaClasse;
|
|
55
|
-
}(
|
|
55
|
+
}(chamavel_1.Chamavel));
|
|
56
56
|
exports.DeleguaClasse = DeleguaClasse;
|
|
57
57
|
//# sourceMappingURL=classe.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"classe.js","sourceRoot":"","sources":["../../../src/estruturas/classe.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AACtC,yCAA+C;AAE/C;IAAmC,iCAAQ;IAKvC,uBAAY,IAAU,EAAE,WAAiB,EAAE,OAAa;QAAxD,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,uCAAe,GAAf,UAAgB,IAAS;QACrB,IAAI,IAAI,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE;YACnC,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC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GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,CAAC;QACvD,IAAI,aAAa,EAAE;YACf,aAAa,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,aAAa,EAAE,UAAU,CAAC,CAAC;SAC5E;QAED,OAAO,SAAS,CAAC;IACrB,CAAC;IACL,oBAAC;AAAD,CAAC,AA3CD,CAAmC,mBAAQ,GA2C1C;AA3CY,sCAAa"}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class FuncaoPadrao extends
|
|
3
|
-
valorAridade:
|
|
4
|
-
funcao:
|
|
1
|
+
import { Chamavel } from "./chamavel";
|
|
2
|
+
export declare class FuncaoPadrao extends Chamavel {
|
|
3
|
+
valorAridade: number;
|
|
4
|
+
funcao: Function;
|
|
5
5
|
simbolo: any;
|
|
6
|
-
constructor(valorAridade:
|
|
6
|
+
constructor(valorAridade: number, funcao: Function);
|
|
7
7
|
chamar(interpretador: any, argumentos: any, simbolo: any): any;
|
|
8
|
-
|
|
8
|
+
paraTexto(): string;
|
|
9
9
|
}
|
|
@@ -16,7 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.FuncaoPadrao = void 0;
|
|
19
|
-
var
|
|
19
|
+
var chamavel_1 = require("./chamavel");
|
|
20
20
|
var FuncaoPadrao = /** @class */ (function (_super) {
|
|
21
21
|
__extends(FuncaoPadrao, _super);
|
|
22
22
|
function FuncaoPadrao(valorAridade, funcao) {
|
|
@@ -29,10 +29,10 @@ var FuncaoPadrao = /** @class */ (function (_super) {
|
|
|
29
29
|
this.simbolo = simbolo;
|
|
30
30
|
return this.funcao.apply(this, argumentos);
|
|
31
31
|
};
|
|
32
|
-
FuncaoPadrao.prototype.
|
|
32
|
+
FuncaoPadrao.prototype.paraTexto = function () {
|
|
33
33
|
return "<função>";
|
|
34
34
|
};
|
|
35
35
|
return FuncaoPadrao;
|
|
36
|
-
}(
|
|
36
|
+
}(chamavel_1.Chamavel));
|
|
37
37
|
exports.FuncaoPadrao = FuncaoPadrao;
|
|
38
38
|
//# sourceMappingURL=funcao-padrao.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funcao-padrao.js","sourceRoot":"","sources":["../../../src/estruturas/funcao-padrao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC;IAAkC,gCAAQ;IAKtC,sBAAY,
|
|
1
|
+
{"version":3,"file":"funcao-padrao.js","sourceRoot":"","sources":["../../../src/estruturas/funcao-padrao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,uCAAsC;AAEtC;IAAkC,gCAAQ;IAKtC,sBAAY,YAAoB,EAAE,MAAgB;QAAlD,YACI,iBAAO,SAGV;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED,6BAAM,GAAN,UAAO,aAAkB,EAAE,UAAe,EAAE,OAAY;QACpD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,OAAO,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,EAAE,UAAU,CAAC,CAAC;IAC/C,CAAC;IAED,gCAAS,GAAT;QACI,OAAO,UAAU,CAAC;IACtB,CAAC;IACL,mBAAC;AAAD,CAAC,AAnBD,CAAkC,mBAAQ,GAmBzC;AAnBY,oCAAY"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class DeleguaFuncao extends
|
|
1
|
+
import { Chamavel } from "./chamavel";
|
|
2
|
+
export declare class DeleguaFuncao extends Chamavel {
|
|
3
3
|
nome: any;
|
|
4
4
|
declaracao: any;
|
|
5
5
|
ambienteAnterior: any;
|
|
6
6
|
eInicializador: any;
|
|
7
7
|
constructor(nome: any, declaracao: any, ambienteAnterior: any, eInicializador?: boolean);
|
|
8
8
|
aridade(): any;
|
|
9
|
-
|
|
9
|
+
paraTexto(): string;
|
|
10
10
|
chamar(interpretador: any, argumentos: any): any;
|
|
11
11
|
definirEscopo(instancia: any): any;
|
|
12
12
|
}
|
package/src/estruturas/funcao.js
CHANGED
|
@@ -16,7 +16,7 @@ var __extends = (this && this.__extends) || (function () {
|
|
|
16
16
|
})();
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
18
|
exports.DeleguaFuncao = void 0;
|
|
19
|
-
var
|
|
19
|
+
var chamavel_1 = require("./chamavel");
|
|
20
20
|
var ambiente_1 = require("../ambiente");
|
|
21
21
|
var excecoes_1 = require("../excecoes");
|
|
22
22
|
var DeleguaFuncao = /** @class */ (function (_super) {
|
|
@@ -34,7 +34,7 @@ var DeleguaFuncao = /** @class */ (function (_super) {
|
|
|
34
34
|
var _a, _b;
|
|
35
35
|
return ((_b = (_a = this.declaracao) === null || _a === void 0 ? void 0 : _a.parametros) === null || _b === void 0 ? void 0 : _b.length) || 0;
|
|
36
36
|
};
|
|
37
|
-
DeleguaFuncao.prototype.
|
|
37
|
+
DeleguaFuncao.prototype.paraTexto = function () {
|
|
38
38
|
if (this.nome === null)
|
|
39
39
|
return "<função>";
|
|
40
40
|
return "<fun\u00E7\u00E3o ".concat(this.nome, ">");
|
|
@@ -76,6 +76,6 @@ var DeleguaFuncao = /** @class */ (function (_super) {
|
|
|
76
76
|
return new DeleguaFuncao(this.nome, this.declaracao, ambiente, this.eInicializador);
|
|
77
77
|
};
|
|
78
78
|
return DeleguaFuncao;
|
|
79
|
-
}(
|
|
79
|
+
}(chamavel_1.Chamavel));
|
|
80
80
|
exports.DeleguaFuncao = DeleguaFuncao;
|
|
81
81
|
//# sourceMappingURL=funcao.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../src/estruturas/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;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,CAAC,CAAC;QACjF,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,qCAAa,GAAb,UAAc,SAAc;QACxB,IAAI,QAAQ,GAAG,IAAI,mBAAQ,CAAC,IAAI,CAAC,gBAAgB,CAAC,CAAC;QACnD,QAAQ,CAAC,eAAe,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;QAC5C,OAAO,IAAI,aAAa,CACpB,IAAI,CAAC,IAAI,EACT,IAAI,CAAC,UAAU,EACf,QAAQ,EACR,IAAI,CAAC,cAAc,CACtB,CAAC;IACN,CAAC;IACL,oBAAC;AAAD,CAAC,AAjED,CAAmC,mBAAQ,GAiE1C;AAjEY,sCAAa"}
|
package/src/estruturas/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("./chamavel"), exports);
|
|
14
14
|
__exportStar(require("./classe"), exports);
|
|
15
15
|
__exportStar(require("./funcao-padrao"), exports);
|
|
16
16
|
__exportStar(require("./funcao"), exports);
|
|
@@ -16,7 +16,7 @@ export interface AvaliadorSintaticoInterface {
|
|
|
16
16
|
avancar(): any;
|
|
17
17
|
verificarSeSimboloAtualEIgualA(...argumentos: any[]): boolean;
|
|
18
18
|
primario(): any;
|
|
19
|
-
finalizarChamada(
|
|
19
|
+
finalizarChamada(entidadeChamada: any): any;
|
|
20
20
|
chamar(): any;
|
|
21
21
|
unario(): any;
|
|
22
22
|
exponenciacao(): any;
|