aboutsummaryrefslogtreecommitdiff
path: root/src/comp/pretty/pp.rs
Commit message (Collapse)AuthorAgeFilesLines
* Preserve comments when pretty-printing.Marijn Haverbeke2011-03-311-90/+131
| | | | | The patch also includes a number of smaller fixes to the pretty-printer that were encountered on the way.
* fix pretty-printerMarijn Haverbeke2011-03-251-6/+10
| | | | | | A change in 54587bdccb7b6771cfc704a30fc0ef2c65824a15 (the vec appending overhaul) had broken it. (Apparently modifying a vec while iterating over it can corrupt memory.)
* Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare2011-03-161-6/+8
| | | | Tweak std lib vec fns in process.
* Have the pretty-printer take a writer stream as argumentMarijn Haverbeke2011-03-091-15/+28
| | | | | It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
* Add a pretty-printerMarijn Haverbeke2011-03-071-0/+207
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.