[plt-scheme] (no subject)

From: Shriram Krishnamurthi (sk at cs.brown.edu)
Date: Thu Apr 19 15:31:34 EDT 2007

I didn't want to say anything, but now that Danny has piped in, I
might as well throw in two bits: it is a *mildly* interesting
exercise, depending on how you choose to model Basic.  Remember that
the key is to support numbered lines with GOTO and GOSUB.

One option is to just map each line number to a label, treat the whole
thing as one big LETREC, and have it shut with.

But if you really want to have fun, then you should treat each GOTO as
a continuation invocation.

Keep in mind, however, that GOTO is slightly more powerful than
CALL/CC...

Shriram


Posted on the users mailing list.