[plt-dev] Programmatic running of student programs

From: David Van Horn (dvanhorn at ccs.neu.edu)
Date: Thu May 14 17:04:51 EDT 2009

Eli Barzilay wrote:
> ... the real answer to this thread is the sandbox library.

So I can write this:

(require scheme/sandbox)
(define ev
   (call-with-input-file "some-isl-prog.scm"
     (lambda (p)
       (make-module-evaluator p
                              #:language
                              '(lib "htdp-intermediate.ss" "lang")
                              #:allow-read empty))))

But how do I get the test results, values produced, etc?

David



Posted on the dev mailing list.