Skip to content

Commit 1d1a798

Browse files
committed
Add some (non-functional) input-readingn to rustc.rs.
1 parent bb243b3 commit 1d1a798

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

src/comp/driver/rustc.rs

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,22 @@
11
// -*- rust -*-
22

33
fn main(vec[str] args) -> () {
4+
45
log "This is the rust 'self-hosted' compiler.";
56
log "The one written in rust.";
67
log "It does nothing yet, it's a placeholder.";
78
log "You want rustboot, the compiler next door.";
9+
10+
auto i = 0;
11+
for (str filename in args) {
12+
if (i > 0) {
13+
auto br = std._io.new_buf_reader(filename);
14+
log "opened file: " + filename;
15+
for (u8 b in br.read()) {
16+
log b;
17+
}
18+
}
19+
i += 1;
20+
}
21+
822
}

0 commit comments

Comments
 (0)