2

When I am trying to run an evaluator in Dr. Racket, it shows the error: 'Module Language: there can only be one expression in the definitions window'.

Obviously there are multiple definitions in this window, an evaluator has multiple definitions, so how can I run these multiple definitions ? or is there any other method to run the evaluators.

Any help would be appreciated.

4

2 回答 2

6

我是 Racket 的新手,当我尝试运行我的第一个程序时,我也遇到了这个错误。

#lang racket/base在源代码的开头添加了它,它解决了这个问题。

于 2014-02-26T18:39:49.237 回答
1
#lang r5rs

解决定车!问题,但这次是未知错误。我通过(#%require(仅方案/基本错误))解决了这个问题。

所以我添加了这两行来让我的评估器运行:

#lang r5rs
(#%require (only scheme/base error))
于 2013-10-30T09:48:29.793 回答