top-loop.hlp 1001 B

1234567891011121314151617181920212223
  1. TopLoop(TopLoopRead!*, TopLoopPrint!*, TopLoopEval!*, TopLoopName!*,
  2. ----------------------------------------------------------------
  3. WelcomeBanner):NIL
  4. ------------------
  5. This function is called to establish a new TopLoop (currently for
  6. Standard LISP, RLISP, and BREAK).
  7. It prints the WelcomeBanner, and then invokes a "READ-EVAL-PRINT" loop,
  8. using the given functions. TopLoop provides a standard History and
  9. timing mechanism, retaining on a list (HistoryList!*) the input
  10. and output as a list of pairs.
  11. TopLoop Function Purpose
  12. (HIST) Display full history.
  13. (HIST n) Display history from n to present.
  14. (HIST -n) Display last n entries.
  15. (HIST n m) Display history from n to m.
  16. (INP n) Return N'th input at this level.
  17. (REDO n) Revaluate N'th input.
  18. (ANS n) Return N'th result.
  19. (SETQ !*Time T) Causes evaluation time to be printed for each command.