This question already has an answer here:
- LaTeX macro expander 7 answers
I am looking at TeX as an output format similar to PDF that describes the page sufficiently, but with all tokens resolved (more like going from Postscript to PDF). This format should also indicate all the places where the linebreaks and pagebreaks are present as requested in a related question. To put it more aptly, you could say that I am looking at TeX version of DVI which can reproduce the same DVI (though not necessarily identical).