Eclipse defined
C Function clLispTopLevel
Syntax:
clLispTopLevel verbose init eoa => status
Arguments and Values:
verbose---an clObject denoting a Lisp boolean.
init---an clObject denoting a Lisp boolean or string.
eoa---the clEOA marker
Description:
Executes the Lisp top-level (2) of eclipse (1).
If verbose is true, clLispTopLevel first prints a welcome banner, and *load-verbose* is set to true. Otherwise, *load-verbose* is set to false.
If init is true, clLispTopLevel next loads one
or more initialization files, using the function load. If init is a string,
the specified string is merged with *default-pathname-defaults* and loaded.
Otherwise the init file processing described in init.lisp is performed.
A read-eval-print loop is then entered. If verbose is true, a condition notice and available restarts message is printed (see "The Read-Eval-Print Loop and the Debugger").
If verbose is true, the user is prompted for input on *standard-input* by calling the function specified by *prompt-hook*. If verbose is false, no prompt is given.
Results are printed on *standard-output*.
clLispTopLevel establishes a restart named exit. If the exit function is used while in the top-level, clLispTopLevel immediately returns the status argument to exit. The only way conforming programs may exit the clLispTopLevel is by invoking this restart.
Side Effects:
Input is read from *standard-input* and written to *standard-output*. The *error-output* stream is also used (for the condition notice) if verbose is true.
Affected By: None.
Exceptional Situations: None.
See Also:
The "Lisp Top-Level" section of the
ALU web-site,
"Lisp Top-Level",
"Site and Other Initial Definitions",
init.lisp,
"The Read-Eval-Print Loop and the Debugger",
*prompt-hook*,
exit (restart), exit (function).
Notes:
The eclipse (1) program essentially calls clInit, clInitD and then clLispTopLevel.
The behavior of any invocation of the debugger caused by user code within the Lisp top-level does not depend on verbose and always prompts for input.