Created
August 2, 2013 22:40
-
-
Save dry/6144045 to your computer and use it in GitHub Desktop.
Erlang - extract beam function attributes.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ok,{_,[{abstract_code,{_,AC}}]}} = beam_lib:chunks(Beam,[abstract_code]). | |
io:fwrite("~s~n", [erl_prettypr:format(erl_syntax:form_list(AC))]). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment