diff options
author | John Hodge <tpg@ucc.asn.au> | 2017-11-16 23:03:00 +0800 |
---|---|---|
committer | John Hodge <tpg@ucc.asn.au> | 2017-11-16 23:03:00 +0800 |
commit | ca6833aca78f2169851f044de4358df8c4c433fe (patch) | |
tree | e62fe49e462bd8701eef1c55c0c75dc45afd2dc6 /lib/libproc_macro | |
parent | 67631955043111889b30e1803abb1ec24ef6239a (diff) | |
download | mrust-ca6833aca78f2169851f044de4358df8c4c433fe.tar.gz |
libproc_macro - Fix parse error, clean up debug spam
Diffstat (limited to 'lib/libproc_macro')
-rw-r--r-- | lib/libproc_macro/src/lib.rs | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libproc_macro/src/lib.rs b/lib/libproc_macro/src/lib.rs index 9a19dafb..7a3f1bdf 100644 --- a/lib/libproc_macro/src/lib.rs +++ b/lib/libproc_macro/src/lib.rs @@ -267,7 +267,7 @@ impl FromStr for TokenStream { s.push(c); } } - rv.push(Token::String(s)); + rv.push(if is_byte { Token::ByteString(s.into_bytes()) } else { Token::String(s) }); continue 'outer; } else @@ -570,7 +570,7 @@ pub fn recv_token_stream() -> TokenStream Token::Float(s.get_f64(), ty) } }); - eprintln!("> {:?}\r", toks.last().unwrap()); + //eprintln!("> {:?}\r", toks.last().unwrap()); } TokenStream { inner: toks, @@ -647,20 +647,20 @@ pub struct MacroDesc pub fn main(macros: &[MacroDesc]) { let mac_name = ::std::env::args().nth(1).expect("Was not passed a macro name"); - eprintln!("Searching for macro {}\r", mac_name); + //eprintln!("Searching for macro {}\r", mac_name); for m in macros { if m.name == mac_name { use std::io::Write; ::std::io::stdout().write(&[0]); ::std::io::stdout().flush(); - eprintln!("Waiting for input\r"); + //eprintln!("Waiting for input\r"); let input = recv_token_stream(); - eprintln!("INPUT = `{}`\r", input); + //eprintln!("INPUT = `{}`\r", input); let output = (m.handler)( input ); - eprintln!("OUTPUT = `{}`\r", output); + //eprintln!("OUTPUT = `{}`\r", output); send_token_stream(output); - eprintln!("Done"); + //eprintln!("Done"); return ; } } |