#include <CharBuffer.hpp>
Public Member Functions | |
CharBuffer (ANTLR_USE_NAMESPACE(std) istream &input) | |
Create a character buffer. | |
int | getChar () |
Get the next character from the stream. | |
Protected Member Functions | |
ANTLR_USE_NAMESPACE (std) istream &input | |
Private Member Functions | |
CharBuffer (const CharBuffer &other) | |
CharBuffer & | operator= (const CharBuffer &other) |
A dynamic array is used to buffer up all the input characters. Normally, "k" characters are stored in the buffer. More characters may be stored during guess mode (testing syntactic predicate), or when LT(i>k) is referenced. Consumption of characters is deferred. In other words, reading the next character is not done by consume(), but deferred until needed by LA or LT.
Definition at line 35 of file CharBuffer.hpp.
CharBuffer::CharBuffer | ( | ANTLR_USE_NAMESPACE(std) istream & | input | ) |
Create a character buffer.
CharBuffer::CharBuffer | ( | const CharBuffer & | other | ) | [private] |
int CharBuffer::getChar | ( | ) | [virtual] |
CharBuffer::ANTLR_USE_NAMESPACE | ( | std | ) | [protected] |
CharBuffer& CharBuffer::operator= | ( | const CharBuffer & | other | ) | [private] |