MaxoDecompile
is an Elixir / Erlang code decompiler.
This is a modifed and updated version from https://github.com/michalmuskala/decompile.
It has tests and the code is more maintainable.
$ mix archive.install hex maxo_decompile
# prints Elixir code to terminal ()
$ mix maxo.decompile MaxoDecompile.Core --to ex
# same as
$ mix maxo.decompile MaxoDecompile.Core --to ex --stdout=true
# prints Erlang code to terminal
$ mix maxo.decompile MaxoDecompile.Core --to erl
# prints ASM code to terminal
$ mix maxo.decompile MaxoDecompile.Core --to asm
The docs can be found at https://hexdocs.pm/maxo_decompile.
- https://github.com/hrzndhrn/beam_file (much cleaner code and support for different Elixir versions, recommended!)
- https://github.com/michalmuskala/decompile
The lib is available as open source under the terms of the MIT License.