R-WHILE Playground
R-WHILE code
read X; cons Y Z <= X; X <= cons Z Y; write X
Input data
('1.('2.('3.nil)))
Options
Inversion
Program2data
Expand macros
Execute
Sample programs and data
reverse
swap
translation from a tree to its preorder and inorder traversal (piorder)
self-interpretation of an identity function
self-interpretation of reverse
self-interpretation of piorder
self-interpretation of self-interpretation of reverse (This will probably time out in this playground.)
Infinite loop (in *both* directions)
Enumeration of trees