How to transpile Elixir to Erlang

Does anyone know any lib or method to transpile Elixir code to Erlang?

Elixir itself compiles to Erlang Abstract Format (and then this is again compiled by the Erlang compiler to BEAM bytecode).
One approach which you could take, is to decompile either the EAF or the BEAM bytecode to readable Erlang source-code.

There are a couple of libraries/projects that do this. For instance there is

6 Likes

There is also GitHub - hrzndhrn/beam_file: BeamFile - A peek into the BEAM file .
But this is still a little experimental.

2 Likes

Thank you @Qqwy and @Marcus, that’s very helpful!