Next: sb-grovel, Up: Contributed Modules

### 16.1 sb-aclrepl

The `sb-aclrepl` module offers an Allegro CL-style Read-Eval-Print Loop for SBCL, with integrated inspector. Adding a debugger interface is planned.

#### 16.1.1 Usage

To start `sb-aclrepl` as your read-eval-print loop, put the form

         (require 'sb-aclrepl)

in your `~/.sbclrc` initialization file.

#### 16.1.2 Example Initialization

Here's a longer example of a `~/.sbclrc` file that shows off some of the features of `sb-aclrepl`:

         (ignore-errors (require 'sb-aclrepl))

         (when (find-package 'sb-aclrepl)
           (push :aclrepl cl:*features*))
         #+aclrepl
         (progn
           (setq sb-aclrepl:*max-history* 100)
           (setf (sb-aclrepl:alias "asdc")
                #'(lambda (sys) (asdf:operate 'asdf:compile-op sys)))
           (sb-aclrepl:alias "l" (sys) (asdf:operate 'asdf:load-op sys))
           (sb-aclrepl:alias "t" (sys) (asdf:operate 'asdf:test-op sys))
           ;; The 1 below means that two characaters ("up") are required
           (sb-aclrepl:alias ("up" 1 "Use package") (package) (use-package package))
           ;; The 0 below means only the first letter ("r") is required,
           ;; such as ":r base64"
           (sb-aclrepl:alias ("require" 0 "Require module") (sys) (require sys))
           (setq cl:*features* (delete :aclrepl cl:*features*)))

Questions, comments, or bug reports should be sent to Kevin Rosenberg (kevin@rosenberg.net).

#### 16.1.3 Credits

Allegro CL is a registered trademark of Franz Inc.