previous | index | next

Implementing the Evaluator

A traditional stack ADT has the following operations:

This ADT limits all accesses to the top of the stack only. We will extend this ADT to also allow inspection of the stack anywhere in its interior:

Note that any modification of the stack is done at the top by Push or Pop.

This ADT is called a Random Access Stack, or RA-stack.


previous | index | next