Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

SICP metacircular interpreter question

Name: Anonymous 2011-09-27 7:59

How does it handle sequences in input? If it's in a define or lambda or begin or whatever then it follows those respective paths in the eval branch, all of which lead to eval-sequence. But if it's just
(define a 1) (define b 2)
how's it interpret that?

Name: Anonymous 2011-09-27 8:58

>>8
What the christ are you talking about, the implementation is literally in the goddamned book. When you find that you don't know what's being discussed, stop posting, don't come up with some nonsensical parting shot.

I'm now guessing that read is supposed to slurp one sexp at a time. This would explain the following occurs as soon as you hit return:
;;; M-Eval input:
(define b 2) (define c 3)

;;; M-Eval value:
ok

;;; M-Eval input:

;;; M-Eval value:
ok

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List