Skip to content

Instantly share code, notes, and snippets.

@kuenishi
Created February 5, 2014 15:30
Show Gist options
  • Save kuenishi/8826104 to your computer and use it in GitHub Desktop.
Save kuenishi/8826104 to your computer and use it in GitHub Desktop.
totally broken around type/spec.
-module(fmt).
-compile(export_all).
main([File]) ->
{ok, Bin} = file:read_file(File),
{ok, Scanned, _Count} = erl_scan:string(binary_to_list(Bin)),
{ok, Parsed} = erl_parse:parse_form(Scanned),
io:fwrite("~s", [erl_pp:form(Parsed)]).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment