@designliquido/delegua 0.2.10 → 0.3.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 (110) hide show
  1. package/bin/package.json +1 -1
  2. package/fontes/ambiente.d.ts +1 -14
  3. package/fontes/ambiente.js +1 -53
  4. package/fontes/ambiente.js.map +1 -1
  5. package/fontes/avaliador-sintatico/avaliador-sintatico.js +11 -11
  6. package/fontes/avaliador-sintatico/avaliador-sintatico.js.map +1 -1
  7. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js +7 -7
  8. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-egua-classico.js.map +1 -1
  9. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js +8 -8
  10. package/fontes/avaliador-sintatico/dialetos/avaliador-sintatico-eguap.js.map +1 -1
  11. package/fontes/bibliotecas/biblioteca-global.d.ts +2 -2
  12. package/fontes/bibliotecas/biblioteca-global.js +15 -15
  13. package/fontes/bibliotecas/biblioteca-global.js.map +1 -1
  14. package/fontes/construtos/atribuir.d.ts +2 -2
  15. package/fontes/construtos/atribuir.js.map +1 -1
  16. package/fontes/construtos/chamada.d.ts +2 -1
  17. package/fontes/construtos/chamada.js.map +1 -1
  18. package/fontes/construtos/literal.d.ts +2 -1
  19. package/fontes/construtos/literal.js.map +1 -1
  20. package/fontes/construtos/variavel.d.ts +2 -2
  21. package/fontes/construtos/variavel.js.map +1 -1
  22. package/fontes/declaracoes/bloco.d.ts +2 -1
  23. package/fontes/declaracoes/bloco.js.map +1 -1
  24. package/fontes/declaracoes/escreva.d.ts +2 -1
  25. package/fontes/declaracoes/escreva.js.map +1 -1
  26. package/fontes/declaracoes/expressao.d.ts +2 -1
  27. package/fontes/declaracoes/expressao.js.map +1 -1
  28. package/fontes/declaracoes/funcao.d.ts +2 -2
  29. package/fontes/declaracoes/funcao.js.map +1 -1
  30. package/fontes/declaracoes/retorna.d.ts +2 -1
  31. package/fontes/declaracoes/retorna.js.map +1 -1
  32. package/fontes/declaracoes/se.d.ts +2 -1
  33. package/fontes/declaracoes/se.js.map +1 -1
  34. package/fontes/declaracoes/var.d.ts +2 -2
  35. package/fontes/declaracoes/var.js.map +1 -1
  36. package/fontes/delegua.d.ts +3 -2
  37. package/fontes/delegua.js +20 -8
  38. package/fontes/delegua.js.map +1 -1
  39. package/fontes/estruturas/delegua-classe.d.ts +14 -0
  40. package/fontes/estruturas/{classe.js → delegua-classe.js} +4 -4
  41. package/fontes/estruturas/delegua-classe.js.map +1 -0
  42. package/fontes/estruturas/funcao-padrao.d.ts +1 -1
  43. package/fontes/estruturas/funcao-padrao.js +1 -1
  44. package/fontes/estruturas/funcao-padrao.js.map +1 -1
  45. package/fontes/estruturas/funcao.d.ts +9 -7
  46. package/fontes/estruturas/funcao.js +20 -26
  47. package/fontes/estruturas/funcao.js.map +1 -1
  48. package/fontes/estruturas/index.d.ts +2 -2
  49. package/fontes/estruturas/index.js +2 -2
  50. package/fontes/estruturas/index.js.map +1 -1
  51. package/fontes/estruturas/{instancia.d.ts → objeto-delegua-classe.d.ts} +3 -2
  52. package/fontes/estruturas/objeto-delegua-classe.js +28 -0
  53. package/fontes/estruturas/objeto-delegua-classe.js.map +1 -0
  54. package/fontes/excecoes/index.d.ts +0 -3
  55. package/fontes/excecoes/index.js +0 -3
  56. package/fontes/excecoes/index.js.map +1 -1
  57. package/fontes/interfaces/delegua-interface.d.ts +2 -2
  58. package/fontes/interfaces/escopo-execucao.d.ts +7 -0
  59. package/fontes/interfaces/escopo-execucao.js +3 -0
  60. package/fontes/interfaces/escopo-execucao.js.map +1 -0
  61. package/fontes/interfaces/index.d.ts +1 -0
  62. package/fontes/interfaces/index.js +1 -0
  63. package/fontes/interfaces/index.js.map +1 -1
  64. package/fontes/interfaces/interpretador-interface.d.ts +6 -4
  65. package/fontes/interfaces/pilha-interface.d.ts +2 -2
  66. package/fontes/interfaces/retorno-execucao-interface.d.ts +11 -0
  67. package/fontes/interfaces/retorno-execucao-interface.js +3 -0
  68. package/fontes/interfaces/retorno-execucao-interface.js.map +1 -0
  69. package/fontes/interpretador/dialetos/egua-classico.d.ts +27 -19
  70. package/fontes/interpretador/dialetos/egua-classico.js +121 -139
  71. package/fontes/interpretador/dialetos/egua-classico.js.map +1 -1
  72. package/fontes/interpretador/interpretador.d.ts +38 -18
  73. package/fontes/interpretador/interpretador.js +146 -142
  74. package/fontes/interpretador/interpretador.js.map +1 -1
  75. package/fontes/interpretador/pilha-escopos-execucao.d.ts +20 -0
  76. package/fontes/interpretador/pilha-escopos-execucao.js +74 -0
  77. package/fontes/interpretador/pilha-escopos-execucao.js.map +1 -0
  78. package/fontes/lexador/dialetos/lexador-eguap.js +1 -1
  79. package/fontes/lexador/dialetos/lexador-eguap.js.map +1 -1
  80. package/fontes/lexador/lexador.js +1 -1
  81. package/fontes/lexador/lexador.js.map +1 -1
  82. package/fontes/quebras/index.d.ts +10 -0
  83. package/fontes/quebras/index.js +51 -0
  84. package/fontes/quebras/index.js.map +1 -0
  85. package/fontes/resolvedor/index.d.ts +4 -62
  86. package/fontes/resolvedor/index.js +18 -340
  87. package/fontes/resolvedor/index.js.map +1 -1
  88. package/fontes/resolvedor/resolvedor.d.ts +64 -0
  89. package/fontes/resolvedor/resolvedor.js +345 -0
  90. package/fontes/resolvedor/resolvedor.js.map +1 -0
  91. package/package.json +1 -1
  92. package/testes/biblioteca-global.test.js +15 -29
  93. package/testes/biblioteca-global.test.js.map +1 -1
  94. package/testes/egua-classico/interpretador.test.js +21 -41
  95. package/testes/egua-classico/interpretador.test.js.map +1 -1
  96. package/testes/interpretador.test.js +21 -41
  97. package/testes/interpretador.test.js.map +1 -1
  98. package/fontes/estruturas/classe.d.ts +0 -11
  99. package/fontes/estruturas/classe.js.map +0 -1
  100. package/fontes/estruturas/instancia.js +0 -28
  101. package/fontes/estruturas/instancia.js.map +0 -1
  102. package/fontes/excecoes/excecao-continuar.d.ts +0 -2
  103. package/fontes/excecoes/excecao-continuar.js +0 -27
  104. package/fontes/excecoes/excecao-continuar.js.map +0 -1
  105. package/fontes/excecoes/excecao-retornar.d.ts +0 -4
  106. package/fontes/excecoes/excecao-retornar.js +0 -30
  107. package/fontes/excecoes/excecao-retornar.js.map +0 -1
  108. package/fontes/excecoes/excecao-sustar.d.ts +0 -2
  109. package/fontes/excecoes/excecao-sustar.js +0 -27
  110. package/fontes/excecoes/excecao-sustar.js.map +0 -1
@@ -0,0 +1,345 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.Resolvedor = void 0;
4
+ var pilha_escopos_1 = require("./pilha-escopos");
5
+ var erro_resolvedor_1 = require("./erro-resolvedor");
6
+ var TipoFuncao = {
7
+ NENHUM: 'NENHUM',
8
+ FUNCAO: 'FUNCAO',
9
+ CONSTRUTOR: 'CONSTRUTOR',
10
+ METODO: 'METODO',
11
+ };
12
+ var TipoClasse = {
13
+ NENHUM: 'NENHUM',
14
+ CLASSE: 'CLASSE',
15
+ SUBCLASSE: 'SUBCLASSE',
16
+ };
17
+ var TipoLacoRepeticao = {
18
+ NENHUM: 'NENHUM',
19
+ ENQUANTO: 'ENQUANTO',
20
+ ESCOLHA: 'ESCOLHA',
21
+ PARA: 'PARA',
22
+ FAZER: 'FAZER',
23
+ };
24
+ /**
25
+ * O Resolvedor (Resolver) é responsável por catalogar todos os identificadores complexos, como por exemplo: funções, classes, variáveis,
26
+ * e delimitar os escopos onde esses identificadores existem.
27
+ * Exemplo: uma classe A declara dois métodos chamados M e N. Todas as variáveis declaradas dentro de M não podem ser vistas por N, e vice-versa.
28
+ * No entanto, todas as variáveis declaradas dentro da classe A podem ser vistas tanto por M quanto por N.
29
+ * @deprecated Marcado para remoção. Como a implementação de blocos de escopo não precisa mais ter etapa de resolução, o
30
+ * resolvedor deve ser removido em versões futuras.
31
+ */
32
+ var Resolvedor = /** @class */ (function () {
33
+ function Resolvedor() {
34
+ this.erros = [];
35
+ this.escopos = new pilha_escopos_1.PilhaEscopos();
36
+ this.locais = new Map();
37
+ this.funcaoAtual = TipoFuncao.NENHUM;
38
+ this.classeAtual = TipoClasse.NENHUM;
39
+ this.cicloAtual = TipoClasse.NENHUM;
40
+ }
41
+ Resolvedor.prototype.definir = function (simbolo) {
42
+ if (this.escopos.eVazio())
43
+ return;
44
+ this.escopos.topoDaPilha()[simbolo.lexema] = true;
45
+ };
46
+ Resolvedor.prototype.declarar = function (simbolo) {
47
+ if (this.escopos.eVazio())
48
+ return;
49
+ var escopo = this.escopos.topoDaPilha();
50
+ if (escopo.hasOwnProperty(simbolo.lexema)) {
51
+ var erro = new erro_resolvedor_1.ErroResolvedor(simbolo, 'Variável com esse nome já declarada neste escopo.');
52
+ this.erros.push(erro);
53
+ }
54
+ escopo[simbolo.lexema] = false;
55
+ };
56
+ Resolvedor.prototype.inicioDoEscopo = function () {
57
+ this.escopos.empilhar({});
58
+ };
59
+ Resolvedor.prototype.finalDoEscopo = function () {
60
+ this.escopos.removerUltimo();
61
+ };
62
+ Resolvedor.prototype.resolverLocal = function (expressao, simbolo) {
63
+ for (var i = this.escopos.pilha.length - 1; i >= 0; i--) {
64
+ if (this.escopos.pilha[i].hasOwnProperty(simbolo.lexema)) {
65
+ this.locais.set(expressao, this.escopos.pilha.length - 1 - i);
66
+ }
67
+ }
68
+ };
69
+ Resolvedor.prototype.visitarExpressaoBloco = function (declaracao) {
70
+ this.inicioDoEscopo();
71
+ this.resolver(declaracao.declaracoes);
72
+ this.finalDoEscopo();
73
+ return null;
74
+ };
75
+ Resolvedor.prototype.visitarExpressaoDeVariavel = function (expressao) {
76
+ if (!this.escopos.eVazio() &&
77
+ this.escopos.topoDaPilha()[expressao.simbolo.lexema] === false) {
78
+ var erro = new erro_resolvedor_1.ErroResolvedor(expressao.simbolo, 'Não é possível ler a variável local em seu próprio inicializador.');
79
+ this.erros.push(erro);
80
+ throw erro;
81
+ }
82
+ this.resolverLocal(expressao, expressao.simbolo);
83
+ return null;
84
+ };
85
+ Resolvedor.prototype.visitarExpressaoVar = function (declaracao) {
86
+ this.declarar(declaracao.simbolo);
87
+ if (declaracao.inicializador !== null) {
88
+ this.resolver(declaracao.inicializador);
89
+ }
90
+ this.definir(declaracao.simbolo);
91
+ return null;
92
+ };
93
+ Resolvedor.prototype.visitarExpressaoDeAtribuicao = function (expressao) {
94
+ this.resolver(expressao.valor);
95
+ this.resolverLocal(expressao, expressao.simbolo);
96
+ return null;
97
+ };
98
+ Resolvedor.prototype.resolverFuncao = function (funcao, tipoFuncao) {
99
+ var enclosingFunc = this.funcaoAtual;
100
+ this.funcaoAtual = tipoFuncao;
101
+ this.inicioDoEscopo();
102
+ var parametros = funcao.parametros;
103
+ if (parametros && parametros.length > 0) {
104
+ for (var i = 0; i < parametros.length; i++) {
105
+ this.declarar(parametros[i]['nome']);
106
+ this.definir(parametros[i]['nome']);
107
+ }
108
+ }
109
+ this.resolver(funcao.corpo);
110
+ this.finalDoEscopo();
111
+ this.funcaoAtual = enclosingFunc;
112
+ };
113
+ Resolvedor.prototype.visitarExpressaoFuncao = function (declaracao) {
114
+ this.declarar(declaracao.simbolo);
115
+ this.definir(declaracao.simbolo);
116
+ this.resolverFuncao(declaracao.funcao, TipoFuncao.FUNCAO);
117
+ return null;
118
+ };
119
+ Resolvedor.prototype.visitarExpressaoDeleguaFuncao = function (declaracao) {
120
+ this.resolverFuncao(declaracao, TipoFuncao.FUNCAO);
121
+ return null;
122
+ };
123
+ Resolvedor.prototype.visitarExpressaoTente = function (declaracao) {
124
+ this.resolver(declaracao.caminhoTente);
125
+ if (declaracao.caminhoPegue !== null)
126
+ this.resolver(declaracao.caminhoPegue);
127
+ if (declaracao.caminhoSenao !== null)
128
+ this.resolver(declaracao.caminhoSenao);
129
+ if (declaracao.caminhoFinalmente !== null)
130
+ this.resolver(declaracao.caminhoFinalmente);
131
+ };
132
+ Resolvedor.prototype.visitarExpressaoClasse = function (declaracao) {
133
+ var enclosingClass = this.classeAtual;
134
+ this.classeAtual = TipoClasse.CLASSE;
135
+ this.declarar(declaracao.simbolo);
136
+ this.definir(declaracao.simbolo);
137
+ if (declaracao.superClasse !== null &&
138
+ declaracao.simbolo.lexema === declaracao.superClasse.simbolo.lexema) {
139
+ var erro = new erro_resolvedor_1.ErroResolvedor(declaracao.simbolo, 'Uma classe não pode herdar de si mesma.');
140
+ this.erros.push(erro);
141
+ }
142
+ if (declaracao.superClasse !== null) {
143
+ this.classeAtual = TipoClasse.SUBCLASSE;
144
+ this.resolver(declaracao.superClasse);
145
+ }
146
+ if (declaracao.superClasse !== null) {
147
+ this.inicioDoEscopo();
148
+ this.escopos.topoDaPilha()['super'] = true;
149
+ }
150
+ this.inicioDoEscopo();
151
+ this.escopos.topoDaPilha()['isto'] = true;
152
+ var metodos = declaracao.metodos;
153
+ for (var i = 0; i < metodos.length; i++) {
154
+ var declaracao_1 = TipoFuncao.METODO;
155
+ if (metodos[i].simbolo.lexema === 'isto') {
156
+ declaracao_1 = TipoFuncao.CONSTRUTOR;
157
+ }
158
+ this.resolverFuncao(metodos[i].funcao, declaracao_1);
159
+ }
160
+ this.finalDoEscopo();
161
+ if (declaracao.superClasse !== null)
162
+ this.finalDoEscopo();
163
+ this.classeAtual = enclosingClass;
164
+ return null;
165
+ };
166
+ Resolvedor.prototype.visitarExpressaoSuper = function (expressao) {
167
+ if (this.classeAtual === TipoClasse.NENHUM) {
168
+ var erro = new erro_resolvedor_1.ErroResolvedor(expressao.palavraChave, "Não pode usar 'super' fora de uma classe.");
169
+ this.erros.push(erro);
170
+ }
171
+ else if (this.classeAtual !== TipoClasse.SUBCLASSE) {
172
+ var erro = new erro_resolvedor_1.ErroResolvedor(expressao.palavraChave, "Não se usa 'super' numa classe sem SuperClasse.");
173
+ this.erros.push(erro);
174
+ }
175
+ this.resolverLocal(expressao, expressao.palavraChave);
176
+ return null;
177
+ };
178
+ Resolvedor.prototype.visitarExpressaoAcessoMetodo = function (expressao) {
179
+ this.resolver(expressao.objeto);
180
+ return null;
181
+ };
182
+ Resolvedor.prototype.visitarDeclaracaoDeExpressao = function (declaracao) {
183
+ this.resolver(declaracao.expressao);
184
+ return null;
185
+ };
186
+ Resolvedor.prototype.visitarExpressaoSe = function (declaracao) {
187
+ this.resolver(declaracao.condicao);
188
+ this.resolver(declaracao.caminhoEntao);
189
+ for (var i = 0; i < declaracao.caminhosSeSenao.length; i++) {
190
+ this.resolver(declaracao.caminhosSeSenao[i].condicao);
191
+ this.resolver(declaracao.caminhosSeSenao[i].caminho);
192
+ }
193
+ if (declaracao.caminhoSenao !== null)
194
+ this.resolver(declaracao.caminhoSenao);
195
+ return null;
196
+ };
197
+ Resolvedor.prototype.visitarExpressaoImportar = function (declaracao) {
198
+ this.resolver(declaracao.caminho);
199
+ };
200
+ Resolvedor.prototype.visitarExpressaoEscreva = function (declaracao) {
201
+ this.resolver(declaracao.expressao);
202
+ };
203
+ Resolvedor.prototype.visitarExpressaoRetornar = function (declaracao) {
204
+ if (this.funcaoAtual === TipoFuncao.NENHUM) {
205
+ var erro = new erro_resolvedor_1.ErroResolvedor(declaracao.palavraChave, 'Não é possível retornar do código do escopo superior.');
206
+ this.erros.push(erro);
207
+ }
208
+ if (declaracao.valor !== null) {
209
+ if (this.funcaoAtual === TipoFuncao.CONSTRUTOR) {
210
+ var erro = new erro_resolvedor_1.ErroResolvedor(declaracao.palavraChave, 'Não pode retornar o valor do construtor.');
211
+ this.erros.push(erro);
212
+ }
213
+ this.resolver(declaracao.valor);
214
+ }
215
+ return null;
216
+ };
217
+ Resolvedor.prototype.visitarExpressaoEscolha = function (declaracao) {
218
+ var enclosingType = this.cicloAtual;
219
+ this.cicloAtual = TipoLacoRepeticao.ESCOLHA;
220
+ var caminhos = declaracao.caminhos;
221
+ var caminhoPadrao = declaracao.caminhoPadrao;
222
+ for (var i = 0; i < caminhos.length; i++) {
223
+ this.resolver(caminhos[i]['declaracoes']);
224
+ }
225
+ if (caminhoPadrao !== null)
226
+ this.resolver(caminhoPadrao['declaracoes']);
227
+ this.cicloAtual = enclosingType;
228
+ };
229
+ Resolvedor.prototype.visitarExpressaoEnquanto = function (declaracao) {
230
+ this.resolver(declaracao.condicao);
231
+ this.resolver(declaracao.corpo);
232
+ return null;
233
+ };
234
+ Resolvedor.prototype.visitarExpressaoPara = function (declaracao) {
235
+ if (declaracao.inicializador !== null) {
236
+ this.resolver(declaracao.inicializador);
237
+ }
238
+ if (declaracao.condicao !== null) {
239
+ this.resolver(declaracao.condicao);
240
+ }
241
+ if (declaracao.incrementar !== null) {
242
+ this.resolver(declaracao.incrementar);
243
+ }
244
+ var enclosingType = this.cicloAtual;
245
+ this.cicloAtual = TipoLacoRepeticao.ENQUANTO;
246
+ this.resolver(declaracao.corpo);
247
+ this.cicloAtual = enclosingType;
248
+ return null;
249
+ };
250
+ Resolvedor.prototype.visitarExpressaoFazer = function (declaracao) {
251
+ this.resolver(declaracao.condicaoEnquanto);
252
+ var enclosingType = this.cicloAtual;
253
+ this.cicloAtual = TipoLacoRepeticao.FAZER;
254
+ this.resolver(declaracao.caminhoFazer);
255
+ this.cicloAtual = enclosingType;
256
+ return null;
257
+ };
258
+ Resolvedor.prototype.visitarExpressaoBinaria = function (expressao) {
259
+ this.resolver(expressao.esquerda);
260
+ this.resolver(expressao.direita);
261
+ return null;
262
+ };
263
+ Resolvedor.prototype.visitarExpressaoDeChamada = function (expressao) {
264
+ this.resolver(expressao.entidadeChamada);
265
+ var argumentos = expressao.argumentos;
266
+ for (var i = 0; i < argumentos.length; i++) {
267
+ this.resolver(argumentos[i]);
268
+ }
269
+ return null;
270
+ };
271
+ Resolvedor.prototype.visitarExpressaoAgrupamento = function (expressao) {
272
+ this.resolver(expressao.expressao);
273
+ return null;
274
+ };
275
+ Resolvedor.prototype.visitarExpressaoDicionario = function (expressao) {
276
+ for (var i = 0; i < expressao.chaves.length; i++) {
277
+ this.resolver(expressao.chaves[i]);
278
+ this.resolver(expressao.valores[i]);
279
+ }
280
+ return null;
281
+ };
282
+ Resolvedor.prototype.visitarExpressaoVetor = function (expressao) {
283
+ for (var i = 0; i < expressao.valores.length; i++) {
284
+ this.resolver(expressao.valores[i]);
285
+ }
286
+ return null;
287
+ };
288
+ Resolvedor.prototype.visitarExpressaoAcessoIndiceVariavel = function (expressao) {
289
+ this.resolver(expressao.entidadeChamada);
290
+ this.resolver(expressao.indice);
291
+ return null;
292
+ };
293
+ Resolvedor.prototype.visitarExpressaoContinua = function (declaracao) {
294
+ return null;
295
+ };
296
+ Resolvedor.prototype.visitarExpressaoSustar = function (declaracao) {
297
+ return null;
298
+ };
299
+ Resolvedor.prototype.visitarExpressaoAtribuicaoSobrescrita = function (expressao) {
300
+ return null;
301
+ };
302
+ Resolvedor.prototype.visitarExpressaoLiteral = function (expressao) {
303
+ return null;
304
+ };
305
+ Resolvedor.prototype.visitarExpressaoLogica = function (expressao) {
306
+ this.resolver(expressao.esquerda);
307
+ this.resolver(expressao.direita);
308
+ return null;
309
+ };
310
+ Resolvedor.prototype.visitarExpressaoUnaria = function (expressao) {
311
+ this.resolver(expressao.direita);
312
+ return null;
313
+ };
314
+ Resolvedor.prototype.visitarExpressaoDefinir = function (expressao) {
315
+ this.resolver(expressao.valor);
316
+ this.resolver(expressao.objeto);
317
+ return null;
318
+ };
319
+ Resolvedor.prototype.visitarExpressaoIsto = function (expressao) {
320
+ if (this.classeAtual == TipoClasse.NENHUM) {
321
+ var erro = new erro_resolvedor_1.ErroResolvedor(expressao.palavraChave, "Não pode usar 'isto' fora da classe.");
322
+ this.erros.push(erro);
323
+ }
324
+ this.resolverLocal(expressao, expressao.palavraChave);
325
+ return null;
326
+ };
327
+ Resolvedor.prototype.resolver = function (declaracoes) {
328
+ if (Array.isArray(declaracoes)) {
329
+ for (var i = 0; i < declaracoes.length; i++) {
330
+ if (declaracoes[i] && declaracoes[i].aceitar)
331
+ declaracoes[i].aceitar(this);
332
+ }
333
+ }
334
+ else if (declaracoes && declaracoes.aceitar) {
335
+ declaracoes.aceitar(this);
336
+ }
337
+ return {
338
+ erros: this.erros,
339
+ locais: this.locais
340
+ };
341
+ };
342
+ return Resolvedor;
343
+ }());
344
+ exports.Resolvedor = Resolvedor;
345
+ //# sourceMappingURL=resolvedor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolvedor.js","sourceRoot":"","sources":["../../../fontes/resolvedor/resolvedor.ts"],"names":[],"mappings":";;;AACA,iDAA+C;AAC/C,qDAAmD;AAkCnD,IAAM,UAAU,GAAG;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,UAAU,EAAE,YAAY;IACxB,MAAM,EAAE,QAAQ;CACnB,CAAC;AAEF,IAAM,UAAU,GAAG;IACf,MAAM,EAAE,QAAQ;IAChB,MAAM,EAAE,QAAQ;IAChB,SAAS,EAAE,WAAW;CACzB,CAAC;AAEF,IAAM,iBAAiB,GAAG;IACtB,MAAM,EAAE,QAAQ;IAChB,QAAQ,EAAE,UAAU;IACpB,OAAO,EAAE,SAAS;IAClB,IAAI,EAAE,MAAM;IACZ,KAAK,EAAE,OAAO;CACjB,CAAC;AAEF;;;;;;;GAOG;AACH;IAQI;QACI,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC;QAChB,IAAI,CAAC,OAAO,GAAG,IAAI,4BAAY,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QAExB,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC;QACrC,IAAI,CAAC,WAAW,GAAG,UAAU,CAAC,MAAM,CAAC;QACrC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,MAAM,CAAC;IACxC,CAAC;IAED,4BAAO,GAAP,UAAQ,OAAyB;QAC7B,IAAI,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE;YAAE,OAAO;QAClC,IAAI,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;IACtD,CAAC;IAED,6BAAQ,GAAR,UAAS,OAAyB;QAC9B,IAA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,OAAO,CAAC,IAAI,CAAC,CAAC;aACpC;SACJ;aAAM,IAAI,WAAW,IAAI,WAAW,CAAC,OAAO,EAAE;YAC3C,WAAW,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;SAC7B;QAED,OAAO;YACH,KAAK,EAAE,IAAI,CAAC,KAAK;YACjB,MAAM,EAAE,IAAI,CAAC,MAAM;SACD,CAAC;IAC3B,CAAC;IACL,iBAAC;AAAD,CAAC,AA/ZD,IA+ZC;AA/ZY,gCAAU"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@designliquido/delegua",
3
- "version": "0.2.10",
3
+ "version": "0.3.0",
4
4
  "description": "Linguagem de programação simples e moderna usando português",
5
5
  "main": "index.ts",
6
6
  "scripts": {
@@ -10,8 +10,7 @@ describe('Biblioteca Global', function () {
10
10
  it('Trivial', function () {
11
11
  var retornoLexador = delegua.lexador.mapear(["escreva(aleatorio())"]);
12
12
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
13
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
14
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
13
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
15
14
  expect(retornoInterpretador.erros).toHaveLength(0);
16
15
  });
17
16
  });
@@ -19,8 +18,7 @@ describe('Biblioteca Global', function () {
19
18
  it('Sucesso', function () {
20
19
  var retornoLexador = delegua.lexador.mapear(["escreva(aleatorioEntre(1, 5))"]);
21
20
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
22
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
23
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
21
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
24
22
  expect(retornoInterpretador.erros).toHaveLength(0);
25
23
  });
26
24
  });
@@ -28,22 +26,19 @@ describe('Biblioteca Global', function () {
28
26
  it('Sucesso', function () {
29
27
  var retornoLexador = delegua.lexador.mapear(["escreva(inteiro(1))"]);
30
28
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
31
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
32
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
29
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
33
30
  expect(retornoInterpretador.erros).toHaveLength(0);
34
31
  });
35
32
  it('Falha - Não inteiro', function () {
36
33
  var retornoLexador = delegua.lexador.mapear(["escreva(inteiro('Oi'))"]);
37
34
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
38
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
39
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
35
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
40
36
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
41
37
  });
42
38
  it('Falha - Nulo', function () {
43
39
  var retornoLexador = delegua.lexador.mapear(["escreva(inteiro(nulo))"]);
44
40
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
45
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
46
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
41
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
47
42
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
48
43
  });
49
44
  });
@@ -55,8 +50,7 @@ describe('Biblioteca Global', function () {
55
50
  ];
56
51
  var retornoLexador = delegua.lexador.mapear(codigo);
57
52
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
58
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
59
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
53
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
60
54
  expect(retornoInterpretador.erros).toHaveLength(0);
61
55
  });
62
56
  });
@@ -67,8 +61,7 @@ describe('Biblioteca Global', function () {
67
61
  ];
68
62
  var retornoLexador = delegua.lexador.mapear(codigo);
69
63
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
70
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
71
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
64
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
72
65
  expect(retornoInterpretador.erros).toHaveLength(0);
73
66
  });
74
67
  });
@@ -76,22 +69,19 @@ describe('Biblioteca Global', function () {
76
69
  it('Sucesso', function () {
77
70
  var retornoLexador = delegua.lexador.mapear(["escreva(real(3.14))"]);
78
71
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
79
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
80
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
72
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
81
73
  expect(retornoInterpretador.erros).toHaveLength(0);
82
74
  });
83
75
  it('Falha - Não inteiro', function () {
84
76
  var retornoLexador = delegua.lexador.mapear(["escreva(real('Oi'))"]);
85
77
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
86
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
87
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
78
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
88
79
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
89
80
  });
90
81
  it('Falha - Nulo', function () {
91
82
  var retornoLexador = delegua.lexador.mapear(["escreva(real(nulo))"]);
92
83
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
93
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
94
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
84
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
95
85
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
96
86
  });
97
87
  });
@@ -99,22 +89,19 @@ describe('Biblioteca Global', function () {
99
89
  it('Sucesso', function () {
100
90
  var retornoLexador = delegua.lexador.mapear(["escreva(tamanho([1, 2, 3]))"]);
101
91
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
102
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
103
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
92
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
104
93
  expect(retornoInterpretador.erros).toHaveLength(0);
105
94
  });
106
- it('Falha - Não lista', function () {
95
+ it('Falha - Argumento não é lista', function () {
107
96
  var retornoLexador = delegua.lexador.mapear(["escreva(tamanho(1))"]);
108
97
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
109
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
110
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
98
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
111
99
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
112
100
  });
113
101
  it('Falha - Nulo', function () {
114
102
  var retornoLexador = delegua.lexador.mapear(["escreva(tamanho(nulo))"]);
115
103
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
116
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
117
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
104
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
118
105
  expect(retornoInterpretador.erros.length).toBeGreaterThan(0);
119
106
  });
120
107
  });
@@ -122,8 +109,7 @@ describe('Biblioteca Global', function () {
122
109
  it('Trivial', function () {
123
110
  var retornoLexador = delegua.lexador.mapear(["escreva(texto(123))"]);
124
111
  var retornoAvaliadorSintatico = delegua.avaliadorSintatico.analisar(retornoLexador);
125
- var retornoResolvedor = delegua.resolvedor.resolver(retornoAvaliadorSintatico.declaracoes);
126
- var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes, retornoResolvedor.locais);
112
+ var retornoInterpretador = delegua.interpretador.interpretar(retornoAvaliadorSintatico.declaracoes);
127
113
  expect(retornoInterpretador.erros).toHaveLength(0);
128
114
  });
129
115
  });
@@ -1 +1 @@
1
- {"version":3,"file":"biblioteca-global.test.js","sourceRoot":"","sources":["../../testes/biblioteca-global.test.ts"],"names":[],"mappings":";;AAAA,6CAA4C;AAE5C,QAAQ,CAAC,mBAAmB,EAAE;IAC1B,IAAI,OAAgB,CAAC;IAErB,UAAU,CAAC;QACP,OAAO,GAAG,IAAI,iBAAO,CAAC,SA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