~ chicken-core (master) /manual/Module (chicken csi)
Trap1[[tags: manual]]2[[toc:]]34== Module (chicken csi)56This module provides procedures to access features specific to7the {{csi}} interactive interpreter.89=== toplevel-command1011<procedure>(toplevel-command SYMBOL PROC [HELPSTRING])</procedure>1213Defines or redefines a toplevel interpreter command which can be invoked by entering14{{,SYMBOL}}. {{PROC}} will be invoked when the command is entered and may15read any required argument via {{read}} (or {{read-line}}). If the optional16argument {{HELPSTRING}} is given, it will be listed by the {{,?}} command.171819=== set-describer!20=== default-evaluator2122<procedure>(default-evaluator EXPR)</procedure>2324Takes {{EXPR}} and processes any of the built-in toplevel commands provided25by {{csi}}. If {{EXPR}} is not a toplevel command, then it is evaluated using26{{eval}}. This procedure is intended to be passed as an argument to {{repl}}27to allow using {{csi}}s toplevel commands and history management in user-defined28read-eval-print loops.293031=== editor-command3233<parameter>editor-command</parameter>3435Holds the name of an editor that should be used when the toplevel36command {{,e}} is used.373839---40Previous: [[Module (chicken continuation)]]4142Next: [[Module (chicken errno)]]