private void Resolve(Stmt stmt) { stmt.accept(this); }
public While(Expr condition, Stmt body) { this.condition = condition; this.body = body; }
public If(Expr condition, Stmt ifBody, Stmt elseBody) { this.condition = condition; this.ifBody = ifBody; this.elseBody = elseBody; }
void Execute(Stmt statement) { statement.accept(this); }