Changeset 12926
- Timestamp:
- 09/27/10 20:31:43 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/top-level.lisp
r12147 r12926 349 349 len (1- len))) 350 350 (dolist (entry *command-table*) 351 (when (or (string =string (entry-abbreviation entry))352 (string =string (entry-name entry)))351 (when (or (string-equal string (entry-abbreviation entry)) 352 (string-equal string (entry-name entry))) 353 353 (return (entry-command entry)))))) 354 354 … … 377 377 (defun read-cmd (stream) 378 378 (let ((c (peek-char-non-whitespace stream))) 379 (cond ((eql c *command-char*) 380 (read-line stream)) 381 ((eql c #\newline) 382 (read-line stream) 383 *null-cmd*) 384 (t 385 (read stream nil))))) 379 (if (eql c #\Newline) 380 (progn 381 (read-line stream) 382 *null-cmd*) 383 (let ((input (read stream nil))) 384 (if (not (keywordp input)) 385 input 386 (let ((name (string-downcase (symbol-name input)))) 387 (if (find-command name) 388 (concatenate 'string ":" name) 389 input))))))) 386 390 387 391 (defun repl-read-form-fun (in out)
Note: See TracChangeset
for help on using the changeset viewer.