Hi,<br><br><div class="gmail_quote">On Wed, May 25, 2011 at 11:15, Joe Armstrong <span dir="ltr"><<a href="mailto:erlang@gmail.com">erlang@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

I need to identify the best possible erlang pretty printer.<br><br>Are there several, or unpublished variants in existence?<br><br>I want exact reproduction of inputted constants<br>it $a should be pretty printed as $a and NOT 97.<br>

</blockquote><div><br></div><div>Things like [$a, $b | "cde"] should be preserved, too.  </div><div><br></div><div>This is not only a pretty-printer problem. One can't take the existing abstract syntax tree and recreate the exact input, but special lexer and parser are needed that preserve the needed information. </div>

<div><br></div><div>A problem with automatic formatting is also that there are situations where the rules one generally uses are resulting in an ugly layout and one has to make an exception or accept the ugliness. I know people that would never do the latter.</div>

<div><br></div><div>/Vlad</div><div> </div></div>