blob: d0195b036cd84ad3a814b7e4b82909b15a947fa6 (
plain) (
tree)
|
|
#!/usr/bin/env escript
%% -*- erlang -*-
-export([main/1]).
main(_) ->
ok = io:setopts([{encoding,latin1}]),
_D = erlang:system_flag(backtrace_depth, 0),
A = <<"\x{aa}">>,
S = lists:flatten(io_lib:format("~p/~p.", [A, A])),
{ok, Ts, _} = erl_scan:string(S, 1),
{ok, Es} = erl_parse:parse_exprs(Ts),
B = erl_eval:new_bindings(),
erl_eval:exprs(Es, B).
|