--- parser3/src/include/pa_stack.h 2001/02/22 13:33:24 1.2 +++ parser3/src/include/pa_stack.h 2001/03/10 16:34:35 1.5 @@ -1,5 +1,9 @@ /* - $Id: pa_stack.h,v 1.2 2001/02/22 13:33:24 paf Exp $ + Parser + Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexander Petrosyan + + $Id: pa_stack.h,v 1.5 2001/03/10 16:34:35 paf Exp $ */ #ifndef PA_STACK_H @@ -24,11 +28,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: