Last active
September 27, 2020 19:08
-
-
Save jon-stewart/51de7d47e5ff55b0bdb46318d9eba3ac to your computer and use it in GitHub Desktop.
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
main([]) -> | |
{ok, Tokens, _} = erl_scan:string("io:format(\"recursive eval: ~p\", [X]), erl_eval:exprs(X, erl_eval:add_binding('X', X, erl_eval:new_bindings()))."), | |
{ok, [Expression]} = erl_parse:parse_exprs(Tokens), | |
erl_eval:exprs(Expression, erl_eval:add_binding('X', Expression, erl_eval:new_bindings())). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment