Skip to content

Commit

Permalink
simplificar lógica
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelrvg committed Oct 14, 2023
1 parent 20a1e9e commit 330c3f1
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions fontes/avaliador-sintatico/avaliador-sintatico.ts
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,7 @@ export class AvaliadorSintatico implements AvaliadorSintaticoInterface<SimboloIn
const simboloAnterior = this.avancarEDevolverAnterior();
const simbolo = { ...operador, lexema: `${operador.lexema} ${simboloAnterior.lexema}`, tipo: tiposDeSimbolos.BIT_XOR }
const direito = this.bitE();
expressao = new Binario(this.hashArquivo, expressao, simbolo, direito);
return expressao;
return new Binario(this.hashArquivo, expressao, simbolo, direito);
}
while (this.verificarSeSimboloAtualEIgualA(tiposDeSimbolos.BIT_OR, tiposDeSimbolos.BIT_XOR)) {
const operador = this.simbolos[this.atual - 1];
Expand Down

0 comments on commit 330c3f1

Please sign in to comment.