LexerInputState Class Reference
This object contains the data associated with an input stream of characters. More...
#include <LexerSharedInputState.hpp>
Collaboration diagram for LexerInputState:

Public Member Functions | |
| LexerInputState (InputBuffer *inbuf) | |
| Construct a new LexerInputState. | |
| LexerInputState (InputBuffer &inbuf) | |
| Construct a new LexerInputState. | |
| LexerInputState (std::istream &in) | |
| Construct a new LexerInputState. | |
| virtual void | initialize (std::istream &in, const char *file="") |
| Reset the LexerInputState with a specified stream and filename. | |
| virtual void | reset (void) |
| Reset the LexerInputState to initial state. | |
| void | setPosition (int line_, int column_) |
| Set the file position of the SharedLexerInputState. | |
| virtual | ~LexerInputState () |
| InputBuffer & | getInput () |
Public Attributes | |
| int | column |
| int | line |
| int | tokenStartColumn |
| int | tokenStartLine |
| int | guessing |
| std::string | filename |
| What file (if known) caused the problem? | |
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? | |
Detailed Description
This object contains the data associated with an input stream of characters.Multiple lexers share a single LexerSharedInputState to lex the same input stream.
Definition at line 26 of file LexerSharedInputState.hpp.
Constructor & Destructor Documentation
|
|
Construct a new LexerInputState.
Definition at line 32 of file LexerSharedInputState.hpp. References column, filename, guessing, input, inputResponsible, line, tokenStartColumn, and tokenStartLine. |
|
|
Construct a new LexerInputState.
Definition at line 47 of file LexerSharedInputState.hpp. References column, filename, guessing, input, inputResponsible, line, tokenStartColumn, and tokenStartLine. |
|
|
Construct a new LexerInputState.
Definition at line 63 of file LexerSharedInputState.hpp. References column, filename, guessing, input, inputResponsible, line, tokenStartColumn, and tokenStartLine. |
|
|
Definition at line 119 of file LexerSharedInputState.hpp. |
|
|
|
Member Function Documentation
|
|
Definition at line 147 of file LexerSharedInputState.hpp. |
|
||||||||||||
|
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.
Definition at line 80 of file LexerSharedInputState.hpp. References column, filename, guessing, input, inputResponsible, line, tokenStartColumn, and tokenStartLine. |
|
|
|
|
|
Reset the LexerInputState to initial state. The underlying InputBuffer is also reset. Definition at line 99 of file LexerSharedInputState.hpp. References column, guessing, input, line, InputBuffer::reset(), tokenStartColumn, and tokenStartLine. |
|
||||||||||||
|
Set the file position of the SharedLexerInputState.
Definition at line 113 of file LexerSharedInputState.hpp. |
Member Data Documentation
|
|
Definition at line 125 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), reset(), and setPosition(). |
|
|
What file (if known) caused the problem?
Definition at line 131 of file LexerSharedInputState.hpp. Referenced by initialize(), and LexerInputState(). |
|
|
Definition at line 129 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), and reset(). |
|
|
Input buffer we use.
Definition at line 135 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), and reset(). |
|
|
Who is responsible for cleaning up the InputBuffer?
Definition at line 137 of file LexerSharedInputState.hpp. Referenced by initialize(), and LexerInputState(). |
|
|
Definition at line 126 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), reset(), and setPosition(). |
|
|
Definition at line 127 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), and reset(). |
|
|
Definition at line 128 of file LexerSharedInputState.hpp. Referenced by initialize(), LexerInputState(), and reset(). |
The documentation for this class was generated from the following file:
- lib/antlr/antlr/LexerSharedInputState.hpp
