package synthesijer.ast.statement;
import synthesijer.ast.Expr;
import synthesijer.ast.Scope;
import synthesijer.ast.Statement;
import synthesijer.ast.SynthesijerAstVisitor;
public class WhileStatement extends Statement{
private Expr condition;
private BlockStatement body;
public WhileStatement(Scope scope){
super(scope);
}
public void setCondition(Expr expr){
this.condition = expr;
}
public Expr getCondition(){
return condition;
}
public void setBody(BlockStatement body){
this.body = body;
}
public BlockStatement getBody(){
return body;
}
public void accept(SynthesijerAstVisitor v){
v.visitWhileStatement(this);
}
}