esl / gradient

Gradient is a static typechecker for Elixir
Apache License 2.0
437 stars 13 forks source link

Add Debug helper for printing disassembled Elixir code #140

Closed japhib closed 1 year ago

japhib commented 2 years ago

https://github.com/michalmuskala/decompile is a small repo showing how you can easily disassemble compiled BEAM bytecode into Elixir sourcecode, using the Elixir standard library. We already have Gradient.Debug.print_erlang which prints a compiled BEAM file as Erlang sourcecode; this adds the ability to print Elixir source code as well.

erszcz commented 1 year ago

This looks quite neat! I've approved the CI request.

japhib commented 1 year ago

I saw the pipeline failed the format check, just ran mix format and pushed the changes. Mind re-approving the CI request?

erszcz commented 1 year ago

Awesome, thanks @japhib!

If I correctly understand how it works, after your first PR getting merged CI should just kick in for your other PRs with no approvals needed, so that should be out of the way. Thanks again!