@designliquido/delegua 0.8.0 → 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 (287) hide show
  1. package/bin/package.json +10 -2
  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 +7 -5
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js +16 -1
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  8. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +5 -4
  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 +10 -9
  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/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.d.ts +2 -2
  15. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js +17 -11
  16. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js.map +1 -1
  17. package/fontes/avaliador-sintatico/erro-avaliador-sintatico.d.ts +1 -1
  18. package/fontes/avaliador-sintatico/retornos/index.d.ts +3 -0
  19. package/fontes/avaliador-sintatico/retornos/index.js +20 -0
  20. package/fontes/avaliador-sintatico/retornos/index.js.map +1 -0
  21. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.d.ts +3 -0
  22. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.js +3 -0
  23. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.js.map +1 -0
  24. package/fontes/avaliador-sintatico/retornos/retorno-primario.d.ts +3 -0
  25. package/fontes/avaliador-sintatico/retornos/retorno-primario.js +3 -0
  26. package/fontes/avaliador-sintatico/retornos/retorno-primario.js.map +1 -0
  27. package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.d.ts +2 -0
  28. package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.js +3 -0
  29. package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.js.map +1 -0
  30. package/fontes/bibliotecas/biblioteca-global.d.ts +2 -2
  31. package/fontes/bibliotecas/biblioteca-global.js +363 -134
  32. package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
  33. package/fontes/bibliotecas/importar-biblioteca.d.ts +1 -1
  34. package/fontes/bibliotecas/importar-biblioteca.js +13 -14
  35. package/fontes/bibliotecas/importar-biblioteca.js.map +1 -1
  36. package/fontes/bibliotecas/primitivas-texto.js +13 -7
  37. package/fontes/bibliotecas/primitivas-texto.js.map +1 -1
  38. package/fontes/bibliotecas/primitivas-vetor.js +25 -11
  39. package/fontes/bibliotecas/primitivas-vetor.js.map +1 -1
  40. package/fontes/construtos/acesso-indice-variavel.d.ts +3 -3
  41. package/fontes/construtos/acesso-indice-variavel.js +41 -1
  42. package/fontes/construtos/acesso-indice-variavel.js.map +1 -1
  43. package/fontes/construtos/acesso-metodo.d.ts +3 -3
  44. package/fontes/construtos/acesso-metodo.js +41 -1
  45. package/fontes/construtos/acesso-metodo.js.map +1 -1
  46. package/fontes/construtos/agrupamento.d.ts +3 -3
  47. package/fontes/construtos/agrupamento.js +41 -1
  48. package/fontes/construtos/agrupamento.js.map +1 -1
  49. package/fontes/construtos/atribuicao-sobrescrita.d.ts +3 -2
  50. package/fontes/construtos/atribuicao-sobrescrita.js +41 -1
  51. package/fontes/construtos/atribuicao-sobrescrita.js.map +1 -1
  52. package/fontes/construtos/atribuir.d.ts +3 -3
  53. package/fontes/construtos/atribuir.js +41 -1
  54. package/fontes/construtos/atribuir.js.map +1 -1
  55. package/fontes/construtos/binario.d.ts +3 -3
  56. package/fontes/construtos/binario.js +41 -1
  57. package/fontes/construtos/binario.js.map +1 -1
  58. package/fontes/construtos/chamada.d.ts +3 -3
  59. package/fontes/construtos/chamada.js +41 -1
  60. package/fontes/construtos/chamada.js.map +1 -1
  61. package/fontes/construtos/conjunto.d.ts +3 -2
  62. package/fontes/construtos/conjunto.js +41 -1
  63. package/fontes/construtos/conjunto.js.map +1 -1
  64. package/fontes/construtos/construto.d.ts +1 -1
  65. package/fontes/construtos/dicionario.d.ts +3 -2
  66. package/fontes/construtos/dicionario.js +41 -1
  67. package/fontes/construtos/dicionario.js.map +1 -1
  68. package/fontes/construtos/funcao.d.ts +3 -3
  69. package/fontes/construtos/funcao.js +41 -1
  70. package/fontes/construtos/funcao.js.map +1 -1
  71. package/fontes/construtos/index.d.ts +18 -18
  72. package/fontes/construtos/isto.d.ts +3 -2
  73. package/fontes/construtos/isto.js +41 -1
  74. package/fontes/construtos/isto.js.map +1 -1
  75. package/fontes/construtos/literal.d.ts +4 -3
  76. package/fontes/construtos/literal.js +41 -1
  77. package/fontes/construtos/literal.js.map +1 -1
  78. package/fontes/construtos/logico.d.ts +3 -2
  79. package/fontes/construtos/logico.js +41 -1
  80. package/fontes/construtos/logico.js.map +1 -1
  81. package/fontes/construtos/super.d.ts +2 -2
  82. package/fontes/construtos/super.js +41 -1
  83. package/fontes/construtos/super.js.map +1 -1
  84. package/fontes/construtos/unario.d.ts +3 -2
  85. package/fontes/construtos/unario.js +41 -1
  86. package/fontes/construtos/unario.js.map +1 -1
  87. package/fontes/construtos/variavel.d.ts +3 -3
  88. package/fontes/construtos/variavel.js +41 -1
  89. package/fontes/construtos/variavel.js.map +1 -1
  90. package/fontes/construtos/vetor.d.ts +2 -1
  91. package/fontes/construtos/vetor.js +41 -1
  92. package/fontes/construtos/vetor.js.map +1 -1
  93. package/fontes/declaracoes/bloco.d.ts +3 -3
  94. package/fontes/declaracoes/bloco.js +41 -1
  95. package/fontes/declaracoes/bloco.js.map +1 -1
  96. package/fontes/declaracoes/classe.d.ts +3 -3
  97. package/fontes/declaracoes/classe.js +41 -1
  98. package/fontes/declaracoes/classe.js.map +1 -1
  99. package/fontes/declaracoes/continua.d.ts +3 -3
  100. package/fontes/declaracoes/continua.js +41 -1
  101. package/fontes/declaracoes/continua.js.map +1 -1
  102. package/fontes/declaracoes/declaracao.d.ts +2 -1
  103. package/fontes/declaracoes/declaracao.js +43 -3
  104. package/fontes/declaracoes/declaracao.js.map +1 -1
  105. package/fontes/declaracoes/enquanto.d.ts +4 -3
  106. package/fontes/declaracoes/enquanto.js +41 -1
  107. package/fontes/declaracoes/enquanto.js.map +1 -1
  108. package/fontes/declaracoes/escolha.d.ts +4 -3
  109. package/fontes/declaracoes/escolha.js +41 -1
  110. package/fontes/declaracoes/escolha.js.map +1 -1
  111. package/fontes/declaracoes/escreva.d.ts +1 -1
  112. package/fontes/declaracoes/escreva.js +41 -1
  113. package/fontes/declaracoes/escreva.js.map +1 -1
  114. package/fontes/declaracoes/expressao.d.ts +4 -4
  115. package/fontes/declaracoes/expressao.js +41 -1
  116. package/fontes/declaracoes/expressao.js.map +1 -1
  117. package/fontes/declaracoes/fazer.d.ts +3 -2
  118. package/fontes/declaracoes/fazer.js +41 -1
  119. package/fontes/declaracoes/fazer.js.map +1 -1
  120. package/fontes/declaracoes/funcao.d.ts +3 -3
  121. package/fontes/declaracoes/funcao.js +41 -1
  122. package/fontes/declaracoes/funcao.js.map +1 -1
  123. package/fontes/declaracoes/importar.d.ts +4 -3
  124. package/fontes/declaracoes/importar.js +41 -1
  125. package/fontes/declaracoes/importar.js.map +1 -1
  126. package/fontes/declaracoes/leia.d.ts +4 -4
  127. package/fontes/declaracoes/leia.js +44 -1
  128. package/fontes/declaracoes/leia.js.map +1 -1
  129. package/fontes/declaracoes/para.d.ts +3 -2
  130. package/fontes/declaracoes/para.js +41 -1
  131. package/fontes/declaracoes/para.js.map +1 -1
  132. package/fontes/declaracoes/retorna.d.ts +3 -3
  133. package/fontes/declaracoes/retorna.js +41 -1
  134. package/fontes/declaracoes/retorna.js.map +1 -1
  135. package/fontes/declaracoes/se.d.ts +3 -3
  136. package/fontes/declaracoes/se.js +41 -1
  137. package/fontes/declaracoes/se.js.map +1 -1
  138. package/fontes/declaracoes/sustar.d.ts +3 -3
  139. package/fontes/declaracoes/sustar.js +41 -1
  140. package/fontes/declaracoes/sustar.js.map +1 -1
  141. package/fontes/declaracoes/tente.d.ts +3 -3
  142. package/fontes/declaracoes/tente.js +41 -1
  143. package/fontes/declaracoes/tente.js.map +1 -1
  144. package/fontes/declaracoes/var.d.ts +4 -4
  145. package/fontes/declaracoes/var.js +41 -1
  146. package/fontes/declaracoes/var.js.map +1 -1
  147. package/fontes/delegua.d.ts +4 -4
  148. package/fontes/delegua.js +138 -63
  149. package/fontes/delegua.js.map +1 -1
  150. package/fontes/depuracao/cyrb53.js +6 -3
  151. package/fontes/depuracao/cyrb53.js.map +1 -1
  152. package/fontes/depuracao/servidor-depuracao.d.ts +4 -4
  153. package/fontes/depuracao/servidor-depuracao.js +199 -87
  154. package/fontes/depuracao/servidor-depuracao.js.map +1 -1
  155. package/fontes/espaco-variaveis.d.ts +1 -1
  156. package/fontes/espaco-variaveis.js +0 -1
  157. package/fontes/espaco-variaveis.js.map +1 -1
  158. package/fontes/estruturas/chamavel.js +1 -1
  159. package/fontes/estruturas/classe-padrao.d.ts +1 -1
  160. package/fontes/estruturas/classe-padrao.js.map +1 -1
  161. package/fontes/estruturas/delegua-classe.d.ts +4 -4
  162. package/fontes/estruturas/delegua-classe.js +5 -3
  163. package/fontes/estruturas/delegua-classe.js.map +1 -1
  164. package/fontes/estruturas/funcao-padrao.d.ts +2 -2
  165. package/fontes/estruturas/funcao-padrao.js +47 -3
  166. package/fontes/estruturas/funcao-padrao.js.map +1 -1
  167. package/fontes/estruturas/funcao.d.ts +5 -5
  168. package/fontes/estruturas/funcao.js +75 -24
  169. package/fontes/estruturas/funcao.js.map +1 -1
  170. package/fontes/estruturas/index.d.ts +9 -9
  171. package/fontes/estruturas/metodo-primitiva.d.ts +1 -1
  172. package/fontes/estruturas/modulo.d.ts +1 -1
  173. package/fontes/estruturas/modulo.js +1 -1
  174. package/fontes/estruturas/objeto-delegua-classe.d.ts +2 -2
  175. package/fontes/estruturas/objeto-delegua-classe.js +2 -2
  176. package/fontes/estruturas/objeto-delegua-classe.js.map +1 -1
  177. package/fontes/estruturas/objeto-padrao.js.map +1 -1
  178. package/fontes/excecoes/erro-em-tempo-de-execucao.d.ts +1 -1
  179. package/fontes/excecoes/erro-em-tempo-de-execucao.js.map +1 -1
  180. package/fontes/excecoes/index.d.ts +1 -1
  181. package/fontes/importador/importador.d.ts +1 -1
  182. package/fontes/importador/importador.js +3 -2
  183. package/fontes/importador/importador.js.map +1 -1
  184. package/fontes/importador/retorno-importador.d.ts +2 -2
  185. package/fontes/interfaces/avaliador-sintatico-interface.d.ts +5 -4
  186. package/fontes/interfaces/delegua-interface.d.ts +4 -4
  187. package/fontes/interfaces/escopo-execucao.d.ts +2 -2
  188. package/fontes/interfaces/importador-interface.d.ts +1 -1
  189. package/fontes/interfaces/interpretador-com-depuracao-interface.d.ts +6 -7
  190. package/fontes/interfaces/interpretador-interface.d.ts +6 -5
  191. package/fontes/interfaces/lexador-interface.d.ts +2 -2
  192. package/fontes/interfaces/parametro-interface.d.ts +1 -1
  193. package/fontes/interfaces/pilha-escopos-execucao-interface.d.ts +5 -5
  194. package/fontes/interfaces/resolvedor-interface.d.ts +5 -5
  195. package/fontes/interfaces/retornos/retorno-avaliador-sintatico.d.ts +2 -2
  196. package/fontes/interfaces/retornos/retorno-execucao-interface.d.ts +1 -1
  197. package/fontes/interfaces/retornos/retorno-interpretador.d.ts +1 -1
  198. package/fontes/interfaces/retornos/retorno-lexador.d.ts +3 -3
  199. package/fontes/interfaces/variavel-interface.d.ts +1 -1
  200. package/fontes/interpretador/dialetos/egua-classico.d.ts +31 -30
  201. package/fontes/interpretador/dialetos/egua-classico.js +922 -461
  202. package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
  203. package/fontes/interpretador/dialetos/index.js.map +1 -1
  204. package/fontes/interpretador/erro-interpretador.d.ts +1 -1
  205. package/fontes/interpretador/inferenciador.js.map +1 -1
  206. package/fontes/interpretador/interpretador-com-depuracao.d.ts +6 -6
  207. package/fontes/interpretador/interpretador-com-depuracao.js +280 -153
  208. package/fontes/interpretador/interpretador-com-depuracao.js.map +1 -1
  209. package/fontes/interpretador/interpretador.d.ts +44 -35
  210. package/fontes/interpretador/interpretador.js +1047 -535
  211. package/fontes/interpretador/interpretador.js.map +1 -1
  212. package/fontes/interpretador/pilha-escopos-execucao.js +16 -5
  213. package/fontes/interpretador/pilha-escopos-execucao.js.map +1 -1
  214. package/fontes/lexador/dialetos/index.js.map +1 -1
  215. package/fontes/lexador/dialetos/lexador-birl.d.ts +25 -0
  216. package/fontes/lexador/dialetos/lexador-birl.js +75 -0
  217. package/fontes/lexador/dialetos/lexador-birl.js.map +1 -0
  218. package/fontes/lexador/dialetos/lexador-egua-classico.js +3 -3
  219. package/fontes/lexador/dialetos/lexador-egua-classico.js.map +1 -1
  220. package/fontes/lexador/dialetos/lexador-eguap.d.ts +4 -4
  221. package/fontes/lexador/dialetos/lexador-eguap.js +15 -9
  222. package/fontes/lexador/dialetos/lexador-eguap.js.map +1 -1
  223. package/fontes/lexador/dialetos/lexador-visualg.d.ts +2 -2
  224. package/fontes/lexador/dialetos/lexador-visualg.js +6 -4
  225. package/fontes/lexador/dialetos/lexador-visualg.js.map +1 -1
  226. package/fontes/lexador/dialetos/palavras-reservadas/birl.d.ts +2 -0
  227. package/fontes/lexador/dialetos/palavras-reservadas/birl.js +4 -0
  228. package/fontes/lexador/dialetos/palavras-reservadas/birl.js.map +1 -0
  229. package/fontes/lexador/dialetos/palavras-reservadas/visualg.js +1 -1
  230. package/fontes/lexador/dialetos/palavras-reservadas/visualg.js.map +1 -1
  231. package/fontes/lexador/lexador-base-linha-unica.d.ts +3 -3
  232. package/fontes/lexador/lexador-base-linha-unica.js.map +1 -1
  233. package/fontes/lexador/lexador.js +2 -2
  234. package/fontes/lexador/lexador.js.map +1 -1
  235. package/fontes/lexador/palavras-reservadas.d.ts +22 -21
  236. package/fontes/lexador/palavras-reservadas.js +22 -21
  237. package/fontes/lexador/palavras-reservadas.js.map +1 -1
  238. package/fontes/lexador/simbolo.d.ts +1 -1
  239. package/fontes/lexador/simbolo.js +1 -1
  240. package/fontes/lexador/simbolo.js.map +1 -1
  241. package/fontes/quebras/index.js.map +1 -1
  242. package/fontes/resolvedor/dialetos/egua-classico.d.ts +25 -3
  243. package/fontes/resolvedor/dialetos/egua-classico.js +41 -1
  244. package/fontes/resolvedor/dialetos/egua-classico.js.map +1 -1
  245. package/fontes/resolvedor/dialetos/index.js.map +1 -1
  246. package/fontes/resolvedor/erro-resolvedor.d.ts +1 -1
  247. package/fontes/resolvedor/pilha-escopos.d.ts +1 -1
  248. package/fontes/resolvedor/pilha-escopos.js +2 -2
  249. package/fontes/resolvedor/pilha-escopos.js.map +1 -1
  250. package/fontes/resolvedor/retorno-resolvedor.d.ts +2 -2
  251. package/fontes/tipos-de-simbolos/birl.d.ts +18 -0
  252. package/fontes/tipos-de-simbolos/birl.js +21 -0
  253. package/fontes/tipos-de-simbolos/birl.js.map +1 -0
  254. package/fontes/tipos-de-simbolos/comum.js +15 -15
  255. package/fontes/tipos-de-simbolos/comum.js.map +1 -1
  256. package/fontes/tipos-de-simbolos/delegua.d.ts +2 -1
  257. package/fontes/tipos-de-simbolos/delegua.js +74 -73
  258. package/fontes/tipos-de-simbolos/delegua.js.map +1 -1
  259. package/fontes/tipos-de-simbolos/eguap.d.ts +1 -0
  260. package/fontes/tipos-de-simbolos/eguap.js +70 -69
  261. package/fontes/tipos-de-simbolos/eguap.js.map +1 -1
  262. package/fontes/tipos-de-simbolos/visualg.js +44 -44
  263. package/fontes/tipos-de-simbolos/visualg.js.map +1 -1
  264. package/index.js +1 -1
  265. package/index.js.map +1 -1
  266. package/jest.config.js +2 -2
  267. package/jest.config.js.map +1 -1
  268. package/package.json +10 -2
  269. package/testes/avaliador-sintatico.test.js +5 -5
  270. package/testes/avaliador-sintatico.test.js.map +1 -1
  271. package/testes/biblioteca-global.test.js +424 -181
  272. package/testes/biblioteca-global.test.js.map +1 -1
  273. package/testes/egua-classico/delegua.test.js.map +1 -1
  274. package/testes/egua-classico/interpretador.test.js +379 -163
  275. package/testes/egua-classico/interpretador.test.js.map +1 -1
  276. package/testes/egua-classico/resolvedor.test.js.map +1 -1
  277. package/testes/eguap/avaliador-sintatico.test.js +1 -5
  278. package/testes/eguap/avaliador-sintatico.test.js.map +1 -1
  279. package/testes/eguap/interpretador.test.js +388 -172
  280. package/testes/eguap/interpretador.test.js.map +1 -1
  281. package/testes/eguap/lexador.test.js +1 -1
  282. package/testes/eguap/lexador.test.js.map +1 -1
  283. package/testes/interpretador.test.js +876 -351
  284. package/testes/interpretador.test.js.map +1 -1
  285. package/fontes/tipos/avaliador-sintatico-egua-e-eguap-classico-returno-tipo.d.ts +0 -5
  286. package/fontes/tipos/avaliador-sintatico-egua-e-eguap-classico-returno-tipo.js +0 -3
  287. package/fontes/tipos/avaliador-sintatico-egua-e-eguap-classico-returno-tipo.js.map +0 -1
@@ -60,13 +60,13 @@ var modularizarBiblioteca = function (dadosDoModulo, nome) {
60
60
  var chaves = Object.keys(dadosDoModulo);
61
61
  for (var i = 0; i < chaves.length; i++) {
62
62
  var moduloAtual = dadosDoModulo[chaves[i]];
63
- if (typeof moduloAtual === "function") {
63
+ if (typeof moduloAtual === 'function') {
64
64
  // Por definição, funções tradicionais e classes são identificadas em JavaScript como "functions".
65
65
  // A forma de diferenciar é verificando a propriedade `prototype`.
66
- // Se dentro dessa propriedade temos outras propriedades cujo tipo também seja `function`,
66
+ // Se dentro dessa propriedade temos outras propriedades cujo tipo também seja `function`,
67
67
  // podemos dizer que a "function" é uma classe.
68
68
  // Caso contrário, é uma função (`FuncaoPadrao`).
69
- if (Object.entries(moduloAtual.prototype).some(function (f) { return typeof f[1] === "function"; })) {
69
+ if (Object.entries(moduloAtual.prototype).some(function (f) { return typeof f[1] === 'function'; })) {
70
70
  var classePadrao = new classe_padrao_1.ClassePadrao(chaves[i], moduloAtual);
71
71
  for (var _i = 0, _a = Object.entries(moduloAtual.prototype); _i < _a.length; _i++) {
72
72
  var _b = _a[_i], nome_1 = _b[0], corpoMetodo = _b[1];
@@ -91,25 +91,24 @@ var importarPacoteDeleguaCompleto = function (nome) {
91
91
  };
92
92
  var verificaModulosDelegua = function (nome) {
93
93
  var modulos = {
94
- "estatistica": "@designliquido/delegua-estatistica",
95
- "estatística": "@designliquido/delegua-estatistica",
96
- "fisica": "@designliquido/delegua-fisica",
97
- "física": "@designliquido/delegua-fisica",
98
- "matematica": "@designliquido/delegua-matematica",
99
- "matemática": "@designliquido/delegua-matematica",
100
- "tempo": "@designliquido/delegua-tempo",
94
+ estatistica: '@designliquido/delegua-estatistica',
95
+ estatística: '@designliquido/delegua-estatistica',
96
+ fisica: '@designliquido/delegua-fisica',
97
+ física: '@designliquido/delegua-fisica',
98
+ matematica: '@designliquido/delegua-matematica',
99
+ matemática: '@designliquido/delegua-matematica',
100
+ tempo: '@designliquido/delegua-tempo',
101
101
  };
102
102
  if (Object.keys(modulos).includes(nome)) {
103
103
  return modulos[nome].toString();
104
104
  }
105
- ;
106
105
  return false;
107
106
  };
108
107
  function default_1(nome) {
109
108
  var nomeBibliotecaResolvido = verificaModulosDelegua(nome);
110
- return (nomeBibliotecaResolvido
111
- ? (carregarBibliotecaDelegua(String(nomeBibliotecaResolvido))) : (carregarBiblioteca(nome, nome)));
109
+ return nomeBibliotecaResolvido
110
+ ? carregarBibliotecaDelegua(String(nomeBibliotecaResolvido))
111
+ : carregarBiblioteca(nome, nome);
112
112
  }
113
113
  exports.default = default_1;
114
- ;
115
114
  //# sourceMappingURL=importar-biblioteca.js.map
@@ -1 +1 @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CAAC,MAAM,CAAC,CAAC,CAAS,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,EAC3C,gCAAyB,IAAI,CAAE,CAClC,CAAC,CAAC;AACP,CAAC,CAAC;AAEF,IAAM,sBAAsB,GAAG,UAAC,IAAY;IACxC,IAAM,OAAO,GAAG;QACZ,WAAW,EAAE,oCAAoC;QACjD,WAAW,EAAE,oCAAoC;QACjD,MAAM,EAAE,+BAA+B;QACvC,MAAM,EAAE,+BAA+B;QACvC,UAAU,EAAE,mCAAmC;QAC/C,UAAU,EAAE,mCAAmC;QAC/C,KAAK,EAAE,8BAA8B;KACxC,CAAC;IAEF,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACrC,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,CAAC;KACnC;IAED,OAAO,KAAK,CAAC;AACjB,CAAC,CAAC;AAEF,mBAAyB,IAAY;IACjC,IAAM,uBAAuB,GACzB,sBAAsB,CAAC,IAAI,CAAC,CAAC;IACjC,OAAO,uBAAuB;QAC1B,CAAC,CAAC,yBAAyB,CAAC,MAAM,CAAC,uBAAuB,CAAC,CAAC;QAC5D,CAAC,CAAC,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC;AACzC,CAAC;AAND,4BAMC"}
@@ -10,12 +10,18 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.default = {
13
- 'inclui': function (texto, elemento) { return texto.includes(elemento); },
14
- 'minusculo': function (texto) { return texto.toLowerCase(); },
15
- 'maiusculo': function (texto) { return texto.toUpperCase(); },
16
- "substituir": function (texto, elemento, substituto) { return texto.replace(elemento, substituto); },
17
- "subtexto": function (texto, inicio, fim) { return texto.slice(inicio, fim); },
18
- "fatiar": function (texto, inicio, fim) { return texto.slice(inicio, fim); },
19
- "dividir": function (texto, divisor, limite) { return (__spreadArray([], texto.split(divisor, limite), true)); },
13
+ inclui: function (texto, elemento) { return texto.includes(elemento); },
14
+ minusculo: function (texto) { return texto.toLowerCase(); },
15
+ maiusculo: function (texto) { return texto.toUpperCase(); },
16
+ substituir: function (texto, elemento, substituto) {
17
+ return texto.replace(elemento, substituto);
18
+ },
19
+ subtexto: function (texto, inicio, fim) {
20
+ return texto.slice(inicio, fim);
21
+ },
22
+ fatiar: function (texto, inicio, fim) {
23
+ return texto.slice(inicio, fim);
24
+ },
25
+ dividir: function (texto, divisor, limite) { return __spreadArray([], texto.split(divisor, limite), true); },
20
26
  };
21
27
  //# sourceMappingURL=primitivas-texto.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"primitivas-texto.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-texto.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAC,KAAa,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IACpE,WAAW,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACnD,WAAW,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACnD,YAAY,EAAE,UAAC,KAAa,EAAE,QAAgB,EAAE,UAAkB,IAAK,OAAA,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC,EAAnC,CAAmC;IAC1G,UAAU,EAAE,UAAC,KAAa,EAAE,MAAc,EAAE,GAAW,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,EAAxB,CAAwB;IACpF,QAAQ,EAAE,UAAC,KAAa,EAAE,MAAc,EAAE,GAAW,IAAK,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC,EAAxB,CAAwB;IAClF,SAAS,EAAE,UAAC,KAAa,EAAE,OAAY,EAAE,MAAc,IAAK,OAAA,mBAAK,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,QAAE,EAAnC,CAAmC;CAClG,CAAA"}
1
+ {"version":3,"file":"primitivas-texto.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-texto.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,kBAAe;IACX,MAAM,EAAE,UAAC,KAAa,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IAClE,SAAS,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACjD,SAAS,EAAE,UAAC,KAAa,IAAK,OAAA,KAAK,CAAC,WAAW,EAAE,EAAnB,CAAmB;IACjD,UAAU,EAAE,UAAC,KAAa,EAAE,QAAgB,EAAE,UAAkB;QAC5D,OAAA,KAAK,CAAC,OAAO,CAAC,QAAQ,EAAE,UAAU,CAAC;IAAnC,CAAmC;IACvC,QAAQ,EAAE,UAAC,KAAa,EAAE,MAAc,EAAE,GAAW;QACjD,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC;IAAxB,CAAwB;IAC5B,MAAM,EAAE,UAAC,KAAa,EAAE,MAAc,EAAE,GAAW;QAC/C,OAAA,KAAK,CAAC,KAAK,CAAC,MAAM,EAAE,GAAG,CAAC;IAAxB,CAAwB;IAC5B,OAAO,EAAE,UAAC,KAAa,EAAE,OAAY,EAAE,MAAc,IAAK,yBACnD,KAAK,CAAC,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,SADuB,CAEzD;CACJ,CAAC"}
@@ -1,17 +1,31 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.default = {
4
- 'inclui': function (vetor, elemento) { return vetor.includes(elemento); },
5
- 'juntar': function (vetor, separador) { return vetor.join(separador); },
6
- 'removerUltimo': function (vetor) { vetor.pop(); return vetor; },
7
- 'removerPrimeiro': function (vetor) { vetor.shift(); return vetor; },
8
- 'empilhar': function (vetor, elemento) { vetor.push(elemento); return vetor; },
9
- 'adicionar': function (vetor, elemento) { vetor.push(elemento); return vetor; },
10
- 'inverter': function (vetor) { return vetor.reverse(); },
11
- 'fatiar': function (vetor, inicio, fim) { return vetor.slice(inicio, fim); },
12
- 'ordenar': function (vetor) { return vetor.sort(); },
13
- 'somar': function (vetor) { return vetor.reduce(function (a, b) { return a + b; }); },
14
- 'remover': function (vetor, elemento) {
4
+ inclui: function (vetor, elemento) { return vetor.includes(elemento); },
5
+ juntar: function (vetor, separador) { return vetor.join(separador); },
6
+ removerUltimo: function (vetor) {
7
+ vetor.pop();
8
+ return vetor;
9
+ },
10
+ removerPrimeiro: function (vetor) {
11
+ vetor.shift();
12
+ return vetor;
13
+ },
14
+ empilhar: function (vetor, elemento) {
15
+ vetor.push(elemento);
16
+ return vetor;
17
+ },
18
+ adicionar: function (vetor, elemento) {
19
+ vetor.push(elemento);
20
+ return vetor;
21
+ },
22
+ inverter: function (vetor) { return vetor.reverse(); },
23
+ fatiar: function (vetor, inicio, fim) {
24
+ return vetor.slice(inicio, fim);
25
+ },
26
+ ordenar: function (vetor) { return vetor.sort(); },
27
+ somar: function (vetor) { return vetor.reduce(function (a, b) { return a + b; }); },
28
+ remover: function (vetor, elemento) {
15
29
  var index = vetor.indexOf(elemento);
16
30
  if (index !== -1)
17
31
  vetor.splice(index, 1);
@@ -1 +1 @@
1
- {"version":3,"file":"primitivas-vetor.js","sourceRoot":"","sources":["../../../fontes/bibliotecas/primitivas-vetor.ts"],"names":[],"mappings":";;AAAA,kBAAe;IACX,QAAQ,EAAE,UAAC,KAAiB,EAAE,QAAa,IAAK,OAAA,KAAK,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAxB,CAAwB;IACxE,QAAQ,EAAE,UAAC,KAAiB,EAAE,SAAiB,IAAK,OAAA,KAAK,CAAC,IAAI,CAAC,SAAS,C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QACtC,IAAM,KAAK,GAAG,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;QACtC,IAAI,KAAK,KAAK,CAAC,CAAC;YAAE,KAAK,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;QACzC,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAC"}
@@ -1,5 +1,5 @@
1
- import { InterpretadorInterface, SimboloInterface } from "../interfaces";
2
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface, SimboloInterface } from '../interfaces';
2
+ import { Construto } from './construto';
3
3
  /**
4
4
  * Definido como `Subscript` em Égua Clássico, esse construto serve para acessar índices de
5
5
  * vetores e dicionários.
@@ -11,5 +11,5 @@ export declare class AcessoIndiceVariavel implements Construto {
11
11
  simboloFechamento: SimboloInterface;
12
12
  indice: any;
13
13
  constructor(hashArquivo: number, entidadeChamada: Construto, indice: any, simboloFechamento: SimboloInterface);
14
- aceitar(visitante: InterpretadorInterface): any;
14
+ aceitar(visitante: InterpretadorInterface): Promise<any>;
15
15
  }
@@ -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,8BAAY,WAAmB,EAAE,eAA0B,EAAE,MAAW,EAAE,iBAAmC;QACzG,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,AApBD,IAoBC;AApBY,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"}
@@ -1,5 +1,5 @@
1
- import { InterpretadorInterface, SimboloInterface } from "../interfaces";
2
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface, SimboloInterface } from '../interfaces';
2
+ import { Construto } from './construto';
3
3
  /**
4
4
  * Chamado de `Get` em Égua Clássico, é o construto de acesso a métodos ou membros de
5
5
  * classe.
@@ -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,sBAAY,WAAmB,EAAE,MAAiB,EAAE,OAAyB;QACzE,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,AAlBD,IAkBC;AAlBY,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"}
@@ -1,5 +1,5 @@
1
- import { InterpretadorInterface } from "../interfaces";
2
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface } from '../interfaces';
2
+ import { Construto } from './construto';
3
3
  /**
4
4
  * Um agrupamento é essencialmente uma expressão qualquer dentro de parênteses.
5
5
  * Usado para resolver precedência de operadores. Por exemplo:
@@ -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,4 +1,5 @@
1
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface } from '../interfaces';
2
+ import { Construto } from './construto';
2
3
  export declare class AtribuicaoSobrescrita implements Construto {
3
4
  linha: number;
4
5
  hashArquivo?: 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":";;;AAGA;IAQI,+BAAY,WAAmB,EAAE,KAAa,EAAE,MAAW,EAAE,MAAW,EAAE,KAAU;QAChF,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,AApBD,IAoBC;AApBY,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"}
@@ -1,10 +1,10 @@
1
- import { InterpretadorInterface, SimboloInterface } from "../interfaces";
2
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface, SimboloInterface } from '../interfaces';
2
+ import { Construto } from './construto';
3
3
  export declare class Atribuir implements Construto {
4
4
  linha: number;
5
5
  hashArquivo?: number;
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":";;;AAIA;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"}
@@ -1,5 +1,5 @@
1
- import { InterpretadorInterface } from "../interfaces";
2
- import { Construto } from "./construto";
1
+ import { InterpretadorInterface } from '../interfaces';
2
+ import { Construto } from './construto';
3
3
  /**
4
4
  * Binário é uma estrutura com um operador e dois operandos: esquerda e direita.
5
5
  * Implementa as seguintes operações:
@@ -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
  }());