aboutsummaryrefslogtreecommitdiffstats
path: root/devel/ocamlweb/pkg-descr
blob: f7a1c21300af22d395e4e6e8cfc49d3e0924c365 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Literate programming has been introduced by D. E. Knuth in 1984. The
main idea is to put the code and its documentation in the same file
and to produce from it a document which is readable by a human, and
not only by a machine. Although ocamlweb borrows a lot of ideas from
Knuth's original tool (called WEB), there are big differences between
them. First, WEB allows you to present the pieces of your code in any
order, and this is quite useful when using poorly structured
languages, like Pascal or C.  But Objective Caml is already highly
structured, and this is no more useful. Moreover, WEB requires the use
of a tool to produce the code from the WEB file, which greatly
complicates the use of your favorite source-based tools (dependencies
generator, debugger, emacs mode, etc.). When using ocamlweb, the
documentation is inserted in the code as comments (in the Caml sense),
and your code is not linked to the existence of ocamlweb in any way.

Currently, the task of ocamlweb may be seen as: 

  1. making a nice document with the code and its documentation; 
  2. generating a global index of cross-references, where each identifier 
     is associated to the lists of sections where it is defined or used. 

WWW: http://www.lri.fr/~filliatr/ocamlweb/