Either the defendant or the state may take an appeal as provided in this chapter.
N.D.C.C. § 29-28-02