2010-06-23 23:03:09 -05:00
|
|
|
// -*- rust -*-
|
|
|
|
|
|
|
|
fn main(vec[str] args) -> () {
|
2010-07-13 16:26:59 -05:00
|
|
|
|
2010-07-08 12:45:34 -05:00
|
|
|
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.";
|
2010-07-13 16:26:59 -05:00
|
|
|
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
|
2010-06-23 23:03:09 -05:00
|
|
|
}
|