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

« back to all changes in this revision

Viewing changes to ocaml.html/manual013.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:
3
3
<HTML>
4
4
<HEAD>
5
5
 
6
 
 
7
 
 
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">
11
 
<TITLE>
12
 
Constants
13
 
</TITLE>
 
9
<TITLE>Constants</TITLE>
14
10
</HEAD>
15
11
<BODY >
16
 
<A HREF="manual012.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
17
 
<A HREF="manual008.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
18
 
<A HREF="manual014.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
 
12
<A HREF="manual012.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
 
13
<A HREF="manual008.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
 
14
<A HREF="patterns.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
19
15
<HR>
20
 
 
21
 
<H2 CLASS="section"><A NAME="htoc64">6.5</A>&nbsp;&nbsp;Constants</H2>
22
 
<BR>
23
 
<BR>
24
 
<DIV CLASS="center"><TABLE CELLSPACING=2 CELLPADDING=0>
25
 
<TR><TD ALIGN=right NOWRAP>
26
 
<A NAME="constant"></A>
27
 
<FONT COLOR=maroon><I><TT>constant</TT></I></FONT></TD>
28
 
<TD ALIGN=right NOWRAP>::=</TD>
29
 
<TD ALIGN=left NOWRAP>
30
 
 <FONT COLOR=maroon><I><a href="manual009.html#integer-literal"><font color=maroon><TT>integer-literal</TT></font></a></I></FONT></TD>
31
 
</TR>
32
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
33
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
34
 
<TD ALIGN=left NOWRAP> <FONT COLOR=maroon><I><a href="manual009.html#float-literal"><font color=maroon><TT>float-literal</TT></font></a></I></FONT></TD>
35
 
</TR>
36
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
37
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
38
 
<TD ALIGN=left NOWRAP> <FONT COLOR=maroon><I><a href="manual009.html#char-literal"><font color=maroon><TT>char-literal</TT></font></a></I></FONT></TD>
39
 
</TR>
40
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
41
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
42
 
<TD ALIGN=left NOWRAP> <FONT COLOR=maroon><I><a href="manual009.html#string-literal"><font color=maroon><TT>string-literal</TT></font></a></I></FONT></TD>
43
 
</TR>
44
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
45
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
46
 
<TD ALIGN=left NOWRAP> <FONT COLOR=maroon><I><a href="manual011.html#constr"><font color=maroon><TT>constr</TT></font></a></I></FONT></TD>
47
 
</TR>
48
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
49
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
50
 
<TD ALIGN=left NOWRAP> <FONT COLOR=blue><TT>false</TT></FONT></TD>
51
 
</TR>
52
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
53
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
54
 
<TD ALIGN=left NOWRAP> <FONT COLOR=blue><TT>true</TT></FONT></TD>
55
 
</TR>
56
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
57
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
58
 
<TD ALIGN=left NOWRAP> <FONT COLOR=blue><TT>[]</TT></FONT></TD>
59
 
</TR>
60
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
61
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
62
 
<TD ALIGN=left NOWRAP> <FONT COLOR=blue><TT>()</TT></FONT></TD>
63
 
</TR>
64
 
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD>
65
 
<TD ALIGN=right NOWRAP>&#8739;</TD>
66
 
<TD ALIGN=left NOWRAP> <TT><FONT COLOR=blue>`</FONT><FONT COLOR=maroon><a href="manual011.html#tag-name"><font color=maroon><I>tag-name</I></font></a></FONT></TT></TD>
67
 
</TR></TABLE></DIV><BR>
68
 
<BR>
69
 
The syntactic class of constants comprises literals from the four
 
16
<H2 CLASS="section"><A NAME="htoc64">6.5</A>��Constants</H2><TABLE CLASS="display dcenter"><TR VALIGN="middle"><TD CLASS="dcell"><TABLE CELLSPACING=6 CELLPADDING=0><TR><TD ALIGN=right NOWRAP>
 
17
<I><A NAME="constant"><FONT COLOR=maroon>constant</FONT></A></I></TD><TD ALIGN=center NOWRAP>::=</TD><TD ALIGN=left NOWRAP>
 
18
<I><A HREF="lex.html#integer-literal"><FONT COLOR=maroon>integer-literal</FONT></A></I>
 
19
�</TD></TR>
 
20
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<I><A HREF="lex.html#float-literal"><FONT COLOR=maroon>float-literal</FONT></A></I>
 
21
�</TD></TR>
 
22
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<I><A HREF="lex.html#char-literal"><FONT COLOR=maroon>char-literal</FONT></A></I>
 
23
�</TD></TR>
 
24
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<I><A HREF="lex.html#string-literal"><FONT COLOR=maroon>string-literal</FONT></A></I>
 
25
�</TD></TR>
 
26
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<I><A HREF="manual011.html#constr"><FONT COLOR=maroon>constr</FONT></A></I>
 
27
�</TD></TR>
 
28
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<FONT COLOR=blue><TT>false</TT></FONT>
 
29
�</TD></TR>
 
30
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<FONT COLOR=blue><TT>true</TT></FONT>
 
31
�</TD></TR>
 
32
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<FONT COLOR=blue><TT>[]</TT></FONT>
 
33
�</TD></TR>
 
34
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<FONT COLOR=blue><TT>()</TT></FONT>
 
35
�</TD></TR>
 
36
<TR><TD ALIGN=right NOWRAP>&nbsp;</TD><TD ALIGN=center NOWRAP>&#X2223;</TD><TD ALIGN=left NOWRAP>�<FONT COLOR=blue><TT>`</TT></FONT><I><A HREF="manual011.html#tag-name"><FONT COLOR=maroon>tag-name</FONT></A></I></TD></TR>
 
37
</TABLE></TD></TR>
 
38
</TABLE><P>The syntactic class of constants comprises literals from the four
70
39
base types (integers, floating-point numbers, characters, character
71
40
strings), and constant constructors from both normal and polymorphic
72
41
variants, as well as the special constants <TT>false</TT>, <TT>true</TT>, <TT>[]</TT>,
73
42
and <TT>()</TT>, which behave like constant constructors.
74
43
 
75
 
<BR>
76
 
<BR>
77
 
<HR>
78
 
<A HREF="manual012.html"><IMG SRC ="previous_motif.gif" ALT="Previous"></A>
79
 
<A HREF="manual008.html"><IMG SRC ="contents_motif.gif" ALT="Up"></A>
80
 
<A HREF="manual014.html"><IMG SRC ="next_motif.gif" ALT="Next"></A>
 
44
</P><HR>
 
45
<A HREF="manual012.html"><IMG SRC="previous_motif.gif" ALT="Previous"></A>
 
46
<A HREF="manual008.html"><IMG SRC="contents_motif.gif" ALT="Up"></A>
 
47
<A HREF="patterns.html"><IMG SRC="next_motif.gif" ALT="Next"></A>
81
48
</BODY>
82
49
</HTML>