@designliquido/delegua 0.14.6 → 0.15.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 (346) hide show
  1. package/README.md +85 -85
  2. package/bin/delegua +2 -2
  3. package/bin/package.json +88 -88
  4. package/fontes/avaliador-sintatico/avaliador-sintatico-base.d.ts +67 -67
  5. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js +215 -215
  6. package/fontes/avaliador-sintatico/avaliador-sintatico-base.js.map +1 -1
  7. package/fontes/avaliador-sintatico/avaliador-sintatico.d.ts +92 -92
  8. package/fontes/avaliador-sintatico/avaliador-sintatico.js +857 -727
  9. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  10. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.d.ts +22 -22
  11. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-birl.js +145 -145
  12. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.d.ts +69 -69
  13. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +640 -640
  14. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
  15. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.d.ts +84 -84
  16. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +714 -714
  17. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
  18. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-guarani.d.ts +20 -20
  19. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-guarani.js +149 -149
  20. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-portugol-studio.d.ts +49 -32
  21. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-portugol-studio.js +419 -192
  22. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-portugol-studio.js.map +1 -1
  23. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.d.ts +73 -73
  24. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js +534 -534
  25. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-visualg.js.map +1 -1
  26. package/fontes/avaliador-sintatico/dialetos/index.d.ts +5 -5
  27. package/fontes/avaliador-sintatico/dialetos/index.js +21 -21
  28. package/fontes/avaliador-sintatico/erro-avaliador-sintatico.d.ts +5 -5
  29. package/fontes/avaliador-sintatico/erro-avaliador-sintatico.js +11 -11
  30. package/fontes/avaliador-sintatico/index.d.ts +2 -2
  31. package/fontes/avaliador-sintatico/index.js +18 -18
  32. package/fontes/avaliador-sintatico/retornos/index.d.ts +3 -3
  33. package/fontes/avaliador-sintatico/retornos/index.js +19 -19
  34. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.d.ts +3 -3
  35. package/fontes/avaliador-sintatico/retornos/retorno-declaracao.js +2 -2
  36. package/fontes/avaliador-sintatico/retornos/retorno-primario.d.ts +3 -3
  37. package/fontes/avaliador-sintatico/retornos/retorno-primario.js +2 -2
  38. package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.d.ts +2 -2
  39. package/fontes/avaliador-sintatico/retornos/retorno-resolver-declaracao.js +2 -2
  40. package/fontes/bibliotecas/biblioteca-global.d.ts +3 -3
  41. package/fontes/bibliotecas/biblioteca-global.js +315 -315
  42. package/fontes/bibliotecas/dialetos/egua-classico/biblioteca-global.d.ts +1 -1
  43. package/fontes/bibliotecas/dialetos/egua-classico/biblioteca-global.js +230 -230
  44. package/fontes/bibliotecas/dialetos/egua-classico/index.d.ts +2 -2
  45. package/fontes/bibliotecas/dialetos/egua-classico/index.js +32 -32
  46. package/fontes/bibliotecas/dialetos/egua-classico/matematica.d.ts +1 -1
  47. package/fontes/bibliotecas/dialetos/egua-classico/matematica.js +478 -478
  48. package/fontes/bibliotecas/dialetos/egua-classico/tempo.d.ts +1 -1
  49. package/fontes/bibliotecas/dialetos/egua-classico/tempo.js +39 -39
  50. package/fontes/bibliotecas/dialetos/egua-classico/textos.d.ts +8 -8
  51. package/fontes/bibliotecas/dialetos/egua-classico/textos.js +201 -201
  52. package/fontes/bibliotecas/primitivas-texto.d.ts +11 -11
  53. package/fontes/bibliotecas/primitivas-texto.js +12 -12
  54. package/fontes/bibliotecas/primitivas-vetor.d.ts +15 -15
  55. package/fontes/bibliotecas/primitivas-vetor.js +33 -33
  56. package/fontes/construtos/acesso-indice-variavel.d.ts +15 -15
  57. package/fontes/construtos/acesso-indice-variavel.js +20 -20
  58. package/fontes/construtos/acesso-metodo.d.ts +14 -14
  59. package/fontes/construtos/acesso-metodo.js +19 -19
  60. package/fontes/construtos/agrupamento.d.ts +14 -14
  61. package/fontes/construtos/agrupamento.js +19 -19
  62. package/fontes/construtos/atribuicao-sobrescrita.d.ts +11 -11
  63. package/fontes/construtos/atribuicao-sobrescrita.js +16 -16
  64. package/fontes/construtos/atribuir.d.ts +10 -10
  65. package/fontes/construtos/atribuir.js +15 -15
  66. package/fontes/construtos/binario.d.ts +22 -22
  67. package/fontes/construtos/binario.js +27 -27
  68. package/fontes/construtos/chamada.d.ts +13 -13
  69. package/fontes/construtos/chamada.js +36 -36
  70. package/fontes/construtos/construto.d.ts +7 -7
  71. package/fontes/construtos/construto.js +2 -2
  72. package/fontes/construtos/definir-valor.d.ts +11 -11
  73. package/fontes/construtos/definir-valor.js +16 -16
  74. package/fontes/construtos/dicionario.d.ts +10 -10
  75. package/fontes/construtos/dicionario.js +15 -15
  76. package/fontes/construtos/formatacao-escrita.d.ts +16 -16
  77. package/fontes/construtos/formatacao-escrita.js +21 -21
  78. package/fontes/construtos/funcao.d.ts +10 -10
  79. package/fontes/construtos/funcao.js +15 -15
  80. package/fontes/construtos/index.d.ts +19 -19
  81. package/fontes/construtos/index.js +35 -35
  82. package/fontes/construtos/isto.d.ts +9 -9
  83. package/fontes/construtos/isto.js +14 -14
  84. package/fontes/construtos/literal.d.ts +10 -10
  85. package/fontes/construtos/literal.js +14 -14
  86. package/fontes/construtos/logico.d.ts +11 -11
  87. package/fontes/construtos/logico.js +16 -16
  88. package/fontes/construtos/super.d.ts +10 -10
  89. package/fontes/construtos/super.js +15 -15
  90. package/fontes/construtos/unario.d.ts +11 -10
  91. package/fontes/construtos/unario.js +16 -15
  92. package/fontes/construtos/unario.js.map +1 -1
  93. package/fontes/construtos/variavel.d.ts +9 -9
  94. package/fontes/construtos/variavel.js +14 -14
  95. package/fontes/construtos/vetor.d.ts +9 -9
  96. package/fontes/construtos/vetor.js +14 -14
  97. package/fontes/declaracoes/bloco.d.ts +7 -7
  98. package/fontes/declaracoes/bloco.js +14 -14
  99. package/fontes/declaracoes/classe.d.ts +9 -9
  100. package/fontes/declaracoes/classe.js +16 -16
  101. package/fontes/declaracoes/continua.d.ts +6 -6
  102. package/fontes/declaracoes/continua.js +13 -13
  103. package/fontes/declaracoes/declaracao.d.ts +8 -8
  104. package/fontes/declaracoes/declaracao.js +17 -17
  105. package/fontes/declaracoes/enquanto.d.ts +9 -9
  106. package/fontes/declaracoes/enquanto.js +15 -15
  107. package/fontes/declaracoes/escolha.d.ts +14 -14
  108. package/fontes/declaracoes/escolha.js +19 -19
  109. package/fontes/declaracoes/escreva-mesma-linha.d.ts +8 -8
  110. package/fontes/declaracoes/escreva-mesma-linha.js +14 -14
  111. package/fontes/declaracoes/escreva.d.ts +8 -8
  112. package/fontes/declaracoes/escreva.js +14 -14
  113. package/fontes/declaracoes/expressao.d.ts +8 -8
  114. package/fontes/declaracoes/expressao.js +14 -14
  115. package/fontes/declaracoes/fazer.d.ts +8 -8
  116. package/fontes/declaracoes/fazer.js +15 -15
  117. package/fontes/declaracoes/funcao.d.ts +9 -9
  118. package/fontes/declaracoes/funcao.js +15 -15
  119. package/fontes/declaracoes/importar.d.ts +9 -9
  120. package/fontes/declaracoes/importar.js +15 -15
  121. package/fontes/declaracoes/index.d.ts +19 -19
  122. package/fontes/declaracoes/index.js +35 -35
  123. package/fontes/declaracoes/leia.d.ts +12 -12
  124. package/fontes/declaracoes/leia.js +18 -18
  125. package/fontes/declaracoes/para.d.ts +10 -10
  126. package/fontes/declaracoes/para.js +17 -17
  127. package/fontes/declaracoes/retorna.d.ts +8 -8
  128. package/fontes/declaracoes/retorna.js +15 -15
  129. package/fontes/declaracoes/se.d.ts +11 -11
  130. package/fontes/declaracoes/se.js +17 -17
  131. package/fontes/declaracoes/sustar.d.ts +6 -6
  132. package/fontes/declaracoes/sustar.js +13 -13
  133. package/fontes/declaracoes/tente.d.ts +14 -14
  134. package/fontes/declaracoes/tente.js +20 -20
  135. package/fontes/declaracoes/var.d.ts +9 -9
  136. package/fontes/declaracoes/var.js +15 -15
  137. package/fontes/depuracao/cyrb53.d.ts +9 -9
  138. package/fontes/depuracao/cyrb53.js +22 -22
  139. package/fontes/depuracao/index.d.ts +2 -2
  140. package/fontes/depuracao/index.js +23 -23
  141. package/fontes/depuracao/ponto-parada.d.ts +4 -4
  142. package/fontes/depuracao/ponto-parada.js +2 -2
  143. package/fontes/espaco-variaveis.d.ts +19 -19
  144. package/fontes/espaco-variaveis.js +19 -19
  145. package/fontes/estruturas/chamavel.d.ts +5 -5
  146. package/fontes/estruturas/chamavel.js +12 -12
  147. package/fontes/estruturas/classe-padrao.d.ts +17 -17
  148. package/fontes/estruturas/classe-padrao.js +28 -28
  149. package/fontes/estruturas/delegua-classe.d.ts +16 -16
  150. package/fontes/estruturas/delegua-classe.js +38 -38
  151. package/fontes/estruturas/delegua-funcao.d.ts +18 -18
  152. package/fontes/estruturas/delegua-funcao.js +60 -60
  153. package/fontes/estruturas/funcao-padrao.d.ts +12 -12
  154. package/fontes/estruturas/funcao-padrao.js +22 -22
  155. package/fontes/estruturas/index.d.ts +9 -9
  156. package/fontes/estruturas/index.js +25 -25
  157. package/fontes/estruturas/metodo-primitiva.d.ts +17 -17
  158. package/fontes/estruturas/metodo-primitiva.js +26 -26
  159. package/fontes/estruturas/modulo.d.ts +9 -9
  160. package/fontes/estruturas/modulo.js +13 -13
  161. package/fontes/estruturas/objeto-delegua-classe.d.ts +10 -10
  162. package/fontes/estruturas/objeto-delegua-classe.js +26 -26
  163. package/fontes/estruturas/objeto-padrao.d.ts +9 -9
  164. package/fontes/estruturas/objeto-padrao.js +21 -21
  165. package/fontes/excecoes/erro-em-tempo-de-execucao.d.ts +7 -7
  166. package/fontes/excecoes/erro-em-tempo-de-execucao.js +13 -13
  167. package/fontes/excecoes/index.d.ts +1 -1
  168. package/fontes/excecoes/index.js +17 -17
  169. package/fontes/formatadores/delegua.d.ts +18 -11
  170. package/fontes/formatadores/delegua.js +82 -99
  171. package/fontes/formatadores/delegua.js.map +1 -1
  172. package/fontes/formatadores/index.d.ts +1 -1
  173. package/fontes/formatadores/index.js +17 -17
  174. package/fontes/interfaces/avaliador-sintatico-interface.d.ts +57 -57
  175. package/fontes/interfaces/avaliador-sintatico-interface.js +2 -2
  176. package/fontes/interfaces/construtos/index.d.ts +4 -4
  177. package/fontes/interfaces/construtos/index.js +2 -2
  178. package/fontes/interfaces/escopo-execucao.d.ts +11 -11
  179. package/fontes/interfaces/escopo-execucao.js +2 -2
  180. package/fontes/interfaces/index.d.ts +11 -11
  181. package/fontes/interfaces/index.js +27 -27
  182. package/fontes/interfaces/interpretador-com-depuracao-interface.d.ts +17 -17
  183. package/fontes/interfaces/interpretador-com-depuracao-interface.js +2 -2
  184. package/fontes/interfaces/interpretador-interface.d.ts +55 -55
  185. package/fontes/interfaces/interpretador-interface.js +2 -2
  186. package/fontes/interfaces/lexador-interface.d.ts +23 -23
  187. package/fontes/interfaces/lexador-interface.js +2 -2
  188. package/fontes/interfaces/parametro-interface.d.ts +6 -6
  189. package/fontes/interfaces/parametro-interface.js +2 -2
  190. package/fontes/interfaces/pilha-escopos-execucao-interface.d.ts +25 -25
  191. package/fontes/interfaces/pilha-escopos-execucao-interface.js +2 -2
  192. package/fontes/interfaces/pilha-interface.d.ts +7 -7
  193. package/fontes/interfaces/pilha-interface.js +2 -2
  194. package/fontes/interfaces/resolvedor-interface.d.ts +41 -41
  195. package/fontes/interfaces/resolvedor-interface.js +2 -2
  196. package/fontes/interfaces/retornos/index.d.ts +4 -4
  197. package/fontes/interfaces/retornos/index.js +20 -20
  198. package/fontes/interfaces/retornos/retorno-avaliador-sintatico.d.ts +6 -6
  199. package/fontes/interfaces/retornos/retorno-avaliador-sintatico.js +2 -2
  200. package/fontes/interfaces/retornos/retorno-execucao-interface.d.ts +5 -5
  201. package/fontes/interfaces/retornos/retorno-execucao-interface.js +2 -2
  202. package/fontes/interfaces/retornos/retorno-interpretador.d.ts +5 -5
  203. package/fontes/interfaces/retornos/retorno-interpretador.js +2 -2
  204. package/fontes/interfaces/retornos/retorno-lexador.d.ts +10 -10
  205. package/fontes/interfaces/retornos/retorno-lexador.js +2 -2
  206. package/fontes/interfaces/simbolo-interface.d.ts +7 -7
  207. package/fontes/interfaces/simbolo-interface.js +2 -2
  208. package/fontes/interfaces/tradutor-interface.d.ts +4 -4
  209. package/fontes/interfaces/tradutor-interface.js +2 -2
  210. package/fontes/interfaces/variavel-interface.d.ts +4 -4
  211. package/fontes/interfaces/variavel-interface.js +2 -2
  212. package/fontes/interpretador/dialetos/egua-classico/index.d.ts +1 -1
  213. package/fontes/interpretador/dialetos/egua-classico/index.js +17 -17
  214. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.d.ts +99 -99
  215. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.js +743 -743
  216. package/fontes/interpretador/dialetos/egua-classico/interpretador-egua-classico.js.map +1 -1
  217. package/fontes/interpretador/dialetos/egua-classico/resolvedor/erro-resolvedor.d.ts +5 -5
  218. package/fontes/interpretador/dialetos/egua-classico/resolvedor/erro-resolvedor.js +11 -11
  219. package/fontes/interpretador/dialetos/egua-classico/resolvedor/index.d.ts +3 -3
  220. package/fontes/interpretador/dialetos/egua-classico/resolvedor/index.js +19 -19
  221. package/fontes/interpretador/dialetos/egua-classico/resolvedor/pilha-escopos.d.ts +9 -9
  222. package/fontes/interpretador/dialetos/egua-classico/resolvedor/pilha-escopos.js +25 -25
  223. package/fontes/interpretador/dialetos/egua-classico/resolvedor/resolvedor.d.ts +87 -87
  224. package/fontes/interpretador/dialetos/egua-classico/resolvedor/resolvedor.js +387 -387
  225. package/fontes/interpretador/dialetos/egua-classico/resolvedor/retorno-resolvedor.d.ts +6 -6
  226. package/fontes/interpretador/dialetos/egua-classico/resolvedor/retorno-resolvedor.js +2 -2
  227. package/fontes/interpretador/dialetos/index.d.ts +4 -4
  228. package/fontes/interpretador/dialetos/index.js +20 -20
  229. package/fontes/interpretador/dialetos/portugol-studio/interpretador-portugol-studio.d.ts +12 -12
  230. package/fontes/interpretador/dialetos/portugol-studio/interpretador-portugol-studio.js +26 -26
  231. package/fontes/interpretador/dialetos/visualg/interpretador-visualg-com-depuracao.d.ts +40 -40
  232. package/fontes/interpretador/dialetos/visualg/interpretador-visualg-com-depuracao.js +96 -96
  233. package/fontes/interpretador/dialetos/visualg/interpretador-visualg.d.ts +46 -46
  234. package/fontes/interpretador/dialetos/visualg/interpretador-visualg.js +102 -102
  235. package/fontes/interpretador/erro-interpretador.d.ts +8 -8
  236. package/fontes/interpretador/erro-interpretador.js +2 -2
  237. package/fontes/interpretador/index.d.ts +4 -4
  238. package/fontes/interpretador/index.js +20 -20
  239. package/fontes/interpretador/inferenciador.d.ts +1 -1
  240. package/fontes/interpretador/inferenciador.js +31 -31
  241. package/fontes/interpretador/interpretador-base.d.ts +187 -187
  242. package/fontes/interpretador/interpretador-base.js +998 -972
  243. package/fontes/interpretador/interpretador-base.js.map +1 -1
  244. package/fontes/interpretador/interpretador-com-depuracao.d.ts +199 -199
  245. package/fontes/interpretador/interpretador-com-depuracao.js +516 -516
  246. package/fontes/interpretador/pilha-escopos-execucao.d.ts +38 -38
  247. package/fontes/interpretador/pilha-escopos-execucao.js +158 -158
  248. package/fontes/lexador/dialetos/index.d.ts +6 -6
  249. package/fontes/lexador/dialetos/index.js +22 -22
  250. package/fontes/lexador/dialetos/lexador-birl.d.ts +12 -12
  251. package/fontes/lexador/dialetos/lexador-birl.js +165 -165
  252. package/fontes/lexador/dialetos/lexador-egua-classico.d.ts +36 -36
  253. package/fontes/lexador/dialetos/lexador-egua-classico.js +286 -286
  254. package/fontes/lexador/dialetos/lexador-eguap.d.ts +51 -51
  255. package/fontes/lexador/dialetos/lexador-eguap.js +398 -398
  256. package/fontes/lexador/dialetos/lexador-guarani.d.ts +9 -9
  257. package/fontes/lexador/dialetos/lexador-guarani.js +113 -113
  258. package/fontes/lexador/dialetos/lexador-portugol-ipt.d.ts +33 -33
  259. package/fontes/lexador/dialetos/lexador-portugol-ipt.js +195 -195
  260. package/fontes/lexador/dialetos/lexador-portugol-studio.d.ts +21 -15
  261. package/fontes/lexador/dialetos/lexador-portugol-studio.js +280 -242
  262. package/fontes/lexador/dialetos/lexador-portugol-studio.js.map +1 -1
  263. package/fontes/lexador/dialetos/lexador-visualg.d.ts +18 -18
  264. package/fontes/lexador/dialetos/lexador-visualg.js +218 -218
  265. package/fontes/lexador/dialetos/palavras-reservadas/birl.d.ts +41 -41
  266. package/fontes/lexador/dialetos/palavras-reservadas/birl.js +58 -58
  267. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.d.ts +36 -36
  268. package/fontes/lexador/dialetos/palavras-reservadas/egua-classico.js +41 -41
  269. package/fontes/lexador/dialetos/palavras-reservadas/guarani.d.ts +4 -4
  270. package/fontes/lexador/dialetos/palavras-reservadas/guarani.js +9 -9
  271. package/fontes/lexador/dialetos/palavras-reservadas/index.d.ts +3 -3
  272. package/fontes/lexador/dialetos/palavras-reservadas/index.js +19 -19
  273. package/fontes/lexador/dialetos/palavras-reservadas/portugol-ipt.d.ts +6 -6
  274. package/fontes/lexador/dialetos/palavras-reservadas/portugol-ipt.js +11 -11
  275. package/fontes/lexador/dialetos/palavras-reservadas/portugol-studio.d.ts +23 -8
  276. package/fontes/lexador/dialetos/palavras-reservadas/portugol-studio.js +28 -13
  277. package/fontes/lexador/dialetos/palavras-reservadas/portugol-studio.js.map +1 -1
  278. package/fontes/lexador/dialetos/palavras-reservadas/rantiaquin.d.ts +2 -2
  279. package/fontes/lexador/dialetos/palavras-reservadas/rantiaquin.js +3 -3
  280. package/fontes/lexador/dialetos/palavras-reservadas/visualg.d.ts +60 -60
  281. package/fontes/lexador/dialetos/palavras-reservadas/visualg.js +65 -65
  282. package/fontes/lexador/dialetos/pragma.d.ts +8 -8
  283. package/fontes/lexador/dialetos/pragma.js +2 -2
  284. package/fontes/lexador/erro-lexador.d.ts +5 -5
  285. package/fontes/lexador/erro-lexador.js +2 -2
  286. package/fontes/lexador/index.d.ts +2 -2
  287. package/fontes/lexador/index.js +18 -18
  288. package/fontes/lexador/lexador-base-linha-unica.d.ts +28 -28
  289. package/fontes/lexador/lexador-base-linha-unica.js +82 -82
  290. package/fontes/lexador/lexador-base.d.ts +41 -41
  291. package/fontes/lexador/lexador-base.js +112 -112
  292. package/fontes/lexador/lexador-base.js.map +1 -1
  293. package/fontes/lexador/lexador.d.ts +43 -43
  294. package/fontes/lexador/lexador.js +412 -408
  295. package/fontes/lexador/lexador.js.map +1 -1
  296. package/fontes/lexador/palavras-reservadas.d.ts +36 -36
  297. package/fontes/lexador/palavras-reservadas.js +41 -41
  298. package/fontes/lexador/simbolo.d.ts +10 -10
  299. package/fontes/lexador/simbolo.js +16 -16
  300. package/fontes/quebras/index.d.ts +10 -10
  301. package/fontes/quebras/index.js +19 -19
  302. package/fontes/tipos-de-simbolos/birl.d.ts +57 -57
  303. package/fontes/tipos-de-simbolos/birl.js +61 -61
  304. package/fontes/tipos-de-simbolos/comum.d.ts +22 -22
  305. package/fontes/tipos-de-simbolos/comum.js +23 -23
  306. package/fontes/tipos-de-simbolos/delegua.d.ts +80 -80
  307. package/fontes/tipos-de-simbolos/delegua.js +81 -81
  308. package/fontes/tipos-de-simbolos/egua-classico.d.ts +77 -77
  309. package/fontes/tipos-de-simbolos/egua-classico.js +78 -78
  310. package/fontes/tipos-de-simbolos/eguap.d.ts +73 -73
  311. package/fontes/tipos-de-simbolos/eguap.js +74 -74
  312. package/fontes/tipos-de-simbolos/guarani.d.ts +14 -14
  313. package/fontes/tipos-de-simbolos/guarani.js +15 -15
  314. package/fontes/tipos-de-simbolos/portugol-ipt.d.ts +28 -28
  315. package/fontes/tipos-de-simbolos/portugol-ipt.js +29 -29
  316. package/fontes/tipos-de-simbolos/portugol-studio.d.ts +53 -35
  317. package/fontes/tipos-de-simbolos/portugol-studio.js +54 -36
  318. package/fontes/tipos-de-simbolos/portugol-studio.js.map +1 -1
  319. package/fontes/tipos-de-simbolos/rantiaquin.d.ts +2 -2
  320. package/fontes/tipos-de-simbolos/rantiaquin.js +3 -3
  321. package/fontes/tipos-de-simbolos/visualg.d.ts +68 -68
  322. package/fontes/tipos-de-simbolos/visualg.js +69 -69
  323. package/fontes/tradutores/dicionarios/dicionario-delegua-javascript.d.ts +2 -2
  324. package/fontes/tradutores/dicionarios/dicionario-delegua-javascript.js +10 -10
  325. package/fontes/tradutores/dicionarios/index.d.ts +1 -1
  326. package/fontes/tradutores/dicionarios/index.js +17 -17
  327. package/fontes/tradutores/index.d.ts +2 -2
  328. package/fontes/tradutores/index.js +18 -18
  329. package/fontes/tradutores/python/python3-lexer.d.ts +152 -152
  330. package/fontes/tradutores/python/python3-lexer.js +1226 -1226
  331. package/fontes/tradutores/python/python3-listener.d.ts +953 -953
  332. package/fontes/tradutores/python/python3-listener.js +2 -2
  333. package/fontes/tradutores/python/python3-parser.d.ts +1330 -1330
  334. package/fontes/tradutores/python/python3-parser.js +11156 -11156
  335. package/fontes/tradutores/python/python3-visitor.d.ts +612 -612
  336. package/fontes/tradutores/python/python3-visitor.js +2 -2
  337. package/fontes/tradutores/tradutor-javascript.d.ts +83 -83
  338. package/fontes/tradutores/tradutor-javascript.js +470 -470
  339. package/fontes/tradutores/tradutor-javascript.js.map +1 -1
  340. package/fontes/tradutores/tradutor-python.d.ts +1 -1
  341. package/fontes/tradutores/tradutor-python.js +34 -34
  342. package/fontes/tradutores/tradutor-reverso-javascript.d.ts +47 -47
  343. package/fontes/tradutores/tradutor-reverso-javascript.js +342 -342
  344. package/index.d.ts +5 -5
  345. package/index.js +23 -23
  346. package/package.json +88 -88
@@ -1 +1 @@
1
- export {};
1
+ export {};
@@ -1,40 +1,40 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- const excecoes_1 = require("../../../excecoes");
4
- // Retorna uma data completa
5
- module.exports.tempo = function () {
6
- return new Date();
7
- };
8
- // Retorna os segundos atuais do sistema
9
- module.exports.segundos = function () {
10
- return new Date().getSeconds();
11
- };
12
- // Retorna os minutos atuais do sistema
13
- module.exports.minutos = function () {
14
- return new Date().getMinutes();
15
- };
16
- // Retorna a hora atual do sistema
17
- module.exports.horas = function () {
18
- return new Date().getHours();
19
- };
20
- /**
21
- * Retorna uma instância de Date do JavaScript da data passada por parâmetro, no formato DD/MM/AAAA.
22
- * @param {string} dataComoTexto A data a ser convertida como texto, no formato DD/MM/AAAA.
23
- * @returns A data como um objeto Date to JavaScript.
24
- */
25
- module.exports.textoParaData = function (dataComoTexto) {
26
- const regex = /^(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d$/;
27
- if (typeof dataComoTexto !== 'string' || !regex.test(dataComoTexto)) {
28
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, "O parâmetro passado deve ser um texto com a data no formato DD/MM/AAAA. Ex: '01/01/2014'");
29
- }
30
- const date = new Date(converterDataPtParaIso(dataComoTexto));
31
- const timezoneOffset = date.getTimezoneOffset();
32
- return new Date(date.getTime() + timezoneOffset * 60 * 1000);
33
- };
34
- function converterDataPtParaIso(date) {
35
- const day = date.split('/')[0];
36
- const month = date.split('/')[1];
37
- const year = date.split('/')[2];
38
- return `${year}-${month}-${day}`;
39
- }
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const excecoes_1 = require("../../../excecoes");
4
+ // Retorna uma data completa
5
+ module.exports.tempo = function () {
6
+ return new Date();
7
+ };
8
+ // Retorna os segundos atuais do sistema
9
+ module.exports.segundos = function () {
10
+ return new Date().getSeconds();
11
+ };
12
+ // Retorna os minutos atuais do sistema
13
+ module.exports.minutos = function () {
14
+ return new Date().getMinutes();
15
+ };
16
+ // Retorna a hora atual do sistema
17
+ module.exports.horas = function () {
18
+ return new Date().getHours();
19
+ };
20
+ /**
21
+ * Retorna uma instância de Date do JavaScript da data passada por parâmetro, no formato DD/MM/AAAA.
22
+ * @param {string} dataComoTexto A data a ser convertida como texto, no formato DD/MM/AAAA.
23
+ * @returns A data como um objeto Date to JavaScript.
24
+ */
25
+ module.exports.textoParaData = function (dataComoTexto) {
26
+ const regex = /^(0[1-9]|[12][0-9]|3[01])[/](0[1-9]|1[012])[/](19|20)\d\d$/;
27
+ if (typeof dataComoTexto !== 'string' || !regex.test(dataComoTexto)) {
28
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, "O parâmetro passado deve ser um texto com a data no formato DD/MM/AAAA. Ex: '01/01/2014'");
29
+ }
30
+ const date = new Date(converterDataPtParaIso(dataComoTexto));
31
+ const timezoneOffset = date.getTimezoneOffset();
32
+ return new Date(date.getTime() + timezoneOffset * 60 * 1000);
33
+ };
34
+ function converterDataPtParaIso(date) {
35
+ const day = date.split('/')[0];
36
+ const month = date.split('/')[1];
37
+ const year = date.split('/')[2];
38
+ return `${year}-${month}-${day}`;
39
+ }
40
40
  //# sourceMappingURL=tempo.js.map
@@ -1,8 +1,8 @@
1
- /**
2
- * Biblioteca padrão para a manipulação de textos.
3
- *
4
- * Contém as principais funções para lidar com textos.
5
- *
6
- * @author André G.
7
- */
8
- export {};
1
+ /**
2
+ * Biblioteca padrão para a manipulação de textos.
3
+ *
4
+ * Contém as principais funções para lidar com textos.
5
+ *
6
+ * @author André G.
7
+ */
8
+ export {};
@@ -1,202 +1,202 @@
1
- "use strict";
2
- /**
3
- * Biblioteca padrão para a manipulação de textos.
4
- *
5
- * Contém as principais funções para lidar com textos.
6
- *
7
- * @author André G.
8
- */
9
- Object.defineProperty(exports, "__esModule", { value: true });
10
- const excecoes_1 = require("../../../excecoes");
11
- // Constantes úteis
12
- /**
13
- * Conjunto de todas as letraas minúsculas
14
- */
15
- module.exports.letras_minusculas = 'abcdefghijklmnopqrstuvwxyz';
16
- /**
17
- * Conjunto de todas as letraas maiúsculas
18
- */
19
- module.exports.letras_maiusculas = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
20
- /**
21
- * Conjunto de todas as letraas
22
- */
23
- module.exports.letras = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
24
- /**
25
- * Conjunto de todas os dígitos
26
- */
27
- module.exports.digitos = '0123456789';
28
- /**
29
- * Conjuto de pontuções
30
- */
31
- module.exports.pontuacoes = '!"' + "#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
32
- // Funções de Manipulação de textos.
33
- /**
34
- * Converte otexto passado para maiúsculo.
35
- *
36
- * @param {string} texto o texto a ser convertido.
37
- * @return {string} a string convertida.
38
- */
39
- module.exports.maiusculo = function (texto) {
40
- if (typeof texto !== 'string') {
41
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
42
- }
43
- return texto.toUpperCase();
44
- };
45
- /**
46
- * Converte o texto passado para minúsculo.
47
- *
48
- * @param {string} texto o texto a ser convertido.
49
- * @return {string} a string convertida.
50
- */
51
- module.exports.minusculo = function (texto) {
52
- if (typeof texto !== 'string') {
53
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
54
- }
55
- return texto.toLowerCase();
56
- };
57
- /**
58
- * Verifica se um texto possui um subtexto.
59
- *
60
- * @param {string} texto o texto a ser checado.
61
- * @param {string} subtexto o subtexto a ser proucurado.
62
- * @return {boolean} verdadeiro se o texto possui o subtexto falso caso contrário.
63
- */
64
- module.exports.contem = function (texto, subtexto) {
65
- if (typeof texto !== 'string') {
66
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
67
- }
68
- if (typeof subtexto !== 'string') {
69
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O segundo parâmetro também deve ser um texto');
70
- }
71
- return texto.includes(subtexto);
72
- };
73
- /**
74
- * Posiciona os argumentos fornecidos no texto.
75
- *
76
- * Note que: o texto precisa estar na forma `"Meu texto {}"`
77
- * onde o `{}` será substituído pelo primeiro argumento da função.
78
- *
79
- * Ex.: `textos.formate("Texto {} {} ", "número", 1)` -> `"Texto número 1"`.
80
- *
81
- * @param {string} texto o texto a ser formatado.
82
- * @param {any[]} argumentos vetor de argumentos a serem posicionados.
83
- * @return {string} o texto formatado.
84
- */
85
- module.exports.formate = function (texto, ...argumentos) {
86
- if (typeof texto !== 'string') {
87
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
88
- }
89
- for (let i = 0; i < argumentos.length; i++) {
90
- let value = argumentos[i];
91
- if (typeof value === 'boolean') {
92
- value = value ? 'verdadeiro' : 'falso';
93
- }
94
- if (value === null) {
95
- value = 'nulo';
96
- }
97
- if (typeof value === 'object') {
98
- value = '<dicionário>';
99
- }
100
- texto = texto.replace('{}', value);
101
- }
102
- return texto;
103
- };
104
- /**
105
- * Divide o texto passado no em um vetor de subtextos.
106
- *
107
- * @param {string} texto o texto a ser dividido.
108
- * @param {string} separador o texto usado para a divisão.
109
- * @param {number} limite um inteiro que limita o número de divisões.
110
- *
111
- * @returns {string[]} um vetor contendo os textos divididos.
112
- */
113
- module.exports.dividir = function (texto, separador = '', limite = Number.MAX_SAFE_INTEGER) {
114
- if (typeof texto !== 'string') {
115
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
116
- }
117
- if (typeof separador !== 'string') {
118
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O separador passado deve ser um texto');
119
- }
120
- if (typeof limite !== 'number') {
121
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O limite passado deve ser um número');
122
- }
123
- return texto.split(separador, limite);
124
- };
125
- /**
126
- * Retorna o tamanho de um texto.
127
- *
128
- * @param {string} texto o texto para obter o tamanho.
129
- * @return {number} o tamanho do texto.
130
- */
131
- module.exports.tamanho = function (texto) {
132
- if (typeof texto !== 'string') {
133
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
134
- }
135
- return texto.length;
136
- };
137
- /**
138
- * Repete um texto fornecido.
139
- *
140
- * @param {string} texto o texto para obter o tamanho.
141
- * @param {number} contador o número de cópias.
142
- * @return {string} um texto com o número de cópias do texto fornecido.
143
- */
144
- module.exports.repita = function (texto, contador = 0) {
145
- if (typeof texto !== 'string') {
146
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
147
- }
148
- if (typeof contador !== 'number') {
149
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O contador passado deve ser um número');
150
- }
151
- return texto.repeat(contador);
152
- };
153
- /**
154
- * Substitui em um texto fornecido o padrão indicado por um novo valor.
155
- *
156
- * @param {string} texto o texto para obter o tamanho.
157
- * @param {string} texto_buscado o texto ou expressão regular para ser substituído.
158
- * @param {string} novo_texto o novo texto para substituição.
159
- * @return {string} um novo texto com os valores substituídos.
160
- */
161
- module.exports.substituir = function (texto, texto_buscado, novo_texto) {
162
- if (typeof texto !== 'string') {
163
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
164
- }
165
- if (typeof texto_buscado !== 'string') {
166
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O padrão passado deve ser um texto');
167
- }
168
- if (typeof novo_texto !== 'string') {
169
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O novo valor deve ser um texto');
170
- }
171
- return texto.replace(texto_buscado, novo_texto);
172
- };
173
- /**
174
- * Busca um subtexto em um texto.
175
- *
176
- * @param {string} texto o texto original.
177
- * @param {string} texto_buscado o texto que deve ser buscado ou expressão regular.
178
- *
179
- * @returns {number} o índice da primeira ocorrência no texto fornecido ou -1 caso contrário.
180
- */
181
- module.exports.busca = function (texto, texto_buscado) {
182
- if (typeof texto !== 'string') {
183
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
184
- }
185
- if (typeof texto_buscado !== 'string') {
186
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O padrão passado deve ser um texto');
187
- }
188
- return texto.search(texto_buscado);
189
- };
190
- /**
191
- * Remove espaços em branco no começo e no fim do texto.
192
- *
193
- * @param {string} texto o texto original.
194
- * @returns {number} um texto sem espaços em ambos os lados.
195
- */
196
- module.exports.apara = function (texto) {
197
- if (typeof texto !== 'string') {
198
- throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
199
- }
200
- return texto.trim();
201
- };
1
+ "use strict";
2
+ /**
3
+ * Biblioteca padrão para a manipulação de textos.
4
+ *
5
+ * Contém as principais funções para lidar com textos.
6
+ *
7
+ * @author André G.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ const excecoes_1 = require("../../../excecoes");
11
+ // Constantes úteis
12
+ /**
13
+ * Conjunto de todas as letraas minúsculas
14
+ */
15
+ module.exports.letras_minusculas = 'abcdefghijklmnopqrstuvwxyz';
16
+ /**
17
+ * Conjunto de todas as letraas maiúsculas
18
+ */
19
+ module.exports.letras_maiusculas = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
20
+ /**
21
+ * Conjunto de todas as letraas
22
+ */
23
+ module.exports.letras = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
24
+ /**
25
+ * Conjunto de todas os dígitos
26
+ */
27
+ module.exports.digitos = '0123456789';
28
+ /**
29
+ * Conjuto de pontuções
30
+ */
31
+ module.exports.pontuacoes = '!"' + "#$%&'()*+,-./:;<=>?@[\\]^_`{|}~";
32
+ // Funções de Manipulação de textos.
33
+ /**
34
+ * Converte otexto passado para maiúsculo.
35
+ *
36
+ * @param {string} texto o texto a ser convertido.
37
+ * @return {string} a string convertida.
38
+ */
39
+ module.exports.maiusculo = function (texto) {
40
+ if (typeof texto !== 'string') {
41
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
42
+ }
43
+ return texto.toUpperCase();
44
+ };
45
+ /**
46
+ * Converte o texto passado para minúsculo.
47
+ *
48
+ * @param {string} texto o texto a ser convertido.
49
+ * @return {string} a string convertida.
50
+ */
51
+ module.exports.minusculo = function (texto) {
52
+ if (typeof texto !== 'string') {
53
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
54
+ }
55
+ return texto.toLowerCase();
56
+ };
57
+ /**
58
+ * Verifica se um texto possui um subtexto.
59
+ *
60
+ * @param {string} texto o texto a ser checado.
61
+ * @param {string} subtexto o subtexto a ser proucurado.
62
+ * @return {boolean} verdadeiro se o texto possui o subtexto falso caso contrário.
63
+ */
64
+ module.exports.contem = function (texto, subtexto) {
65
+ if (typeof texto !== 'string') {
66
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
67
+ }
68
+ if (typeof subtexto !== 'string') {
69
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O segundo parâmetro também deve ser um texto');
70
+ }
71
+ return texto.includes(subtexto);
72
+ };
73
+ /**
74
+ * Posiciona os argumentos fornecidos no texto.
75
+ *
76
+ * Note que: o texto precisa estar na forma `"Meu texto {}"`
77
+ * onde o `{}` será substituído pelo primeiro argumento da função.
78
+ *
79
+ * Ex.: `textos.formate("Texto {} {} ", "número", 1)` -> `"Texto número 1"`.
80
+ *
81
+ * @param {string} texto o texto a ser formatado.
82
+ * @param {any[]} argumentos vetor de argumentos a serem posicionados.
83
+ * @return {string} o texto formatado.
84
+ */
85
+ module.exports.formate = function (texto, ...argumentos) {
86
+ if (typeof texto !== 'string') {
87
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
88
+ }
89
+ for (let i = 0; i < argumentos.length; i++) {
90
+ let value = argumentos[i];
91
+ if (typeof value === 'boolean') {
92
+ value = value ? 'verdadeiro' : 'falso';
93
+ }
94
+ if (value === null) {
95
+ value = 'nulo';
96
+ }
97
+ if (typeof value === 'object') {
98
+ value = '<dicionário>';
99
+ }
100
+ texto = texto.replace('{}', value);
101
+ }
102
+ return texto;
103
+ };
104
+ /**
105
+ * Divide o texto passado no em um vetor de subtextos.
106
+ *
107
+ * @param {string} texto o texto a ser dividido.
108
+ * @param {string} separador o texto usado para a divisão.
109
+ * @param {number} limite um inteiro que limita o número de divisões.
110
+ *
111
+ * @returns {string[]} um vetor contendo os textos divididos.
112
+ */
113
+ module.exports.dividir = function (texto, separador = '', limite = Number.MAX_SAFE_INTEGER) {
114
+ if (typeof texto !== 'string') {
115
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
116
+ }
117
+ if (typeof separador !== 'string') {
118
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O separador passado deve ser um texto');
119
+ }
120
+ if (typeof limite !== 'number') {
121
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O limite passado deve ser um número');
122
+ }
123
+ return texto.split(separador, limite);
124
+ };
125
+ /**
126
+ * Retorna o tamanho de um texto.
127
+ *
128
+ * @param {string} texto o texto para obter o tamanho.
129
+ * @return {number} o tamanho do texto.
130
+ */
131
+ module.exports.tamanho = function (texto) {
132
+ if (typeof texto !== 'string') {
133
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
134
+ }
135
+ return texto.length;
136
+ };
137
+ /**
138
+ * Repete um texto fornecido.
139
+ *
140
+ * @param {string} texto o texto para obter o tamanho.
141
+ * @param {number} contador o número de cópias.
142
+ * @return {string} um texto com o número de cópias do texto fornecido.
143
+ */
144
+ module.exports.repita = function (texto, contador = 0) {
145
+ if (typeof texto !== 'string') {
146
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
147
+ }
148
+ if (typeof contador !== 'number') {
149
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O contador passado deve ser um número');
150
+ }
151
+ return texto.repeat(contador);
152
+ };
153
+ /**
154
+ * Substitui em um texto fornecido o padrão indicado por um novo valor.
155
+ *
156
+ * @param {string} texto o texto para obter o tamanho.
157
+ * @param {string} texto_buscado o texto ou expressão regular para ser substituído.
158
+ * @param {string} novo_texto o novo texto para substituição.
159
+ * @return {string} um novo texto com os valores substituídos.
160
+ */
161
+ module.exports.substituir = function (texto, texto_buscado, novo_texto) {
162
+ if (typeof texto !== 'string') {
163
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
164
+ }
165
+ if (typeof texto_buscado !== 'string') {
166
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O padrão passado deve ser um texto');
167
+ }
168
+ if (typeof novo_texto !== 'string') {
169
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O novo valor deve ser um texto');
170
+ }
171
+ return texto.replace(texto_buscado, novo_texto);
172
+ };
173
+ /**
174
+ * Busca um subtexto em um texto.
175
+ *
176
+ * @param {string} texto o texto original.
177
+ * @param {string} texto_buscado o texto que deve ser buscado ou expressão regular.
178
+ *
179
+ * @returns {number} o índice da primeira ocorrência no texto fornecido ou -1 caso contrário.
180
+ */
181
+ module.exports.busca = function (texto, texto_buscado) {
182
+ if (typeof texto !== 'string') {
183
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
184
+ }
185
+ if (typeof texto_buscado !== 'string') {
186
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O padrão passado deve ser um texto');
187
+ }
188
+ return texto.search(texto_buscado);
189
+ };
190
+ /**
191
+ * Remove espaços em branco no começo e no fim do texto.
192
+ *
193
+ * @param {string} texto o texto original.
194
+ * @returns {number} um texto sem espaços em ambos os lados.
195
+ */
196
+ module.exports.apara = function (texto) {
197
+ if (typeof texto !== 'string') {
198
+ throw new excecoes_1.ErroEmTempoDeExecucao(this.token, 'O parâmetro passado deve ser um texto');
199
+ }
200
+ return texto.trim();
201
+ };
202
202
  //# sourceMappingURL=textos.js.map
@@ -1,11 +1,11 @@
1
- declare const _default: {
2
- dividir: (texto: string, divisor: any, limite: number) => string[];
3
- fatiar: (texto: string, inicio: number, fim: number) => string;
4
- inclui: (texto: string, elemento: any) => boolean;
5
- maiusculo: (texto: string) => string;
6
- minusculo: (texto: string) => string;
7
- substituir: (texto: string, elemento: string, substituto: string) => string;
8
- subtexto: (texto: string, inicio: number, fim: number) => string;
9
- tamanho: (texto: string) => number;
10
- };
11
- export default _default;
1
+ declare const _default: {
2
+ dividir: (texto: string, divisor: any, limite: number) => string[];
3
+ fatiar: (texto: string, inicio: number, fim: number) => string;
4
+ inclui: (texto: string, elemento: any) => boolean;
5
+ maiusculo: (texto: string) => string;
6
+ minusculo: (texto: string) => string;
7
+ substituir: (texto: string, elemento: string, substituto: string) => string;
8
+ subtexto: (texto: string, inicio: number, fim: number) => string;
9
+ tamanho: (texto: string) => number;
10
+ };
11
+ export default _default;
@@ -1,13 +1,13 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- dividir: (texto, divisor, limite) => [...texto.split(divisor, limite)],
5
- fatiar: (texto, inicio, fim) => texto.slice(inicio, fim),
6
- inclui: (texto, elemento) => texto.includes(elemento),
7
- maiusculo: (texto) => texto.toUpperCase(),
8
- minusculo: (texto) => texto.toLowerCase(),
9
- substituir: (texto, elemento, substituto) => texto.replace(elemento, substituto),
10
- subtexto: (texto, inicio, fim) => texto.slice(inicio, fim),
11
- tamanho: (texto) => texto.length,
12
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ dividir: (texto, divisor, limite) => [...texto.split(divisor, limite)],
5
+ fatiar: (texto, inicio, fim) => texto.slice(inicio, fim),
6
+ inclui: (texto, elemento) => texto.includes(elemento),
7
+ maiusculo: (texto) => texto.toUpperCase(),
8
+ minusculo: (texto) => texto.toLowerCase(),
9
+ substituir: (texto, elemento, substituto) => texto.replace(elemento, substituto),
10
+ subtexto: (texto, inicio, fim) => texto.slice(inicio, fim),
11
+ tamanho: (texto) => texto.length,
12
+ };
13
13
  //# sourceMappingURL=primitivas-texto.js.map
@@ -1,15 +1,15 @@
1
- declare const _default: {
2
- adicionar: (vetor: Array<any>, elemento: any) => any[];
3
- empilhar: (vetor: Array<any>, elemento: any) => any[];
4
- fatiar: (vetor: Array<any>, inicio: number, fim: number) => any[];
5
- inclui: (vetor: Array<any>, elemento: any) => boolean;
6
- inverter: (vetor: Array<any>) => any[];
7
- juntar: (vetor: Array<any>, separador: string) => string;
8
- ordenar: (vetor: Array<any>) => any[];
9
- remover: (vetor: Array<any>, elemento: any) => any[];
10
- removerPrimeiro: (vetor: Array<any>) => any[];
11
- removerUltimo: (vetor: Array<any>) => any[];
12
- somar: (vetor: Array<number>) => number;
13
- tamanho: (vetor: Array<any>) => number;
14
- };
15
- export default _default;
1
+ declare const _default: {
2
+ adicionar: (vetor: Array<any>, elemento: any) => any[];
3
+ empilhar: (vetor: Array<any>, elemento: any) => any[];
4
+ fatiar: (vetor: Array<any>, inicio: number, fim: number) => any[];
5
+ inclui: (vetor: Array<any>, elemento: any) => boolean;
6
+ inverter: (vetor: Array<any>) => any[];
7
+ juntar: (vetor: Array<any>, separador: string) => string;
8
+ ordenar: (vetor: Array<any>) => any[];
9
+ remover: (vetor: Array<any>, elemento: any) => any[];
10
+ removerPrimeiro: (vetor: Array<any>) => any[];
11
+ removerUltimo: (vetor: Array<any>) => any[];
12
+ somar: (vetor: Array<number>) => number;
13
+ tamanho: (vetor: Array<any>) => number;
14
+ };
15
+ export default _default;
@@ -1,34 +1,34 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = {
4
- adicionar: (vetor, elemento) => {
5
- vetor.push(elemento);
6
- return vetor;
7
- },
8
- empilhar: (vetor, elemento) => {
9
- vetor.push(elemento);
10
- return vetor;
11
- },
12
- fatiar: (vetor, inicio, fim) => vetor.slice(inicio, fim),
13
- inclui: (vetor, elemento) => vetor.includes(elemento),
14
- inverter: (vetor) => vetor.reverse(),
15
- juntar: (vetor, separador) => vetor.join(separador),
16
- ordenar: (vetor) => vetor.sort(),
17
- remover: (vetor, elemento) => {
18
- const index = vetor.indexOf(elemento);
19
- if (index !== -1)
20
- vetor.splice(index, 1);
21
- return vetor;
22
- },
23
- removerPrimeiro: (vetor) => {
24
- vetor.shift();
25
- return vetor;
26
- },
27
- removerUltimo: (vetor) => {
28
- vetor.pop();
29
- return vetor;
30
- },
31
- somar: (vetor) => vetor.reduce((a, b) => a + b),
32
- tamanho: (vetor) => vetor.length,
33
- };
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = {
4
+ adicionar: (vetor, elemento) => {
5
+ vetor.push(elemento);
6
+ return vetor;
7
+ },
8
+ empilhar: (vetor, elemento) => {
9
+ vetor.push(elemento);
10
+ return vetor;
11
+ },
12
+ fatiar: (vetor, inicio, fim) => vetor.slice(inicio, fim),
13
+ inclui: (vetor, elemento) => vetor.includes(elemento),
14
+ inverter: (vetor) => vetor.reverse(),
15
+ juntar: (vetor, separador) => vetor.join(separador),
16
+ ordenar: (vetor) => vetor.sort(),
17
+ remover: (vetor, elemento) => {
18
+ const index = vetor.indexOf(elemento);
19
+ if (index !== -1)
20
+ vetor.splice(index, 1);
21
+ return vetor;
22
+ },
23
+ removerPrimeiro: (vetor) => {
24
+ vetor.shift();
25
+ return vetor;
26
+ },
27
+ removerUltimo: (vetor) => {
28
+ vetor.pop();
29
+ return vetor;
30
+ },
31
+ somar: (vetor) => vetor.reduce((a, b) => a + b),
32
+ tamanho: (vetor) => vetor.length,
33
+ };
34
34
  //# sourceMappingURL=primitivas-vetor.js.map