The reformatter (from traditional s-expr to sweet-expressions) is starting to actually work.
I wrote it with sweet-expressions (of course!), so generate its Scheme file with: $ make iformat.scm Now you can process Scheme s-expressions. For example, to see sugar.scm: $ guile iformat.scm < sugar.scm | less I cheated by using "object->string" which isn't in R5RS, but is in guile. That could be replaced later (in a portability layer), but it's a pain to generate some data types without it. There's a lot it doesn't do. In particular, there's only one term per line (terms can have parameters, so {3 + 4} can be on a line), and it doesn't have any clue about common Lisp function names & how they might be better formatted. But it's enough to able to see what things look like. --- David A. Wheeler ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Readable-discuss mailing list Readable-discuss@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/readable-discuss