.TH erl_id_trans 3erl "stdlib 3.7.1" "Ericsson AB" "Erlang Module Definition" .SH NAME erl_id_trans \- An identity parse transform. .SH DESCRIPTION .LP This module performs an identity parse transformation of Erlang code\&. It is included as an example for users who wants to write their own parse transformers\&. If option \fI{parse_transform,Module}\fR\& is passed to the compiler, a user-written function \fIparse_transform/2\fR\& is called by the compiler before the code is checked for errors\&. .SH EXPORTS .LP .B parse_transform(Forms, Options) -> Forms .br .RS .LP Types: .RS 3 Forms = [\fBerl_parse:abstract_form()\fR\& | \fBerl_parse:form_info()\fR\&] .br Options = [\fBcompile:option()\fR\&] .br .RE .RE .RS .LP Performs an identity transformation on Erlang forms, as an example\&. .RE .SH "PARSE TRANSFORMATIONS" .LP Parse transformations are used if a programmer wants to use Erlang syntax, but with different semantics\&. The original Erlang code is then transformed into other Erlang code\&. .LP .RS -4 .B Note: .RE Programmers are strongly advised not to engage in parse transformations\&. No support is offered for problems encountered\&. .SH "SEE ALSO" .LP \fB\fIerl_parse(3erl)\fR\&\fR\&, \fB\fIcompile(3erl)\fR\&\fR\&