@designliquido/delegua 0.1.6 → 0.1.10

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.
Files changed (181) hide show
  1. package/README.md +2 -1
  2. package/bin/package.json +6 -4
  3. package/index.d.ts +1 -0
  4. package/package.json +5 -4
  5. package/src/ambiente.d.ts +11 -0
  6. package/src/avaliador-sintatico/dialetos/egua-classico.d.ts +60 -0
  7. package/src/avaliador-sintatico/dialetos/egua-classico.js +123 -123
  8. package/src/avaliador-sintatico/dialetos/egua-classico.js.map +1 -1
  9. package/src/avaliador-sintatico/dialetos/index.d.ts +1 -0
  10. package/src/avaliador-sintatico/erros-avaliador.d.ts +2 -0
  11. package/src/avaliador-sintatico/{parser-error.js → erros-avaliador.js} +1 -1
  12. package/src/avaliador-sintatico/erros-avaliador.js.map +1 -0
  13. package/src/avaliador-sintatico/index.d.ts +61 -0
  14. package/src/avaliador-sintatico/index.js +135 -137
  15. package/src/avaliador-sintatico/index.js.map +1 -1
  16. package/src/bibliotecas/bibliotecaGlobal.d.ts +1 -0
  17. package/src/bibliotecas/importarBiblioteca.d.ts +2 -0
  18. package/src/construtos/assign-subscript.d.ts +8 -0
  19. package/src/construtos/assign-subscript.js +2 -2
  20. package/src/construtos/assign-subscript.js.map +1 -1
  21. package/src/construtos/atribuir.d.ts +7 -0
  22. package/src/construtos/atribuir.js +2 -2
  23. package/src/construtos/atribuir.js.map +1 -1
  24. package/src/construtos/binario.d.ts +8 -0
  25. package/src/construtos/binario.js +2 -2
  26. package/src/construtos/binario.js.map +1 -1
  27. package/src/construtos/call.d.ts +8 -0
  28. package/src/construtos/call.js +2 -2
  29. package/src/construtos/call.js.map +1 -1
  30. package/src/construtos/conjunto.d.ts +8 -0
  31. package/src/construtos/conjunto.js +2 -2
  32. package/src/construtos/conjunto.js.map +1 -1
  33. package/src/construtos/dicionario.d.ts +7 -0
  34. package/src/construtos/dicionario.js +2 -2
  35. package/src/construtos/dicionario.js.map +1 -1
  36. package/src/construtos/expr.d.ts +3 -0
  37. package/src/construtos/expr.js +1 -1
  38. package/src/construtos/expr.js.map +1 -1
  39. package/src/construtos/funcao.d.ts +7 -0
  40. package/src/construtos/funcao.js +2 -2
  41. package/src/construtos/funcao.js.map +1 -1
  42. package/src/construtos/get.d.ts +7 -0
  43. package/src/construtos/get.js +2 -2
  44. package/src/construtos/get.js.map +1 -1
  45. package/src/construtos/grouping.d.ts +6 -0
  46. package/src/construtos/grouping.js +2 -2
  47. package/src/construtos/grouping.js.map +1 -1
  48. package/src/construtos/index.d.ts +18 -0
  49. package/src/construtos/isto.d.ts +6 -0
  50. package/src/construtos/isto.js +2 -2
  51. package/src/construtos/isto.js.map +1 -1
  52. package/src/construtos/literal.d.ts +6 -0
  53. package/src/construtos/literal.js +2 -2
  54. package/src/construtos/literal.js.map +1 -1
  55. package/src/construtos/logical.d.ts +8 -0
  56. package/src/construtos/logical.js +2 -2
  57. package/src/construtos/logical.js.map +1 -1
  58. package/src/construtos/subscript.d.ts +8 -0
  59. package/src/construtos/subscript.js +2 -2
  60. package/src/construtos/subscript.js.map +1 -1
  61. package/src/construtos/super.d.ts +7 -0
  62. package/src/construtos/super.js +2 -2
  63. package/src/construtos/super.js.map +1 -1
  64. package/src/construtos/unario.d.ts +7 -0
  65. package/src/construtos/unario.js +2 -2
  66. package/src/construtos/unario.js.map +1 -1
  67. package/src/construtos/variavel.d.ts +6 -0
  68. package/src/construtos/variavel.js +2 -2
  69. package/src/construtos/variavel.js.map +1 -1
  70. package/src/construtos/vetor.d.ts +6 -0
  71. package/src/construtos/vetor.js +2 -2
  72. package/src/construtos/vetor.js.map +1 -1
  73. package/src/declaracoes/bloco.d.ts +6 -0
  74. package/src/declaracoes/bloco.js +33 -0
  75. package/src/declaracoes/bloco.js.map +1 -0
  76. package/src/declaracoes/classe.d.ts +8 -0
  77. package/src/declaracoes/classe.js +35 -0
  78. package/src/declaracoes/classe.js.map +1 -0
  79. package/src/declaracoes/continua.d.ts +5 -0
  80. package/src/declaracoes/continua.js +31 -0
  81. package/src/declaracoes/continua.js.map +1 -0
  82. package/src/declaracoes/enquanto.d.ts +7 -0
  83. package/src/declaracoes/enquanto.js +34 -0
  84. package/src/declaracoes/enquanto.js.map +1 -0
  85. package/src/declaracoes/escolha.d.ts +8 -0
  86. package/src/declaracoes/escolha.js +35 -0
  87. package/src/declaracoes/escolha.js.map +1 -0
  88. package/src/declaracoes/escreva.d.ts +6 -0
  89. package/src/declaracoes/escreva.js +33 -0
  90. package/src/declaracoes/escreva.js.map +1 -0
  91. package/src/declaracoes/expressao.d.ts +6 -0
  92. package/src/declaracoes/expressao.js +33 -0
  93. package/src/declaracoes/expressao.js.map +1 -0
  94. package/src/declaracoes/fazer.d.ts +7 -0
  95. package/src/declaracoes/fazer.js +34 -0
  96. package/src/declaracoes/fazer.js.map +1 -0
  97. package/src/declaracoes/funcao.d.ts +7 -0
  98. package/src/declaracoes/funcao.js +34 -0
  99. package/src/declaracoes/funcao.js.map +1 -0
  100. package/src/declaracoes/importar.d.ts +7 -0
  101. package/src/declaracoes/importar.js +34 -0
  102. package/src/declaracoes/importar.js.map +1 -0
  103. package/src/declaracoes/index.d.ts +17 -0
  104. package/src/declaracoes/index.js +27 -246
  105. package/src/declaracoes/index.js.map +1 -1
  106. package/src/declaracoes/para.d.ts +9 -0
  107. package/src/declaracoes/para.js +36 -0
  108. package/src/declaracoes/para.js.map +1 -0
  109. package/src/declaracoes/pausa.d.ts +5 -0
  110. package/src/declaracoes/pausa.js +31 -0
  111. package/src/declaracoes/pausa.js.map +1 -0
  112. package/src/declaracoes/retorna.d.ts +7 -0
  113. package/src/declaracoes/retorna.js +34 -0
  114. package/src/declaracoes/retorna.js.map +1 -0
  115. package/src/declaracoes/se.d.ts +9 -0
  116. package/src/declaracoes/se.js +36 -0
  117. package/src/declaracoes/se.js.map +1 -0
  118. package/src/declaracoes/stmt.d.ts +3 -0
  119. package/src/declaracoes/stmt.js +11 -0
  120. package/src/declaracoes/stmt.js.map +1 -0
  121. package/src/declaracoes/tente.d.ts +9 -0
  122. package/src/declaracoes/tente.js +36 -0
  123. package/src/declaracoes/tente.js.map +1 -0
  124. package/src/declaracoes/var.d.ts +7 -0
  125. package/src/declaracoes/var.js +34 -0
  126. package/src/declaracoes/var.js.map +1 -0
  127. package/src/delegua.d.ts +21 -0
  128. package/src/delegua.js +18 -12
  129. package/src/delegua.js.map +1 -1
  130. package/src/estruturas/callable.d.ts +5 -0
  131. package/src/estruturas/classe.d.ts +11 -0
  132. package/src/estruturas/funcao-padrao.d.ts +9 -0
  133. package/src/estruturas/funcao.d.ts +12 -0
  134. package/src/estruturas/funcao.js +7 -7
  135. package/src/estruturas/funcao.js.map +1 -1
  136. package/src/estruturas/index.d.ts +6 -0
  137. package/src/estruturas/instancia.d.ts +8 -0
  138. package/src/estruturas/modulo.d.ts +5 -0
  139. package/src/excecoes/break-exception.d.ts +2 -0
  140. package/src/excecoes/continue-exception.d.ts +2 -0
  141. package/src/excecoes/erro-em-tempo-de-execucao.d.ts +5 -0
  142. package/src/excecoes/index.d.ts +4 -0
  143. package/src/excecoes/return-exception.d.ts +4 -0
  144. package/src/interfaces/avaliador-sintatico-interface.d.ts +55 -0
  145. package/src/interfaces/index.d.ts +6 -0
  146. package/src/interfaces/interpretador-interface.d.ts +51 -0
  147. package/src/interfaces/lexador-interface.d.ts +23 -0
  148. package/src/interfaces/pilha-interface.d.ts +7 -0
  149. package/src/interfaces/resolvedor-interface.d.ts +48 -0
  150. package/src/interfaces/simbolo-interface.d.ts +6 -0
  151. package/src/interpretador/dialetos/egua-classico.d.ts +58 -0
  152. package/src/interpretador/dialetos/egua-classico.js +64 -68
  153. package/src/interpretador/dialetos/egua-classico.js.map +1 -1
  154. package/src/interpretador/dialetos/index.d.ts +1 -0
  155. package/src/interpretador/index.d.ts +58 -0
  156. package/src/interpretador/index.js +74 -75
  157. package/src/interpretador/index.js.map +1 -1
  158. package/src/lexador/dialetos/egua-classico.d.ts +31 -0
  159. package/src/lexador/dialetos/egua-classico.js +10 -12
  160. package/src/lexador/dialetos/egua-classico.js.map +1 -1
  161. package/src/lexador/dialetos/index.d.ts +1 -0
  162. package/src/lexador/index.d.ts +31 -0
  163. package/src/lexador/index.js +28 -19
  164. package/src/lexador/index.js.map +1 -1
  165. package/src/resolvedor/Pilha.d.ts +9 -0
  166. package/src/resolvedor/Pilha.js +1 -1
  167. package/src/resolvedor/Pilha.js.map +1 -1
  168. package/src/resolvedor/ResolverError.d.ts +4 -0
  169. package/src/resolvedor/dialetos/egua-classico.d.ts +56 -0
  170. package/src/resolvedor/dialetos/egua-classico.js +39 -39
  171. package/src/resolvedor/dialetos/egua-classico.js.map +1 -1
  172. package/src/resolvedor/dialetos/index.d.ts +1 -0
  173. package/src/resolvedor/index.d.ts +56 -0
  174. package/src/resolvedor/index.js +45 -45
  175. package/src/resolvedor/index.js.map +1 -1
  176. package/src/tiposDeSimbolos.d.ts +68 -0
  177. package/src/tiposDeSimbolos.js +8 -7
  178. package/src/tiposDeSimbolos.js.map +1 -1
  179. package/src/avaliador-sintatico/parser-error.js.map +0 -1
  180. package/src/web.js +0 -66
  181. package/src/web.js.map +0 -1
@@ -24,8 +24,8 @@ var Vetor = /** @class */ (function (_super) {
24
24
  _this.valores = valores;
25
25
  return _this;
26
26
  }
27
- Vetor.prototype.aceitar = function (visitor) {
28
- return visitor.visitArrayExpr(this);
27
+ Vetor.prototype.aceitar = function (visitante) {
28
+ return visitante.visitarExpressaoVetor(this);
29
29
  };
30
30
  return Vetor;
31
31
  }(expr_1.Expr));
@@ -1 +1 @@
1
- {"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../src/construtos/vetor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAG3B,eAAY,OAAY;QAAxB,YACI,iBAAO,SAEV;QADG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;;IAC3B,CAAC;IAED,uBAAO,GAAP,UAAQ,OAAY;QAChB,OAAO,OAAO,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;IACxC,CAAC;IACL,YAAC;AAAD,CAAC,AAXD,CAA2B,WAAI,GAW9B;AAXY,sBAAK"}
1
+ {"version":3,"file":"vetor.js","sourceRoot":"","sources":["../../../src/construtos/vetor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,+BAA8B;AAG9B;IAA2B,yBAAI;IAG3B,eAAY,OAAY;QAAxB,YACI,iBAAO,SAEV;QADG,KAAI,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,AAXD,CAA2B,WAAI,GAW9B;AAXY,sBAAK"}
@@ -0,0 +1,6 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Bloco extends Stmt {
3
+ declaracoes: any;
4
+ constructor(declaracoes: any);
5
+ aceitar(visitante: any): any;
6
+ }
@@ -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.Bloco = void 0;
19
+ var stmt_1 = require("./stmt");
20
+ var Bloco = /** @class */ (function (_super) {
21
+ __extends(Bloco, _super);
22
+ function Bloco(declaracoes) {
23
+ var _this = _super.call(this) || this;
24
+ _this.declaracoes = declaracoes;
25
+ return _this;
26
+ }
27
+ Bloco.prototype.aceitar = function (visitante) {
28
+ return visitante.visitarExpressaoBloco(this);
29
+ };
30
+ return Bloco;
31
+ }(stmt_1.Stmt));
32
+ exports.Bloco = Bloco;
33
+ //# sourceMappingURL=bloco.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"bloco.js","sourceRoot":"","sources":["../../../src/declaracoes/bloco.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,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAXD,CAA2B,WAAI,GAW9B;AAXY,sBAAK"}
@@ -0,0 +1,8 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Classe extends Stmt {
3
+ nome: string;
4
+ superClasse: any;
5
+ metodos: any;
6
+ constructor(nome: any, superClasse: any, metodos: any);
7
+ aceitar(visitante: any): any;
8
+ }
@@ -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 (visitante) {
30
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAfD,CAA4B,WAAI,GAe/B;AAfY,wBAAM"}
@@ -0,0 +1,5 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Continua extends Stmt {
3
+ constructor();
4
+ aceitar(visitante: any): any;
5
+ }
@@ -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 (visitante) {
26
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AARD,CAA8B,WAAI,GAQjC;AARY,4BAAQ"}
@@ -0,0 +1,7 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Enquanto extends Stmt {
3
+ condicao: any;
4
+ corpo: any;
5
+ constructor(condicao: any, corpo: any);
6
+ aceitar(visitante: any): any;
7
+ }
@@ -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 (visitante) {
29
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,WAAI,GAajC;AAbY,4BAAQ"}
@@ -0,0 +1,8 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Escolha extends Stmt {
3
+ condicao: any;
4
+ branches: any;
5
+ defaultBranch: any;
6
+ constructor(condicao: any, branches: any, defaultBranch: any);
7
+ aceitar(visitante: any): any;
8
+ }
@@ -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 (visitante) {
30
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAfD,CAA6B,WAAI,GAehC;AAfY,0BAAO"}
@@ -0,0 +1,6 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Escreva extends Stmt {
3
+ expressao: any;
4
+ constructor(expressao: any);
5
+ aceitar(visitante: any): any;
6
+ }
@@ -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 (visitante) {
28
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAXD,CAA6B,WAAI,GAWhC;AAXY,0BAAO"}
@@ -0,0 +1,6 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Expressao extends Stmt {
3
+ expressao: any;
4
+ constructor(expressao: any);
5
+ aceitar(visitante: any): any;
6
+ }
@@ -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 (visitante) {
28
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,gBAAC;AAAD,CAAC,AAXD,CAA+B,WAAI,GAWlC;AAXY,8BAAS"}
@@ -0,0 +1,7 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Fazer extends Stmt {
3
+ doBranch: any;
4
+ whileCondition: any;
5
+ constructor(doBranch: any, whileCondition: any);
6
+ aceitar(visitante: any): any;
7
+ }
@@ -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 (visitante) {
29
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAbD,CAA2B,WAAI,GAa9B;AAbY,sBAAK"}
@@ -0,0 +1,7 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Funcao extends Stmt {
3
+ nome: string;
4
+ funcao: any;
5
+ constructor(nome: any, funcao: any);
6
+ aceitar(visitante: any): any;
7
+ }
@@ -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 (visitante) {
29
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAbD,CAA4B,WAAI,GAa/B;AAbY,wBAAM"}
@@ -0,0 +1,7 @@
1
+ import { Stmt } from "./stmt";
2
+ export declare class Importar extends Stmt {
3
+ caminho: string;
4
+ closeBracket: any;
5
+ constructor(caminho: any, closeBracket: any);
6
+ aceitar(visitante: any): any;
7
+ }
@@ -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 (visitante) {
29
+ return visitante.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,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,WAAI,GAajC;AAbY,4BAAQ"}
@@ -0,0 +1,17 @@
1
+ export * from './bloco';
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';