public void execute(Stmt stmt) { stmt.accept(this); }
public If(Expr condition, Stmt thenBranch, Stmt elseBranch) { this.condition = condition; this.thenBranch = thenBranch; this.elseBranch = elseBranch; }
private void resolve(Stmt stmt) { stmt.accept(this); }
public While(Expr condition, Stmt body) { this.condition = condition; this.body = body; }