Hello,<div><br></div><div>I'm programming a toy interpreter for Scheme for educational purposes. It's programmed in C, and I've got a basic interpreter with the basic forms working as well as tail call elimination. </div>
<div><br></div><div>I'm wondering, at this point, what's the easiest way to get call/cc working? The interpreter is not programmed in CPS. </div><div><br></div><div>And can someone verify whether I'm understanding continuations properly? Are they just essentially a "label"? That is, it's just some structure that contains the next code to execute, and the environment in which to execute that code in?</div>
<div><br></div><div>Thanks for your help</div><div> -Patrick</div>