GME
13
|
#include <ATokenBuffer.h>
Public Member Functions | |
ANTLRTokenBuffer (ANTLRTokenStream *in, int k=1, int chksz=50) | |
virtual | ~ANTLRTokenBuffer () |
virtual _ANTLRTokenPtr | getToken () |
virtual void | rewind (int pos) |
virtual int | mark () |
virtual _ANTLRTokenPtr | bufferedToken (int i) |
void | noGarbageCollectTokens () |
void | garbageCollectTokens () |
virtual int | bufferSize () |
virtual int | minTokens () |
virtual void | setMinTokens (int k_new) |
virtual void | panic (char *msg) |
ANTLRParser * | setParser (ANTLRParser *p) |
ANTLRParser * | getParser () |
ANTLRTokenStream * | getLexer () const |
Protected Member Functions | |
virtual _ANTLRTokenPtr | getANTLRToken () |
void | makeRoom () |
void | extendBuffer () |
Protected Attributes | |
ANTLRTokenStream * | input |
int | buffer_size |
int | chunk_size |
int | num_markers |
int | k |
_ANTLRTokenPtr * | buffer |
_ANTLRTokenPtr * | tp |
_ANTLRTokenPtr * | last |
_ANTLRTokenPtr * | next |
_ANTLRTokenPtr * | end_of_buffer |
_ANTLRTokenPtr * | threshold |
unsigned char | _deleteTokens |
ANTLRParser * | parser |
Definition at line 51 of file ATokenBuffer.h.
ANTLRTokenBuffer::ANTLRTokenBuffer | ( | ANTLRTokenStream * | in, |
int | k = 1 , |
||
int | chksz = 50 |
||
) |
Definition at line 52 of file ATokenBuffer.cpp.
ANTLRTokenBuffer::~ANTLRTokenBuffer | ( | ) | [virtual] |
Definition at line 76 of file ATokenBuffer.cpp.
_ANTLRTokenPtr ANTLRTokenBuffer::bufferedToken | ( | int | i | ) | [virtual] |
Definition at line 181 of file ATokenBuffer.cpp.
virtual int ANTLRTokenBuffer::bufferSize | ( | ) | [inline, virtual] |
Definition at line 88 of file ATokenBuffer.h.
void ANTLRTokenBuffer::extendBuffer | ( | ) | [protected] |
Definition at line 299 of file ATokenBuffer.cpp.
void ANTLRTokenBuffer::garbageCollectTokens | ( | ) | [inline] |
Definition at line 86 of file ATokenBuffer.h.
virtual _ANTLRTokenPtr ANTLRTokenBuffer::getANTLRToken | ( | ) | [inline, protected, virtual] |
Definition at line 73 of file ATokenBuffer.h.
ANTLRTokenStream* ANTLRTokenBuffer::getLexer | ( | ) | const [inline] |
Definition at line 98 of file ATokenBuffer.h.
_ANTLRTokenPtr ANTLRTokenBuffer::getToken | ( | ) | [virtual] |
Definition at line 106 of file ATokenBuffer.cpp.
void ANTLRTokenBuffer::makeRoom | ( | ) | [protected] |
Definition at line 212 of file ATokenBuffer.cpp.
int ANTLRTokenBuffer::mark | ( | ) | [virtual] |
Definition at line 157 of file ATokenBuffer.cpp.
virtual int ANTLRTokenBuffer::minTokens | ( | ) | [inline, virtual] |
Definition at line 89 of file ATokenBuffer.h.
void ANTLRTokenBuffer::noGarbageCollectTokens | ( | ) | [inline] |
Definition at line 85 of file ATokenBuffer.h.
virtual void ANTLRTokenBuffer::panic | ( | char * | msg | ) | [inline, virtual] |
Definition at line 92 of file ATokenBuffer.h.
void ANTLRTokenBuffer::rewind | ( | int | pos | ) | [virtual] |
Definition at line 142 of file ATokenBuffer.cpp.
virtual void ANTLRTokenBuffer::setMinTokens | ( | int | k_new | ) | [inline, virtual] |
Definition at line 90 of file ATokenBuffer.h.
unsigned char ANTLRTokenBuffer::_deleteTokens [protected] |
Definition at line 70 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::buffer [protected] |
Definition at line 58 of file ATokenBuffer.h.
int ANTLRTokenBuffer::buffer_size [protected] |
Definition at line 54 of file ATokenBuffer.h.
int ANTLRTokenBuffer::chunk_size [protected] |
Definition at line 55 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::end_of_buffer [protected] |
Definition at line 62 of file ATokenBuffer.h.
ANTLRTokenStream* ANTLRTokenBuffer::input [protected] |
Definition at line 53 of file ATokenBuffer.h.
int ANTLRTokenBuffer::k [protected] |
Definition at line 57 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::last [protected] |
Definition at line 60 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::next [protected] |
Definition at line 61 of file ATokenBuffer.h.
int ANTLRTokenBuffer::num_markers [protected] |
Definition at line 56 of file ATokenBuffer.h.
ANTLRParser* ANTLRTokenBuffer::parser [protected] |
Definition at line 94 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::threshold [protected] |
Definition at line 69 of file ATokenBuffer.h.
_ANTLRTokenPtr* ANTLRTokenBuffer::tp [protected] |
Definition at line 59 of file ATokenBuffer.h.