next up previous contents index
Next: Parser Specification Up: Lexer Specification Previous: Class IOLexerBuffer

Class IOLexerStack

Class IOLexerStack  is a derived class of LexerStack. It provides a mechanism of reading from a stack of istream's. Streams can be pushed and popped from the stack. The next token is obtained from the stream from the top of the stack. The class allows allows easy implementation of constructs such as the #include file mechanism of the C preprocessor.

The interface of this class is listed below:

class IOLexerStack : public IOLexerBuffer {
public:
   IOLexerStack();
   IOLexerStack(istream&);
   virtual ~IOLexerStack();

   virtual void     push_stream (istream&);
   virtual istream& pop_stream  ();
};



Allen Leung
Mon Apr 7 14:33:55 EDT 1997