8
6
<META http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
9
<META name="GENERATOR" content="hevea 1.08">
7
<META name="GENERATOR" content="hevea 1.09">
10
8
<LINK rel="stylesheet" type="text/css" href="manual.css">
12
The Objective Caml language
9
<TITLE>The Objective Caml language</TITLE>
16
<A HREF="manual007.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
17
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
18
<A HREF="manual021.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
12
<A HREF="manual007.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
13
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
14
<A HREF="manual021.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
21
<H1 CLASS="chapter"><A NAME="htoc51">Chapter 6</A> The Objective Caml language</H1> <A NAME="c:refman"></A>
24
<H2 CLASS="section">Foreword</H2>
25
This document is intended as a reference manual for the Objective Caml
16
<H1 CLASS="chapter"><A NAME="htoc51">Chapter�6</A>��The Objective Caml language</H1><P> <A NAME="c:refman"></A>
17
</P><H2 CLASS="section">Foreword</H2><P>This document is intended as a reference manual for the Objective Caml
26
18
language. It lists the language constructs, and gives their precise
27
19
syntax and informal semantics. It is by no means a tutorial
28
20
introduction to the language: there is not a single example. A good
29
working knowledge of Caml is assumed.<BR>
31
No attempt has been made at mathematical rigor: words are employed
21
working knowledge of Caml is assumed.</P><P>No attempt has been made at mathematical rigor: words are employed
32
22
with their intuitive meaning, without further definition. As a
33
23
consequence, the typing rules have been left out, by lack of the
34
24
mathematical framework required to express them, while they are
35
definitely part of a full formal definition of the language. <BR>
38
<H3 CLASS="subsection">Notations</H3>
39
The syntax of the language is given in BNF-like notation. Terminal
25
definitely part of a full formal definition of the language. </P><H3 CLASS="subsection">Notations</H3><P>The syntax of the language is given in BNF-like notation. Terminal
40
26
symbols are set in typewriter font (<FONT COLOR=blue><TT>like</TT> <TT>this</TT></FONT>).
41
Non-terminal symbols are set in italic font (<FONT COLOR=maroon><I><TT>like</TT> <TT>that</TT></I></FONT>).
42
Square brackets […] denote optional components. Curly brackets
43
{…} denotes zero, one or several repetitions of the enclosed
44
components. Curly bracket with a trailing plus sign {…}<SUP>+</SUP>
27
Non-terminal symbols are set in italic font (<FONT COLOR=maroon><I>like that</I></FONT>).
28
Square brackets […] denote optional components. Curly brackets
29
{…} denotes zero, one or several repetitions of the enclosed
30
components. Curly bracket with a trailing plus sign {…}<SUP>+</SUP>
45
31
denote one or several repetitions of the enclosed components.
46
Parentheses (…) denote grouping.<BR>
52
<LI><A HREF="manual009.html">Lexical conventions</A> <img alt="updated" src="updated_tiny.gif">
53
<LI><A HREF="manual010.html">Values</A> <img alt="updated" src="updated_tiny.gif">
54
<LI><A HREF="manual011.html">Names</A>
55
<LI><A HREF="manual012.html">Type expressions</A> <img alt="updated" src="updated_tiny.gif">
56
<LI><A HREF="manual013.html">Constants</A>
57
<LI><A HREF="manual014.html">Patterns</A>
58
<LI><A HREF="manual015.html">Expressions</A> <img alt="updated" src="updated_tiny.gif">
59
<LI><A HREF="manual016.html">Type and exception definitions</A> <img alt="updated" src="updated_tiny.gif">
60
<LI><A HREF="manual017.html">Classes</A>
61
<LI><A HREF="manual018.html">Module types (module specifications)</A>
62
<LI><A HREF="manual019.html">Module expressions (module implementations)</A>
63
<LI><A HREF="manual020.html">Compilation units</A>
32
Parentheses (…) denote grouping.</P><UL>
33
<LI><A HREF="lex.html">Lexical conventions</A></LI>
34
<LI><A HREF="manual010.html">Values</A></LI>
35
<LI><A HREF="manual011.html">Names</A></LI>
36
<LI><A HREF="manual012.html">Type expressions</A></LI>
37
<LI><A HREF="manual013.html">Constants</A></LI>
38
<LI><A HREF="patterns.html">Patterns</A></LI>
39
<LI><A HREF="expr.html">Expressions</A></LI>
40
<LI><A HREF="manual016.html">Type and exception definitions</A></LI>
41
<LI><A HREF="manual017.html">Classes</A></LI>
42
<LI><A HREF="manual018.html">Module types (module specifications)</A></LI>
43
<LI><A HREF="manual019.html">Module expressions (module implementations)</A></LI>
44
<LI><A HREF="manual020.html">Compilation units</A></LI>
69
<A HREF="manual007.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
70
<A HREF="index.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
71
<A HREF="manual021.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
47
<A HREF="manual007.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
48
<A HREF="index.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
49
<A HREF="manual021.html"><IMG SRC="next_motif.gif" ALT="Next"></A>