Skip to content

Instantly share code, notes, and snippets.

@mwicat
Created March 3, 2012 16:22
Show Gist options
  • Select an option

  • Save mwicat/1966862 to your computer and use it in GitHub Desktop.

Select an option

Save mwicat/1966862 to your computer and use it in GitHub Desktop.
Erlang startup file
-module(user_default).
-compile(export_all).
eval(S,Environ) ->
{ok,Scanned,_} = erl_scan:string(S),
{ok,Parsed} = erl_parse:parse_exprs(Scanned),
erl_eval:exprs(Parsed,Environ).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment