Literate: A Flexible Literate Programming System

Literate programming is a style of programming invented by Donald Knuth, where the main idea is that a program’s source code is made primarily to be read and understood by other people, and secondarily to be executed by the computer.

This frees the programmer from the structure of a program imposed by the computer and means that the programmer can develop programs in the order of the flow of their thoughts.

A Literate program consists of explanation of the code in a natural language such as English, interspersed with snippets of code to be executed. This means that Literate programs are very easy to understand and share, as all the code is well explained.

Literate, a tool for literate programming, will allow you to take a literate source file (*.lit) and either tangle the source file which will create a file with executable code, or weave the source file, which will generate an HTML document to be read as formatted documentation…

This thread was posted by one of our members via one of our news source trackers.

Corresponding tweet for this thread:

Share link for this tweet.