about summary refs log tree commit diff
path: root/src/comp
AgeCommit message (Collapse)AuthorLines
2011-07-26Prohibit breaking between "let" and "=" in local decls.Graydon Hoare-2/+4
2011-07-26Clean up long strings and indentation.Lindsey Kuper-21/+19
2011-07-26Trailing whitespace.Graydon Hoare-1/+1
2011-07-26Handle printing 'auto' occurring in loop-variable context.Graydon Hoare-1/+4
2011-07-26Improve printing of mod and native mod.Graydon Hoare-33/+47
2011-07-26Handle hardbreaks at bol slightly better, including break_offset calls (tuck ↵Graydon Hoare-18/+34
offset into previous hardbreak).
2011-07-26Handle column-zero \n explicitly rather than looking for \n\n.Graydon Hoare-4/+1
2011-07-26Consume EOL after line comment.Graydon Hoare-0/+3
2011-07-26Some simple cleanup of trans_bind.Michael Sullivan-172/+162
2011-07-26Convert a bunch of cx.fcx.lcx... paths into bcx_...(cx)Michael Sullivan-310/+310
2011-07-26Initial implementation of typestate for closures.Michael Sullivan-13/+31
There are still things not handled properly: relying on other preconditions of upvars is likely to cause bad things to happen. We probably want to disallow it.
2011-07-26Translate anonymous block closures.Michael Sullivan-8/+50
2011-07-26Resolve and typecheck alias-environment-capturing blocks.Michael Sullivan-34/+107
2011-07-26Add block and closure protos and parse/pp block and lambda exprs.Michael Sullivan-5/+19
2011-07-26Fix the freevars pass to actually work on top of visit.Michael Sullivan-2/+9
2011-07-26Oops, left whitespace.Paul Stansifer-1/+1
2011-07-26Add basic support for blocks and types in macros.Paul Stansifer-7/+123
2011-07-26Convert all code that uses walk.rs in the straightforward way to simple_visitMarijn Haverbeke-60/+53
Code that needs the keep_going functionality is still using walk. I will add an equivalent to visit.rs later.
2011-07-26Add 'simple' visiting to visit.rsMarijn Haverbeke-4/+105
2011-07-26Resolve loop collection expressions in the right scopeMarijn Haverbeke-17/+16
Closes #745
2011-07-26Detect duplicate field names in record literals and typesMarijn Haverbeke-16/+33
Closes #746
2011-07-26Remove tuple support from the compilerMarijn Haverbeke-344/+24
2011-07-26Properly parse 'auto' for loop variable typesMarijn Haverbeke-1/+1
2011-07-26Remove all uses of tuples from the compiler and stdlibMarijn Haverbeke-571/+590
2011-07-26Make the pretty-printer output new-style syntax for recordsMarijn Haverbeke-9/+8
2011-07-26Make the pretty-printer output new-style syntax for local declsMarijn Haverbeke-11/+8
2011-07-26Add support for new-style local declsMarijn Haverbeke-0/+33
let x = 5; let y: int = 10; // as soon as a typestate bug is fixed: let x: str = foo, y <- 20u; 'auto' and 'type-first let' will soon be dropped.
2011-07-25Correct input coordinate tracking on block-opening brace.Graydon Hoare-5/+5
2011-07-25Recognize and preserve first blank line if first line of file.Graydon Hoare-5/+13
2011-07-25Rename the block type to be blk also. Sorry.Michael Sullivan-82/+83
2011-07-25Adjust pp interface to that printing a crate (an reproducing ↵Graydon Hoare-6/+11
literals/comments) takes a reader, not just a filename. Fixes first big pp-fuzzer bug.
2011-07-25Disallow block as a variable name in preparation for it becoming a keyword.Michael Sullivan-47/+48
2011-07-25Add support for bracey record types and literalsMarijn Haverbeke-8/+46
type foo = {mutable x: int, y: int}; auto myfoo = {mutable x: 10, y: 20u}; The old syntax is also still supported.
2011-07-25Add look-ahead to parser objectMarijn Haverbeke-34/+48
2011-07-25Make the lexer slightly less statefulMarijn Haverbeke-29/+25
2011-07-25Remove some rustboot-ismsMarijn Haverbeke-23/+13
Closes #464
2011-07-25Tie up the ends needed to get external consts workingMarijn Haverbeke-24/+17
Closes #658
2011-07-25Fix span information returned by parser::parse_seqMarijn Haverbeke-35/+33
Its hi pos used to be the end of the token after the sequence. It now properly reports the end of the closing token.
2011-07-25Add a pass that checks for unreachable alt armsMarijn Haverbeke-2/+105
2011-07-23Add `--expand` option to rustc to pretty-print expanded code.Paul Stansifer-7/+20
2011-07-22Overhaul how we handle freevars.Michael Sullivan-26/+39
2011-07-22Simple cleanup of the freevars pass.Michael Sullivan-5/+5
2011-07-22Add a "fake" def_upvar and mechanisms to create it.Michael Sullivan-4/+23
2011-07-22Implement Macro By Example.Paul Stansifer-210/+609
2011-07-22Fixing (or at least improving) translation of move semantics for send and ↵Eric Holk-8/+5
receive. This let's us run all of the task-comm tests.
2011-07-22Folding recv_val into trans_recv, since this is its only use.Eric Holk-11/+7
2011-07-22Remove typechecker work-arounds now that I know howMarijn Haverbeke-3/+2
2011-07-22Start adding support for multiple variable declarations per stmtMarijn Haverbeke-46/+81
This adds parser support and most of the machinery for auto x = 10, y = 20; However, the above still goes wrong somewhere in typestate, causing the state checker to believe only the last variable in the list is initialized after the statement. Tim, if you have a moment, could you go over the changes to the tstate code in this patch and see where I'm going wrong? Multi-var-decls without the typestate extension Add a loop
2011-07-22Rewrite trans_cast, float->float and float->int castsMarijn Haverbeke-50/+73
2011-07-22Report unresolved names only once per functionMarijn Haverbeke-32/+52
Closes #708