A criminal action is prosecuted by the State, as a party, against a person charged with a public offense, for the punishment thereof.