This is the mail archive of the kawa@sourceware.org mailing list for the Kawa project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
On 05/11/2011 03:06 PM, Jamison Hope wrote:Per, a comment near the top of gnu.text.PrettyWriter mentions that it's
based upon SBCL's pprint.lisp; how slight is that connection at this point?
Would reading the analogous Lisp source help Charles to understand what's
going on, or just confuse him more?
I guess it might. I don't remember how well-commented pprint.lisp is -
probably not any better than PrettyWriter.java. It also depends on how fluent
Charles is on reading Lisp as opposed to reading Java.
Will the output of the first pass be saved somewhere for the entire contents of the ReplDocument, or will the pretty printer just take the document contents as previously displayed (i.e. one huge String), remove all the line breaks, and insert new line breaks appropriate for the new width?The problem is this ties us to Swing, which is rather old and not super-portable: We want to able to pretty-print when outputting to a terminal/console, to a webpage, to swt, and so on.
And hopefully at some point back references and position makers for print-circle notation.
I suppose my real question is: what information is there in the output of the first pass which is lost by the time s-expressions (or whatever) are written to the Document?
The logical structure (grouping). Also, the different kinds of spaces and newlines.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |