That eliminates all the recursive calls to thun/3 (outside of thun itself, which is tail recursive.) That means that this Joy interpreter is now fully CPS. All state is contained in the stack and expression, nothing is hidden in the Prolog "call stack". |
||
|---|---|---|
| .. | ||
| compiler.pl | ||
| metalogical.pl | ||
| thun.pl | ||