|
|
| version 1.5, 2001/03/10 16:34:35 | version 1.14, 2002/03/18 15:29:46 |
|---|---|
| Line 1 | Line 1 |
| /* | /** @file |
| Parser | Parser: stack class decl. |
| Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) | |
| Author: Alexander Petrosyan <paf@design.ru> | Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) |
| Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru) | |
| $Id$ | $Id$ |
| */ | */ |
| Line 9 | Line 10 |
| #ifndef PA_STACK_H | #ifndef PA_STACK_H |
| #define PA_STACK_H | #define PA_STACK_H |
| #include "pa_config_includes.h" | |
| #include "pa_array.h" | #include "pa_array.h" |
| /// simple stack based on Array | |
| class Stack : public Array { | class Stack : public Array { |
| public: | public: |
| Line 29 public: | Line 32 public: |
| } | } |
| int top_index() { return ftop-1; } | int top_index() { return ftop-1; } |
| void top_index(int top_index) { ftop=top_index+1; } | |
| Item *top_value() { return get(top_index()); } | Item *top_value() { return get(top_index()); } |
| private: | private: |