String to term

osxroolz <>
Wed Apr 27 15:18:44 CEST 2005


Mr,

in mailing list archive it shows that you have been evaluating erlang
for many years 
and must know very much indeed about evaluation now. Please advice
results.

May be good to evaluation include erl_parse module and his fonction
parse_term 
and then also erl_scan.

{ok, T, _} = erl_scan:string("{1,2,[hello]}."), erl_parse:parse_term(T). 
{ok,{1,2,[hello]}}

iMan

On Wed, 27 Apr 2005 09:50:39 -0300, "Inswitch Solutions - Erlang
Evaluation" <> said:
> Hi,
> 
> Does someone know if there is an easy way to convert a string to an
> Erlang
> term?
> example:
> "{1,2,[hello]}" ---- converted to ----->  {1,2,[hello]}
> 
> 
> thanks in advance,
> Eduardo Figoli
> INSwitch Solutions
> 
> 
> 
-- 
  
  




More information about the erlang-questions mailing list