[plt-scheme] Defining a transformation time path, or setting module-language to something useful

From: Noel Welsh (noelwelsh at gmail.com)
Date: Fri Jun 26 15:49:22 EDT 2009

On Fri, Jun 26, 2009 at 5:43 PM, Eli Barzilay<eli at barzilay.org> wrote:

> Anyway, did you use any of this?

Trying it right now, and I'm getting an error:

> ((read-language (open-input-file "test1.ss")) 'module-language)
read-language: expected result of type <procedure (arity 1)>; given
#<procedure:get-info>

test1.ss:

#lang planet untyped/mirrors:2/javascript/sexp

(require "test2.ss")

(function dave (a b) (+ a b))
(function noel (a b) (/ a b))


reader.ss is:

(module reader syntax/module-reader
  #:language `(planet "module.ss" ("untyped" "mirrors.plt" 2)
"javascript/sexp"))


N.


Posted on the users mailing list.