@designliquido/delegua 0.9.3 → 0.9.4

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 (234) hide show
  1. package/bin/delegua +1 -1
  2. package/bin/delegua.cmd +1 -1
  3. package/bin/package.json +3 -3
  4. package/coverage/lcov-report/sorter.js +4 -4
  5. package/coverage/lcov-report/sorter.js.map +1 -1
  6. package/execucao.d.ts +1 -0
  7. package/execucao.js +29 -0
  8. package/execucao.js.map +1 -0
  9. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js +108 -105
  10. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -1
  11. package/fontes/avaliador-sintatico/avaliador-sintatico.js +226 -232
  12. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  13. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.js +35 -55
  14. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.js.map +1 -1
  15. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +211 -216
  16. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
  17. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +231 -237
  18. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
  19. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.d.ts +3 -0
  20. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js +188 -121
  21. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js.map +1 -1
  22. package/fontes/avaliador-sintatico/erro-avaliador-sintatico.js +6 -24
  23. package/fontes/avaliador-sintatico/erro-avaliador-sintatico.js.map +1 -1
  24. package/fontes/bibliotecas/biblioteca-global.js +206 -367
  25. package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
  26. package/fontes/bibliotecas/importar-biblioteca.js +28 -29
  27. package/fontes/bibliotecas/importar-biblioteca.js.map +1 -1
  28. package/fontes/bibliotecas/primitivas-texto.js +9 -22
  29. package/fontes/bibliotecas/primitivas-texto.js.map +1 -1
  30. package/fontes/bibliotecas/primitivas-vetor.js +12 -14
  31. package/fontes/bibliotecas/primitivas-vetor.js.map +1 -1
  32. package/fontes/construtos/acesso-indice-variavel.js +6 -50
  33. package/fontes/construtos/acesso-indice-variavel.js.map +1 -1
  34. package/fontes/construtos/acesso-metodo.js +6 -50
  35. package/fontes/construtos/acesso-metodo.js.map +1 -1
  36. package/fontes/construtos/agrupamento.js +6 -50
  37. package/fontes/construtos/agrupamento.js.map +1 -1
  38. package/fontes/construtos/atribuicao-sobrescrita.js +6 -50
  39. package/fontes/construtos/atribuicao-sobrescrita.js.map +1 -1
  40. package/fontes/construtos/atribuir.js +6 -50
  41. package/fontes/construtos/atribuir.js.map +1 -1
  42. package/fontes/construtos/binario.js +6 -50
  43. package/fontes/construtos/binario.js.map +1 -1
  44. package/fontes/construtos/chamada.js +6 -50
  45. package/fontes/construtos/chamada.js.map +1 -1
  46. package/fontes/construtos/definir-valor.js +6 -50
  47. package/fontes/construtos/definir-valor.js.map +1 -1
  48. package/fontes/construtos/dicionario.js +6 -50
  49. package/fontes/construtos/dicionario.js.map +1 -1
  50. package/fontes/construtos/funcao.d.ts +2 -2
  51. package/fontes/construtos/funcao.js +6 -47
  52. package/fontes/construtos/funcao.js.map +1 -1
  53. package/fontes/construtos/isto.js +6 -47
  54. package/fontes/construtos/isto.js.map +1 -1
  55. package/fontes/construtos/literal.js +6 -47
  56. package/fontes/construtos/literal.js.map +1 -1
  57. package/fontes/construtos/logico.js +6 -50
  58. package/fontes/construtos/logico.js.map +1 -1
  59. package/fontes/construtos/super.js +6 -47
  60. package/fontes/construtos/super.js.map +1 -1
  61. package/fontes/construtos/unario.js +6 -50
  62. package/fontes/construtos/unario.js.map +1 -1
  63. package/fontes/construtos/variavel.js +6 -47
  64. package/fontes/construtos/variavel.js.map +1 -1
  65. package/fontes/construtos/vetor.js +6 -50
  66. package/fontes/construtos/vetor.js.map +1 -1
  67. package/fontes/declaracoes/bloco.js +9 -70
  68. package/fontes/declaracoes/bloco.js.map +1 -1
  69. package/fontes/declaracoes/classe.js +11 -72
  70. package/fontes/declaracoes/classe.js.map +1 -1
  71. package/fontes/declaracoes/continua.js +8 -65
  72. package/fontes/declaracoes/continua.js.map +1 -1
  73. package/fontes/declaracoes/declaracao.js +6 -47
  74. package/fontes/declaracoes/declaracao.js.map +1 -1
  75. package/fontes/declaracoes/enquanto.js +10 -71
  76. package/fontes/declaracoes/enquanto.js.map +1 -1
  77. package/fontes/declaracoes/escolha.js +11 -72
  78. package/fontes/declaracoes/escolha.js.map +1 -1
  79. package/fontes/declaracoes/escreva.js +9 -70
  80. package/fontes/declaracoes/escreva.js.map +1 -1
  81. package/fontes/declaracoes/expressao.js +9 -70
  82. package/fontes/declaracoes/expressao.js.map +1 -1
  83. package/fontes/declaracoes/fazer.js +10 -71
  84. package/fontes/declaracoes/fazer.js.map +1 -1
  85. package/fontes/declaracoes/funcao.js +10 -68
  86. package/fontes/declaracoes/funcao.js.map +1 -1
  87. package/fontes/declaracoes/importar.js +10 -71
  88. package/fontes/declaracoes/importar.js.map +1 -1
  89. package/fontes/declaracoes/leia.js +9 -70
  90. package/fontes/declaracoes/leia.js.map +1 -1
  91. package/fontes/declaracoes/para.js +12 -73
  92. package/fontes/declaracoes/para.js.map +1 -1
  93. package/fontes/declaracoes/retorna.js +10 -71
  94. package/fontes/declaracoes/retorna.js.map +1 -1
  95. package/fontes/declaracoes/se.js +12 -73
  96. package/fontes/declaracoes/se.js.map +1 -1
  97. package/fontes/declaracoes/sustar.js +8 -65
  98. package/fontes/declaracoes/sustar.js.map +1 -1
  99. package/fontes/declaracoes/tente.js +12 -73
  100. package/fontes/declaracoes/tente.js.map +1 -1
  101. package/fontes/declaracoes/var.js +10 -71
  102. package/fontes/declaracoes/var.js.map +1 -1
  103. package/fontes/delegua.js +116 -199
  104. package/fontes/delegua.js.map +1 -1
  105. package/fontes/depuracao/cyrb53.js +3 -4
  106. package/fontes/depuracao/cyrb53.js.map +1 -1
  107. package/fontes/depuracao/servidor-depuracao.js +125 -209
  108. package/fontes/depuracao/servidor-depuracao.js.map +1 -1
  109. package/fontes/espaco-variaveis.js +3 -4
  110. package/fontes/espaco-variaveis.js.map +1 -1
  111. package/fontes/estruturas/chamavel.js +6 -9
  112. package/fontes/estruturas/chamavel.js.map +1 -1
  113. package/fontes/estruturas/classe-padrao.js +17 -35
  114. package/fontes/estruturas/classe-padrao.js.map +1 -1
  115. package/fontes/estruturas/delegua-classe.d.ts +2 -2
  116. package/fontes/estruturas/delegua-classe.js +21 -39
  117. package/fontes/estruturas/delegua-classe.js.map +1 -1
  118. package/fontes/estruturas/delegua-funcao.js +48 -114
  119. package/fontes/estruturas/delegua-funcao.js.map +1 -1
  120. package/fontes/estruturas/funcao-padrao.js +13 -75
  121. package/fontes/estruturas/funcao-padrao.js.map +1 -1
  122. package/fontes/estruturas/metodo-primitiva.js +11 -39
  123. package/fontes/estruturas/metodo-primitiva.js.map +1 -1
  124. package/fontes/estruturas/modulo.js +6 -7
  125. package/fontes/estruturas/modulo.js.map +1 -1
  126. package/fontes/estruturas/objeto-delegua-classe.d.ts +3 -3
  127. package/fontes/estruturas/objeto-delegua-classe.js +12 -13
  128. package/fontes/estruturas/objeto-delegua-classe.js.map +1 -1
  129. package/fontes/estruturas/objeto-padrao.js +9 -11
  130. package/fontes/estruturas/objeto-padrao.js.map +1 -1
  131. package/fontes/excecoes/erro-em-tempo-de-execucao.js +8 -26
  132. package/fontes/excecoes/erro-em-tempo-de-execucao.js.map +1 -1
  133. package/fontes/importador/importador.js +21 -22
  134. package/fontes/importador/importador.js.map +1 -1
  135. package/fontes/interfaces/parametro-interface.d.ts +1 -1
  136. package/fontes/interpretador/dialetos/egua-classico.js +592 -1019
  137. package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
  138. package/fontes/interpretador/inferenciador.js +1 -1
  139. package/fontes/interpretador/inferenciador.js.map +1 -1
  140. package/fontes/interpretador/interpretador-com-depuracao.js +186 -336
  141. package/fontes/interpretador/interpretador-com-depuracao.js.map +1 -1
  142. package/fontes/interpretador/interpretador.js +706 -1175
  143. package/fontes/interpretador/interpretador.js.map +1 -1
  144. package/fontes/interpretador/pilha-escopos-execucao.js +52 -57
  145. package/fontes/interpretador/pilha-escopos-execucao.js.map +1 -1
  146. package/fontes/lexador/dialetos/lexador-birl.d.ts +1 -0
  147. package/fontes/lexador/dialetos/lexador-birl.js +55 -64
  148. package/fontes/lexador/dialetos/lexador-birl.js.map +1 -1
  149. package/fontes/lexador/dialetos/lexador-egua-classico.js +43 -46
  150. package/fontes/lexador/dialetos/lexador-egua-classico.js.map +1 -1
  151. package/fontes/lexador/dialetos/lexador-eguap.js +59 -63
  152. package/fontes/lexador/dialetos/lexador-eguap.js.map +1 -1
  153. package/fontes/lexador/dialetos/lexador-visualg.js +45 -54
  154. package/fontes/lexador/dialetos/lexador-visualg.js.map +1 -1
  155. package/fontes/lexador/dialetos/palavras-reservadas/birl.js +1 -1
  156. package/fontes/lexador/dialetos/palavras-reservadas/birl.js.map +1 -1
  157. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.js +1 -1
  158. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.js.map +1 -1
  159. package/fontes/lexador/dialetos/palavras-reservadas/visualg.d.ts +24 -0
  160. package/fontes/lexador/dialetos/palavras-reservadas/visualg.js +25 -1
  161. package/fontes/lexador/dialetos/palavras-reservadas/visualg.js.map +1 -1
  162. package/fontes/lexador/lexador-base-linha-unica.js +28 -29
  163. package/fontes/lexador/lexador-base-linha-unica.js.map +1 -1
  164. package/fontes/lexador/lexador.js +53 -57
  165. package/fontes/lexador/lexador.js.map +1 -1
  166. package/fontes/lexador/palavras-reservadas.js +1 -1
  167. package/fontes/lexador/palavras-reservadas.js.map +1 -1
  168. package/fontes/lexador/simbolo.js +5 -6
  169. package/fontes/lexador/simbolo.js.map +1 -1
  170. package/fontes/quebras/index.js +11 -42
  171. package/fontes/quebras/index.js.map +1 -1
  172. package/fontes/resolvedor/dialetos/egua-classico.js +143 -144
  173. package/fontes/resolvedor/dialetos/egua-classico.js.map +1 -1
  174. package/fontes/resolvedor/erro-resolvedor.js +6 -24
  175. package/fontes/resolvedor/erro-resolvedor.js.map +1 -1
  176. package/fontes/resolvedor/pilha-escopos.js +11 -12
  177. package/fontes/resolvedor/pilha-escopos.js.map +1 -1
  178. package/fontes/tipos-de-simbolos/birl.d.ts +1 -0
  179. package/fontes/tipos-de-simbolos/birl.js +1 -0
  180. package/fontes/tipos-de-simbolos/birl.js.map +1 -1
  181. package/fontes/tipos-de-simbolos/comum.d.ts +2 -0
  182. package/fontes/tipos-de-simbolos/comum.js +2 -0
  183. package/fontes/tipos-de-simbolos/comum.js.map +1 -1
  184. package/fontes/tipos-de-simbolos/visualg.d.ts +9 -0
  185. package/fontes/tipos-de-simbolos/visualg.js +9 -0
  186. package/fontes/tipos-de-simbolos/visualg.js.map +1 -1
  187. package/index.d.ts +4 -0
  188. package/index.js +4 -26
  189. package/index.js.map +1 -1
  190. package/jest.config.js +9 -47
  191. package/jest.config.js.map +1 -1
  192. package/package.json +3 -3
  193. package/testes/__mocks__/estatistica.js +1 -1
  194. package/testes/__mocks__/estatistica.js.map +1 -1
  195. package/testes/__mocks__/fisica.js +1 -1
  196. package/testes/__mocks__/fisica.js.map +1 -1
  197. package/testes/__mocks__/matematica.js +1 -1
  198. package/testes/__mocks__/matematica.js.map +1 -1
  199. package/testes/avaliador-sintatico.test.js +27 -27
  200. package/testes/avaliador-sintatico.test.js.map +1 -1
  201. package/testes/biblioteca-global.test.js +197 -440
  202. package/testes/biblioteca-global.test.js.map +1 -1
  203. package/testes/birl/avaliador-sintatico.test.js +8 -8
  204. package/testes/birl/avaliador-sintatico.test.js.map +1 -1
  205. package/testes/birl/lexador.test.js +10 -10
  206. package/testes/birl/lexador.test.js.map +1 -1
  207. package/testes/delegua.test.js +7 -7
  208. package/testes/delegua.test.js.map +1 -1
  209. package/testes/egua-classico/avaliador-sintatico.test.js +14 -14
  210. package/testes/egua-classico/avaliador-sintatico.test.js.map +1 -1
  211. package/testes/egua-classico/delegua.test.js +5 -5
  212. package/testes/egua-classico/delegua.test.js.map +1 -1
  213. package/testes/egua-classico/interpretador.test.js +180 -396
  214. package/testes/egua-classico/interpretador.test.js.map +1 -1
  215. package/testes/egua-classico/lexador.test.js +23 -23
  216. package/testes/egua-classico/lexador.test.js.map +1 -1
  217. package/testes/egua-classico/resolvedor.test.js +12 -12
  218. package/testes/egua-classico/resolvedor.test.js.map +1 -1
  219. package/testes/eguap/avaliador-sintatico.test.js +11 -11
  220. package/testes/eguap/avaliador-sintatico.test.js.map +1 -1
  221. package/testes/eguap/interpretador.test.js +189 -405
  222. package/testes/eguap/interpretador.test.js.map +1 -1
  223. package/testes/eguap/lexador.test.js +18 -18
  224. package/testes/eguap/lexador.test.js.map +1 -1
  225. package/testes/interpretador.test.js +431 -908
  226. package/testes/interpretador.test.js.map +1 -1
  227. package/testes/lexador.test.js +42 -42
  228. package/testes/lexador.test.js.map +1 -1
  229. package/testes/visualg/avaliador-sintatico.test.js +23 -23
  230. package/testes/visualg/avaliador-sintatico.test.js.map +1 -1
  231. package/testes/visualg/interpretador.test.js +16 -61
  232. package/testes/visualg/interpretador.test.js.map +1 -1
  233. package/testes/visualg/lexador.test.js +15 -15
  234. package/testes/visualg/lexador.test.js.map +1 -1
@@ -1,74 +1,16 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.FuncaoDeclaracao = void 0;
55
- var declaracao_1 = require("./declaracao");
56
- var FuncaoDeclaracao = /** @class */ (function (_super) {
57
- __extends(FuncaoDeclaracao, _super);
58
- function FuncaoDeclaracao(simbolo, funcao) {
59
- var _this = _super.call(this, Number(simbolo.linha), simbolo.hashArquivo) || this;
60
- _this.simbolo = simbolo;
61
- _this.funcao = funcao;
62
- return _this;
4
+ const declaracao_1 = require("./declaracao");
5
+ class FuncaoDeclaracao extends declaracao_1.Declaracao {
6
+ constructor(simbolo, funcao) {
7
+ super(Number(simbolo.linha), simbolo.hashArquivo);
8
+ this.simbolo = simbolo;
9
+ this.funcao = funcao;
10
+ }
11
+ async aceitar(visitante) {
12
+ return Promise.resolve(visitante.visitarExpressaoFuncao(this));
63
13
  }
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
- });
70
- };
71
- return FuncaoDeclaracao;
72
- }(declaracao_1.Declaracao));
14
+ }
73
15
  exports.FuncaoDeclaracao = FuncaoDeclaracao;
74
16
  //# sourceMappingURL=funcao.js.map
@@ -1 +1 @@
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
+ {"version":3,"file":"funcao.js","sourceRoot":"","sources":["../../../fontes/declaracoes/funcao.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,gBAAiB,SAAQ,uBAAU;IAI5C,YAAY,OAAyB,EAAE,MAAW;QAC9C,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAClD,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACzB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC,CAAC;IACnE,CAAC;CACJ;AAbD,4CAaC"}
@@ -1,77 +1,16 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.Importar = void 0;
55
- var declaracao_1 = require("./declaracao");
56
- var Importar = /** @class */ (function (_super) {
57
- __extends(Importar, _super);
58
- function Importar(caminho, simboloFechamento) {
59
- var _this = _super.call(this, caminho.linha, caminho.hashArquivo) || this;
60
- _this.caminho = caminho;
61
- _this.simboloFechamento = simboloFechamento;
62
- return _this;
4
+ const declaracao_1 = require("./declaracao");
5
+ class Importar extends declaracao_1.Declaracao {
6
+ constructor(caminho, simboloFechamento) {
7
+ super(caminho.linha, caminho.hashArquivo);
8
+ this.caminho = caminho;
9
+ this.simboloFechamento = simboloFechamento;
10
+ }
11
+ async aceitar(visitante) {
12
+ return await visitante.visitarExpressaoImportar(this);
63
13
  }
64
- Importar.prototype.aceitar = function (visitante) {
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
- });
73
- };
74
- return Importar;
75
- }(declaracao_1.Declaracao));
14
+ }
76
15
  exports.Importar = Importar;
77
16
  //# sourceMappingURL=importar.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"importar.js","sourceRoot":"","sources":["../../../fontes/declaracoes/importar.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAE1C,MAAa,QAAS,SAAQ,uBAAU;IAIpC,YAAY,OAAgB,EAAE,iBAAsB;QAChD,KAAK,CAAC,OAAO,CAAC,KAAK,EAAE,OAAO,CAAC,WAAW,CAAC,CAAC;QAC1C,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,iBAAiB,GAAG,iBAAiB,CAAC;IAC/C,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,MAAM,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACJ;AAbD,4BAaC"}
@@ -1,80 +1,19 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.Leia = void 0;
55
- var declaracao_1 = require("./declaracao");
4
+ const declaracao_1 = require("./declaracao");
56
5
  /**
57
6
  * Declaração que pede a leitura de uma informação da entrada
58
7
  * configurada no início da aplicação.
59
8
  */
60
- var Leia = /** @class */ (function (_super) {
61
- __extends(Leia, _super);
62
- function Leia(linha, hashArquivo, argumentos) {
63
- var _this = _super.call(this, linha, hashArquivo) || this;
64
- _this.argumentos = argumentos;
65
- return _this;
9
+ class Leia extends declaracao_1.Declaracao {
10
+ constructor(linha, hashArquivo, argumentos) {
11
+ super(linha, hashArquivo);
12
+ this.argumentos = argumentos;
13
+ }
14
+ async aceitar(visitante) {
15
+ return await visitante.visitarExpressaoLeia(this);
66
16
  }
67
- Leia.prototype.aceitar = function (visitante) {
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
- });
76
- };
77
- return Leia;
78
- }(declaracao_1.Declaracao));
17
+ }
79
18
  exports.Leia = Leia;
80
19
  //# sourceMappingURL=leia.js.map
@@ -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;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
+ {"version":3,"file":"leia.js","sourceRoot":"","sources":["../../../fontes/declaracoes/leia.ts"],"names":[],"mappings":";;;AAEA,6CAA0C;AAE1C;;;GAGG;AACH,MAAa,IAAK,SAAQ,uBAAU;IAGhC,YAAY,KAAa,EAAE,WAAmB,EAAE,UAAuB;QACnE,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC1B,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;IACjC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,MAAM,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AAXD,oBAWC"}
@@ -1,79 +1,18 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.Para = void 0;
55
- var declaracao_1 = require("./declaracao");
56
- var Para = /** @class */ (function (_super) {
57
- __extends(Para, _super);
58
- function Para(hashArquivo, linha, inicializador, condicao, incrementar, corpo) {
59
- var _this = _super.call(this, linha, hashArquivo) || this;
60
- _this.inicializador = inicializador;
61
- _this.condicao = condicao;
62
- _this.incrementar = incrementar;
63
- _this.corpo = corpo;
64
- return _this;
4
+ const declaracao_1 = require("./declaracao");
5
+ class Para extends declaracao_1.Declaracao {
6
+ constructor(hashArquivo, linha, inicializador, condicao, incrementar, corpo) {
7
+ super(linha, hashArquivo);
8
+ this.inicializador = inicializador;
9
+ this.condicao = condicao;
10
+ this.incrementar = incrementar;
11
+ this.corpo = corpo;
12
+ }
13
+ async aceitar(visitante) {
14
+ return await visitante.visitarExpressaoPara(this);
65
15
  }
66
- Para.prototype.aceitar = function (visitante) {
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
- });
75
- };
76
- return Para;
77
- }(declaracao_1.Declaracao));
16
+ }
78
17
  exports.Para = Para;
79
18
  //# sourceMappingURL=para.js.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"para.js","sourceRoot":"","sources":["../../../fontes/declaracoes/para.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,IAAK,SAAQ,uBAAU;IAMhC,YACI,WAAmB,EACnB,KAAa,EACb,aAAkB,EAClB,QAAa,EACb,WAAgB,EAChB,KAAU;QAEV,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAC1B,IAAI,CAAC,aAAa,GAAG,aAAa,CAAC;QACnC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,WAAW,GAAG,WAAW,CAAC;QAC/B,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,MAAM,SAAS,CAAC,oBAAoB,CAAC,IAAI,CAAC,CAAC;IACtD,CAAC;CACJ;AAxBD,oBAwBC"}
@@ -1,77 +1,16 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.Retorna = void 0;
55
- var declaracao_1 = require("./declaracao");
56
- var Retorna = /** @class */ (function (_super) {
57
- __extends(Retorna, _super);
58
- function Retorna(simboloChave, valor) {
59
- var _this = _super.call(this, Number(simboloChave.linha), simboloChave.hashArquivo) || this;
60
- _this.simboloChave = simboloChave;
61
- _this.valor = valor;
62
- return _this;
4
+ const declaracao_1 = require("./declaracao");
5
+ class Retorna extends declaracao_1.Declaracao {
6
+ constructor(simboloChave, valor) {
7
+ super(Number(simboloChave.linha), simboloChave.hashArquivo);
8
+ this.simboloChave = simboloChave;
9
+ this.valor = valor;
10
+ }
11
+ async aceitar(visitante) {
12
+ return await visitante.visitarExpressaoRetornar(this);
63
13
  }
64
- Retorna.prototype.aceitar = function (visitante) {
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
- });
73
- };
74
- return Retorna;
75
- }(declaracao_1.Declaracao));
14
+ }
76
15
  exports.Retorna = Retorna;
77
16
  //# sourceMappingURL=retorna.js.map
@@ -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;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"}
1
+ {"version":3,"file":"retorna.js","sourceRoot":"","sources":["../../../fontes/declaracoes/retorna.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,OAAQ,SAAQ,uBAAU;IAInC,YAAY,YAA8B,EAAE,KAAU;QAClD,KAAK,CAAC,MAAM,CAAC,YAAY,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,WAAW,CAAC,CAAC;QAC5D,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;IACvB,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,MAAM,SAAS,CAAC,wBAAwB,CAAC,IAAI,CAAC,CAAC;IAC1D,CAAC;CACJ;AAbD,0BAaC"}
@@ -1,79 +1,18 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- 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
- };
53
2
  Object.defineProperty(exports, "__esModule", { value: true });
54
3
  exports.Se = void 0;
55
- var declaracao_1 = require("./declaracao");
56
- var Se = /** @class */ (function (_super) {
57
- __extends(Se, _super);
58
- function Se(condicao, caminhoEntao, caminhosSeSenao, caminhoSenao) {
59
- var _this = _super.call(this, condicao.linha, condicao.hashArquivo) || this;
60
- _this.condicao = condicao;
61
- _this.caminhoEntao = caminhoEntao;
62
- _this.caminhosSeSenao = caminhosSeSenao;
63
- _this.caminhoSenao = caminhoSenao;
64
- return _this;
4
+ const declaracao_1 = require("./declaracao");
5
+ class Se extends declaracao_1.Declaracao {
6
+ constructor(condicao, caminhoEntao, caminhosSeSenao, caminhoSenao) {
7
+ super(condicao.linha, condicao.hashArquivo);
8
+ this.condicao = condicao;
9
+ this.caminhoEntao = caminhoEntao;
10
+ this.caminhosSeSenao = caminhosSeSenao;
11
+ this.caminhoSenao = caminhoSenao;
12
+ }
13
+ async aceitar(visitante) {
14
+ return await visitante.visitarExpressaoSe(this);
65
15
  }
66
- Se.prototype.aceitar = function (visitante) {
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
- });
75
- };
76
- return Se;
77
- }(declaracao_1.Declaracao));
16
+ }
78
17
  exports.Se = Se;
79
18
  //# sourceMappingURL=se.js.map
@@ -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;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"}
1
+ {"version":3,"file":"se.js","sourceRoot":"","sources":["../../../fontes/declaracoes/se.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAE1C,MAAa,EAAG,SAAQ,uBAAU;IAM9B,YACI,QAAa,EACb,YAAiB,EACjB,eAAoB,EACpB,YAAiB;QAEjB,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,QAAQ,CAAC,WAAW,CAAC,CAAC;QAC5C,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;QACjC,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;QACvC,IAAI,CAAC,YAAY,GAAG,YAAY,CAAC;IACrC,CAAC;IAED,KAAK,CAAC,OAAO,CAAC,SAAiC;QAC3C,OAAO,MAAM,SAAS,CAAC,kBAAkB,CAAC,IAAI,CAAC,CAAC;IACpD,CAAC;CACJ;AAtBD,gBAsBC"}