--- parser3/src/include/pa_stack.h 2003/09/26 11:23:37 1.19 +++ parser3/src/include/pa_stack.h 2004/02/11 15:33:14 1.22 @@ -1,14 +1,14 @@ /** @file Parser: stack class decl. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2004 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_STACK_H #define PA_STACK_H -static const char* IDENT_STACK_H="$Date: 2003/09/26 11:23:37 $"; +static const char * const IDENT_STACK_H="$Date: 2004/02/11 15:33:14 $"; #include "pa_config_includes.h" #include "pa_array.h" @@ -32,9 +32,9 @@ public: } bool is_empty() { return ftop==0; } - size_t top() { return ftop; } - void top(size_t atop) { ftop=atop; } - T upper_value() { + size_t top_index() { return ftop; } + void set_top_index(size_t atop) { ftop=atop; } + T top_value() { assert(!is_empty()); return get(ftop-1); }