A criminal defendant may not appeal a court ruling that occurs before the entry of a final judgment of conviction, that is, after there is a finding of guilty and a sentence imposed. However, in unusual cases, one can file for an original writ of mandamus to contest matters such as whether juveniles have a right to bail. I was successful in the latter case. The State can appeal so -called "interlocutory rulings" where they claim that it imposes a burden on their ability to prosecute. So they may appeal the granting of a motion to quash.