Common Lisp Package: PREPL

README:

FUNCTION

Public

Undocumented

CALL-NEXT-COMMAND (&REST ARGS)

DEBUGGER (CONDITION HOOK &OPTIONAL PRE-REPL-FUN)

INSTALL-GLOBAL-PREPL-DEBUGGER-HOOK

REPL (&REST ARGS &KEY BREAK-LEVEL NOPRINT INSPECT CONTINUABLE NOBANNER)

Private

%REP-ONE

Read-Eval-Print one form

>-NUM (X Y)

Return if x and y are numbers, and x > y

ABORT-CMD

Invoke ABORT restart.

ALIASES-CMD

show aliases

APROPOS-CMD (STRING)

show apropos

ARRAY-INDEX-STRING (INDEX PARTS)

Formats an array index in row major format.

BT-CMD (&OPTIONAL (N MOST-POSITIVE-FIXNUM))

backtrace `n' stack frames, default all

CD-CMD (&OPTIONAL STRING-DIR)

change default directory

CF-CMD (STRING-FILES)

compile file

CLOAD-CMD (&OPTIONAL STRING-FILES)

compile if needed and load file

COMMAND-TABLE-ENTRY-ABBR-LEN (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMMAND-TABLE-ENTRY-DESC (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMMAND-TABLE-ENTRY-FUNC (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMMAND-TABLE-ENTRY-GROUP (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMMAND-TABLE-ENTRY-NAME (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMMAND-TABLE-ENTRY-PARSING (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

COMPILE-FILE-AS-NEEDED (SRC-PATH)

Compiles a file if needed, returns path.

COMPUTE-ELEMENTS-COUNT (PARTS LENGTH SKIP)

Compute the number of elements in parts given the print length and skip.

CONS-SAFE-LENGTH (OBJECT)

Returns (VALUES LENGTH LIST-TYPE) where length is the number of cons cells and LIST-TYPE is :normal, :dotted, or :cyclic

CONTINUE-CMD (&OPTIONAL (NUM 0))

continue from a continuable error

CURRENT-CMD

print the expression for the current stack frame

DESCRIBE-CMD (&REST ARGS)

describe an object

DIRS-CMD

show directory stack

DISPATCH-COMMAND-LINE (INPUT-STREAM)

Processes an input line that starts with *command-chars*

ERROR-CMD

print the last error message

EXIT-CMD (&OPTIONAL (STATUS 0))

exit lisp

FIND-HISTORY-MATCHING-PATTERN (CMD-STRING)

Return history item matching cmd-string or NIL if not found

FIND-PART-ID (OBJECT ID)

COMPONENT-ID can be an integer or a name of a id. Returns (VALUES POSITION PARTS). POSITION is NIL if the id is invalid or not found.

GET-COMMAND-DOC-LIST (&OPTIONAL (GROUP CMD))

Return list of all commands

HELP-CMD (&OPTIONAL CMD)

print this help

HISTORY-CMD

print the recent history

INSPECT-CMD (ARG)

inspect an object

INSPECT-OBJECT-STACK (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

INSPECT-SELECT-STACK (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

INSPECTED-ELEMENTS (OBJECT &OPTIONAL LENGTH (SKIP 0))

Returns elements of an object that have been trimmed and labeled based on length and skip. Returns (VALUES ELEMENTS LABELS ELEMENT-COUNT) where ELEMENTS and LABELS are vectors containing ELEMENT-COUNT items. LABELS elements may be a string, number, cons pair, :tail, or :ellipses. This function may return an ELEMENT-COUNT of up to (+ 3 length) which would include an :ellipses at the beginning, :ellipses at the end, and the last element.

INTERACTIVE-EVAL (FORM)

Evaluate FORM, returning whatever it returns and adjusting ***, **, *, +++, ++, +, ///, //, /, and -.

ISTEP-CMD (&OPTIONAL ARG-STRING)

navigate within inspection of a lisp object

KILL-CMD (&REST SELECTED-THREADS)

kill (destroy) processes

LABEL-AT (PARTS POSITION)

Helper function for inspected-elements. Conses the position with the label if the label is a string.

LD-CMD (&OPTIONAL STRING-FILES)

load a file

LOAD-OP-CMD (NAME)

Load the specified ASDF system

LOCAL-CMD (&OPTIONAL VAR)

print the value of a local variable

MACROEXPAND-CMD (ARG)

macroexpand an expression

NEWER-FILE-P (FILE1 FILE2)

Is file1 newer (written later than) file2?

OTHER-THREADS

Returns a list of all threads except the current one

PACKAGE-CMD (&OPTIONAL PKG)

change current package

POP-CMD (&OPTIONAL (N 1))

pop up `n' (default 1) break levels

POPD-CMD

pop directory from stack

PROCESS-COMMAND (USER-COMMAND)

list all processes

PROCESS-COMMAND/NUMERIC (CMD-STRING CMD-ARGS-STRING)

Process a numeric cmd, such as ':123'

PROCESS-COMMAND/TEXT (CMD-STRING LINE CMD-ARGS-STRING)

Process a text cmd, such as ':ld a b c'

PUSHD-CMD (STRING-ARG)

push directory on stack

PWD-CMD

print current directory

READTABLE-CMD (&OPTIONAL NAME)

change current readtable

RESET-CMD

reset to top break level

STRING-TO-LIST-SKIP-SPACES (STR)

Return a list of strings, delimited by spaces, skipping spaces.

TRACE-CMD (&REST ARGS)

trace a function

UNTRACE-CMD (&REST ARGS)

untrace a function

USER-COMMAND-ARGS (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

USER-COMMAND-FUNC (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

USER-COMMAND-HNUM (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

USER-COMMAND-INPUT (INSTANCE)

@arg[extid]{A @class{extid}} @return[sytemid]{puri:uri or nil} Returns the System ID part of this External ID.

USER-COMMAND= (C1 C2)

Returns T if two user commands are equal

ZOOM-CMD

print the runtime stack

Undocumented

%ADD-ENTRY (CMD &OPTIONAL ABBR-LEN)

%INSPECT-P (OBJECT)

%REPL (&KEY (BREAK-LEVEL (1+ *BREAK-LEVEL*)) (NOPRINT *NOPRINT*) (INSPECT NIL) (CONTINUABLE NIL) (NOBANNER (OR NOPRINT (NOT *OUTMOST-REPL*))))

ADD-COMMAND-TABLE-ENTRY (CMD-STRING ABBR-LEN FUNC-NAME DESC PARSING)

ADD-TO-HISTORY (CMD)

ADDRESS-OF-OBJECT (OBJECT)

ARRAY-LABEL-P (LABEL)

BOTTOM-CMD

COMMAND-CHAR-P (CHAR)

SETFCOMMAND-TABLE-ENTRY-ABBR-LEN (NEW-VALUE INSTANCE)

SETFCOMMAND-TABLE-ENTRY-DESC (NEW-VALUE INSTANCE)

SETFCOMMAND-TABLE-ENTRY-FUNC (NEW-VALUE INSTANCE)

SETFCOMMAND-TABLE-ENTRY-GROUP (NEW-VALUE INSTANCE)

SETFCOMMAND-TABLE-ENTRY-NAME (NEW-VALUE INSTANCE)

COMMAND-TABLE-ENTRY-P (OBJECT)

SETFCOMMAND-TABLE-ENTRY-PARSING (NEW-VALUE INSTANCE)

COMPLETING-FIND-COMMAND (CMDSTR)

COMPONENT-AT (PARTS POSITION)

COPY-%INSPECT (INSTANCE)

COPY-COMMAND-TABLE-ENTRY (INSTANCE)

COPY-USER-COMMAND (INSTANCE)

DISPLACED-ARRAY-P (OBJECT)

DISPLAY-CURRENT (S LENGTH SKIP)

DISPLAY-INSPECT (OBJECT STREAM &OPTIONAL LENGTH (SKIP 0))

DISPLAY-LABELED-ELEMENT (ELEMENT LABEL STREAM)

DN-CMD (&OPTIONAL (N 1))

FIND-COMMAND (CMDSTR)

FIRST-ELEMENT-ELLIPSES-P (PARTS SKIP)

FRAME-CMD

FRAME-NUMBER

GET-HISTORY (N)

GLOBAL-PREPL-DEBUGGER-HOOK (CONDITION HOOK)

HEX-LABEL-P (LABEL &OPTIONAL WIDTH)

ID-AT (PARTS POSITION)

SETFINSPECT-OBJECT-STACK (NEW-VALUE INSTANCE)

SETFINSPECT-SELECT-STACK (NEW-VALUE INSTANCE)

INSPECTED-DESCRIPTION-OF-NONTRIVIAL-LIST (OBJECT)

INSPECTED-PARTS-OF-NONTRIVIAL-LIST (OBJECT)

INSPECTED-PARTS-OF-SIMPLE-CONS (OBJECT)

INSPECTED-STANDARD-OBJECT-PARTS (OBJECT)

INSPECTED-STRUCTURE-PARTS (OBJECT)

INSPECTOR-FUN (OBJECT INPUT-STREAM OUTPUT-STREAM)

INVOKE-WITH-SESSION-WORKAROUND-IF-ON-SBCL (FUN)

ISTEP (ARGS STREAM)

ISTEP-CMD-HELP (STREAM)

ISTEP-CMD-INSPECT-* (STREAM)

ISTEP-CMD-INSPECT-NEW-FORM (FORM STREAM)

ISTEP-CMD-PARENT (STREAM)

ISTEP-CMD-PRINT (OPTION-STRING STREAM)

ISTEP-CMD-REDISPLAY (STREAM)

ISTEP-CMD-RESET

ISTEP-CMD-SELECT-COMPONENT (ID STREAM)

ISTEP-CMD-SELECT-PARENT-COMPONENT (OPTION STREAM)

ISTEP-CMD-SET (ID-STRING VALUE-STRING STREAM)

ISTEP-CMD-SET-RAW (OPTION-STRING STREAM)

ISTEP-CMD-SET-STACK (FORM STREAM)

ISTEP-CMD-SKIP (OPTION-STRING STREAM)

ISTEP-CMD-TREE (STREAM)

ISTEP-DISPATCH (ARGS OPTION-STRING OPTION STREAM)

LAST-PART (PARTS)

LAST-REQUESTED (PARTS PRINT SKIP)

MAKE-COMMAND-TABLE-ENTRY (&KEY ((NAME DUM42) NIL) ((FUNC DUM43) NIL) ((DESC DUM44) NIL) ((PARSING DUM45) NIL) ((GROUP DUM46) NIL) ((ABBR-LEN DUM47) 0))

MAKE-CTE (NAME-PARAM FUNC DESC PARSING GROUP ABBR-LEN)

MAKE-INSPECT (&KEY ((OBJECT-STACK DUM0) NIL) ((SELECT-STACK DUM1) NIL))

MAKE-USER-COMMAND (&KEY ((INPUT DUM0) NIL) ((FUNC DUM1) NIL) ((ARGS DUM2) NIL) ((HNUM DUM3) NIL))

MAYBE-RETURN-HISTORY-COMMAND (CMD CMD-ARGS-STRING)

N-WORD-BITS

N-WORD-BITS-HEX-FORMAT

NAMED-OR-ARRAY-LABEL-P (LABEL)

NO-OBJECT-MSG (S)

OUTPUT-INSPECT-NOTE (STREAM NOTE &REST ARGS)

PARSE-ARGS (PARSING ARGS-STRING)

PARTS-COMPONENTS (PARTS)

PARTS-COUNT (PARTS)

PARTS-SEQ-HINT (PARTS)

PARTS-SEQ-TYPE (PARTS)

PEEK-CHAR-NON-WHITESPACE (&OPTIONAL STREAM)

PROCESS-COMMAND/OVERRIDE (CMD LINE CMD-ARGS-STRING OVERRIDE ORIGINAL-COMMAND)

PROCESSES-CMD

PROMPT (STREAM)

PROMPT-PACKAGE-NAME

QUIT (STATUS)

READ-COMMAND (INPUT-STREAM)

READTABLE-NAME-FOR-REPL (TABLE)

REDISPLAY (STREAM &OPTIONAL (SKIP 0))

REMOVE-ALIAS (&REST ALIASES)

REP-ONE

RESET-STACK (&OPTIONAL OBJECT LABEL)

RUN-HOOKS (HOOKS &REST ARGS)

SELECT-DESCRIPTION (SELECT)

SET-CURRENT-INSPECT (INSPECT)

SET-ELEMENT (ELEMENTS LABELS PARTS TO-INDEX FROM-INDEX)

SET-ELEMENT-VALUES (ELEMENTS LABELS INDEX ELEMENT LABEL)

SHOW-BANNER

SHOW-RESTARTS

SIMPLE-CONS-PAIR-P (OBJECT)

SKIP-REMAINING-WHITESPACE (&OPTIONAL STREAM)

STACK

STRING-TRIM-WHITESPACE (STR)

TOP-CMD

UP-CMD (&OPTIONAL (N 1))

SETFUSER-COMMAND-ARGS (NEW-VALUE INSTANCE)

SETFUSER-COMMAND-FUNC (NEW-VALUE INSTANCE)

SETFUSER-COMMAND-HNUM (NEW-VALUE INSTANCE)

SETFUSER-COMMAND-INPUT (NEW-VALUE INSTANCE)

USER-COMMAND-P (OBJECT)

WHITESPACE-CHAR-NOT-NEWLINE-P (X)

WHITESPACE-CHAR-P (X)

MACRO

Public

Undocumented

DEFINE-REPL-COMMAND (NAME-AND-OPTIONS (&REST ARGS) &BODY DOCSTRING-AND-FORMS)

Private

Undocumented

ALIAS (NAME-PARAM ARGS &REST BODY)

REBINDING ((&REST VARS) &BODY BODY)

SESSION-WORKAROUND-IF-ON-SBCL (&REST FORMS)

GENERIC-FUNCTION

Private

Undocumented

INSPECTED-DESCRIPTION (OBJECT)

INSPECTED-PARTS (OBJECT)

SET-COMPONENT-VALUE (OBJECT COMPONENT-ID VALUE ELEMENT)

VARIABLE

Public

*EXIT-ON-EOF*

If T, then exit when the EOF character is entered.

*MAX-HISTORY*

Maximum number of history commands to remember

*PROMPT*

The current prompt string or formatter function.

*USE-SHORT-PACKAGE-NAME*

when T, use the shortnest package nickname in a prompt

Undocumented

*COMMAND-PARSER-HOOKS*

*CURRENT-ERROR*

*DEBUGGING-CONTEXT*

*ENTERING-PREPL-DEBUGGER-HOOK*

Private

*BREAK-LEVEL*

current break level

*CMD-NUMBER*

Number of the next command

*COMMAND-CHARS*

Prefix characters for a top-level command

*CONTINUABLE-BREAK*

boolean: T if break caused by continuable error

*CURRENT-INSPECT*

current inspect

*DEFAULT-PROMPT*

The default prompt.

*DIR-STACK*

The top-level directory stack

*HISTORY*

History list

*INSPECT-BREAK*

boolean: T if break caused by inspect

*INSPECT-LENGTH*

maximum number of components to print

*INSPECT-RAW*

Raw mode for object display.

*NOPRINT*

boolean: T if don't print prompt and output

*SKIP-ADDRESS-DISPLAY*

Skip displaying addresses of objects.

Undocumented

*AFTER-PROMPT-HOOKS*

*CMD-TABLE-HASH*

*EOF-COMMAND*

*EOF-MARKER*

*IN-SESSION-WORKAROUND*

*INSPECT-HELP*

*INSPECT-UNBOUND-OBJECT-MARKER*

*NULL-COMMAND*

*OUTMOST-REPL*

*PROMPT-HOOKS*

*READ-COMMAND*

*UNWIND-HOOKS*

CLASS

Private

Undocumented

%INSPECT

COMMAND-TABLE-ENTRY

USER-COMMAND

CONSTANT

Private

Undocumented

+DEFAULT-INSPECT-LENGTH+