aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/pretty.rs
diff options
context:
space:
mode:
authorMarijn Haverbeke <[email protected]>2011-03-04 07:22:43 +0100
committerGraydon Hoare <[email protected]>2011-03-07 12:58:08 -0800
commit0624f9db4aeaa5681941750c3a1a17ca5fbb7e72 (patch)
tree91844d79c0c5614ce660c3c20f1c67eaef2d5021 /src/comp/front/pretty.rs
parentConstruct the wrappers to native functions. Hello world now works :-) (diff)
downloadrust-0624f9db4aeaa5681941750c3a1a17ca5fbb7e72.tar.xz
rust-0624f9db4aeaa5681941750c3a1a17ca5fbb7e72.zip
Add a pretty-printer
Adds a -pp option to the compiler which will cause it to simply pretty-print the given file.
Diffstat (limited to 'src/comp/front/pretty.rs')
-rw-r--r--src/comp/front/pretty.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp/front/pretty.rs b/src/comp/front/pretty.rs
index 267763e3..2fd58126 100644
--- a/src/comp/front/pretty.rs
+++ b/src/comp/front/pretty.rs
@@ -5,6 +5,8 @@ import std._vec;
export print_expr;
+// FIXME this is superseded by ../pretty/pprust.rs. can it be dropped?
+
fn unknown() -> str {
ret "<unknown ast node>";
}