Fri May 11 22:09:36 CEST 2012
You could take a look at how parse_trans does it:
It uses erl_pp instead of erl_prettypr for reasons I have since forgotten
(it was something that, at one time, erl_prettypr had problems with, but
erl_pp was able to handle).
On 11 May 2012, at 22:01, Roberto Ostinelli wrote:
> Dear All,
> is there a way to use prettypr on a list()?
> I want to pretty format some source code, all I found is a Trapexit post showing this:
> Unfortunately this is based on parsing a file, and epp_dodger needs an IoDevice to parse code.
> Is there a way to do something similar but inputting the code as list() instead of parsing a file?
> erlang-questions mailing list
Ulf Wiger, Co-founder & Developer Advocate, Feuerlabs Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the erlang-questions