Associated article: Literate Programming and Code Reuse
Published source code--including the "text"--accompanying the article by Sverre Hendseth on "Literate Programming," a concept introduced by Donald Knuth. The CLiP system which Sverre uses lets you mix code and documentation in the layout of a program. In this article, which is in itself a literate program, Sverre implements the Singleton and State patterns to combine a macro processor with literate programming techniques. Also see LITERATE.ZIP.
Literate Programming and Code Reuse by Sverre Hendseth The term "Literate Programming" describes the concept of mixing code and documentation introduced by Donald Knuth. The original system, "WEB system of structured documentation," was developed to provide ...