a source code mirror of tree http://mama.indstate.edu/users/ice/tree/. I want to learn the code.