diff options
| author | Graydon Hoare <[email protected]> | 2010-07-13 14:26:59 -0700 |
|---|---|---|
| committer | Graydon Hoare <[email protected]> | 2010-07-13 14:26:59 -0700 |
| commit | 1d1a7985a8cf65976e8c9abd75128f4344065126 (patch) | |
| tree | 33c29726331e3336c6449bf695fec0522302158d /src/comp | |
| parent | Desugar the head stmts all the way out of STMT_for, rather than stashing them... (diff) | |
| download | rust-1d1a7985a8cf65976e8c9abd75128f4344065126.tar.xz rust-1d1a7985a8cf65976e8c9abd75128f4344065126.zip | |
Add some (non-functional) input-readingn to rustc.rs.
Diffstat (limited to 'src/comp')
| -rw-r--r-- | src/comp/driver/rustc.rs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs index 077bf70d..e5a614ba 100644 --- a/src/comp/driver/rustc.rs +++ b/src/comp/driver/rustc.rs @@ -1,8 +1,22 @@ // -*- rust -*- fn main(vec[str] args) -> () { + log "This is the rust 'self-hosted' compiler."; log "The one written in rust."; log "It does nothing yet, it's a placeholder."; log "You want rustboot, the compiler next door."; + + auto i = 0; + for (str filename in args) { + if (i > 0) { + auto br = std._io.new_buf_reader(filename); + log "opened file: " + filename; + for (u8 b in br.read()) { + log b; + } + } + i += 1; + } + } |