summary refs log tree commit diff
path: root/src/rustc/syntax/print
AgeCommit message (Collapse)AuthorLines
2012-03-27Support an alternate for syntax that calls a higher-order functionMarijn Haverbeke-2/+12
The last argument of the call must be a block, and the type of this argument must a function returning bool. `break` and `cont` are supported in the body of the block, and return `false` or `true` from the function. When the end of the function is reached, `true` is implicitly returned. for vec::all([1, 2, 3]) {|elt| if elt == 2 { break; } log(error, elt); } Issue #1619
2012-03-26Bulk-edit mutable -> mut.Graydon Hoare-46/+46
2012-03-22make --enforce-mut-vars always on, add mut annotations to remaining filesNiko Matsakis-0/+7
2012-03-21add mut decls to rustc and make them mandatoryNiko Matsakis-19/+20
2012-03-20Implement an initial version of placement new.Niko Matsakis-0/+7
2012-03-20Class methods WIPTim Chevalier-8/+12
In particular, use the ast::method type to represent a class method, and try to reuse as much iface code as possible. (This makes sense now since I'll be allowing polymorphic class methods.)
2012-03-13implement deserialization, rename mk_mem_buffer() to mem_buffer()Niko Matsakis-4/+4
2012-03-13Overhaul constructor naming in libsBrian Anderson-3/+3
2012-03-12Libc/os/run/rand/io reorganization. Close #1373. Close #1638.Graydon Hoare-4/+0
- Move io, run and rand to core. - Remove incorrect ctypes module (use libc). - Remove os-specific modules for os and fs. - Split fs between core::path and core::os.
2012-03-12rustc: Add node IDs to AST types so we can associate them with region ↵Patrick Walton-3/+9
environments
2012-03-10Use loop instead of while(true) in libraries and compiler itselfTim Chevalier-2/+2
And remove spurious fails/unreachable() calls.
2012-03-09Add an infinite loop constructTim Chevalier-0/+5
Add a loop {} construct for infinite loops, and use it in test cases. See #1906 for details.
2012-03-09rustc: Wrap regions in a node IDPatrick Walton-1/+1
2012-03-09Revert "rustc: Create def IDs for region parameters"Patrick Walton-1/+1
This reverts commit 0d4cb759494f9589ba57c4f2c41f5a5737ab74e0.
2012-03-09rustc: Create def IDs for region parametersPatrick Walton-1/+1
2012-03-08rustc: Add pretty printing support for the address-of operator. ↵Patrick Walton-1/+14
Un-XFAIL-pretty simple-regions.rs.
2012-03-08rustc: Change the address-of operator to an explicit production so that we ↵Patrick Walton-0/+4
can parse the mutability
2012-03-08Change util::unreachable to core::unreachableTim Chevalier-1/+1
Closes #1931
2012-03-08rustc: Add region-annoted type parameters to the AST; stub associated patternsPatrick Walton-0/+1
2012-03-05rustc: Use std::util::unreachableBrian Anderson-1/+1
2012-03-04Translate simple classesTim Chevalier-3/+6
Programs using classes with fields only (no methods) compile and run, as long as nothing refers to a class in a different crate (todo). Also changed the AST representation of classes to have a separate record for constructor info (instead of inlining the fields in the item_class node), and fixed up spans and pretty-printing for classes.
2012-03-02Move src/comp to src/rustcGraydon Hoare-0/+2319