File: introduction.html

package info (click to toggle)
erlang-doc-html 1%3A11.b.2-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 23,284 kB
  • ctags: 10,724
  • sloc: erlang: 505; ansic: 323; makefile: 62; perl: 61; sh: 45
file content (245 lines) | stat: -rw-r--r-- 5,465 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<!-- This document was generated using DocBuilder 3.3.3 -->
<HTML>
<HEAD>
  <TITLE>Introduction</TITLE>
  <SCRIPT type="text/javascript" src="../../doc/erlresolvelinks.js">
</SCRIPT>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#FF00FF"
      ALINK="#FF0000">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Ericsson AB]" SRC="min_head.gif"></A>
</CENTER>
<A NAME="1"><!-- Empty --></A>
<H2>1 Introduction</H2>
<A NAME="1.1"><!-- Empty --></A>
<H3>1.1 Purpose</H3>

<P>This reference manual describes the Erlang programming
language. The focus is on the language itself, not
the implementation. The language constructs are described in
text and with examples rather than formally specified, with
the intention to make the manual more readable.
The manual is not intended as a tutorial.
<P>Information about this implementation of Erlang can be found, for
example, in <STRONG>System Principles</STRONG> (starting and stopping,
boot scripts, code loading, error logging, creating target
systems), <STRONG>Efficiency Guide</STRONG> (memory consumption, system
limits) and <STRONG>ERTS User's Guide</STRONG> (crash dumps, drivers).<A NAME="1.2"><!-- Empty --></A>
<H3>1.2 Prerequisites</H3>

<P>It is assumed that the reader has done some programming and
is familiar with concepts such as data types and programming
language syntax.<A NAME="1.3"><!-- Empty --></A>
<H3>1.3 Document Conventions</H3>

<P>In the document, the following terminology is used:
<P>
<UL>

<LI>
A <STRONG>sequence</STRONG> is one or more items. For example, a
        clause body consists of a sequence of expressions. This
        means that there must be at least one expression.

</LI>


<LI>
A <STRONG>list</STRONG> is any number of items. For example,
        an argument list can consist of zero, one or more arguments.

</LI>


</UL>

<P>If a feature has been added recently, in Erlang 5.0/OTP R7 or
later, this is mentioned in the text.<A NAME="1.4"><!-- Empty --></A>
<H3>1.4 Complete List of BIFs</H3>

<P>For a complete list of BIFs, their arguments and return values,
refer to <CODE>erlang(3)</CODE>.<A NAME="1.5"><!-- Empty --></A>
<H3>1.5 Reserved Words</H3>

<P>The following are reserved words in Erlang:
<P>after and andalso band begin bnot bor bsl bsr bxor case catch
cond div end fun if let not of or orelse query receive rem try
when xor<A NAME="1.6"><!-- Empty --></A>
<H3>1.6 Character Set</H3>

<P>In Erlang 4.8/OTP R5A the syntax of Erlang tokens was extended to
allow the use of the full ISO-8859-1 (Latin-1) character set. This
is noticeable in the following ways:
<P>
<UL>

<LI>
        All the Latin-1 printable characters can be used and are
         shown without the escape backslash convention.<BR>


</LI>


<LI>
        Atoms and variables can use all Latin-1 letters.<BR>


</LI>


</UL>

<P>
<CENTER>
<TABLE CELLSPACING=0 CELLPADDING=2 BORDER=1>
  <CAPTION ALIGN=BOTTOM><EM>Character Classes.</EM></CAPTION>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
<STRONG>Octal</STRONG>
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
<STRONG>Decimal</STRONG>
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">

    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
<STRONG>Class</STRONG>
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
200 - 237
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
128 - 159
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">

    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Control characters
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
240 - 277
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
160 - 191
    </TD>
    <TD ALIGN="RIGHT" VALIGN="MIDDLE">
 - 
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Punctuation characters
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
300 - 326
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
192 - 214
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
 - 
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Uppercase letters
    </TD>

  </TR>
  <TR>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
327
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
215
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">

    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Punctuation character
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
330 - 336
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
216 - 222
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
 - 
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Uppercase letters
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
337 - 366
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
223 - 246
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
 - 
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Lowercase letters
    </TD>

  </TR>
  <TR>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
367
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
247
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">

    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Punctuation character
    </TD>

  </TR>
  <TR>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
370 - 377
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
248 - 255
    </TD>
    <TD ALIGN="CENTER" VALIGN="MIDDLE">
 - 
    </TD>
    <TD ALIGN="LEFT" VALIGN="MIDDLE">
Lowercase letters
    </TD>

  </TR>

</TABLE>
</CENTER>
<CENTER>
<HR>
<SMALL>
Copyright &copy; 1991-2006
<A HREF="http://www.erlang.se">Ericsson AB</A><BR>
</SMALL>
</CENTER>
</BODY>
</HTML>