blob: 1a0329c1158dfe6ebda20a9b897d18a3e264786d (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
// -*- 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;
}
}
//
// Local Variables:
// mode: rust
// fill-column: 78;
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// compile-command: "make -k -C ../.. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
// End:
//
|