HELP ME, please

Mats Cronqvist mats.cronqvist@REDACTED
Tue Apr 18 16:56:26 CEST 2006


   maybe the FAQ?

   mats

Ulf Wiger (AL/EAB) wrote:
> Couldn't this little code snippet be made into an official
> OTP function, somewhere?
> 
> It's a little bit too complicated to hold in memory,
> and the docs are a little bit too terse to allow
> people to figure it out each time.
> 
> At least, it could become an example in the docs 
> for syntax_tools or beam_lib? Then, people'd have
> something to copy-paste from.
> 
> BR,
> Ulf W 
> 
> 
>>-----Original Message-----
>>From: owner-erlang-questions@REDACTED 
>>[mailto:owner-erlang-questions@REDACTED] On Behalf Of Mats Cronqvist
>>Sent: den 13 april 2006 12:54
>>To: erlang-questions@REDACTED
>>Subject: Re: HELP ME, please
>>
>>   if the beam file was generated with erlc +debug_info this 
>>ought to work;
>>
>>{ok,{_,[{abstract_code,{_,AC}}]}}=beam_lib:chunks(BeamFileName
>>,[abstract_code]).
>>io:fwrite("~s~n",[erl_prettypr:format(erl_syntax:form_list(AC))]).
>>
>>   mats
>>
>>Daniele Andreasi wrote:
>>
>>>Hallo,
>>>
>>>I have a big problem: i loose my ".erl" file!, but i have 
>>
>>the ".beam";
>>
>>>Do anybody know if exist a way to rebuild a file ".erl" by 
>>
>>a  file ".beam"?
>>
>>>ANY WAY.
>>>
>>>Thanks
>>



More information about the erlang-questions mailing list