[racket] Evaluating code written in non-SEXP language

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Thu Sep 12 08:07:22 EDT 2013

Probably the simplest thing is to make a copy of the given files and insert
the #lang line at the top and then go from there.

You can mess around with namespace initialization to get some kind of an
approximation to the #lang line for a single file, but it is messy and
ultimately doesn't work as well.


On Thu, Sep 12, 2013 at 1:44 AM, Dmitry Pavlov <dpavlov at ipa.nw.ru> wrote:

> Robby,
> Generally speaking, Racket is set up to work well with the #lang lines,
>> but not as well without. Lots of things get easier if they are there.
> I accept that thighs without #lang may be hard, but
> doable nonetheless: for example, DrRacket can run
> Algol 60 programs without the #lang line if one selects
> "Algol 60" as the language in the bottom panel.
> I grepped the DrRacket's sources on "make-evaluator";
> two matches found, seem unrelated.
> So there must be another way to do this.
> Regards,
> Dmitry
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130912/508c1c72/attachment-0001.html>

Posted on the users mailing list.