The gravity language operates on a stack and has three basic operations:
- Zi sets the i th element of the stack to zero
- Ii increments the i th element by one
- Ji,j compares the i th and j th elements and jumps if not equal
The stack looks like this:
+---+---+---+---+---+---+---+---+