> dillog
@gmail.com writes:
> > Jussi Piitulainen wrote:
> >> dillog
@gmail.com writes:
> >>> how do I support "delay" in my interpreter without breaking my
> >>> back?
> >> Copy R5RS example implementation. It's in section 6.4 under
> >> "force", but the entry for "delay" does point there.
> > I just need to figure out where to put a case statement for it,
> > under MC-eval or MC-apply? I'm having a tough time figuring out
> > which or both.
> Where do you deal with "let" and "do"? That should be the place.
> Without macro expansion, I'd expect eval to dispatch to a clause where
> it is known that the expression at hand is a (delay expression), then
> construct the (lambda () expression) and pass that to apply to be
> passed to make-promise.
I turns out one case statement under mc-eval will do it.