News for hackers. Stuff that matters.
Re:The Hardest Program I've Ever Written by sklogic on Thursday September 10, 2015 @05:26PM (#10200663)
The beauty of this pretty-printing solution (merging it with the parser) is that you don't even need any parsing tree to be constructed. The parser will simply walk the stream and annotate it with the pretty-printing instructions (pushing an popping the indentation context, adding the weighted break candidates, etc.).

There are no comments on this comment yet.