|
ANTLR Support Libraries 2.7.1+
|
#include <LexerSharedInputState.hpp>

Public Member Functions | |
| LexerInputState (InputBuffer *inbuf) | |
| LexerInputState (InputBuffer &inbuf) | |
| line (1) | |
| tokenStartColumn (1) | |
| tokenStartLine (1) | |
| guessing (0) | |
| filename ("") | |
| input (new CharBuffer(in)) | |
| inputResponsible (true) | |
| 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 | |
| __pad0__: column(1) | |
| 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. More... | |
| bool | inputResponsible |
| Who is responsible for cleaning up the InputBuffer? More... | |
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. |
|
inlinevirtual |
|
private |
| LexerInputState::filename | ( | "" | ) |
|
inline |
| LexerInputState::guessing | ( | 0 | ) |
|
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.
| LexerInputState::input | ( | new | CharBufferin | ) |
|
inline |
| LexerInputState::line | ( | 1 | ) |
|
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 |
| LexerInputState::tokenStartColumn | ( | 1 | ) |
| LexerInputState::tokenStartLine | ( | 1 | ) |
| LexerInputState::__pad0__ |
| 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 |
1.8.5