1erl_internal(3)            Erlang Module Definition            erl_internal(3)
2
3
4

NAME

6       erl_internal - Internal Erlang definitions.
7

DESCRIPTION

9       This  module defines Erlang BIFs, guard tests, and operators. This mod‐
10       ule is only of interest to programmers who manipulate Erlang code.
11

EXPORTS

13       add_predefined_functions(Forms) -> UpdatedForms
14
15              Types:
16
17                 Forms = [erl_parse:abstract_form() | erl_parse:form_info()]
18                 UpdatedForms =
19                     [erl_parse:abstract_form() | erl_parse:form_info()]
20
21              Adds to Forms the code for the  standard  pre-defined  functions
22              (such as module_info/0) that are to be included in every module.
23
24       arith_op(OpName, Arity) -> boolean()
25
26              Types:
27
28                 OpName = atom()
29                 Arity = arity()
30
31              Returns  true  if OpName/Arity is an arithmetic operator, other‐
32              wise false.
33
34       bif(Name, Arity) -> boolean()
35
36              Types:
37
38                 Name = atom()
39                 Arity = arity()
40
41              Returns true if Name/Arity is an Erlang BIF  that  is  automati‐
42              cally recognized by the compiler, otherwise false.
43
44       bool_op(OpName, Arity) -> boolean()
45
46              Types:
47
48                 OpName = atom()
49                 Arity = arity()
50
51              Returns  true  if  OpName/Arity is a Boolean operator, otherwise
52              false.
53
54       comp_op(OpName, Arity) -> boolean()
55
56              Types:
57
58                 OpName = atom()
59                 Arity = arity()
60
61              Returns true if OpName/Arity is a comparison operator, otherwise
62              false.
63
64       guard_bif(Name, Arity) -> boolean()
65
66              Types:
67
68                 Name = atom()
69                 Arity = arity()
70
71              Returns  true  if Name/Arity is an Erlang BIF that is allowed in
72              guards, otherwise false.
73
74       list_op(OpName, Arity) -> boolean()
75
76              Types:
77
78                 OpName = atom()
79                 Arity = arity()
80
81              Returns true if  OpName/Arity  is  a  list  operator,  otherwise
82              false.
83
84       op_type(OpName, Arity) -> Type
85
86              Types:
87
88                 OpName = atom()
89                 Arity = arity()
90                 Type = arith | bool | comp | list | send
91
92              Returns  the  Type  of operator that OpName/Arity belongs to, or
93              generates a function_clause error if it is not an operator.
94
95       send_op(OpName, Arity) -> boolean()
96
97              Types:
98
99                 OpName = atom()
100                 Arity = arity()
101
102              Returns true if  OpName/Arity  is  a  send  operator,  otherwise
103              false.
104
105       type_test(Name, Arity) -> boolean()
106
107              Types:
108
109                 Name = atom()
110                 Arity = arity()
111
112              Returns  true  if Name/Arity is a valid Erlang type test, other‐
113              wise false.
114
115
116
117Ericsson AB                      stdlib 5.1.1                  erl_internal(3)
Impressum