efe icon indicating copy to clipboard operation
efe copied to clipboard

Elixir Flavoured Erlang: an Erlang to Elixir Transpiler

Results 13 efe issues
Sort by recently updated
recently updated
newest added

```erlang underscore_variable() -> case 1 of x when is_atom(x) -> atom; _Other -> _Other end. ``` will transpile as ```elixir defp underscore_variable() do case (1) do :x when is_atom(:x) ->...

There is a variable scope issue. Elixir and Erlang treat them differently. ```erlang 1> case 1 of 1> 1 -> 1> {A, B} = {10, 20} 1> end. {10,20} 2>...

```erlang do(Term) -> do(Term, []). ``` will transpile as: ```elixir def unquote(:do)(term) do do(term, []) end ``` but Elixir will consider `do(` as a regular do, The solution is to...

https://github.com/elixir-lang/elixir/commit/d9a23d0d38ce1ada6583eca1c6ce6c861114fca7 No even v1.12 has been released yet, but I decided to create the issue in case you want to be prepared with time ```erlang deprecated() -> 9 bxor 3....

```erlang bitstring(Var) -> . ``` is transpiled as: ```elixir defp bitstring(var) do end ``` and you will get a compile error. ` unexpected token: "~" (column 8, code point U+007E)`...

```erlang -module(debug). -compile(export_all). function_names() -> '__function_names__'(). '__function_names__'() -> 'foo'. ``` transpiles to ```elixir defmodule :debug do use Bitwise @compile :export_all def function_names() do '__function_names__'() end def __function_names__() do :foo end...

```erlang module_names_prefixed_with_elixir() -> [ 'Elixir.Kernel', 'Elixir.Kernel':is_atom(true) ]. ``` transpiles as: ```elixir def module_names_prefixed_with_elixir() do [ :"Elixir.Kernel", :Elixir.Kernel.is_atom(true) ] end ``` The first one is OK, the second one errors. `**...

It will be great if the Elixir sources are formatted with the Elixir formatter.

to avoid problems like this one: http://marianoguerra.org/posts/how-to-transpile-a-complex-erlang-project-with-elixir-flavoured-erlang-erldns/