examples/interpret: Multi-line input support
This commit is contained in:
parent
b906775006
commit
f3aad36f32
@ -43,11 +43,11 @@ fn take_stdin() -> Result<(), Box<dyn Error>> {
|
||||
}
|
||||
1 => {
|
||||
let _ = run(&buf, &mut interpreter).map_err(|e| eprintln!("{e}"));
|
||||
print!("\n{PROMPT}");
|
||||
buf.clear();
|
||||
}
|
||||
_ => (),
|
||||
_ => print!(". "),
|
||||
}
|
||||
print!("{PROMPT}");
|
||||
stdout().flush()?;
|
||||
}
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user