These are described in the tex.web and mf.web, from ctan:systems/knuth
use `weave tex.web' to generate a .tex file
A better source might be dvitype.web.
And you can probably easily read it as text without formatting it.
If you do format it, you need "weave" (of course) and probably also
webmac.tex.