This file implements a dumper that attempts to output PAST,
and Capture objects in a format that can be easily consumed by syntax highlighters (such as Padre).
the code is probably much uglier and convoluted than it should be.
I'm not proud of it,
but it works for now.