Skip to content

Instantly share code, notes, and snippets.

@tonussi
Last active August 29, 2015 14:09
Show Gist options
  • Select an option

  • Save tonussi/ad2d94d6924da7756b6d to your computer and use it in GitHub Desktop.

Select an option

Save tonussi/ad2d94d6924da7756b6d to your computer and use it in GitHub Desktop.
como escrever melhor
function Filho(nodo_filho, filho_esquerda, filho_direita) {
this.nodo_filho = nodo_filho;
this.filho_esquerda = filho_esquerda;
this.filho_direita = filho_direita;
}
Filho.class_filho.prototype.constroiAutomatoFND = function () {
var nodo_filho = new Parenteses(0, -1, 1024, this.nodo_filho);
if (!this.filho_esquerda) {
var estrela_klenee = new Estrela('*');
var concatenacao = new Concatenacao('.');
var aceitacao = new Fechamento(concatenacao, estrela_klenee);
nodo_filho = new SequenciaNodular(aceitacao, nodo_filho);
}
return nodo.constroiAutomatoFND();
};
@CarlosBonetti
Copy link
Copy Markdown

👮

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment