| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2011-07-05 | Move everything syntax-related to syntax/, break deps on rest of compiler | Marijn Haverbeke | -1233/+0 | |
| src/comp/syntax is currently just a sub-module of rustc, but it will, in the near future, be its own crate. This includes: - The AST data structure - The parser - The pretty-printer - Visit, walk, and fold - The syntax extension system - Some utility stuff that should be in the stdlib* *) Stdlib extensions currently require a snapshot before they can be used, and the win build is very broken right now. This is temporary and will be cleaned up when one of those problems goes away. A lot of code was moved by this patch, mostly towards a more organized layout. Some package paths did get longer, and I guess the new layout will take some getting used to. Sorry about that! Please try not to re-introduce any dependencies in syntax/ on any of the other src/comp/ subdirs. | ||||
| 2011-07-05 | Move pretty-printing 'modes' into a callback hook | Marijn Haverbeke | -62/+14 | |
| This way, the pretty-printer does not have to know about middle::ty. (This is a preparation for separating the AST functionality into a separate crate.) | ||||
| 2011-07-04 | Move the ids of pat AST nodes into their struct | Marijn Haverbeke | -5/+5 | |
| Just like it was done with items and exprs. Simplifies some code. | ||||
| 2011-07-02 | Allow any string expression to be used with fail. | Josh Matthews | -3/+3 | |
| 2011-07-01 | Allow 'newtype' syntax for tags | Marijn Haverbeke | -15/+31 | |
| Doing this: tag foo = mytype; is now equivalent to doing this: tag foo { foo(mytype); } | ||||
| 2011-07-01 | Make sure the pretty-printer understand resources | Marijn Haverbeke | -1/+1 | |
| 2011-06-30 | Minor pp cleanups. | Graydon Hoare | -4/+4 | |
| 2011-06-30 | Preserve hard \n\n pairs from source when pretty-printing, as explicit ↵ | Graydon Hoare | -9/+7 | |
| formatting control from users. | ||||
| 2011-06-30 | Pretty-print view items in mod items | Brian Anderson | -5/+4 | |
| For mods that aren't defined at the file level we were forgetting to print the view items so, e.g. 'mod { use std; }' would not print correctly. | ||||
| 2011-06-28 | Implement "claim" | Tim Chevalier | -2/+9 | |
| Implement "claim" (issue #14), which is a version of "check" that doesn't really do the check at runtime. It's an unsafe feature. The new flag --check-claims turns claims into checks automatically -- but it's off by default, so by default, the assertion in a claim doesn't execute at runtime. | ||||
| 2011-06-28 | Teach the parser and typechecker to understand port[int](). Closes #588 | Eric Holk | -1/+12 | |
| 2011-06-28 | Write metadata for more meta_item types. Issue #487 | Brian Anderson | -6/+10 | |
| 2011-06-28 | Write metadata for crate attributes. Issue #487 | Brian Anderson | -0/+4 | |
| 2011-06-28 | List crate attributes when running rustc with '--ls' | Brian Anderson | -0/+4 | |
| 2011-06-25 | Partial implementation of resources | Marijn Haverbeke | -0/+12 | |
| Non-copyability is not enforced yet, and something is still flaky with dropping of the internal value, so don't actually use them yet. I'm merging this in so that I don't have to keep merging against new patches. | ||||
| 2011-06-23 | rustc: Pretty-print ternary operator | Brian Anderson | -0/+12 | |
| 2011-06-23 | Flesh out type pp code. | Graydon Hoare | -4/+19 | |
| 2011-06-22 | rustc: Introduce and parse additional meta_item forms | Brian Anderson | -3/+12 | |
| Examples: #[test], #[link(name = "vers")] Issue #487 | ||||
| 2011-06-21 | Move names and ids of native items into their recs, rather than their tags | Marijn Haverbeke | -5/+5 | |
| 2011-06-21 | Move expr ids into the expr record type | Marijn Haverbeke | -51/+49 | |
| This simplifies the tag variants a bit and makes expr_node_id obsolete. | ||||
| 2011-06-20 | Get rid of def_ids and anns in AST nodes, use single node_id | Marijn Haverbeke | -10/+11 | |
| This reduces some redundancy in the AST data structures and cruft in the code that works with them. To get a def_id from a node_id, apply ast::local_def, which adds the local crate_num to the given node_id. Most code only deals with crate-local node_ids, and won't have to create def_ids at all. | ||||
| 2011-06-20 | Tighten up the hardbreak rules a bit. | Graydon Hoare | -2/+2 | |
| 2011-06-20 | Suppress hardbreaks when following hardbreaks. | Graydon Hoare | -5/+6 | |
| 2011-06-20 | Fix interference between if-check and if printing. | Graydon Hoare | -4/+6 | |
| 2011-06-20 | Fix pp blank-lines insertion at beginning of file and before 'let' decls. | Graydon Hoare | -6/+12 | |
| 2011-06-19 | Fix pp blank-line insertion after isolated comments in cboxes. | Graydon Hoare | -6/+11 | |
| 2011-06-18 | rustc: Store the lhs and rhs of receive exprs in left to right order | Brian Anderson | -2/+2 | |
| With the changing of receive semantics the parser has been putting the rhs expression in the first argument of expr_recv and the lhs in the second, and all subsequent passes have been referring to them backwords (but still doing the right thing because they were assuming that lhs was the port and rhs was the receiver). This makes all code agree on what lhs and rhs mean for receive expressions. | ||||
| 2011-06-16 | Consistify ast::local. | Paul Stansifer | -4/+4 | |
| 2011-06-16 | rustc: Change print_file to print_crate | Brian Anderson | -3/+4 | |
| The pretty-printer needs access to the crate attributes in order to reproduce inner crate attributes in standalone .rs files Issue #487 | ||||
| 2011-06-16 | rustc: Pretty print module inner attributes | Brian Anderson | -7/+17 | |
| Issue #487 | ||||
| 2011-06-16 | Pretty-print if-check | Tim Chevalier | -37/+46 | |
| 2011-06-16 | rustc: Pretty print interior vector types | Patrick Walton | -0/+6 | |
| 2011-06-16 | Bring swap through typechecking and typestate. | Michael Sullivan | -0/+6 | |
| 2011-06-16 | Refactor ast::item representation | Marijn Haverbeke | -22/+22 | |
| Most of the fields in an AST item were present in all variants. Things could be simplified considerably by putting them in the rec rather than in the variant tags. | ||||
| 2011-06-15 | Refactor data structures representing constraints (again...) | Tim Chevalier | -1/+1 | |
| I added a "resolved" version of the ast::constr type -- ty::constr_def -- that has a def_id field instead of an ann_field. This is more consistent with other types and eliminates some checking. Incidentally, I removed the def_map argument to the top-level function in middle::alias, since the ty::ctxt already has a def_map field. | ||||
| 2011-06-15 | Added issue # to FIXME. | Lindsey Kuper | -1/+1 | |
| 2011-06-15 | Attempt to put out windows tinderbox. | Graydon Hoare | -1/+5 | |
| 2011-06-15 | Reformat source tree (minus a couple tests that are still grumpy). | Graydon Hoare | -287/+213 | |
| 2011-06-15 | Print mutability of obj fields. | Graydon Hoare | -2/+7 | |
| 2011-06-15 | Fix pp bug on native modules. | Graydon Hoare | -1/+3 | |
| 2011-06-15 | rustc: Pretty-print outer attributes of items | Brian Anderson | -15/+47 | |
| Issue #487 | ||||
| 2011-06-15 | rustc: Make room in remaining AST item nodes for attributes | Brian Anderson | -6/+6 | |
| Issue #487 | ||||
| 2011-06-15 | rustc: Make room in item_mod for metadata | Brian Anderson | -1/+1 | |
| Issue #487 | ||||
| 2011-06-14 | Print parens on unops when necessary. 'make reformat' output now builds to ↵ | Graydon Hoare | -1/+1 | |
| stage3. | ||||
| 2011-06-14 | Remove a bunch of primitive-compiler-workarounds from pprust.rs | Marijn Haverbeke | -41/+23 | |
| 2011-06-14 | Implement function expressions/anonymous functions | Marijn Haverbeke | -2/+11 | |
| Looks like 'fn(..arg..) -> ret {body;}. They don't support type parameters or upvars yet. | ||||
| 2011-06-13 | Change decl to local in expr_for and expr_for_each | Tim Chevalier | -8/+4 | |
| Since the decl in a for or for-each loop must always be a local decl, I changed the AST to express this. Fewer potential match failures and "the impossible happened" error messages = yay! | ||||
| 2011-06-10 | Encode meta tags in the crate and start sketching enhanced logic for ↵ | Graydon Hoare | -1/+1 | |
| resolving crate "use" directives. Now with extra "works on OSX" kludging. | ||||
| 2011-06-10 | Fix a non-exhaustive match failure. | Lindsey Kuper | -0/+1 | |
| 2011-06-10 | Implement mutable/immutable alias distinction. | Marijn Haverbeke | -2/+10 | |
| Before, all aliases were implicitly mutable, and writing &mutable was the same as writing &. Now, the two are distinguished, and assignments to regular aliases are no longer allowed. | ||||
