Caml program examples

This directory contains some examples of Caml programs.

The examples can either be compiled and executed as standalone programs (just type make in the subdirectory), or run interactively under ocaml, by executing

                #use "loadall.ml";;
in the appropriate directory. (The graphics programs must be run under a specialized interactive system, ocamlgraph that you can create ocamlmktop -custom -o ocamlgraph graphics.cma.)

Examples marked (*) are taken from the book ``Le langage Caml'', by Pierre Weis and Xavier Leroy (InterEditions, 1993 && 1999). Messages and identifiers are in French and contain accented letters (ISO 8859-1 encoding). You'll need an 8-bit clean system to read them.
Examples marked (G) assume installed the portable graphics library (as found in the otherlib/graph directory of the Objective Caml distribution).