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.
Information about this implementation of Erlang can be found, for example, in System Principles (starting and stopping, boot scripts, code loading, error logging, creating target systems), Efficiency Guide (memory consumption, system limits) and ERTS User's Guide (crash dumps, drivers).
It is assumed that the reader has done some programming and is familiar with concepts such as data types and programming language syntax.
In the document, the following terminology is used:
If a feature has been added recently, in Erlang 5.0/OTP R7 or later, this is mentioned in the text.
For a complete list of BIFs, their arguments and return values,
The following are reserved words in Erlang:
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
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:
|200 - 237||128 - 159||Control characters|
|240 - 277||160 - 191||- ¿||Punctuation characters|
|300 - 326||192 - 214||À - Ö||Uppercase letters|
|330 - 336||216 - 222||Ø - Þ||Uppercase letters|
|337 - 366||223 - 246||ß - ö||Lowercase letters|
|370 - 377||248 - 255||ø - ÿ||Lowercase letters|