@designliquido/delegua 0.34.3 → 0.35.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.
@@ -1,3 +1,4 @@
1
1
  export * from './analisador-semantico';
2
+ export * from './analisador-semantico-base';
2
3
  export * from './pilha-variaveis';
3
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/analisador-semantico/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../fontes/analisador-semantico/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mBAAmB,CAAC"}
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./analisador-semantico"), exports);
18
+ __exportStar(require("./analisador-semantico-base"), exports);
18
19
  __exportStar(require("./pilha-variaveis"), exports);
19
20
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/analisador-semantico/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,oDAAkC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../fontes/analisador-semantico/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,yDAAuC;AACvC,8DAA4C;AAC5C,oDAAkC"}
@@ -1,4 +1,158 @@
1
- import { VisitanteComumInterface } from '../interfaces';
2
- import { PilhaEscoposExecucaoInterface } from '../interfaces/pilha-escopos-execucao-interface';
3
- export default function (interpretador: VisitanteComumInterface, pilhaEscoposExecucao: PilhaEscoposExecucaoInterface): PilhaEscoposExecucaoInterface;
1
+ import { VariavelInterface } from '../interfaces';
2
+ import { InterpretadorInterface } from "../interfaces";
3
+ import { Tupla } from '../construtos';
4
+ /**
5
+ * Retorna um número aleatório entre 0 e 1.
6
+ * @returns {Promise<number>} Número real.
7
+ */
8
+ export declare function aleatorio(interpretador: InterpretadorInterface): Promise<number>;
9
+ /**
10
+ * Retorna um número aleatório de acordo com o parâmetro passado.
11
+ * Mínimo(inclusivo) - Máximo(exclusivo).
12
+ * @param {number} minimo O número mínimo.
13
+ * @param {number} maximo O número máximo.
14
+ * @returns {Promise<number>} Um número real entre os valores máximo e mínimo especificados.
15
+ */
16
+ export declare function aleatorioEntre(interpretador: InterpretadorInterface, minimo: VariavelInterface | number, maximo: VariavelInterface | number): Promise<number>;
17
+ /**
18
+ * Verifica se algum dos elementos satisfaz à condição para por parâmetro.
19
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
20
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
21
+ * @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
22
+ * @returns {Promise<boolean>} Verdadeiro se há algum elemento no vetor com a condição. Falso caso contrário.
23
+ */
24
+ export declare function algum(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoPesquisa: VariavelInterface | any): Promise<boolean>;
25
+ /**
26
+ * Encontra o primeiro elemento de um vetor cuja função de pesquisa retorne
27
+ * verdadeiro na avaliação de cada elemento.
28
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
29
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
30
+ * @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
31
+ * @returns {Promise<any>} Um elemento, caso o elemento seja encontraro, ou nulo em caso contrário.
32
+ */
33
+ export declare function encontrar(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoPesquisa: VariavelInterface | any): Promise<any>;
34
+ /**
35
+ * Encontra o índice do primeiro elemento de um vetor cuja função de pesquisa retorne
36
+ * verdadeiro na avaliação de cada elemento.
37
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
38
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
39
+ * @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
40
+ * @returns {Promise<number>} O número correspondente ao índice se o elemento for encontrado, ou nulo em caso contrário.
41
+ */
42
+ export declare function encontrarIndice(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoPesquisa: VariavelInterface | any): Promise<number>;
43
+ /**
44
+ * Encontrar o último elemento de um vetor cuja função de pesquisa retorne
45
+ * verdadeiro na avaliação de cada elemento.
46
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
47
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
48
+ * @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
49
+ * @returns {Promise<number>} O número correspondente ao índice se o elemento for encontrado, ou nulo em caso contrário.
50
+ */
51
+ export declare function encontrarUltimo(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoPesquisa: VariavelInterface | any): Promise<number>;
52
+ /**
53
+ *
54
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
55
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
56
+ * @param {VariavelInterface | any} funcaoPesquisa A função que ensina o método de pesquisa.
57
+ * @returns {Promise<number>} O número correspondente ao índice se o elemento for encontrado, ou nulo em caso contrário.
58
+ */
59
+ export declare function encontrarUltimoIndice(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoPesquisa: VariavelInterface | any): Promise<number>;
60
+ /**
61
+ *
62
+ * @param interpretador
63
+ * @param vetor
64
+ * @param funcaoFiltragem
65
+ * @returns
66
+ */
67
+ export declare function filtrarPor(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoFiltragem: VariavelInterface | any): Promise<any[]>;
68
+ /**
69
+ *
70
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
71
+ * @param {VariavelInterface | any} vetor Uma variável de Delégua ou um vetor nativo de JavaScript.
72
+ * @param valor
73
+ * @returns
74
+ */
75
+ export declare function incluido(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, valor: VariavelInterface | any): Promise<boolean>;
76
+ /**
77
+ *
78
+ * @param {InterpretadorInterface} interpretador A instância do interpretador.
79
+ * @param numero
80
+ * @returns
81
+ */
82
+ export declare function inteiro(interpretador: InterpretadorInterface, numero: VariavelInterface | any): Promise<number>;
83
+ /**
84
+ *
85
+ * @param interpretador
86
+ * @param vetor
87
+ * @param funcaoMapeamento
88
+ * @returns
89
+ */
90
+ export declare function mapear(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoMapeamento: VariavelInterface | any): Promise<any[]>;
91
+ /**
92
+ *
93
+ * @param vetor
94
+ * @returns
95
+ */
96
+ export declare function ordenar(interpretador: InterpretadorInterface, vetor: VariavelInterface | Array<any>): Promise<any[]>;
97
+ /**
98
+ *
99
+ * @param interpretador
100
+ * @param vetor
101
+ * @param funcaoFiltragem
102
+ * @returns
103
+ */
104
+ export declare function paraCada(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoFiltragem: VariavelInterface | any): Promise<any>;
105
+ /**
106
+ *
107
+ * @param interpretador
108
+ * @param vetor
109
+ * @param funcaoFiltragem
110
+ * @returns
111
+ */
112
+ export declare function primeiroEmCondicao(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoFiltragem: VariavelInterface | any): Promise<any>;
113
+ /**
114
+ *
115
+ * @param interpretador
116
+ * @param numero
117
+ * @returns
118
+ */
119
+ export declare function real(interpretador: InterpretadorInterface, numero: VariavelInterface | any): Promise<number>;
120
+ /**
121
+ *
122
+ * @param interpretador
123
+ * @param vetor
124
+ * @param funcaoReducao
125
+ * @param padrao
126
+ * @returns
127
+ */
128
+ export declare function reduzir(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoReducao: VariavelInterface | any, padrao?: VariavelInterface | any): Promise<any>;
129
+ /**
130
+ *
131
+ * @param objeto
132
+ * @returns
133
+ */
134
+ export declare function tamanho(interpretador: InterpretadorInterface, objeto: any): Promise<any>;
135
+ /**
136
+ *
137
+ * @param interpretador
138
+ * @param valorOuVariavel
139
+ * @returns
140
+ */
141
+ export declare function texto(interpretador: InterpretadorInterface, valorOuVariavel: VariavelInterface | any): Promise<string>;
142
+ /**
143
+ *
144
+ * @param interpretador
145
+ * @param vetor
146
+ * @param funcaoCondicional
147
+ * @returns
148
+ */
149
+ export declare function todosEmCondicao(interpretador: InterpretadorInterface, vetor: VariavelInterface | any, funcaoCondicional: VariavelInterface | any): Promise<boolean>;
150
+ /**
151
+ * Transforma um vetor de elementos em uma tupla de N elementos, sendo N a
152
+ * largura do vetor.
153
+ * @param interpretador
154
+ * @param vetor
155
+ * @returns
156
+ */
157
+ export declare function tupla(interpretador: InterpretadorInterface, vetor: VariavelInterface | any[]): Promise<Tupla>;
4
158
  //# sourceMappingURL=biblioteca-global.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"biblioteca-global.d.ts","sourceRoot":"","sources":["../../fontes/bibliotecas/biblioteca-global.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,uBAAuB,EAAqB,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,6BAA6B,EAAE,MAAM,gDAAgD,CAAC;AAG/F,MAAM,CAAC,OAAO,WAAW,aAAa,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,6BAA6B,iCA8nBnH"}
1
+ {"version":3,"file":"biblioteca-global.d.ts","sourceRoot":"","sources":["../../fontes/bibliotecas/biblioteca-global.ts"],"names":[],"mappings":"AAIA,OAAO,EAA2B,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAA6E,KAAK,EAAE,MAAM,eAAe,CAAC;AAEjH;;;GAGG;AACH,wBAAs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