add (non)-deterministic REPL demarcations
This commit is contained in:
@@ -304,7 +304,13 @@ Each predicate must have the same name and arity.";
|
|||||||
pub fn print(wam: &mut Machine, result: EvalSession) {
|
pub fn print(wam: &mut Machine, result: EvalSession) {
|
||||||
match result {
|
match result {
|
||||||
EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => {
|
EvalSession::InitialQuerySuccess(alloc_locs, mut heap_locs) => {
|
||||||
println!("true");
|
print!("true");
|
||||||
|
|
||||||
|
if !wam.or_stack_is_empty() {
|
||||||
|
print!(" ");
|
||||||
|
}
|
||||||
|
|
||||||
|
println!(".");
|
||||||
|
|
||||||
if heap_locs.is_empty() {
|
if heap_locs.is_empty() {
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user