
This program takes in fragments of stack-based code, and displays them as a diagram. The diagram shows a center white line which is the progress of the program. Integer elements on the stack are to the right, floating point to the left. Commands are interpreted from top to bottom. An 'if' statement causes a branch, in which the right side is executed if true, and the left side is executed when false.
Here is code for the fibonacci sequence:
A more complex piece of code involving branches:
(c) Copyright 2003 Mark W. Sherman