about summary refs log tree commit diff
path: root/src/comp/pretty/pprust.rs
AgeCommit message (Collapse)AuthorLines
2011-06-09Revert "Encode meta tags in the crate and start sketching enhanced logic for ↵Patrick Walton-1/+1
resolving crate "use" directives." due to tree bustage This reverts commit ab3635eebef2b8cf0e19cdbc5b4e8dd7a49a4658.
2011-06-09Encode meta tags in the crate and start sketching enhanced logic for ↵Graydon Hoare-1/+1
resolving crate "use" directives.
2011-06-09rustc: Annotate vector and string literals in the AST with their uniqueness ↵Patrick Walton-2/+7
or lack thereof
2011-06-09Further support for predicate constraintsTim Chevalier-200/+10
Changed function types to include a list of constraints. Added code for parsing and pretty-printing constraints. This necessitated splitting pprust into two files (pprust and ppaux) to break a circulate dependency, as ty_to_str now needs to print out constraints, which may include literals, but pprust depended on ty.
2011-06-08Add optional message to fail.Josh Matthews-1/+6
2011-06-07Removing dead code and redundant fails; changing fails to sess.bugLindsey Kuper-1/+1
calls (issue #444).
2011-06-03Remove zerobreak between foo and ( on a call expr. Never looks right.Graydon Hoare-1/+0
2011-06-03Make pp more conservative about inserting trailing comments mid-list.Graydon Hoare-7/+15
2011-06-03Add spans to fields, args, methods. Improve pp of same.Graydon Hoare-10/+8
2011-06-03Tidy up printing of ty_fn.Graydon Hoare-1/+5
2011-06-02Pretty-print literals exactly as we saw them in the source.Graydon Hoare-30/+62
2011-06-02rustc: Print node IDs for more types of nodesPatrick Walton-0/+27
2011-06-02rustc: Tiny style fix in pprust::rust_printerPatrick Walton-1/+1
2011-06-01rustc: Add a new mode to the pretty printer that prints out node IDs, for ↵Patrick Walton-2/+21
debugging
2011-06-01Add a few more to_str functionsTim Chevalier-4/+6
2011-06-01Permit breaking before fn args block.Graydon Hoare-0/+1
2011-06-01More tweaks to comment preservation rules.Graydon Hoare-70/+98
2011-06-01Print iters as iters not fns.Graydon Hoare-6/+11
2011-06-01Print ty_bot properly.Graydon Hoare-1/+1
2011-06-01Bug fixes to pprust.Graydon Hoare-2/+3
2011-06-01Support printing globs.Graydon Hoare-0/+10
2011-06-01Slightly more aggressive about inserting whitespace. Getting frustrated with ↵Graydon Hoare-3/+11
comments.
2011-05-31Give up on use of huge_word for comments. Still not formatting quite right, ↵Graydon Hoare-16/+9
but closer.
2011-05-31Fix pretty printer for move.Michael Sullivan-1/+1
2011-05-31Support move as an initializer.Michael Sullivan-1/+4
2011-05-31Insert plumbing for move that behaves just like assign.Michael Sullivan-0/+6
2011-05-31Handle pretty-printing else-if properly.Graydon Hoare-12/+26
2011-05-31Consolidate formatting functions a bit more.Graydon Hoare-97/+106
2011-05-31Fix long linesGraydon Hoare-4/+10
2011-05-31Break methods in obj types.Graydon Hoare-0/+3
2011-05-31Tighten up comment rules a little more.Graydon Hoare-21/+21
2011-05-31Improve handling of trailing comments.Graydon Hoare-4/+23
2011-05-31Add span to field to catch per-field comments in rec exprs.Graydon Hoare-5/+7
2011-05-31Improve comment handling in pp.Graydon Hoare-135/+135
2011-05-31Differentiate consistency of commasep boxesGraydon Hoare-23/+27
2011-05-31new pretty printerGraydon Hoare-170/+227
2011-05-27Change the syntax for RECV from "var <- port" to "port |> var".Michael Sullivan-3/+3
2011-05-26Fix typoTim Chevalier-1/+1
2011-05-25Pretty print view items with :: rather than :.Graydon Hoare-1/+1
2011-05-23Get test-pass/utf8.rs to runMarijn Haverbeke-1/+2
This involved a small fix to the unicode-escape character lexing and to the pretty-printer.
2011-05-20More work on anonymous objects.Lindsey Kuper-2/+2
2011-05-20Make controlflow part of a function typeTim Chevalier-5/+14
Change ty_fn to have a controlflow field. A 'controlflow' is essentially a bit of data that says whether or not this function never returns to the caller (if it never returns, that means it calls "fail" or another "never-returns" function on every control path). Also add syntax for annotating functions that never return: fn foo() -> ! { fail; } for example. Functions marked with ! implicitly have a result type of ty_bot, which is a new type that this commit also adds.
2011-05-19Move type cache and node type table into type context.Graydon Hoare-6/+7
2011-05-17rustc: Print the types of declarations in --typed-pretty modePatrick Walton-0/+9
2011-05-17rustc: Add a typed pretty-printing mode for debuggingPatrick Walton-6/+36
2011-05-17Finally rename std::_xxx to std::xxxMarijn Haverbeke-16/+16
Except for _task, which is still a keyword.
2011-05-17Switch pretty printer to new vec syntaxMarijn Haverbeke-3/+4
2011-05-16Rewrite everything to use [] instead of vec() in value position.Graydon Hoare-2/+2
2011-05-13More work toward anonymous objects.Lindsey Kuper-0/+5
2011-05-13Make the parser more careful about keywordsMarijn Haverbeke-3/+2
Keywords are now only recognized in contexts where they are valid. The lexer no longer recognizes them, all words are lexed as IDENT tokens, that get interpreted by the parser.