这是我正在做的解释器的一部分。我不断收到此错误:方案定义错误(短)
define not allowed in an expression context in: (define ret1 (list->string wl))
我使用DrScheme版本371,语言标准(R5RS)。
(define (read-command)
(set! com '('()))
(set! wl (read-as-list))
(define ret1 (list->string wl))
(commRead)
ret1
)
类似的问题在这里:
(define repl(
lambda()
(display "\nUofL>")
(define inp (read-command))
(define lengtha (length com)
为什么你在地球上使用371版本?这差不多五年了!最新版本是6.1.1,现在称为[球拍](http://racket-lang.org/)。 – 2015-04-02 20:19:27