ANTLR Support Libraries 2.7.1+
|
#include <LexerSharedInputState.hpp>
Public Member Functions | |
LexerInputState (InputBuffer *inbuf) | |
LexerInputState (InputBuffer &inbuf) | |
LexerInputState (std::istream &in) | |
virtual void | initialize (std::istream &in, const char *file="") |
virtual void | reset (void) |
void | setPosition (int line_, int column_) |
virtual | ~LexerInputState () |
InputBuffer & | getInput () |
Public Attributes | |
int | column |
int | line |
int | tokenStartColumn |
int | tokenStartLine |
int | guessing |
std::string | filename |
Private Member Functions | |
LexerInputState (const LexerInputState &) | |
LexerInputState & | operator= (const LexerInputState &) |
Private Attributes | |
InputBuffer * | input |
Input buffer we use. | |
bool | inputResponsible |
Who is responsible for cleaning up the InputBuffer? |
This object contains the data associated with an input stream of characters. Multiple lexers share a single LexerSharedInputState to lex the same input stream.
LexerInputState::LexerInputState | ( | InputBuffer * | inbuf | ) | [inline] |
Construct a new LexerInputState
inbuf | the InputBuffer to read from. The object is deleted together with the LexerInputState object. |
LexerInputState::LexerInputState | ( | InputBuffer & | inbuf | ) | [inline] |
Construct a new LexerInputState
inbuf | the InputBuffer to read from. |
LexerInputState::LexerInputState | ( | std::istream & | in | ) | [inline] |
virtual LexerInputState::~LexerInputState | ( | ) | [inline, virtual] |
LexerInputState::LexerInputState | ( | const LexerInputState & | ) | [private] |
InputBuffer & LexerInputState::getInput | ( | ) | [inline] |
virtual void LexerInputState::initialize | ( | std::istream & | in, |
const char * | file = "" |
||
) | [inline, virtual] |
Reset the LexerInputState with a specified stream and filename. This method is a hack, dunno what I was thinking when I added it. This should actually be done in a subclass.
LexerInputState& LexerInputState::operator= | ( | const LexerInputState & | ) | [private] |
virtual void LexerInputState::reset | ( | void | ) | [inline, virtual] |
Reset the LexerInputState to initial state. The underlying InputBuffer is also reset.
void LexerInputState::setPosition | ( | int | line_, |
int | column_ | ||
) | [inline] |
Set the file position of the SharedLexerInputState.
line_ | line number to be set |
column_ | column number to be set |
std ::string LexerInputState::filename |
What file (if known) caused the problem?
InputBuffer* LexerInputState::input [private] |
Input buffer we use.
bool LexerInputState::inputResponsible [private] |
Who is responsible for cleaning up the InputBuffer?