--- parser3/src/include/pa_stack.h 2001/03/10 16:34:35 1.5 +++ parser3/src/include/pa_stack.h 2002/08/01 11:41:16 1.16 @@ -1,16 +1,19 @@ -/* - Parser - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan +/** @file + Parser: stack class decl. - $Id: pa_stack.h,v 1.5 2001/03/10 16:34:35 paf Exp $ + Copyright (c) 2001, 2002 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: 2002/08/01 11:41:16 $"; + +#include "pa_config_includes.h" #include "pa_array.h" +/// simple stack based on Array class Stack : public Array { public: @@ -29,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: