@designliquido/delegua 0.8.1 → 0.9.0-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 (169) hide show
  1. package/bin/package.json +1 -1
  2. package/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +2 -1
  3. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js +3 -0
  4. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -1
  5. package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +2 -1
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js +14 -0
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  8. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +2 -1
  9. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +3 -0
  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 +2 -1
  12. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +12 -0
  13. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
  14. package/fontes/bibliotecas/biblioteca-global.js +351 -177
  15. package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
  16. package/fontes/construtos/acesso-indice-variavel.d.ts +1 -1
  17. package/fontes/construtos/acesso-indice-variavel.js +41 -1
  18. package/fontes/construtos/acesso-indice-variavel.js.map +1 -1
  19. package/fontes/construtos/acesso-metodo.d.ts +1 -1
  20. package/fontes/construtos/acesso-metodo.js +41 -1
  21. package/fontes/construtos/acesso-metodo.js.map +1 -1
  22. package/fontes/construtos/agrupamento.d.ts +1 -1
  23. package/fontes/construtos/agrupamento.js +41 -1
  24. package/fontes/construtos/agrupamento.js.map +1 -1
  25. package/fontes/construtos/atribuicao-sobrescrita.d.ts +2 -1
  26. package/fontes/construtos/atribuicao-sobrescrita.js +41 -1
  27. package/fontes/construtos/atribuicao-sobrescrita.js.map +1 -1
  28. package/fontes/construtos/atribuir.d.ts +1 -1
  29. package/fontes/construtos/atribuir.js +41 -1
  30. package/fontes/construtos/atribuir.js.map +1 -1
  31. package/fontes/construtos/binario.d.ts +1 -1
  32. package/fontes/construtos/binario.js +41 -1
  33. package/fontes/construtos/binario.js.map +1 -1
  34. package/fontes/construtos/chamada.d.ts +1 -1
  35. package/fontes/construtos/chamada.js +41 -1
  36. package/fontes/construtos/chamada.js.map +1 -1
  37. package/fontes/construtos/conjunto.d.ts +2 -1
  38. package/fontes/construtos/conjunto.js +41 -1
  39. package/fontes/construtos/conjunto.js.map +1 -1
  40. package/fontes/construtos/construto.d.ts +1 -1
  41. package/fontes/construtos/dicionario.d.ts +2 -1
  42. package/fontes/construtos/dicionario.js +41 -1
  43. package/fontes/construtos/dicionario.js.map +1 -1
  44. package/fontes/construtos/funcao.d.ts +1 -1
  45. package/fontes/construtos/funcao.js +41 -1
  46. package/fontes/construtos/funcao.js.map +1 -1
  47. package/fontes/construtos/isto.d.ts +2 -1
  48. package/fontes/construtos/isto.js +41 -1
  49. package/fontes/construtos/isto.js.map +1 -1
  50. package/fontes/construtos/literal.d.ts +1 -1
  51. package/fontes/construtos/literal.js +41 -1
  52. package/fontes/construtos/literal.js.map +1 -1
  53. package/fontes/construtos/logico.d.ts +2 -1
  54. package/fontes/construtos/logico.js +41 -1
  55. package/fontes/construtos/logico.js.map +1 -1
  56. package/fontes/construtos/super.d.ts +2 -2
  57. package/fontes/construtos/super.js +41 -1
  58. package/fontes/construtos/super.js.map +1 -1
  59. package/fontes/construtos/unario.d.ts +2 -1
  60. package/fontes/construtos/unario.js +41 -1
  61. package/fontes/construtos/unario.js.map +1 -1
  62. package/fontes/construtos/variavel.d.ts +1 -1
  63. package/fontes/construtos/variavel.js +41 -1
  64. package/fontes/construtos/variavel.js.map +1 -1
  65. package/fontes/construtos/vetor.d.ts +2 -1
  66. package/fontes/construtos/vetor.js +41 -1
  67. package/fontes/construtos/vetor.js.map +1 -1
  68. package/fontes/declaracoes/bloco.d.ts +1 -1
  69. package/fontes/declaracoes/bloco.js +41 -1
  70. package/fontes/declaracoes/bloco.js.map +1 -1
  71. package/fontes/declaracoes/classe.d.ts +2 -2
  72. package/fontes/declaracoes/classe.js +41 -1
  73. package/fontes/declaracoes/classe.js.map +1 -1
  74. package/fontes/declaracoes/continua.d.ts +2 -2
  75. package/fontes/declaracoes/continua.js +41 -1
  76. package/fontes/declaracoes/continua.js.map +1 -1
  77. package/fontes/declaracoes/declaracao.d.ts +2 -1
  78. package/fontes/declaracoes/declaracao.js +41 -1
  79. package/fontes/declaracoes/declaracao.js.map +1 -1
  80. package/fontes/declaracoes/enquanto.d.ts +2 -1
  81. package/fontes/declaracoes/enquanto.js +41 -1
  82. package/fontes/declaracoes/enquanto.js.map +1 -1
  83. package/fontes/declaracoes/escolha.d.ts +2 -1
  84. package/fontes/declaracoes/escolha.js +41 -1
  85. package/fontes/declaracoes/escolha.js.map +1 -1
  86. package/fontes/declaracoes/escreva.d.ts +1 -1
  87. package/fontes/declaracoes/escreva.js +41 -1
  88. package/fontes/declaracoes/escreva.js.map +1 -1
  89. package/fontes/declaracoes/expressao.d.ts +1 -1
  90. package/fontes/declaracoes/expressao.js +41 -1
  91. package/fontes/declaracoes/expressao.js.map +1 -1
  92. package/fontes/declaracoes/fazer.d.ts +2 -1
  93. package/fontes/declaracoes/fazer.js +41 -1
  94. package/fontes/declaracoes/fazer.js.map +1 -1
  95. package/fontes/declaracoes/funcao.d.ts +1 -1
  96. package/fontes/declaracoes/funcao.js +41 -1
  97. package/fontes/declaracoes/funcao.js.map +1 -1
  98. package/fontes/declaracoes/importar.d.ts +2 -1
  99. package/fontes/declaracoes/importar.js +41 -1
  100. package/fontes/declaracoes/importar.js.map +1 -1
  101. package/fontes/declaracoes/leia.d.ts +1 -1
  102. package/fontes/declaracoes/leia.js +44 -1
  103. package/fontes/declaracoes/leia.js.map +1 -1
  104. package/fontes/declaracoes/para.d.ts +2 -1
  105. package/fontes/declaracoes/para.js +41 -1
  106. package/fontes/declaracoes/para.js.map +1 -1
  107. package/fontes/declaracoes/retorna.d.ts +1 -1
  108. package/fontes/declaracoes/retorna.js +41 -1
  109. package/fontes/declaracoes/retorna.js.map +1 -1
  110. package/fontes/declaracoes/se.d.ts +1 -1
  111. package/fontes/declaracoes/se.js +41 -1
  112. package/fontes/declaracoes/se.js.map +1 -1
  113. package/fontes/declaracoes/sustar.d.ts +1 -1
  114. package/fontes/declaracoes/sustar.js +41 -1
  115. package/fontes/declaracoes/sustar.js.map +1 -1
  116. package/fontes/declaracoes/tente.d.ts +1 -1
  117. package/fontes/declaracoes/tente.js +41 -1
  118. package/fontes/declaracoes/tente.js.map +1 -1
  119. package/fontes/declaracoes/var.d.ts +1 -1
  120. package/fontes/declaracoes/var.js +41 -1
  121. package/fontes/declaracoes/var.js.map +1 -1
  122. package/fontes/delegua.d.ts +3 -3
  123. package/fontes/delegua.js +136 -61
  124. package/fontes/delegua.js.map +1 -1
  125. package/fontes/depuracao/servidor-depuracao.d.ts +4 -4
  126. package/fontes/depuracao/servidor-depuracao.js +121 -47
  127. package/fontes/depuracao/servidor-depuracao.js.map +1 -1
  128. package/fontes/estruturas/funcao-padrao.d.ts +1 -1
  129. package/fontes/estruturas/funcao-padrao.js +46 -2
  130. package/fontes/estruturas/funcao-padrao.js.map +1 -1
  131. package/fontes/estruturas/funcao.d.ts +1 -1
  132. package/fontes/estruturas/funcao.js +74 -28
  133. package/fontes/estruturas/funcao.js.map +1 -1
  134. package/fontes/interfaces/avaliador-sintatico-interface.d.ts +5 -4
  135. package/fontes/interfaces/delegua-interface.d.ts +2 -2
  136. package/fontes/interfaces/interpretador-com-depuracao-interface.d.ts +3 -4
  137. package/fontes/interfaces/interpretador-interface.d.ts +6 -5
  138. package/fontes/interpretador/dialetos/egua-classico.d.ts +31 -30
  139. package/fontes/interpretador/dialetos/egua-classico.js +906 -470
  140. package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
  141. package/fontes/interpretador/interpretador-com-depuracao.d.ts +6 -6
  142. package/fontes/interpretador/interpretador-com-depuracao.js +280 -155
  143. package/fontes/interpretador/interpretador-com-depuracao.js.map +1 -1
  144. package/fontes/interpretador/interpretador.d.ts +43 -34
  145. package/fontes/interpretador/interpretador.js +1045 -535
  146. package/fontes/interpretador/interpretador.js.map +1 -1
  147. package/fontes/lexador/lexador.js +2 -2
  148. package/fontes/lexador/lexador.js.map +1 -1
  149. package/fontes/lexador/palavras-reservadas.d.ts +22 -21
  150. package/fontes/lexador/palavras-reservadas.js +22 -21
  151. package/fontes/lexador/palavras-reservadas.js.map +1 -1
  152. package/fontes/resolvedor/dialetos/egua-classico.d.ts +25 -3
  153. package/fontes/resolvedor/dialetos/egua-classico.js +40 -0
  154. package/fontes/resolvedor/dialetos/egua-classico.js.map +1 -1
  155. package/fontes/tipos-de-simbolos/delegua.d.ts +2 -1
  156. package/fontes/tipos-de-simbolos/delegua.js +2 -1
  157. package/fontes/tipos-de-simbolos/delegua.js.map +1 -1
  158. package/fontes/tipos-de-simbolos/eguap.d.ts +1 -0
  159. package/fontes/tipos-de-simbolos/eguap.js +1 -0
  160. package/fontes/tipos-de-simbolos/eguap.js.map +1 -1
  161. package/package.json +1 -1
  162. package/testes/biblioteca-global.test.js +424 -181
  163. package/testes/biblioteca-global.test.js.map +1 -1
  164. package/testes/egua-classico/interpretador.test.js +379 -163
  165. package/testes/egua-classico/interpretador.test.js.map +1 -1
  166. package/testes/eguap/interpretador.test.js +388 -172
  167. package/testes/eguap/interpretador.test.js.map +1 -1
  168. package/testes/interpretador.test.js +876 -399
  169. package/testes/interpretador.test.js.map +1 -1
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.AcessoIndiceVariavel = void 0;
4
40
  /**
@@ -14,7 +50,11 @@ var AcessoIndiceVariavel = /** @class */ (function () {
14
50
  this.simboloFechamento = simboloFechamento;
15
51
  }
16
52
  AcessoIndiceVariavel.prototype.aceitar = function (visitante) {
17
- return visitante.visitarExpressaoAcessoIndiceVariavel(this);
53
+ return __awaiter(this, void 0, void 0, function () {
54
+ return __generator(this, function (_a) {
55
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoAcessoIndiceVariavel(this))];
56
+ });
57
+ });
18
58
  };
19
59
  return AcessoIndiceVariavel;
20
60
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"acesso-indice-variavel.js","sourceRoot":"","sources":["../../../fontes/construtos/acesso-indice-variavel.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH;IAQI,8BACI,WAAmB,EACnB,eAA0B,EAC1B,MAAW,EACX,iBAAmC;QAEnC,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAED,sCAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,oCAAoC,CAAC,IAAI,CAAC,CAAC;IAChE,CAAC;IACL,2BAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,oDAAoB"}
1
+ {"version":3,"file":"acesso-indice-variavel.js","sourceRoot":"","sources":["../../../fontes/construtos/acesso-indice-variavel.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;GAGG;AACH;IAQI,8BACI,WAAmB,EACnB,eAA0B,EAC1B,MAAW,EACX,iBAAmC;QAEnC,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAEK,sCAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,oCAAoC,CAAC,IAAI,CAAC,CAAC,EAAC;;;KAChF;IACL,2BAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,oDAAoB"}
@@ -10,5 +10,5 @@ export declare class AcessoMetodo implements Construto {
10
10
  objeto: Construto;
11
11
  simbolo: SimboloInterface;
12
12
  constructor(hashArquivo: number, objeto: Construto, simbolo: SimboloInterface);
13
- aceitar(visitante: InterpretadorInterface): any;
13
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
14
14
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.AcessoMetodo = void 0;
4
40
  /**
@@ -13,7 +49,11 @@ var AcessoMetodo = /** @class */ (function () {
13
49
  this.simbolo = simbolo;
14
50
  }
15
51
  AcessoMetodo.prototype.aceitar = function (visitante) {
16
- return visitante.visitarExpressaoAcessoMetodo(this);
52
+ return __awaiter(this, void 0, void 0, function () {
53
+ return __generator(this, function (_a) {
54
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoAcessoMetodo(this))];
55
+ });
56
+ });
17
57
  };
18
58
  return AcessoMetodo;
19
59
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"acesso-metodo.js","sourceRoot":"","sources":["../../../fontes/construtos/acesso-metodo.ts"],"names":[],"mappings":";;;AAGA;;;GAGG;AACH;IAOI,sBACI,WAAmB,EACnB,MAAiB,EACjB,OAAyB;QAEzB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,8BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,mBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,oCAAY"}
1
+ {"version":3,"file":"acesso-metodo.js","sourceRoot":"","sources":["../../../fontes/construtos/acesso-metodo.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;GAGG;AACH;IAOI,sBACI,WAAmB,EACnB,MAAiB,EACjB,OAAyB;QAEzB,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,KAAK,CAAC;QAC1B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEK,8BAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACxE;IACL,mBAAC;AAAD,CAAC,AAtBD,IAsBC;AAtBY,oCAAY"}
@@ -10,5 +10,5 @@ export declare class Agrupamento implements Construto {
10
10
  hashArquivo?: number;
11
11
  expressao: Construto;
12
12
  constructor(hashArquivo: number, linha: number, expressao: Construto);
13
- aceitar(visitante: InterpretadorInterface): any;
13
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
14
14
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Agrupamento = void 0;
4
40
  /**
@@ -13,7 +49,11 @@ var Agrupamento = /** @class */ (function () {
13
49
  this.expressao = expressao;
14
50
  }
15
51
  Agrupamento.prototype.aceitar = function (visitante) {
16
- return visitante.visitarExpressaoAgrupamento(this);
52
+ return __awaiter(this, void 0, void 0, function () {
53
+ return __generator(this, function (_a) {
54
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoAgrupamento(this))];
55
+ });
56
+ });
17
57
  };
18
58
  return Agrupamento;
19
59
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"agrupamento.js","sourceRoot":"","sources":["../../../fontes/construtos/agrupamento.ts"],"names":[],"mappings":";;;AAGA;;;;GAIG;AACH;IAMI,qBAAY,WAAmB,EAAE,KAAa,EAAE,SAAoB;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAED,6BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC;IACvD,CAAC;IACL,kBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,kCAAW"}
1
+ {"version":3,"file":"agrupamento.js","sourceRoot":"","sources":["../../../fontes/construtos/agrupamento.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;GAIG;AACH;IAMI,qBAAY,WAAmB,EAAE,KAAa,EAAE,SAAoB;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;IAC/B,CAAC;IAEK,6BAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,2BAA2B,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACvE;IACL,kBAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,kCAAW"}
@@ -1,3 +1,4 @@
1
+ import { InterpretadorInterface } from '../interfaces';
1
2
  import { Construto } from './construto';
2
3
  export declare class AtribuicaoSobrescrita implements Construto {
3
4
  linha: number;
@@ -6,5 +7,5 @@ export declare class AtribuicaoSobrescrita implements Construto {
6
7
  valor: any;
7
8
  indice: any;
8
9
  constructor(hashArquivo: number, linha: number, objeto: any, indice: any, valor: any);
9
- aceitar(visitante: any): any;
10
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
10
11
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.AtribuicaoSobrescrita = void 0;
4
40
  var AtribuicaoSobrescrita = /** @class */ (function () {
@@ -10,7 +46,11 @@ var AtribuicaoSobrescrita = /** @class */ (function () {
10
46
  this.valor = valor;
11
47
  }
12
48
  AtribuicaoSobrescrita.prototype.aceitar = function (visitante) {
13
- return visitante.visitarExpressaoAtribuicaoSobrescrita(this);
49
+ return __awaiter(this, void 0, void 0, function () {
50
+ return __generator(this, function (_a) {
51
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoAtribuicaoSobrescrita(this))];
52
+ });
53
+ });
14
54
  };
15
55
  return AtribuicaoSobrescrita;
16
56
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"atribuicao-sobrescrita.js","sourceRoot":"","sources":["../../../fontes/construtos/atribuicao-sobrescrita.ts"],"names":[],"mappings":";;;AAEA;IAQI,+BACI,WAAmB,EACnB,KAAa,EACb,MAAW,EACX,MAAW,EACX,KAAU;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,uCAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,qCAAqC,CAAC,IAAI,CAAC,CAAC;IACjE,CAAC;IACL,4BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,sDAAqB"}
1
+ {"version":3,"file":"atribuicao-sobrescrita.js","sourceRoot":"","sources":["../../../fontes/construtos/atribuicao-sobrescrita.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;IAQI,+BACI,WAAmB,EACnB,KAAa,EACb,MAAW,EACX,MAAW,EACX,KAAU;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEK,uCAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,qCAAqC,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACjF;IACL,4BAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,sDAAqB"}
@@ -6,5 +6,5 @@ export declare class Atribuir implements Construto {
6
6
  simbolo: SimboloInterface;
7
7
  valor: any;
8
8
  constructor(hashArquivo: number, simbolo: SimboloInterface, valor: any);
9
- aceitar(visitante: InterpretadorInterface): any;
9
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
10
10
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Atribuir = void 0;
4
40
  var Atribuir = /** @class */ (function () {
@@ -9,7 +45,11 @@ var Atribuir = /** @class */ (function () {
9
45
  this.valor = valor;
10
46
  }
11
47
  Atribuir.prototype.aceitar = function (visitante) {
12
- return visitante.visitarExpressaoDeAtribuicao(this);
48
+ return __awaiter(this, void 0, void 0, function () {
49
+ return __generator(this, function (_a) {
50
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoDeAtribuicao(this))];
51
+ });
52
+ });
13
53
  };
14
54
  return Atribuir;
15
55
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"atribuir.js","sourceRoot":"","sources":["../../../fontes/construtos/atribuir.ts"],"names":[],"mappings":";;;AAGA;IAOI,kBAAY,WAAmB,EAAE,OAAyB,EAAE,KAAU;QAClE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC;IACxD,CAAC;IACL,eAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,4BAAQ"}
1
+ {"version":3,"file":"atribuir.js","sourceRoot":"","sources":["../../../fontes/construtos/atribuir.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;IAOI,kBAAY,WAAmB,EAAE,OAAyB,EAAE,KAAU;QAClE,IAAI,CAAC,KAAK,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEK,0BAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,4BAA4B,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACxE;IACL,eAAC;AAAD,CAAC,AAlBD,IAkBC;AAlBY,4BAAQ"}
@@ -18,5 +18,5 @@ export declare class Binario implements Construto {
18
18
  operador: any;
19
19
  direita: any;
20
20
  constructor(hashArquivo: number, esquerda: any, operador: any, direita: any);
21
- aceitar(visitante: InterpretadorInterface): any;
21
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
22
22
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Binario = void 0;
4
40
  /**
@@ -21,7 +57,11 @@ var Binario = /** @class */ (function () {
21
57
  this.direita = direita;
22
58
  }
23
59
  Binario.prototype.aceitar = function (visitante) {
24
- return visitante.visitarExpressaoBinaria(this);
60
+ return __awaiter(this, void 0, void 0, function () {
61
+ return __generator(this, function (_a) {
62
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoBinaria(this))];
63
+ });
64
+ });
25
65
  };
26
66
  return Binario;
27
67
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"binario.js","sourceRoot":"","sources":["../../../fontes/construtos/binario.ts"],"names":[],"mappings":";;;AAGA;;;;;;;;;;GAUG;AACH;IAQI,iBACI,WAAmB,EACnB,QAAa,EACb,QAAa,EACb,OAAY;QAEZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,cAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,0BAAO"}
1
+ {"version":3,"file":"binario.js","sourceRoot":"","sources":["../../../fontes/construtos/binario.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;;;;;;;;;;GAUG;AACH;IAQI,iBACI,WAAmB,EACnB,QAAa,EACb,QAAa,EACb,OAAY;QAEZ,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC;QAC5B,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IAC3B,CAAC;IAEK,yBAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACnE;IACL,cAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,0BAAO"}
@@ -7,5 +7,5 @@ export declare class Chamada implements Construto {
7
7
  argumentos: any;
8
8
  parentese: any;
9
9
  constructor(hashArquivo: number, entidadeChamada: Construto, parentese: any, argumentos: any);
10
- aceitar(visitante: InterpretadorInterface): any;
10
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
11
11
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Chamada = void 0;
4
40
  var Chamada = /** @class */ (function () {
@@ -10,7 +46,11 @@ var Chamada = /** @class */ (function () {
10
46
  this.argumentos = argumentos;
11
47
  }
12
48
  Chamada.prototype.aceitar = function (visitante) {
13
- return visitante.visitarExpressaoDeChamada(this);
49
+ return __awaiter(this, void 0, void 0, function () {
50
+ return __generator(this, function (_a) {
51
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoDeChamada(this))];
52
+ });
53
+ });
14
54
  };
15
55
  return Chamada;
16
56
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"chamada.js","sourceRoot":"","sources":["../../../fontes/construtos/chamada.ts"],"names":[],"mappings":";;;AAGA;IAQI,iBACI,WAAmB,EACnB,eAA0B,EAC1B,SAAc,EACd,UAAe;QAEf,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,yBAAO,GAAP,UAAQ,SAAiC;QACrC,OAAO,SAAS,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IACL,cAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,0BAAO"}
1
+ {"version":3,"file":"chamada.js","sourceRoot":"","sources":["../../../fontes/construtos/chamada.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;IAQI,iBACI,WAAmB,EACnB,eAA0B,EAC1B,SAAc,EACd,UAAe;QAEf,IAAI,CAAC,KAAK,GAAG,eAAe,CAAC,KAAK,CAAC;QACnC,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAEK,yBAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,yBAAyB,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACrE;IACL,cAAC;AAAD,CAAC,AAzBD,IAyBC;AAzBY,0BAAO"}
@@ -1,3 +1,4 @@
1
+ import { InterpretadorInterface } from '../interfaces';
1
2
  import { Construto } from './construto';
2
3
  export declare class Conjunto implements Construto {
3
4
  linha: number;
@@ -6,5 +7,5 @@ export declare class Conjunto implements Construto {
6
7
  nome: any;
7
8
  valor: any;
8
9
  constructor(hashArquivo: number, linha: number, objeto: any, nome: any, valor: any);
9
- aceitar(visitante: any): any;
10
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
10
11
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Conjunto = void 0;
4
40
  var Conjunto = /** @class */ (function () {
@@ -10,7 +46,11 @@ var Conjunto = /** @class */ (function () {
10
46
  this.valor = valor;
11
47
  }
12
48
  Conjunto.prototype.aceitar = function (visitante) {
13
- return visitante.visitarExpressaoDefinir(this);
49
+ return __awaiter(this, void 0, void 0, function () {
50
+ return __generator(this, function (_a) {
51
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoDefinir(this))];
52
+ });
53
+ });
14
54
  };
15
55
  return Conjunto;
16
56
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"conjunto.js","sourceRoot":"","sources":["../../../fontes/construtos/conjunto.ts"],"names":[],"mappings":";;;AAEA;IAQI,kBACI,WAAmB,EACnB,KAAa,EACb,MAAW,EACX,IAAS,EACT,KAAU;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,0BAAO,GAAP,UAAQ,SAAc;QAClB,OAAO,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC;IACnD,CAAC;IACL,eAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,4BAAQ"}
1
+ {"version":3,"file":"conjunto.js","sourceRoot":"","sources":["../../../fontes/construtos/conjunto.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA;IAQI,kBACI,WAAmB,EACnB,KAAa,EACb,MAAW,EACX,IAAS,EACT,KAAU;QAEV,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAE/B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAEK,0BAAO,GAAb,UAAc,SAAiC;;;gBAC3C,sBAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,CAAC,EAAC;;;KACnE;IACL,eAAC;AAAD,CAAC,AA1BD,IA0BC;AA1BY,4BAAQ"}
@@ -2,5 +2,5 @@ export interface Construto {
2
2
  linha: number;
3
3
  hashArquivo?: number;
4
4
  valor?: any;
5
- aceitar(visitante: any): any;
5
+ aceitar(visitante: any): Promise<any>;
6
6
  }
@@ -1,3 +1,4 @@
1
+ import { InterpretadorInterface } from '../interfaces';
1
2
  import { Construto } from './construto';
2
3
  export declare class Dicionario implements Construto {
3
4
  linha: number;
@@ -5,5 +6,5 @@ export declare class Dicionario implements Construto {
5
6
  chaves: any;
6
7
  valores: any;
7
8
  constructor(hashArquivo: number, linha: number, chaves: any, valores: any);
8
- aceitar(visitante: any): any;
9
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
9
10
  }
@@ -1,4 +1,40 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
11
+ var __generator = (this && this.__generator) || function (thisArg, body) {
12
+ var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
13
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
14
+ function verb(n) { return function (v) { return step([n, v]); }; }
15
+ function step(op) {
16
+ if (f) throw new TypeError("Generator is already executing.");
17
+ while (_) try {
18
+ 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;
19
+ if (y = 0, t) op = [op[0] & 2, t.value];
20
+ switch (op[0]) {
21
+ case 0: case 1: t = op; break;
22
+ case 4: _.label++; return { value: op[1], done: false };
23
+ case 5: _.label++; y = op[1]; op = [0]; continue;
24
+ case 7: op = _.ops.pop(); _.trys.pop(); continue;
25
+ default:
26
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
27
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
28
+ if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
29
+ if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
30
+ if (t[2]) _.ops.pop();
31
+ _.trys.pop(); continue;
32
+ }
33
+ op = body.call(thisArg, _);
34
+ } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
35
+ if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
36
+ }
37
+ };
2
38
  Object.defineProperty(exports, "__esModule", { value: true });
3
39
  exports.Dicionario = void 0;
4
40
  var Dicionario = /** @class */ (function () {
@@ -9,7 +45,11 @@ var Dicionario = /** @class */ (function () {
9
45
  this.valores = valores;
10
46
  }
11
47
  Dicionario.prototype.aceitar = function (visitante) {
12
- return visitante.visitarExpressaoDicionario(this);
48
+ return __awaiter(this, void 0, void 0, function () {
49
+ return __generator(this, function (_a) {
50
+ return [2 /*return*/, Promise.resolve(visitante.visitarExpressaoDicionario(this))];
51
+ });
52
+ });
13
53
  };
14
54
  return Dicionario;
15
55
  }());