<div>Hello Benoit,</div><div><br></div><div>If you are using rebar, you should be able to use master as a dependency:</div><div><br></div><div><a href="https://github.com/elixir-lang/elixir.git">https://github.com/elixir-lang/elixir.git</a></div>
<div><br></div><div>After using it as a dependency, since Elixir follows a similar structure to OTP, you will need to choose which apps you want to load, there are some instructions inside the rebar.config file:</div><div>
<br></div><div><a href="https://github.com/elixir-lang/elixir/blob/master/rebar.config">https://github.com/elixir-lang/elixir/blob/master/rebar.config</a></div><div><br></div><div>Then you can install Elixir's rebar plugin:</div>
<div><br></div><div><a href="https://github.com/yrashk/rebar_elixir_plugin">https://github.com/yrashk/rebar_elixir_plugin</a></div><div><br></div><div>And be able to compile and use Elixir files normally with your rebar workflow.</div>
<div><br></div><div>If you are not using rebar, I believe the easiest approach is to clone elixir, run "make" and add the lib directory to ERL_LIBS.</div><div><br></div><div>I will work on documenting this process and also on adding a readme to rebar_elixir_plugin with the available configuration options. Please let me know if you have any questions or ask away on #elixir-lang. </div>
<div><br></div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b><span style="border-collapse:separate;font-family:arial;font-weight:normal"><div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><b>José Valim</b></span></div>
<div><span style="font-family:arial,sans-serif;font-size:13px;border-collapse:collapse"><div><span style="font-family:verdana,sans-serif;font-size:x-small"><a href="http://www.plataformatec.com.br/" style="color:rgb(42,93,176)" target="_blank">www.plataformatec.com.br</a></span></div>
<div><span style="font-family:verdana,sans-serif;font-size:x-small">Founder and Lead Developer</span></div></span></div></span></b></span><br>
<br><br><div class="gmail_quote">On Thu, Jul 12, 2012 at 9:19 AM, Benoit Chesneau <span dir="ltr"><<a href="mailto:bchesneau@gmail.com" target="_blank">bchesneau@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I don't see any example on how to embed Elixir in your own erlang<br>
code. Is this possible? How?<br>
<br>
- benoît<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div><br>