mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 05:39:18 +02:00
don't bother evaluating literals in (chibi repl)
This commit is contained in:
parent
1a2b71688d
commit
9b4cadd33f
1 changed files with 7 additions and 1 deletions
|
@ -317,7 +317,13 @@
|
||||||
(repl-advise-exception exn (current-error-port))))
|
(repl-advise-exception exn (current-error-port))))
|
||||||
(for-each
|
(for-each
|
||||||
(lambda (expr)
|
(lambda (expr)
|
||||||
(call-with-values (lambda () (eval expr (repl-env rp)))
|
(call-with-values
|
||||||
|
(lambda ()
|
||||||
|
(if (or (identifier? expr)
|
||||||
|
(pair? expr)
|
||||||
|
(null? expr))
|
||||||
|
(eval expr (repl-env rp))
|
||||||
|
expr))
|
||||||
(lambda res-list
|
(lambda res-list
|
||||||
(cond
|
(cond
|
||||||
((not (or (null? res-list)
|
((not (or (null? res-list)
|
||||||
|
|
Loading…
Add table
Reference in a new issue