1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70
|
<HTML>
<HEAD>
<!-- refpage -->
<TITLE>erl_id_trans</TITLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF">
<CENTER>
<A HREF="http://www.erlang.se"><IMG BORDER=0 ALT="[Erlang Systems]" SRC="min_head.gif"></A>
<H1>erl_id_trans</H1>
</CENTER>
<H3>MODULE</H3>
<UL>
erl_id_trans</UL>
<H3>MODULE SUMMARY</H3>
<UL>
An Identity Parse Transform</UL>
<H3>DESCRIPTION</H3>
<UL>
<P>This module performs an identity parse transformation of Erlang code.
It is included as an example for users who may wish to write their own
parse transformers. If the option <CODE>{parse_transform,Module}</CODE> is passed
to the compiler, a user written function <CODE>parse_transform/2</CODE>
is called by the compiler before the code is checked for
errors.
</UL>
<H3>EXPORTS</H3>
<P><A NAME="parse_transform%2"><STRONG><CODE>parse_transform(Forms, Options) -> Forms</CODE></STRONG></A><BR>
<P><UL>Types:
<UL>
<STRONG><CODE>Forms = [erlang_form()]</CODE></STRONG><BR>
<STRONG><CODE>Options = [compiler_options()]</CODE></STRONG><BR>
</UL>
</UL>
<UL>
<P>Performs an identity transformation on Erlang forms, as an example.
</UL>
<H3>Parse Transformations</H3>
<UL>
<P>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.
<P><TABLE CELLPADDING=4>
<TR>
<TD VALIGN=TOP><IMG ALT="Note!" SRC="note.gif"></TD>
<TD>
<P>Programmers are strongly advised not to engage in parse transformations and no support is offered for problems encountered.</TD>
</TR>
</TABLE>
</UL>
<H3>See Also</H3>
<UL>
<P> <A HREF="erl_parse.html">erl_parse</A> compile.
</UL>
<H3>AUTHORS</H3>
<UL>
Robert Virding - support@erlang.ericsson.se<BR>
</UL>
<CENTER>
<HR>
<FONT SIZE=-1>stdlib 1.10<BR>
Copyright © 1991-2001
<A HREF="http://www.erlang.se">Ericsson Utvecklings AB</A><BR>
<!--#include virtual="/ssi/otp_footer.html"-->
</FONT>
</CENTER>
</BODY>
</HTML>
|