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
- decompiler,
- decompilerl,
- this guide about using the decompilation tools that are part of Erlang itself.
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