这是我正在制作的口译员的一部分。我不断收到此错误:
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)