Browse Source

pretty printing on stdout

master
Michael Preisach 7 years ago
parent
commit
0d74132983
  1. 3
      src/main.rs

3
src/main.rs

@ -44,7 +44,7 @@ fn main() {
println!("{}", headline); println!("{}", headline);
for c in input.chars() { for c in input.chars() {
println!("{}", c); print!("{}", c);
instructions = state.encode_next_char(c); instructions = state.encode_next_char(c);
for inst in instructions { for inst in instructions {
let mut response = String::new(); let mut response = String::new();
@ -62,6 +62,7 @@ fn main() {
} }
//thread::sleep(Duration::from_millis(500)); //thread::sleep(Duration::from_millis(500));
} }
println!();
let mut response = String::new(); let mut response = String::new();
let inst = String::from("exit"); let inst = String::from("exit");
if DEBUG { if DEBUG {

Loading…
Cancel
Save