about summary refs log tree commit diff
path: root/src/comp/driver/rustc.rs
AgeCommit message (Collapse)AuthorLines
2011-04-01Re-enable typestate_check in build, was lost during merge. Sorry.Graydon Hoare-1/+1
2011-04-01Comment out import for not-yet-compiling typestate_check.Graydon Hoare-1/+1
2011-04-01Started adding support for typestate checking.Tim Chevalier-2/+3
I added a new field to the ast "ann" type for typestate information. Currently, the field contains a record of a precondition bit vector and postcondition vector, but I tried to structure things so as to make it easy to change the representation of the typestate annotation type. I also had to add annotations to some syntactic forms that didn't have them before (fail, ret, be...), with all the boilerplate changes that that would imply. The main call to the typestate_check entry point is commented out and the actual pre-postcondition algorithm only has a few cases implemented, though the overall AST traversal is there. The rest of the typestate algorithm isn't implemented yet.
2011-03-31Preserve comments when pretty-printing.Marijn Haverbeke-1/+1
The patch also includes a number of smaller fixes to the pretty-printer that were encountered on the way.
2011-03-30rustc: Thread an item-to-type mapping throughout the typechecking and ↵Patrick Walton-2/+7
translation phases
2011-03-25Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare-1/+1
2011-03-25Sketch of wiring typeck up to creader.Graydon Hoare-1/+2
2011-03-25Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare-1/+1
build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
2011-03-25Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare-1/+1
off src root.
2011-03-25rustc: Create a crate metadata cachePatrick Walton-1/+4
2011-03-16Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare-2/+2
Tweak std lib vec fns in process.
2011-03-15rustc: Add an annotation for the crate definition to view_item_usePatrick Walton-1/+1
2011-03-15rustc: Add a stub crate reader module for "use" directivesPatrick Walton-3/+18
2011-03-15rustc: Typo: "unput" -> "input"Patrick Walton-1/+1
2011-03-14Extend stream functionalityMarijn Haverbeke-1/+1
Writer and reader streams now come with methods to write and read little-endian numbers. Whether that is the right place for such methods is debatable, but for now, that's where they live.
2011-03-10Move the glue code to a .o file. This reduces how much asm we printGraydon Hoare-0/+16
in each "translation unit". Part of it is not repetitive and should probably be moved to a .ll file, but for now we autogen all of it. (Modified somewhat by graydon while integrating).
2011-03-10Update the current id when we create sub parsers.Rafael Ávila de Espíndola-2/+4
2011-03-09Have the pretty-printer take a writer stream as argumentMarijn Haverbeke-1/+1
It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
2011-03-07Add a pretty-printerMarijn Haverbeke-12/+27
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
2011-03-06Remove typestate workaroundsBrian Anderson-2/+0
2011-03-06Flatten conditionals in rustc.rs. Remove FIXMEBrian Anderson-16/+11
2011-03-01Populate default compilation environment as in rustboot.Graydon Hoare-4/+34
2011-03-01Fix typo in comment.Graydon Hoare-1/+1
2011-01-26Change rustc warning to be a little less dismissive.Graydon Hoare-2/+2
2011-01-03Split driver between parsing source files and crate files, by extension. Add ↵Graydon Hoare-1/+13
dummy function for crate files.
2010-12-29Add a -shared option to rustc and don't try to look for main if it is given.Rafael Ávila de Espíndola-4/+9
2010-11-22Check and translate 'as' cast-operator, lower target-specific types, ↵Graydon Hoare-78/+93
reindent rustc.rs, enable uint test.
2010-11-19rustc: First stab at a typecheckerPatrick Walton-0/+2
2010-11-05Move the option type to its own modulePatrick Walton-5/+5
2010-11-05Revert "Move the option type to its own module"Patrick Walton-5/+5
2010-11-05Move the option type to its own modulePatrick Walton-5/+5
2010-11-02First pass on splitting stratum and opacity off of effects. WIP.Graydon Hoare-2/+2
2010-10-22Give rustc the beginnings of an option-processing loop (at least -nowarn, -h ↵Graydon Hoare-9/+97
and -o).
2010-10-21oops, removed bits.test() from mainDave Herman-4/+0
2010-10-21tests and bugfixes: fns take aliases, fixed binary arithmetic in create, ↵Dave Herman-0/+4
eliminated wasted bit per uint
2010-10-18More work on resolving names in rustc. Basic expr_name lookup working on ↵Graydon Hoare-1/+1
items and args.
2010-10-14Enable resolve pass in rustc. Doesn't do much yet aside from an incomplete ↵Graydon Hoare-0/+2
identity fold, but no longer crashes.
2010-09-29Patchwork of attempted fixes to effect system and gc system; eventually give ↵Graydon Hoare-1/+1
up and disable it entirely in the runtime. Will need extensive reworking.
2010-09-23Translate a bunch of the material (lltrans, llasm, abi) from rustboot to ↵Graydon Hoare-4/+3
rustc, and move files around.
2010-09-22Flesh out rustc.me.trans to construct functions, basic blocks and builders ↵Graydon Hoare-1/+1
off the AST.
2010-09-22Move llvm-using code in rustc to trans module.Graydon Hoare-20/+2
2010-09-21Begin teaching rustc to parse literals, atoms, stmts, blocks, items, ↵Graydon Hoare-16/+6
modules, crates.
2010-09-01Add session, span tracking, error reporting, beginning of a function to ↵Graydon Hoare-1/+2
parse an item to rustc.
2010-08-20Expand rustc lexer to do almost-nearly-nontrivial stuff.Graydon Hoare-1/+11
2010-08-18Simplify lexer/parser structure to use stdio_reader.Graydon Hoare-5/+5
2010-08-18Add test code that exercises LLVM in rustc. Works.Graydon Hoare-0/+17
2010-08-12Add modelines and related emacs chatter to rustc.Graydon Hoare-0/+13
2010-07-13Add some (non-functional) input-readingn to rustc.rs.Graydon Hoare-0/+14
2010-07-08Clean out rustc so it doesn't give the false impression of doing anything yet.Graydon Hoare-8/+4
2010-06-23Populate tree.Graydon Hoare-0/+12