#include <CharBuffer.hpp>
Inheritance diagram for CharBuffer:
Public Methods | |
CharBuffer (ANTLR_USE_NAMESPACE(std) istream &input_) | |
Create a character buffer. | |
int | getChar () |
Get the next character from the stream. |
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.
|
Create a character buffer. Create a character buffer. Enable fail and bad exceptions, if supported by platform. |
|
Get the next character from the stream. Get the next character from the stream. May throw CharStreamIOException when something bad happens (not EOF) (if supported by platform). Implements InputBuffer. |