1
<?xml version="1.0" encoding="latin1" ?>
2
<!DOCTYPE erlref SYSTEM "erlref.dtd">
9
<holder>Ericsson AB, All Rights Reserved</holder>
12
The contents of this file are subject to the Erlang Public License,
13
Version 1.1, (the "License"); you may not use this file except in
14
compliance with the License. You should have received a copy of the
15
Erlang Public License along with this software. If not, it can be
16
retrieved online at http://www.erlang.org/.
18
Software distributed under the License is distributed on an "AS IS"
19
basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
20
the License for the specific language governing rights and limitations
23
The Initial Developer of the Original Code is Ericsson AB.
26
<title>erl_internal</title>
27
<prepared>Robert Virding</prepared>
28
<responsible>Bjarne Däcker</responsible>
30
<approved>Bjarne Däcker</approved>
34
<file>erl_internal.sgml</file>
36
<module>erl_internal</module>
37
<modulesummary>Internal Erlang Definitions</modulesummary>
39
<p>This module defines Erlang BIFs, guard tests and operators.
40
This module is only of interest to programmers who
41
manipulate Erlang code.</p>
45
<name>bif(Name, Arity) -> bool()</name>
46
<fsummary>Test for an Erlang BIF</fsummary>
49
<v>Arity = integer()</v>
52
<p>Returns <c>true</c> if <c>Name/Arity</c> is an Erlang BIF
53
which is automatically recognized by the compiler, otherwise
58
<name>guard_bif(Name, Arity) -> bool()</name>
59
<fsummary>Test for an Erlang BIF allowed in guards</fsummary>
62
<v>Arity = integer()</v>
65
<p>Returns <c>true</c> if <c>Name/Arity</c> is an Erlang BIF
66
which is allowed in guards, otherwise <c>false</c>.</p>
70
<name>type_test(Name, Arity) -> bool()</name>
71
<fsummary>Test for a valid type test</fsummary>
74
<v>Arity = integer()</v>
77
<p>Returns <c>true</c> if <c>Name/Arity</c> is a valid Erlang
78
type test, otherwise <c>false</c>.</p>
82
<name>arith_op(OpName, Arity) -> bool()</name>
83
<fsummary>Test for an arithmetic operator</fsummary>
85
<v>OpName = atom()</v>
86
<v>Arity = integer()</v>
89
<p>Returns <c>true</c> if <c>OpName/Arity</c> is an arithmetic
90
operator, otherwise <c>false</c>.</p>
94
<name>bool_op(OpName, Arity) -> bool()</name>
95
<fsummary>Test for a Boolean operator</fsummary>
97
<v>OpName = atom()</v>
98
<v>Arity = integer()</v>
101
<p>Returns <c>true</c> if <c>OpName/Arity</c> is a Boolean
102
operator, otherwise <c>false</c>.</p>
106
<name>comp_op(OpName, Arity) -> bool()</name>
107
<fsummary>Test for a comparison operator</fsummary>
109
<v>OpName = atom()</v>
110
<v>Arity = integer()</v>
113
<p>Returns <c>true</c> if <c>OpName/Arity</c> is a comparison
114
operator, otherwise <c>false</c>.</p>
118
<name>list_op(OpName, Arity) -> bool()</name>
119
<fsummary>Test for a list operator</fsummary>
121
<v>OpName = atom()</v>
122
<v>Arity = integer()</v>
125
<p>Returns <c>true</c> if <c>OpName/Arity</c> is a list
126
operator, otherwise <c>false</c>.</p>
130
<name>send_op(OpName, Arity) -> bool()</name>
131
<fsummary>Test for a send operator</fsummary>
133
<v>OpName = atom()</v>
134
<v>Arity = integer()</v>
137
<p>Returns <c>true</c> if <c>OpName/Arity</c> is a send
138
operator, otherwise <c>false</c>.</p>
142
<name>op_type(OpName, Arity) -> Type</name>
143
<fsummary>Return operator type</fsummary>
145
<v>OpName = atom()</v>
146
<v>Arity = integer()</v>
147
<v>Type = arith | bool | comp | list | send</v>
150
<p>Returns the <c>Type</c> of operator that <c>OpName/Arity</c>
152
or generates a <c>function_clause</c> error if it is not an