aboutsummaryrefslogtreecommitdiff
path: root/src/comp
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2010-06-23 21:03:09 -0700
committerGraydon Hoare <[email protected]>2010-06-23 21:03:09 -0700
commitd6b7c96c3eb29b9244ece0c046d3f372ff432d04 (patch)
treeb425187e232966063ffc2f0d14c04a55d8f004ef /src/comp
parentInitial git commit. (diff)
downloadrust-d6b7c96c3eb29b9244ece0c046d3f372ff432d04.tar.xz
rust-d6b7c96c3eb29b9244ece0c046d3f372ff432d04.zip
Populate tree.
Diffstat (limited to 'src/comp')
-rw-r--r--src/comp/driver/rustc.rs12
-rw-r--r--src/comp/fe/lexer.rs0
-rw-r--r--src/comp/fe/parser.rs0
-rw-r--r--src/comp/rustc.rc20
4 files changed, 32 insertions, 0 deletions
diff --git a/src/comp/driver/rustc.rs b/src/comp/driver/rustc.rs
new file mode 100644
index 00000000..35ebba1f
--- /dev/null
+++ b/src/comp/driver/rustc.rs
@@ -0,0 +1,12 @@
+// -*- rust -*-
+
+fn main(vec[str] args) -> () {
+ let int i = 0;
+ for (str filename in args) {
+ if (i > 0) {
+ auto br = std._io.mk_buf_reader(filename);
+ log "opened file: " + filename;
+ }
+ i += 1;
+ }
+}
diff --git a/src/comp/fe/lexer.rs b/src/comp/fe/lexer.rs
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/comp/fe/lexer.rs
diff --git a/src/comp/fe/parser.rs b/src/comp/fe/parser.rs
new file mode 100644
index 00000000..e69de29b
--- /dev/null
+++ b/src/comp/fe/parser.rs
diff --git a/src/comp/rustc.rc b/src/comp/rustc.rc
new file mode 100644
index 00000000..3bf3bbcc
--- /dev/null
+++ b/src/comp/rustc.rc
@@ -0,0 +1,20 @@
+
+// -*- rust -*-
+
+use std;
+
+mod fe {
+ mod lexer;
+ mod parser;
+}
+
+mod driver {
+ mod rustc;
+}
+
+// Local Variables:
+// fill-column: 78;
+// indent-tabs-mode: nil
+// buffer-file-coding-system: utf-8-unix
+// compile-command: "make -k -C .. 2>&1 | sed -e 's/\\/x\\//x:\\//g'";
+// End: