A criminal proceeding is one prosecuted by the state as a party, against a person charged with a criminal offense for the punishment thereof. A proceeding for the violation of an ordinance, bylaw, or police regulation is one prosecuted by a unit of local government as a party, against a person charged with a public offense, for the punishment thereof.
SDCL 23A-45-1