KDevelop API Documentation

TokenStreamBasicFilter.hpp

Go to the documentation of this file.
00001 #ifndef INC_TokenStreamBasicFilter_hpp__
00002 #define INC_TokenStreamBasicFilter_hpp__
00003 
00004 /* ANTLR Translator Generator
00005  * Project led by Terence Parr at http://www.jGuru.com
00006  * Software rights: http://www.antlr.org/RIGHTS.html
00007  *
00008  * $Id: TokenStreamBasicFilter.hpp,v 1.2 2003/05/02 00:36:19 okellogg Exp $
00009  */
00010 
00011 #include <antlr/config.hpp>
00012 #include <antlr/BitSet.hpp>
00013 #include <antlr/TokenStream.hpp>
00014 
00015 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00016 namespace antlr {
00017 #endif
00018 
00023 class ANTLR_API TokenStreamBasicFilter : public TokenStream {
00025 protected:
00026     BitSet discardMask;
00027 
00029 protected:
00030     TokenStream* input;
00031 
00032 public:
00033     TokenStreamBasicFilter(TokenStream& input_);
00034 
00035     void discard(int ttype);
00036 
00037     void discard(const BitSet& mask);
00038 
00039     RefToken nextToken();
00040 };
00041 
00042 #ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
00043 }
00044 #endif
00045 
00046 #endif //INC_TokenStreamBasicFilter_hpp__
KDE Logo
This file is part of the documentation for KDevelop Version 3.1.2.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Mar 23 00:03:50 2005 by doxygen 1.3.9.1 written by Dimitri van Heesch, © 1997-2003