The "toplevel" or "top level loop" is Prolog's REPL.
The toplevel or top level loop is Prolog's REPL.
The toplevel differs from the read-eval-print loop in several ways:
Evaluation is performed incrementally. Typically, evaluation is only performed up to determining one answer, requiring user interaction to compute the next answer.
Printing an answer includes printing answer substitutions but may also include residual constraints.