Abstract form

Vlad Dumitrescu vlad_dumitrescu@REDACTED
Sun Jan 1 23:45:37 CET 2006


> > erl_parse...("[3,a,5]"). --->
> >
> > {cons,1,{integer,1,3},{cons,1,{atom,1,a},{cons,1,{integer,1,5},{nil,1}}}}
>
> Can you start by explaining what the above is supposed to mean?  I
> can't make head or tail of it, yet "erl_parse" experts seem to know
> what you mean, which suggests there's some sort of known irritation. I
> got stuck here:

I am sorry, those "..." were meant to mean that one should use erl_parse to 
parse the string. Somethink in the lines of

{ok, T,  _} = erl_scan:string("[3,a,5]"),
erl_parse:parse_term(T).

I apologize if it was unclear.

regards,
Vlad 



More information about the erlang-questions mailing list