--- parser3/src/include/pa_stack.h 2002/02/08 08:30:14 1.13 +++ parser3/src/include/pa_stack.h 2003/01/21 15:51:11 1.17 @@ -1,15 +1,15 @@ /** @file Parser: stack class decl. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) - - $Id: pa_stack.h,v 1.13 2002/02/08 08:30:14 paf Exp $ */ #ifndef PA_STACK_H #define PA_STACK_H +static const char* IDENT_STACK_H="$Date: 2003/01/21 15:51:11 $"; + #include "pa_config_includes.h" #include "pa_array.h" @@ -32,6 +32,7 @@ public: } int top_index() { return ftop-1; } + void top_index(int top_index) { ftop=top_index+1; } Item *top_value() { return get(top_index()); } private: