[racket] make-evaluator and (old style) planet packages

From: Eli Barzilay (eli at barzilay.org)
Date: Thu Sep 26 22:11:06 EDT 2013

40 minutes ago, Spencer florence wrote:
> How can I use make-evaluator with a planet package as a language?
> 
> If I were to do (make-evaluator '(planet dyoo/bf:1:8/language))
> 
> I get the error "#%require: not at top-level or in module body in:
> (#%require (planet dyoo/bf:1:8/language))"

You should generally prefer `make-module-evaluator', which is similar
to getting a DrRacket REPL in the context of a language rather than
`make-evaluator' which is more like running a Racket REPL.  Something
like

  (make-module-evaluator '(module foo (planet dyoo/bf:1:8/language)))

or

  (make-module-evaluator "#lang planet dyoo/bf:1:8/language")

But I don't remember if it'll do what you want wrt getting strings and
using a custom reader.

-- 
          ((lambda (x) (x x)) (lambda (x) (x x)))          Eli Barzilay:
                    http://barzilay.org/                   Maze is Life!


Posted on the users mailing list.