call/cc Donkey does several things:
call/cc. The hole of the context is represented by
an empty square. Note that if you wish to hide the context (because
it takes too much space) just click on its text. Donkey hides by
default, but you can change this in the preferences menu
(Section 4.3).call/cc is given a name of the
form c<number> and is placed in the Lifted Defs menu
(Section 4.5). The value of the continuation is
always expressed by its name and its associated context.
When a continuation is applied, the current context is replaced by the continuations context with the application's argument filling the hole In Figure 2, for an example, after the next step, the intermediate expression will be:
(+ 1 2 ( + 3 4 7))
Figure 2: An example using call/cc