|
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.
|
inline |
Construct a new LexerInputState
| inbuf | the InputBuffer to read from. The object is deleted together with the LexerInputState object. |
|
inline |
Construct a new LexerInputState
| inbuf | the InputBuffer to read from. |
|
inline |
|
inlinevirtual |
|
private |
|
inline |
|
inlinevirtual |
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.
|
private |
|
inlinevirtual |
Reset the LexerInputState to initial state. The underlying InputBuffer is also reset.
|
inline |
Set the file position of the SharedLexerInputState.
| line_ | line number to be set |
| column_ | column number to be set |
| int LexerInputState::column |
| std::string LexerInputState::filename |
What file (if known) caused the problem?
| int LexerInputState::guessing |
|
private |
Input buffer we use.
|
private |
Who is responsible for cleaning up the InputBuffer?
| int LexerInputState::line |
| int LexerInputState::tokenStartColumn |
| int LexerInputState::tokenStartLine |