8#include "antlr/TokenBuffer.hpp"
10#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
38TokenBuffer::~TokenBuffer(
void )
43void TokenBuffer::fill(
unsigned int amount)
94#ifdef ANTLR_CXX_SUPPORTS_NAMESPACE
void rewind(unsigned int mark)
Rewind the token buffer to a marker.
unsigned int mark()
Return an integer marker that can be used to rewind the buffer to its current state.
TokenBuffer(TokenStream &input_)
Create a token buffer.
TokenStream & input
Token source.
int LA(unsigned int i)
Get a lookahead token value.
CircularQueue< RefToken > queue
Circular queue with Tokens.
unsigned int nMarkers
Number of active markers.
unsigned int markerOffset
Additional offset used when markers are active.
virtual unsigned int entries() const
Return the number of entries in the TokenBuffer.
RefToken LT(unsigned int i)
Get a lookahead token.
This interface allows any object to pretend it is a stream of tokens.