|
|
dublin$ TestCalculator : 1 2 + 3 : 1 2 3 * + 7 : 1 2 3 4 5 + + + + stack failure dublin$ TestCalculator : 1 1 : 1 2 invalid expression dublin$ TestCalculator : + invalid expression dublin$ TestCalculator : x syntax error dublin$ |
![]() | Note that the implementation of ArrayedStack
supports four elements only.
|
![]() | ``1 2'' is invalid as the stack is not left
in an empty stack after taking the top-most element
of it.
|
![]() | ``+'' is invalid as there are no operands supplied.
|
|
| Copyright © 2001, 2002 Andreas Borchert, converted to HTML on February 21, 2002 |