<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div>On 10.03.2010, at 22:47, Eliot Miranda wrote:</div><blockquote type="cite"><br><br><div class="gmail_quote">On Wed, Mar 10, 2010 at 1:44 PM, Nicolas Cellier <span dir="ltr">&lt;<a href="mailto:nicolas.cellier.aka.nice@gmail.com">nicolas.cellier.aka.nice@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
2010/3/10 Andreas Raab &lt;<a href="mailto:andreas.raab@gmx.de">andreas.raab@gmx.de</a>&gt;:<br>
<div><div></div><div class="h5">&gt; On 3/10/2010 1:30 PM, Chris Muller wrote:<br>
&gt;&gt;<br>
&gt;&gt; So it seems the main difference is that Levente prefers blocks to<br>
&gt;&gt; start on the same rather than next line. &nbsp;That could probably be made<br>
&gt;&gt; a preference..<br>
&gt;<br>
&gt; FWIW, I think pretty-printing should be implemented by a simple visitor so<br>
&gt; that people can trivially write their own rules. It's fair to have a few<br>
&gt; preferences but I don't think a one-size-fits-all approach can possibly work<br>
&gt; when it comes to style.<br>
&gt;<br>
&gt; Cheers,<br>
&gt; &nbsp;- Andreas<br>
&gt;<br>
<br>
</div></div>Among things I dont like:<br>
<br>
source:<br>
test<br>
 &nbsp; &nbsp; &nbsp; &nbsp;^16r7F<br>
<br>
pretty print:<br>
test<br>
 &nbsp; &nbsp; &nbsp; &nbsp;^127<br>
<br></blockquote><div><br></div><div>+1. &nbsp;But you're going to have to attach metadata to e.g. LiteralNode and get that metadata from the number parsing. &nbsp;And for fixing that, You Da Man!! :) :)</div></div></blockquote></div><div><br></div><div>What would be Way Cool is if the "source code" would just be some hints to reformat the decompiler output to match what was typed. There could be immense space savings :)</div><div><br></div><div>Though my original question wasn't at all about pretty printing but I guess that direction of discussion was to be expected ...</div><div><br></div><div>
<span class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Lucida Grande; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><div style="font-family: Helvetica; "><span class="Apple-style-span" style="font-family: Helvetica; ">- Bert -</span></div><br class="Apple-interchange-newline"></span>
</div>
<br></body></html>