[plt-scheme] (no subject)
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