
* Rename `make-command-{reader,evaluator}' -> `make-xrepl-{reader,evaluator}'
* Move the commented-out ,meta block to a better place
* Protect the prompt computation against errors, to avoid infinite
exception output if an exception is raised.
* Add ",switch ?" to query namespaces, and ",switch - <name>" to remove
one. Forbid resetting the default initial `*' namespace.
* Clarify that multiple arguments can be sent to ,stx and fix it to
display the current syntax when there are no arguments.
* Various minor typos and improvements.
* Restore the use-last-arguments-by-default functionality of ,rr
* Re-do argument reading to make it easier to have a default
argument (as in ,enter and ,edit).
(cherry picked from commit c57ab7b4fc
)
14 lines
433 B
Racket
14 lines
433 B
Racket
#lang racket/base
|
|
|
|
;; This file is intended to be loaded from your init file (evaluatue
|
|
;; (find-system-path 'init-file) to see where that is on your OS.)
|
|
|
|
(require "xrepl.rkt")
|
|
|
|
;; may want to disable inlining to allow redefinitions
|
|
;; (compile-enforce-module-constants #f)
|
|
|
|
;; create the command repl reader, and value-saving evaluator
|
|
(current-prompt-read (make-xrepl-reader))
|
|
(current-eval (make-xrepl-evaluator (current-eval)))
|