Before looking at TeX itself, you may want to look at a few smaller programs. One of them is WEAVE
.
A raw dump of the program is below; will annotate it later.
To read the program, click on "Fetch modules" below.That's the end of this page. If you have any feedback about anything on this site, you can contact me here. To go back to the top-level page (if you are not on it already), click here.