--- parser3/src/include/pa_stack.h 2001/02/22 13:33:24 1.2 +++ parser3/src/include/pa_stack.h 2001/03/08 15:15:45 1.4 @@ -1,5 +1,5 @@ /* - $Id: pa_stack.h,v 1.2 2001/02/22 13:33:24 paf Exp $ + $Id: pa_stack.h,v 1.4 2001/03/08 15:15:45 paf Exp $ */ #ifndef PA_STACK_H @@ -24,11 +24,8 @@ public: return get(--ftop); } - Item *operator [] (int top_offset) { - return get(ftop-top_offset-1); - } - - int top() { return ftop; } + int top_index() { return ftop-1; } + Item *top_value() { return get(top_index()); } private: