Skip to content

Commit

Permalink
modificaçoes necessárias para o paraTexto
Browse files Browse the repository at this point in the history
  • Loading branch information
Aristidescosta committed Feb 21, 2024
1 parent b078861 commit a1e8eb9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion fontes/interpretador/interpretador-base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1090,6 +1090,8 @@ export class InterpretadorBase implements InterpretadorInterface {
const resultadoAvaliacao = await this.avaliar(argumento);
let valor = resultadoAvaliacao?.hasOwnProperty('valor') ? resultadoAvaliacao.valor : resultadoAvaliacao;
formatoTexto += `${this.paraTexto(valor)} `;
console.log(formatoTexto);

}

return formatoTexto.trimEnd();
Expand Down Expand Up @@ -1616,8 +1618,11 @@ export class InterpretadorBase implements InterpretadorInterface {
retornoVetor += `${this.paraTexto(elemento)},`;
}

retornoVetor = retornoVetor.slice(0, -1);
if(retornoVetor.length > 1){
retornoVetor = retornoVetor.slice(0, -1);
}
retornoVetor += ']';

return retornoVetor;
}

Expand Down

0 comments on commit a1e8eb9

Please sign in to comment.