|
ANTLR Support Libraries 2.7.1+
|
#include <TokenStreamBasicFilter.hpp>


Public Member Functions | |
| TokenStreamBasicFilter (TokenStream &input_) | |
| void | discard (int ttype) |
| void | discard (const BitSet &mask) |
| RefToken | nextToken () |
Public Member Functions inherited from TokenStream | |
| virtual RefToken | nextToken ()=0 |
| virtual | ~TokenStream () |
Protected Attributes | |
| BitSet | discardMask |
| TokenStream * | input |
This object is a TokenStream that passes through all tokens except for those that you tell it to discard. There is no buffering of the tokens.
| TokenStreamBasicFilter::TokenStreamBasicFilter | ( | TokenStream & | input_ | ) |
This object is a TokenStream that passes through all tokens except for those that you tell it to discard. There is no buffering of the tokens.
| void TokenStreamBasicFilter::discard | ( | const BitSet & | mask | ) |
| void TokenStreamBasicFilter::discard | ( | int | ttype | ) |
|
virtual |
Implements TokenStream.
Reimplemented in TokenStreamHiddenTokenFilter.
|
protected |
The set of token types to discard
|
protected |
The input stream