<div dir="ltr">thank you, <div>i was looking something like command line version, although if would be nice to compile module programatically and non invasive (-compile option). </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 3:27 PM, Juan Martín <span dir="ltr"><<a href="mailto:juan.facorro@gmail.com" target="_blank">juan.facorro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">Nice! I didn't know about that one, obviously :P.</p><div class="HOEnZb"><div class="h5">
<br><div class="gmail_quote"><div dir="ltr">On Wed, Apr 26, 2017, 2:25 PM Richard Carlsson <<a href="mailto:carlsson.richard@gmail.com" target="_blank">carlsson.richard@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">You can add a core transform pass, just like a parse transform, but there is no support for adding passes below that level.<div><br></div><div>In the source file: -compile({core_transform,<wbr>Module}).</div><div><br></div><div>or on the command line: erlc +'{core_transform,Module}'</div><div><br></div><div>will cause Module:core_transform(Code, Options) to be called during compilation.</div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="m_-3023014856942428097m_8119604808549430129gmail_signature" data-smartmail="gmail_signature"><br>        /Richard</div></div>
<br><div class="gmail_quote">2017-04-26 13:23 GMT+02:00 Karlo Kuna <span dir="ltr"><<a href="mailto:kuna.prime@gmail.com" target="_blank">kuna.prime@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">it's a shame, looking at source of compliler.erl this feature would be easy to add. Are you aware of any such proposal? Also it would be interesting to hear opinions on adding such proposal.<div><br></div><div>thank you <br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Apr 26, 2017 at 10:29 AM, Juan Facorro <span dir="ltr"><<a href="mailto:juan.facorro@gmail.com" target="_blank">juan.facorro@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Saturday, April 22, 2017 at 8:58:59 PM UTC+1, Karlo Kuna wrote:<br>
> can one add custom compile pass when compiling module??<br>
<br>
It is not possible to arbitrarily insert a compiler pass in the Erlang compiler. Only parse transforms are currently available as a hook as a sort of preprocessing pass that handle Erlang AST.<br>
<br>
Cheers,<br>
Juan</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/<wbr>listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div>
</blockquote></div>
</div></div></blockquote></div><br></div>