Hacker News new | ask | show | jobs
by ReleaseCandidat 698 days ago
That's how PAIP does it, their interpreter uses continuation passing style:

22.5 An Interpreter Supporting Call/cc

https://github.com/norvig/paip-lisp/blob/main/docs/chapter22...

23.2 Introducing Call/cc [see the next chapter, 23.3 The Abstract Machine, for the implementation in bytecode]

https://github.com/norvig/paip-lisp/blob/main/docs/chapter23...