aboutsummaryrefslogtreecommitdiff
path: root/src/comp/driver
Commit message (Collapse)AuthorAgeFilesLines
* rustc: Joseph and the Amazing Technicolor Error MessagesPatrick Walton2011-04-281-21/+20
|
* Change rustc to use GetOpts rather than ad-hoc command-line parsingMarijn Haverbeke2011-04-261-124/+78
| | | | | NOTE: all 'long' parameters now use a double dash, so --shared, rather than gcc-style -shared.
* rustc: Add a -save-temps option to save bitcode and write output ↵Patrick Walton2011-04-251-5/+15
| | | | simultaneously; document command line switches
* rustc: Pass a "type context" around instead of directly passing the type ↵Patrick Walton2011-04-251-3/+3
| | | | store; prep for removing type annotations
* rustc: Pass a type store around, which does nothing yetPatrick Walton2011-04-211-3/+6
|
* rustc: Add a -noverify optionPatrick Walton2011-04-191-5/+11
|
* Remove effect system from src.Graydon Hoare2011-04-191-4/+4
|
* replace error logging with log_err in stdlib and rustcMarijn Haverbeke2011-04-192-35/+34
|
* Add a -c option.Rafael Ávila de Espíndola2011-04-181-0/+2
|
* collect crate meta info and ext crate namesMarijn Haverbeke2011-04-182-5/+15
|
* Add a -S option for producing assembly. I will move more of it toRafael Ávila de Espíndola2011-04-151-9/+12
| | | | rust once the necessary APIs are available in C.
* Implement the "attempted dynamic environment-capture" error in rustc.Rafael Ávila de Espíndola2011-04-111-0/+2
|
* Move to single-uint file-position representation.Marijn Haverbeke2011-04-092-13/+30
| | | | | | | | This makes passing them around cheaper. There is now a table (see front/codemap.rs) that is needed to transform such an uint into an actual filename/line/col location. Also cleans up the span building in the parser a bit.
* add a -parse-only option to rustcMarijn Haverbeke2011-04-081-2/+9
| | | | (undocumented, only used for profiling the parser)
* Add a very basic crate-dump utilityMarijn Haverbeke2011-04-071-2/+7
| | | | | 'rustc -ls [cratelib]' will now dump out a list of symbols defined by the crate, as well as a short description of what they are.
* Add a -O option and change the Makefile to use it.Rafael Ávila de Espíndola2011-04-071-5/+11
|
* Re-enable typestate_check in build, was lost during merge. Sorry.Graydon Hoare2011-04-011-1/+1
|
* Comment out import for not-yet-compiling typestate_check.Graydon Hoare2011-04-011-1/+1
|
* Started adding support for typestate checking.Tim Chevalier2011-04-011-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.
* Preserve comments when pretty-printing.Marijn Haverbeke2011-03-311-1/+1
| | | | | The patch also includes a number of smaller fixes to the pretty-printer that were encountered on the way.
* rustc: Thread an item-to-type mapping throughout the typechecking and ↵Patrick Walton2011-03-301-2/+7
| | | | translation phases
* Another go at changing compile-command, this time using RBUILD env var.Graydon Hoare2011-03-252-2/+2
|
* Sketch of wiring typeck up to creader.Graydon Hoare2011-03-252-2/+9
|
* Revert "Bulk-edit compile commands in emacs chatter to point to assumed ↵Graydon Hoare2011-03-252-2/+2
| | | | | | build/ dir off src root." This reverts commit 846f2e2ba994268725f38c36fa12f1a09f21615c.
* Bulk-edit compile commands in emacs chatter to point to assumed build/ dir ↵Graydon Hoare2011-03-252-2/+2
| | | | off src root.
* rustc: Store cached crate metadata in the sessionPatrick Walton2011-03-251-0/+4
|
* rustc: Create a crate metadata cachePatrick Walton2011-03-252-2/+16
|
* rustc: When encountering "mutable" as a tycon, parse it, drop it on the ↵Patrick Walton2011-03-181-0/+8
| | | | floor, and emit a warning
* rustc: Add a span_unimpl() for debuggingPatrick Walton2011-03-181-0/+9
|
* Switch all vases of vec += elt to vec += vec. Prohibit former in rustboot. ↵Graydon Hoare2011-03-161-2/+2
| | | | Tweak std lib vec fns in process.
* rustc: Add an annotation for the crate definition to view_item_usePatrick Walton2011-03-151-1/+1
|
* rustc: Add a stub crate reader module for "use" directivesPatrick Walton2011-03-151-3/+18
|
* rustc: Typo: "unput" -> "input"Patrick Walton2011-03-151-1/+1
|
* Extend stream functionalityMarijn Haverbeke2011-03-141-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.
* Move the glue code to a .o file. This reduces how much asm we printGraydon Hoare2011-03-101-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).
* Update the current id when we create sub parsers.Rafael Ávila de Espíndola2011-03-101-2/+4
|
* Have the pretty-printer take a writer stream as argumentMarijn Haverbeke2011-03-091-1/+1
| | | | | It now uses a string writer to also fill in for middle.ty.ast_ty_to_str
* Add a pretty-printerMarijn Haverbeke2011-03-071-12/+27
| | | | | Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
* Remove typestate workaroundsBrian Anderson2011-03-061-2/+0
|
* Flatten conditionals in rustc.rs. Remove FIXMEBrian Anderson2011-03-061-16/+11
|
* Populate default compilation environment as in rustboot.Graydon Hoare2011-03-011-4/+34
|
* Fix typo in comment.Graydon Hoare2011-03-011-1/+1
|
* Change rustc warning to be a little less dismissive.Graydon Hoare2011-01-261-2/+2
|
* Split driver between parsing source files and crate files, by extension. Add ↵Graydon Hoare2011-01-031-1/+13
| | | | dummy function for crate files.
* Add a -shared option to rustc and don't try to look for main if it is given.Rafael Ávila de Espíndola2010-12-291-4/+9
|
* Check and translate 'as' cast-operator, lower target-specific types, ↵Graydon Hoare2010-11-222-79/+123
| | | | reindent rustc.rs, enable uint test.
* rustc: First stab at a typecheckerPatrick Walton2010-11-191-0/+2
|
* Move the option type to its own modulePatrick Walton2010-11-051-5/+5
|
* Revert "Move the option type to its own module"Patrick Walton2010-11-051-5/+5
|
* Move the option type to its own modulePatrick Walton2010-11-051-5/+5
|