1erl_id_trans(3) Erlang Module Definition erl_id_trans(3)
2
3
4
6 erl_id_trans - An identity parse transform.
7
9 This module performs an identity parse transformation of Erlang code.
10 It is included as an example for users who wants to write their own
11 parse transformers. If option {parse_transform,Module} is passed to the
12 compiler, a user-written function parse_transform/2 is called by the
13 compiler before the code is checked for errors.
14
16 parse_transform(Forms, Options) -> Forms
17
18 Types:
19
20 Forms = [erl_parse:abstract_form() | erl_parse:form_info()]
21 Options = [compile:option()]
22
23 Performs an identity transformation on Erlang forms, as an exam‐
24 ple.
25
27 Parse transformations are used if a programmer wants to use Erlang syn‐
28 tax, but with different semantics. The original Erlang code is then
29 transformed into other Erlang code.
30
31 Note:
32 Programmers are strongly advised not to engage in parse transforma‐
33 tions. No support is offered for problems encountered.
34
35
37 erl_parse(3), compile(3)
38
39
40
41Ericsson AB stdlib 3.14.2.1 erl_id_trans(3)