ANTLR Support Libraries 2.7.1+
|
#include <ParserSharedInputState.hpp>
Public Member Functions | |
ParserInputState (TokenBuffer *in) | |
ParserInputState (TokenBuffer &in) | |
virtual | ~ParserInputState () |
TokenBuffer & | getInput (void) |
void | reset (void) |
Reset the ParserInputState and the underlying TokenBuffer. | |
Public Attributes | |
int | guessing |
std::string | filename |
Private Member Functions | |
ParserInputState (const ParserInputState &) | |
ParserInputState & | operator= (const ParserInputState &) |
Private Attributes | |
TokenBuffer * | input |
bool | inputResponsible |
Do we need to free the TokenBuffer or is it owned by another.. |
This object contains the data associated with an input stream of tokens. Multiple parsers share a single ParserSharedInputState to parse the same stream of tokens.
ParserInputState::ParserInputState | ( | TokenBuffer * | in | ) | [inline] |
Construct a new ParserInputState
in | the TokenBuffer to read from. The object is deleted together with the ParserInputState object. |
ParserInputState::ParserInputState | ( | TokenBuffer & | in | ) | [inline] |
Construct a new ParserInputState
in | the TokenBuffer to read from. |
virtual ParserInputState::~ParserInputState | ( | ) | [inline, virtual] |
ParserInputState::ParserInputState | ( | const ParserInputState & | ) | [private] |
TokenBuffer& ParserInputState::getInput | ( | void | ) | [inline] |
ParserInputState& ParserInputState::operator= | ( | const ParserInputState & | ) | [private] |
void ParserInputState::reset | ( | void | ) | [inline] |
Reset the ParserInputState and the underlying TokenBuffer.
std ::string ParserInputState::filename |
What file (if known) caused the problem?
Are we guessing (guessing>0)?
TokenBuffer* ParserInputState::input [private] |
Where to get token objects
bool ParserInputState::inputResponsible [private] |
Do we need to free the TokenBuffer or is it owned by another..