| I have completed, as far as I can tell, my reimplementation of pg's ppr function. The new version, while longer, is also significantly better than the old version, and is highly recommended if you use the 'src function in Anarki. Since I haven't gotten a distribution site set up on my server yet like CatDancer, it's just available on github right now. I might be able to put it on Anarki, but I'm worried that I'll mess something up with rntz's fancy new system over there. Location: http://github.com/shader/ppr/tree/master To get it, just download the raw ppr.arc file into your lib folder, and replace the line in libs.arc that loads pprint.arc with one that loads lib/ppr.arc. Features: - It supports arc syntax such as quote, unquote, quasiquote, unquote-splicing, make-br-fn, and docstrings. - It properly indents nearly all arc forms, and it is easy to add more special cases or change current ones if you don't like the way it's indenting by making an entry in the indent-rules* table. Caveats: - It redefines 'len to work with dotted lists. The new version is fully compatible with the old one, but you should be aware of the change. - It only works with Anarki due to using the new multi-arg make-br-fn, and the $ macro. Have fun! 'src now looks a lot better. Try it out whenever you're wondering how a particular function or macro works. |