How to implement continuations?

后端 未结 12 1583
清酒与你
清酒与你 2020-12-22 16:33

I\'m working on a Scheme interpreter written in C. Currently it uses the C runtime stack as its own stack, which is presenting a minor problem with implementing continuation

12条回答
  •  南笙
    南笙 (楼主)
    2020-12-22 17:06

    If you are starting from scratch, you really should look in to Continuation Passing Style (CPS) transformation.

    Good sources include "LISP in small pieces" and Marc Feeley's Scheme in 90 minutes presentation.

提交回复
热议问题