Add some (non-functional) input-readingn to rustc.rs.
This commit is contained in:
parent
bb243b3aef
commit
1d1a7985a8
1 changed files with 14 additions and 0 deletions
|
@ -1,8 +1,22 @@
|
||||||
// -*- rust -*-
|
// -*- rust -*-
|
||||||
|
|
||||||
fn main(vec[str] args) -> () {
|
fn main(vec[str] args) -> () {
|
||||||
|
|
||||||
log "This is the rust 'self-hosted' compiler.";
|
log "This is the rust 'self-hosted' compiler.";
|
||||||
log "The one written in rust.";
|
log "The one written in rust.";
|
||||||
log "It does nothing yet, it's a placeholder.";
|
log "It does nothing yet, it's a placeholder.";
|
||||||
log "You want rustboot, the compiler next door.";
|
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;
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue