What do you mean by "reverse engineering TeX"? Since TeX: The Program [1] is freely available with full source code and complete explanations of the the source code, I don't think one could characterize understanding how TeX works as reverse engineering.