The Blond Reflective Towers of Interpreters

Fork me on GitHub

Walkthrough: Tower Semantic Pitfalls

blond
(load "cont.bl") (load "exit.bl")
((delta (e r k) (begin (define re-enter (pushify k)) (meaning' (define jump k) (extend-reified-environment' (k) (list k) r) k))))
(exit 'up) (re-enter 'ok)
1 2 3 (exit 'up) (re-enter 'ok)
1 2 3 (jump 'ok)
(exit 'up)
((delta (e r k) (define re-enter (lambda (v) ((pushify k) ((r 're-enter) v))))))
;; previous code again
(re-enter 'ok)
(exit 'up) (exit 'up) (exit 'up) (exit 'up) (exit 'up)

Exercises