@designliquido/delegua 0.8.1 → 0.9.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.
Files changed (186) hide show
  1. package/bin/package.json +1 -1
  2. package/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +4 -3
  3. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js +4 -1
  4. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -1
  5. package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +4 -3
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js +17 -3
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  8. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +4 -3
  9. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +6 -3
  10. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
  11. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.d.ts +4 -3
  12. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +15 -3
  13. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
  14. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.d.ts +2 -2
  15. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js +1 -1
  16. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js.map +1 -1
  17. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.d.ts +2 -2
  18. package/fontes/avaliador-sintatico/retornos/retorno-primario.d.ts +2 -2
  19. package/fontes/bibliotecas/biblioteca-global.js +352 -178
  20. package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
  21. package/fontes/construtos/acesso-indice-variavel.d.ts +1 -1
  22. package/fontes/construtos/acesso-indice-variavel.js +44 -1
  23. package/fontes/construtos/acesso-indice-variavel.js.map +1 -1
  24. package/fontes/construtos/acesso-metodo.d.ts +1 -1
  25. package/fontes/construtos/acesso-metodo.js +44 -1
  26. package/fontes/construtos/acesso-metodo.js.map +1 -1
  27. package/fontes/construtos/agrupamento.d.ts +1 -1
  28. package/fontes/construtos/agrupamento.js +44 -1
  29. package/fontes/construtos/agrupamento.js.map +1 -1
  30. package/fontes/construtos/atribuicao-sobrescrita.d.ts +2 -1
  31. package/fontes/construtos/atribuicao-sobrescrita.js +44 -1
  32. package/fontes/construtos/atribuicao-sobrescrita.js.map +1 -1
  33. package/fontes/construtos/atribuir.d.ts +1 -1
  34. package/fontes/construtos/atribuir.js +44 -1
  35. package/fontes/construtos/atribuir.js.map +1 -1
  36. package/fontes/construtos/binario.d.ts +1 -1
  37. package/fontes/construtos/binario.js +44 -1
  38. package/fontes/construtos/binario.js.map +1 -1
  39. package/fontes/construtos/chamada.d.ts +1 -1
  40. package/fontes/construtos/chamada.js +44 -1
  41. package/fontes/construtos/chamada.js.map +1 -1
  42. package/fontes/construtos/construto.d.ts +1 -1
  43. package/fontes/construtos/{conjunto.d.ts → definir-valor.d.ts} +3 -2
  44. package/fontes/construtos/definir-valor.js +61 -0
  45. package/fontes/construtos/definir-valor.js.map +1 -0
  46. package/fontes/construtos/dicionario.d.ts +2 -1
  47. package/fontes/construtos/dicionario.js +44 -1
  48. package/fontes/construtos/dicionario.js.map +1 -1
  49. package/fontes/construtos/funcao.d.ts +2 -2
  50. package/fontes/construtos/funcao.js +47 -7
  51. package/fontes/construtos/funcao.js.map +1 -1
  52. package/fontes/construtos/index.d.ts +1 -1
  53. package/fontes/construtos/index.js +1 -1
  54. package/fontes/construtos/index.js.map +1 -1
  55. package/fontes/construtos/isto.d.ts +2 -1
  56. package/fontes/construtos/isto.js +41 -1
  57. package/fontes/construtos/isto.js.map +1 -1
  58. package/fontes/construtos/literal.d.ts +1 -1
  59. package/fontes/construtos/literal.js +41 -1
  60. package/fontes/construtos/literal.js.map +1 -1
  61. package/fontes/construtos/logico.d.ts +2 -1
  62. package/fontes/construtos/logico.js +44 -1
  63. package/fontes/construtos/logico.js.map +1 -1
  64. package/fontes/construtos/super.d.ts +2 -2
  65. package/fontes/construtos/super.js +41 -1
  66. package/fontes/construtos/super.js.map +1 -1
  67. package/fontes/construtos/unario.d.ts +2 -1
  68. package/fontes/construtos/unario.js +44 -1
  69. package/fontes/construtos/unario.js.map +1 -1
  70. package/fontes/construtos/variavel.d.ts +1 -1
  71. package/fontes/construtos/variavel.js +41 -1
  72. package/fontes/construtos/variavel.js.map +1 -1
  73. package/fontes/construtos/vetor.d.ts +2 -1
  74. package/fontes/construtos/vetor.js +44 -1
  75. package/fontes/construtos/vetor.js.map +1 -1
  76. package/fontes/declaracoes/bloco.d.ts +1 -1
  77. package/fontes/declaracoes/bloco.js +44 -1
  78. package/fontes/declaracoes/bloco.js.map +1 -1
  79. package/fontes/declaracoes/classe.d.ts +2 -2
  80. package/fontes/declaracoes/classe.js +44 -1
  81. package/fontes/declaracoes/classe.js.map +1 -1
  82. package/fontes/declaracoes/continua.d.ts +2 -2
  83. package/fontes/declaracoes/continua.js +41 -1
  84. package/fontes/declaracoes/continua.js.map +1 -1
  85. package/fontes/declaracoes/declaracao.d.ts +2 -1
  86. package/fontes/declaracoes/declaracao.js +41 -1
  87. package/fontes/declaracoes/declaracao.js.map +1 -1
  88. package/fontes/declaracoes/enquanto.d.ts +2 -1
  89. package/fontes/declaracoes/enquanto.js +44 -1
  90. package/fontes/declaracoes/enquanto.js.map +1 -1
  91. package/fontes/declaracoes/escolha.d.ts +2 -1
  92. package/fontes/declaracoes/escolha.js +44 -1
  93. package/fontes/declaracoes/escolha.js.map +1 -1
  94. package/fontes/declaracoes/escreva.d.ts +1 -1
  95. package/fontes/declaracoes/escreva.js +44 -1
  96. package/fontes/declaracoes/escreva.js.map +1 -1
  97. package/fontes/declaracoes/expressao.d.ts +1 -1
  98. package/fontes/declaracoes/expressao.js +44 -1
  99. package/fontes/declaracoes/expressao.js.map +1 -1
  100. package/fontes/declaracoes/fazer.d.ts +2 -1
  101. package/fontes/declaracoes/fazer.js +44 -1
  102. package/fontes/declaracoes/fazer.js.map +1 -1
  103. package/fontes/declaracoes/funcao.d.ts +2 -2
  104. package/fontes/declaracoes/funcao.js +48 -8
  105. package/fontes/declaracoes/funcao.js.map +1 -1
  106. package/fontes/declaracoes/importar.d.ts +2 -1
  107. package/fontes/declaracoes/importar.js +44 -1
  108. package/fontes/declaracoes/importar.js.map +1 -1
  109. package/fontes/declaracoes/leia.d.ts +1 -1
  110. package/fontes/declaracoes/leia.js +44 -1
  111. package/fontes/declaracoes/leia.js.map +1 -1
  112. package/fontes/declaracoes/para.d.ts +2 -1
  113. package/fontes/declaracoes/para.js +44 -1
  114. package/fontes/declaracoes/para.js.map +1 -1
  115. package/fontes/declaracoes/retorna.d.ts +1 -1
  116. package/fontes/declaracoes/retorna.js +44 -1
  117. package/fontes/declaracoes/retorna.js.map +1 -1
  118. package/fontes/declaracoes/se.d.ts +1 -1
  119. package/fontes/declaracoes/se.js +44 -1
  120. package/fontes/declaracoes/se.js.map +1 -1
  121. package/fontes/declaracoes/sustar.d.ts +1 -1
  122. package/fontes/declaracoes/sustar.js +41 -1
  123. package/fontes/declaracoes/sustar.js.map +1 -1
  124. package/fontes/declaracoes/tente.d.ts +1 -1
  125. package/fontes/declaracoes/tente.js +44 -1
  126. package/fontes/declaracoes/tente.js.map +1 -1
  127. package/fontes/declaracoes/var.d.ts +1 -1
  128. package/fontes/declaracoes/var.js +44 -1
  129. package/fontes/declaracoes/var.js.map +1 -1
  130. package/fontes/delegua.d.ts +3 -3
  131. package/fontes/delegua.js +138 -63
  132. package/fontes/delegua.js.map +1 -1
  133. package/fontes/depuracao/servidor-depuracao.d.ts +4 -4
  134. package/fontes/depuracao/servidor-depuracao.js +121 -47
  135. package/fontes/depuracao/servidor-depuracao.js.map +1 -1
  136. package/fontes/estruturas/delegua-classe.d.ts +1 -1
  137. package/fontes/estruturas/{funcao.d.ts → delegua-funcao.d.ts} +4 -4
  138. package/fontes/estruturas/delegua-funcao.js +126 -0
  139. package/fontes/estruturas/delegua-funcao.js.map +1 -0
  140. package/fontes/estruturas/funcao-padrao.d.ts +1 -1
  141. package/fontes/estruturas/funcao-padrao.js +46 -2
  142. package/fontes/estruturas/funcao-padrao.js.map +1 -1
  143. package/fontes/estruturas/index.d.ts +1 -1
  144. package/fontes/estruturas/index.js +1 -1
  145. package/fontes/estruturas/index.js.map +1 -1
  146. package/fontes/interfaces/avaliador-sintatico-interface.d.ts +7 -6
  147. package/fontes/interfaces/delegua-interface.d.ts +2 -2
  148. package/fontes/interfaces/interpretador-com-depuracao-interface.d.ts +3 -4
  149. package/fontes/interfaces/interpretador-interface.d.ts +10 -9
  150. package/fontes/interfaces/resolvedor-interface.d.ts +1 -1
  151. package/fontes/interpretador/dialetos/egua-classico.d.ts +35 -33
  152. package/fontes/interpretador/dialetos/egua-classico.js +911 -474
  153. package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
  154. package/fontes/interpretador/interpretador-com-depuracao.d.ts +6 -6
  155. package/fontes/interpretador/interpretador-com-depuracao.js +280 -155
  156. package/fontes/interpretador/interpretador-com-depuracao.js.map +1 -1
  157. package/fontes/interpretador/interpretador.d.ts +41 -36
  158. package/fontes/interpretador/interpretador.js +1034 -536
  159. package/fontes/interpretador/interpretador.js.map +1 -1
  160. package/fontes/lexador/lexador.js +2 -2
  161. package/fontes/lexador/lexador.js.map +1 -1
  162. package/fontes/lexador/palavras-reservadas.d.ts +22 -21
  163. package/fontes/lexador/palavras-reservadas.js +22 -21
  164. package/fontes/lexador/palavras-reservadas.js.map +1 -1
  165. package/fontes/resolvedor/dialetos/egua-classico.d.ts +27 -4
  166. package/fontes/resolvedor/dialetos/egua-classico.js +42 -1
  167. package/fontes/resolvedor/dialetos/egua-classico.js.map +1 -1
  168. package/fontes/tipos-de-simbolos/delegua.d.ts +2 -1
  169. package/fontes/tipos-de-simbolos/delegua.js +2 -1
  170. package/fontes/tipos-de-simbolos/delegua.js.map +1 -1
  171. package/fontes/tipos-de-simbolos/eguap.d.ts +1 -0
  172. package/fontes/tipos-de-simbolos/eguap.js +1 -0
  173. package/fontes/tipos-de-simbolos/eguap.js.map +1 -1
  174. package/package.json +1 -1
  175. package/testes/biblioteca-global.test.js +424 -181
  176. package/testes/biblioteca-global.test.js.map +1 -1
  177. package/testes/egua-classico/interpretador.test.js +380 -164
  178. package/testes/egua-classico/interpretador.test.js.map +1 -1
  179. package/testes/eguap/interpretador.test.js +388 -172
  180. package/testes/eguap/interpretador.test.js.map +1 -1
  181. package/testes/interpretador.test.js +877 -400
  182. package/testes/interpretador.test.js.map +1 -1
  183. package/fontes/construtos/conjunto.js +0 -18
  184. package/fontes/construtos/conjunto.js.map +0 -1
  185. package/fontes/estruturas/funcao.js +0 -80
  186. package/fontes/estruturas/funcao.js.map +0 -1
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Expressao = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -25,7 +61,14 @@ var Expressao = /** @class */ (function (_super) {
25
61
  return _this;
26
62
  }
27
63
  Expressao.prototype.aceitar = function (visitante) {
28
- return visitante.visitarDeclaracaoDeExpressao(this);
64
+ return __awaiter(this, void 0, void 0, function () {
65
+ return __generator(this, function (_a) {
66
+ switch (_a.label) {
67
+ case 0: return [4 /*yield*/, visitante.visitarDeclaracaoDeExpressao(this)];
68
+ case 1: return [2 /*return*/, _a.sent()];
69
+ }
70
+ });
71
+ });
29
72
  };
30
73
  return Expressao;
31
74
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"expressao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/expressao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAA+B,6BAAU;IAGrC,mBAAY,SAAoB;QAAhC,YACI,kBAAM,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,SAEhD;QADG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC/B,CAAC;IAED,2BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,gBAAC;AAAD,CAAC,AAXD,CAA+B,uBAAU,GAWxC;AAXY,8BAAS"}
1
+ {"version":3,"file":"expressao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/expressao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAA+B,6BAAU;IAGrC,mBAAY,SAAoB;QAAhC,YACI,kBAAM,SAAS,CAAC,KAAK,EAAE,SAAS,CAAC,WAAW,CAAC,SAEhD;QADG,KAAI,CAAC,SAAS,GAAG,SAAS,CAAC;;IAC/B,CAAC;IAEK,2BAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,EAAA;4BAAzD,sBAAO,SAAkD,EAAC;;;;KAC7D;IACL,gBAAC;AAAD,CAAC,AAXD,CAA+B,uBAAU,GAWxC;AAXY,8BAAS"}
@@ -1,7 +1,8 @@
1
+ import { InterpretadorInterface } from '../interfaces';
1
2
  import { Declaracao } from './declaracao';
2
3
  export declare class Fazer extends Declaracao {
3
4
  caminhoFazer: any;
4
5
  condicaoEnquanto: any;
5
6
  constructor(hashArquivo: number, linha: number, caminhoFazer: any, condicaoEnquanto: any);
6
- aceitar(visitante: any): any;
7
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
7
8
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Fazer = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -26,7 +62,14 @@ var Fazer = /** @class */ (function (_super) {
26
62
  return _this;
27
63
  }
28
64
  Fazer.prototype.aceitar = function (visitante) {
29
- return visitante.visitarExpressaoFazer(this);
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoFazer(this)];
69
+ case 1: return [2 /*return*/, _a.sent()];
70
+ }
71
+ });
72
+ });
30
73
  };
31
74
  return Fazer;
32
75
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"fazer.js","sourceRoot":"","sources":["../../../fontes/declaracoes/fazer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C;IAA2B,yBAAU;IAIjC,eACI,WAAmB,EACnB,KAAa,EACb,YAAiB,EACjB,gBAAqB;QAJzB,YAMI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAG5B;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;;IAC7C,CAAC;IAED,uBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,CAAC;IACjD,CAAC;IACL,YAAC;AAAD,CAAC,AAlBD,CAA2B,uBAAU,GAkBpC;AAlBY,sBAAK"}
1
+ {"version":3,"file":"fazer.js","sourceRoot":"","sources":["../../../fontes/declaracoes/fazer.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA2B,yBAAU;IAIjC,eACI,WAAmB,EACnB,KAAa,EACb,YAAiB,EACjB,gBAAqB;QAJzB,YAMI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAG5B;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,gBAAgB,GAAG,gBAAgB,CAAC;;IAC7C,CAAC;IAEK,uBAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,EAAA;4BAAlD,sBAAO,SAA2C,EAAC;;;;KACtD;IACL,YAAC;AAAD,CAAC,AAlBD,CAA2B,uBAAU,GAkBpC;AAlBY,sBAAK"}
@@ -1,8 +1,8 @@
1
1
  import { InterpretadorInterface, SimboloInterface } from '../interfaces';
2
2
  import { Declaracao } from './declaracao';
3
- export declare class Funcao extends Declaracao {
3
+ export declare class FuncaoDeclaracao extends Declaracao {
4
4
  simbolo: SimboloInterface;
5
5
  funcao: any;
6
6
  constructor(simbolo: SimboloInterface, funcao: any);
7
- aceitar(visitante: InterpretadorInterface): any;
7
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
8
8
  }
@@ -14,21 +14,61 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.Funcao = void 0;
54
+ exports.FuncaoDeclaracao = void 0;
19
55
  var declaracao_1 = require("./declaracao");
20
- var Funcao = /** @class */ (function (_super) {
21
- __extends(Funcao, _super);
22
- function Funcao(simbolo, funcao) {
56
+ var FuncaoDeclaracao = /** @class */ (function (_super) {
57
+ __extends(FuncaoDeclaracao, _super);
58
+ function FuncaoDeclaracao(simbolo, funcao) {
23
59
  var _this = _super.call(this, Number(simbolo.linha), simbolo.hashArquivo) || this;
24
60
  _this.simbolo = simbolo;
25
61
  _this.funcao = funcao;
26
62
  return _this;
27
63
  }
28
- Funcao.prototype.aceitar = function (visitante) {
29
- return visitante.visitarExpressaoFuncao(this);
64
+ FuncaoDeclaracao.prototype.aceitar = function (visitante) {
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoFuncao(this))];
68
+ });
69
+ });
30
70
  };
31
- return Funcao;
71
+ return FuncaoDeclaracao;
32
72
  }(declaracao_1.Declaracao));
33
- exports.Funcao = Funcao;
73
+ exports.FuncaoDeclaracao = FuncaoDeclaracao;
34
74
  //# sourceMappingURL=funcao.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA4B,0BAAU;IAIlC,gBAAY,OAAyB,EAAE,MAAW;QAAlD,YACI,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAGpD;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAED,wBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;IAClD,CAAC;IACL,aAAC;AAAD,CAAC,AAbD,CAA4B,uBAAU,GAarC;AAbY,wBAAM"}
1
+ {"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/funcao.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAAsC,oCAAU;IAI5C,0BAAY,OAAyB,EAAE,MAAW;QAAlD,YACI,kBAAM,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,SAGpD;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;;IACzB,CAAC;IAEK,kCAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,EAAC;;;KAClE;IACL,uBAAC;AAAD,CAAC,AAbD,CAAsC,uBAAU,GAa/C;AAbY,4CAAgB"}
@@ -1,8 +1,9 @@
1
1
  import { Literal } from '../construtos';
2
+ import { InterpretadorInterface } from '../interfaces';
2
3
  import { Declaracao } from './declaracao';
3
4
  export declare class Importar extends Declaracao {
4
5
  caminho: Literal;
5
6
  simboloFechamento: any;
6
7
  constructor(caminho: Literal, simboloFechamento: any);
7
- aceitar(visitante: any): any;
8
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
8
9
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Importar = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -26,7 +62,14 @@ var Importar = /** @class */ (function (_super) {
26
62
  return _this;
27
63
  }
28
64
  Importar.prototype.aceitar = function (visitante) {
29
- return visitante.visitarExpressaoImportar(this);
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoImportar(this)];
69
+ case 1: return [2 /*return*/, _a.sent()];
70
+ }
71
+ });
72
+ });
30
73
  };
31
74
  return Importar;
32
75
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/importar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA8B,4BAAU;IAIpC,kBAAY,OAAgB,EAAE,iBAAsB;QAApD,YACI,kBAAM,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,SAG5C;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;IAC/C,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,uBAAU,GAavC;AAbY,4BAAQ"}
1
+ {"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/importar.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;IAA8B,4BAAU;IAIpC,kBAAY,OAAgB,EAAE,iBAAsB;QAApD,YACI,kBAAM,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,SAG5C;QAFG,KAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,KAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;;IAC/C,CAAC;IAEK,0BAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAA;4BAArD,sBAAO,SAA8C,EAAC;;;;KACzD;IACL,eAAC;AAAD,CAAC,AAbD,CAA8B,uBAAU,GAavC;AAbY,4BAAQ"}
@@ -8,5 +8,5 @@ import { Declaracao } from './declaracao';
8
8
  export declare class Leia extends Declaracao {
9
9
  argumentos: Construto[];
10
10
  constructor(linha: number, hashArquivo: number, argumentos: Construto[]);
11
- aceitar(visitante: InterpretadorInterface): any;
11
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
12
12
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Leia = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -29,7 +65,14 @@ var Leia = /** @class */ (function (_super) {
29
65
  return _this;
30
66
  }
31
67
  Leia.prototype.aceitar = function (visitante) {
32
- return visitante.visitarExpressaoLeia(this);
68
+ return __awaiter(this, void 0, void 0, function () {
69
+ return __generator(this, function (_a) {
70
+ switch (_a.label) {
71
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoLeia(this)];
72
+ case 1: return [2 /*return*/, _a.sent()];
73
+ }
74
+ });
75
+ });
33
76
  };
34
77
  return Leia;
35
78
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"leia.js","sourceRoot":"","sources":["../../../fontes/declaracoes/leia.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;;;GAGG;AACH;IAA0B,wBAAU;IAGhC,cAAY,KAAa,EAAE,WAAmB,EAAE,UAAuB;QAAvE,YACI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAE5B;QADG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAXD,CAA0B,uBAAU,GAWnC;AAXY,oBAAI"}
1
+ {"version":3,"file":"leia.js","sourceRoot":"","sources":["../../../fontes/declaracoes/leia.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEA,2CAA0C;AAE1C;;;GAGG;AACH;IAA0B,wBAAU;IAGhC,cAAY,KAAa,EAAE,WAAmB,EAAE,UAAuB;QAAvE,YACI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAE5B;QADG,KAAI,CAAC,UAAU,GAAG,UAAU,CAAC;;IACjC,CAAC;IAEK,sBAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAA;4BAAjD,sBAAO,SAA0C,EAAC;;;;KACrD;IACL,WAAC;AAAD,CAAC,AAXD,CAA0B,uBAAU,GAWnC;AAXY,oBAAI"}
@@ -1,3 +1,4 @@
1
+ import { InterpretadorInterface } from '../interfaces';
1
2
  import { Declaracao } from './declaracao';
2
3
  export declare class Para extends Declaracao {
3
4
  inicializador: any;
@@ -5,5 +6,5 @@ export declare class Para extends Declaracao {
5
6
  incrementar: any;
6
7
  corpo: any;
7
8
  constructor(hashArquivo: number, linha: number, inicializador: any, condicao: any, incrementar: any, corpo: any);
8
- aceitar(visitante: any): any;
9
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
9
10
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Para = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -28,7 +64,14 @@ var Para = /** @class */ (function (_super) {
28
64
  return _this;
29
65
  }
30
66
  Para.prototype.aceitar = function (visitante) {
31
- return visitante.visitarExpressaoPara(this);
67
+ return __awaiter(this, void 0, void 0, function () {
68
+ return __generator(this, function (_a) {
69
+ switch (_a.label) {
70
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoPara(this)];
71
+ case 1: return [2 /*return*/, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  };
33
76
  return Para;
34
77
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"para.js","sourceRoot":"","sources":["../../../fontes/declaracoes/para.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,2CAA0C;AAE1C;IAA0B,wBAAU;IAMhC,cACI,WAAmB,EACnB,KAAa,EACb,aAAkB,EAClB,QAAa,EACb,WAAgB,EAChB,KAAU;QANd,YAQI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAK5B;QAJG,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,sBAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IAChD,CAAC;IACL,WAAC;AAAD,CAAC,AAxBD,CAA0B,uBAAU,GAwBnC;AAxBY,oBAAI"}
1
+ {"version":3,"file":"para.js","sourceRoot":"","sources":["../../../fontes/declaracoes/para.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA0B,wBAAU;IAMhC,cACI,WAAmB,EACnB,KAAa,EACb,aAAkB,EAClB,QAAa,EACb,WAAgB,EAChB,KAAU;QANd,YAQI,kBAAM,KAAK,EAAE,WAAW,CAAC,SAK5B;QAJG,KAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAEK,sBAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,EAAA;4BAAjD,sBAAO,SAA0C,EAAC;;;;KACrD;IACL,WAAC;AAAD,CAAC,AAxBD,CAA0B,uBAAU,GAwBnC;AAxBY,oBAAI"}
@@ -4,5 +4,5 @@ export declare class Retorna extends Declaracao {
4
4
  simboloChave: SimboloInterface;
5
5
  valor: any;
6
6
  constructor(simboloChave: SimboloInterface, valor: any);
7
- aceitar(visitante: InterpretadorInterface): any;
7
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
8
8
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Retorna = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -26,7 +62,14 @@ var Retorna = /** @class */ (function (_super) {
26
62
  return _this;
27
63
  }
28
64
  Retorna.prototype.aceitar = function (visitante) {
29
- return visitante.visitarExpressaoRetornar(this);
65
+ return __awaiter(this, void 0, void 0, function () {
66
+ return __generator(this, function (_a) {
67
+ switch (_a.label) {
68
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoRetornar(this)];
69
+ case 1: return [2 /*return*/, _a.sent()];
70
+ }
71
+ });
72
+ });
30
73
  };
31
74
  return Retorna;
32
75
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../fontes/declaracoes/retorna.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA6B,2BAAU;IAInC,iBAAY,YAA8B,EAAE,KAAU;QAAtD,YACI,kBAAM,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAG9D;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;IACL,cAAC;AAAD,CAAC,AAbD,CAA6B,uBAAU,GAatC;AAbY,0BAAO"}
1
+ {"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../fontes/declaracoes/retorna.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAA6B,2BAAU;IAInC,iBAAY,YAA8B,EAAE,KAAU;QAAtD,YACI,kBAAM,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,SAG9D;QAFG,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,KAAK,GAAG,KAAK,CAAC;;IACvB,CAAC;IAEK,yBAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,EAAA;4BAArD,sBAAO,SAA8C,EAAC;;;;KACzD;IACL,cAAC;AAAD,CAAC,AAbD,CAA6B,uBAAU,GAatC;AAbY,0BAAO"}
@@ -6,5 +6,5 @@ export declare class Se extends Declaracao {
6
6
  caminhosSeSenao: any;
7
7
  caminhoSenao: any;
8
8
  constructor(condicao: any, caminhoEntao: any, caminhosSeSenao: any, caminhoSenao: any);
9
- aceitar(visitante: InterpretadorInterface): any;
9
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
10
10
  }
@@ -14,6 +14,42 @@ var __extends = (this && this.__extends) || (function () {
14
14
  d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
15
  };
16
16
  })();
17
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
18
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
19
+ return new (P || (P = Promise))(function (resolve, reject) {
20
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
21
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
22
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
23
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
24
+ });
25
+ };
26
+ var __generator = (this && this.__generator) || function (thisArg, body) {
27
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
28
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
29
+ function verb(n) { return function (v) { return step([n, v]); }; }
30
+ function step(op) {
31
+ if (f) throw new TypeError("Generator is already executing.");
32
+ while (_) try {
33
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
34
+ if (y = 0, t) op = [op[0] & 2, t.value];
35
+ switch (op[0]) {
36
+ case 0: case 1: t = op; break;
37
+ case 4: _.label++; return { value: op[1], done: false };
38
+ case 5: _.label++; y = op[1]; op = [0]; continue;
39
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
40
+ default:
41
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
42
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
43
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
44
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
45
+ if (t[2]) _.ops.pop();
46
+ _.trys.pop(); continue;
47
+ }
48
+ op = body.call(thisArg, _);
49
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
50
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
51
+ }
52
+ };
17
53
  Object.defineProperty(exports, "__esModule", { value: true });
18
54
  exports.Se = void 0;
19
55
  var declaracao_1 = require("./declaracao");
@@ -28,7 +64,14 @@ var Se = /** @class */ (function (_super) {
28
64
  return _this;
29
65
  }
30
66
  Se.prototype.aceitar = function (visitante) {
31
- return visitante.visitarExpressaoSe(this);
67
+ return __awaiter(this, void 0, void 0, function () {
68
+ return __generator(this, function (_a) {
69
+ switch (_a.label) {
70
+ case 0: return [4 /*yield*/, visitante.visitarExpressaoSe(this)];
71
+ case 1: return [2 /*return*/, _a.sent()];
72
+ }
73
+ });
74
+ });
32
75
  };
33
76
  return Se;
34
77
  }(declaracao_1.Declaracao));
@@ -1 +1 @@
1
- {"version":3,"file":"se.js","sourceRoot":"","sources":["../../../fontes/declaracoes/se.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAAwB,sBAAU;IAM9B,YACI,QAAa,EACb,YAAiB,EACjB,eAAoB,EACpB,YAAiB;QAJrB,YAMI,kBAAM,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,SAK9C;QAJG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;;IACrC,CAAC;IAED,oBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAC9C,CAAC;IACL,SAAC;AAAD,CAAC,AAtBD,CAAwB,uBAAU,GAsBjC;AAtBY,gBAAE"}
1
+ {"version":3,"file":"se.js","sourceRoot":"","sources":["../../../fontes/declaracoes/se.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,2CAA0C;AAE1C;IAAwB,sBAAU;IAM9B,YACI,QAAa,EACb,YAAiB,EACjB,eAAoB,EACpB,YAAiB;QAJrB,YAMI,kBAAM,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,SAK9C;QAJG,KAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,KAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,KAAI,CAAC,YAAY,GAAG,YAAY,CAAC;;IACrC,CAAC;IAEK,oBAAO,GAAb,UAAc,SAAiC;;;;4BACpC,qBAAM,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,EAAA;4BAA/C,sBAAO,SAAwC,EAAC;;;;KACnD;IACL,SAAC;AAAD,CAAC,AAtBD,CAAwB,uBAAU,GAsBjC;AAtBY,gBAAE"}
@@ -2,5 +2,5 @@ import { InterpretadorInterface, SimboloInterface } from '../interfaces';
2
2
  import { Declaracao } from './declaracao';
3
3
  export declare class Sustar extends Declaracao {
4
4
  constructor(simbolo: SimboloInterface);
5
- aceitar(visitante: InterpretadorInterface): any;
5
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
6
6
  }