pprust: Refactor to emit tokens easily

TODO: describe what I did