I am trying to automatically evaluate code under BSL. The Scheme Sandbox has support for specifying BSL as the language, but somehow it's not behaving as I would expect.<br><br><br>Welcome to DrScheme, version 4.2 [3m].<br>
Language: Module.<br>> (require scheme/sandbox)<br>> (define e<br> (parameterize ([sandbox-output 'string])<br> (make-evaluator '(special beginner) "7 (check-expect (id 1) 1) (define (id x) x)")))<br>
7<br>> (get-output e)<br>""<br>> <br><br><br>I would expect the 7 to appear in the string that results from GET-OUTPUT, followed by a newline, then "The test passed!" <br><br>I am using calling MAKE-EVALUATOR wrong? I should be using some other library, such as lang/run-teaching-program ?<br>
<br><br>