Skip to content

Instantly share code, notes, and snippets.

@dry
Created August 2, 2013 22:40
Show Gist options
  • Save dry/6144045 to your computer and use it in GitHub Desktop.
Save dry/6144045 to your computer and use it in GitHub Desktop.
Erlang - extract beam function attributes.
{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