DEF: a legal official who accuses someone of committing a crime, especially in a law court
EX: the prosecutor represents the state or the government in the case brought against the accused person.

Merriam-Webster Online Dictionary
prosecutor (noun)1.
a person who institutes a before a court - prosecution
2.
- prosecuting attorney