public While(Expr cond, Stmt body) { this.cond = cond; this.body = body; }
public Do(Stmt body, Expr cond) { this.body = body; this.cond = cond; }
public object Execute(Stmt stmt) { return(stmt.Accept(this)); }
public If(Expr cond, Stmt thenBranch, Stmt elseBranch) { this.cond = cond; this.thenBranch = thenBranch; this.elseBranch = elseBranch; }
public object Resolve(Stmt stmt) { return(stmt.Accept(this)); }