@Override public void semanticValidation() { right.semantic(); this.i.semantic(); if (this.i.getType().getClass() != this.right.getType().getClass()) { ErrorLog.getInstance() .add( "Error: Asignacion con tipos incompatibles, " + this.i.getType().toStr() + " y " + this.right.getType().toStr()); } }
@Override public String toStr() { return "WHILE(" + exp.toStr() + ") {" + stmt.toStr() + "}"; }