~ubuntu-branches/ubuntu/hardy/ocaml-doc/hardy

« back to all changes in this revision

Viewing changes to examples/eng.html

  • Committer: Bazaar Package Importer
  • Author(s): Samuel Mimram
  • Date: 2007-09-08 01:49:22 UTC
  • mfrom: (0.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070908014922-lvihyehz0ndq7suu
Tags: 3.10-1
* New upstream release.
* Removed camlp4 documentation since it is not up-to-date.
* Updated to standards version 3.7.2, no changes needed.
* Updated my email address.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<!--#include virtual="doctype" -->
2
 
<HTML>
3
 
 
4
 
<HEAD>
5
 
<TITLE>Frequently asked Questions about Caml</TITLE>
6
 
</HEAD>
7
 
 
8
 
<BODY BGCOLOR="#FFFFFF">
9
 
 
10
 
<H1 ALIGN=CENTER><IMG SRC="JoeCaml.gif" ALT=""> Caml program examples</H1>
11
 
 
12
 
<P>This directory contains some examples of Objective Caml programs.
13
 
 
14
 
<P>The examples can either be compiled and executed as standalone
15
 
programs (just type <CODE>make</CODE> in the subdirectory), if speed
16
 
is important you can use the optimizing compiler by typing
17
 
<CODE>make opt</CODE>, or else run interactively the examples under
18
 
<CODE>ocaml</CODE>, by executing 
19
 
 
20
 
<PRE>
21
 
                #use "loadall.ml";;
22
 
</PRE>
23
 
 
24
 
in the appropriate directory. (The graphics programs must
25
 
be run under a specialized interactive system, <CODE>ocamlgraph</CODE>
26
 
that you can create using <CODE>ocamlmktop -custom -o ocamlgraph
27
 
graphics.cma</CODE>.)
28
 
 
29
 
<P>Examples marked (*) are taken from the book ``Le langage Caml'', by
30
 
Pierre Weis and Xavier Leroy (InterEditions, 1993 && 1999). Messages and
31
 
identifiers may be in French and may contain accented letters (ISO 8859-1
32
 
encoding). You'll need an 8-bit clean system to read them.<BR>
33
 
 
34
 
Examples marked (G) assume installed the portable graphics library
35
 
(as found in the <CODE>otherlib/graph</CODE> directory of the
36
 
Objective Caml distribution).
37
 
 
38
 
<H2 ALIGN=LEFT>One file programs</H2>
39
 
 
40
 
<UL>
41
 
 
42
 
<LI>basics:<BR>
43
 
        A set of simple, basic, and slightly advanced programs.
44
 
        See the <A HREF="basics/eng.html">eng.html</A> file.
45
 
        Contains also the three all-time favorites: Fibonacci,
46
 
        Eratosthene's sieve, and the Unix <CODE>wc</CODE> utility.
47
 
 
48
 
<LI>colwheel: (G)<BR>
49
 
        The "color wheel" (color space in HSV coordinates).
50
 
        Needs at least 256 colors to look good.
51
 
 
52
 
<LI>spirals: (G)<BR>
53
 
        Explore a family of flashy curves. (Use spir on a color screen
54
 
        and spir-bw on a black and white screen.)
55
 
 
56
 
<LI>showsort: (G)<BR>
57
 
        Graphic animation of sorting algorithms.
58
 
 
59
 
<LI>hanoi: (*)(G)<BR>
60
 
        Animated towers of Hanoi. Uses lists and strings.
61
 
 
62
 
<LI>doctor: (*)<BR>
63
 
        A (English-speaking) clone of Eliza.
64
 
 
65
 
<LI>docteur: (*)<BR>
66
 
        A (French-speaking) clone of Eliza.
67
 
        If you can translate this
68
 
        program in any other language than english, please contact
69
 
        Pierre.Weis@inria.fr.
70
 
 
71
 
</UL>
72
 
 
73
 
<H2 ALIGN=LEFT>Graphical User Interface</H2>
74
 
 
75
 
<UL>
76
 
 
77
 
<LI><A HREF="camltk/eng.html">camltk</A>: (*) <BR>
78
 
       A set of programs to learn using the Caml/Tk graphical user
79
 
       interface (GUI). From simple �hello world� programs to an
80
 
       advanced tetris game. Some examples are from the book ``Le
81
 
       langage Caml'', by Pierre Weis and Xavier Leroy
82
 
       (InterEditions, 1999). See the <A
83
 
       HREF="camltk/eng.html">eng.html</A> file in the directory. 
84
 
</UL>
85
 
 
86
 
<H2 ALIGN=LEFT>Modular programs</H2>
87
 
 
88
 
<P>Those programs are in the corresponding directories. They are
89
 
complete independant applications that have a Makefile to handle
90
 
their recompilation. Those examples can be quite involved.
91
 
 
92
 
<UL>
93
 
 
94
 
<LI>calc:<BR>
95
 
        This is a simple desk calculator that illustrates the use of camllex 
96
 
        and camlyacc.
97
 
 
98
 
<LI>picomach: (*)<BR>
99
 
        An assembler and simulator for a RISC processor.
100
 
 
101
 
<LI>grep: (*)<BR>
102
 
        Regular expressions and automata.
103
 
 
104
 
<LI>compress: (*)<BR>
105
 
        File compression and decompression (Huffman).
106
 
 
107
 
<LI>demonstr: (*)<BR>
108
 
        Tautology checker.
109
 
 
110
 
<LI>minicaml: (*)<BR>
111
 
        An interpreter and typechecker for a subset of Caml.
112
 
 
113
 
<LI>asl:<BR>
114
 
        This is the implementation of A Small Language, as described in
115
 
        part 3 of ``Functional Programming using Caml Light'', by
116
 
        Michel Mauny.
117
 
 
118
 
<LI>minilogo: (*) (G)<BR>
119
 
        An interpreter for a small language with turtle graphics.
120
 
 
121
 
<LI>pascal: (*)<BR>
122
 
        An interpreter and compiler for a subset of Pascal.
123
 
        The compiler generates code for the <CODE>picomach</CODE> program.
124
 
 
125
 
<LI>kb:<BR>
126
 
        The Knuth-Bendix completion procedure for rewriting systems.
127
 
        Taken from some course notes by Gerard Huet.
128
 
 
129
 
</UL>
130
 
 
131
 
<P>
132
 
The <CODE>config</CODE> directory does not contain examples, but configuration
133
 
files used to generate the Makefiles.
134
 
 
135
 
<!--#include virtual="basdepage-eng.html" -->
136
 
 
137
 
</BODY>
138
 
</HTML>