#include <scannerbase.h>
Collaboration diagram for _InternalFlexScannerBase::LexerInput:
Public Member Functions | |
LexerInput (LexerInput *down) | |
Construct lexer input and pass "down" pointer... | |
~LexerInput () | |
int | OpenFile (const TLString &path, SError &error) |
Open file for input. | |
ssize_t | read (char *buf, size_t len) |
Perform read operation:. | |
Public Attributes | |
LexerInput * | down |
The LexerInput one level below:. | |
FILE * | fp |
This is where we actually read from:. | |
TLString | fp_path |
XYPos | saved |
bool | must_pop_state |
bool | must_pop_pos_arch |
Tell pos_arch (using EndFile()) when reading file done? | |
bool | read_eof |
Did we read EOF? | |
int | special_next_tok |
LinkedList< TokenEntry > | next_toks |
next tokens (read ahead) | |
LinkedList< TokenEntry > | prev_toks |
already returned tokens | |
Private Member Functions | |
LexerInput (const LexerInput &) | |
Do not use. | |
void | operator= (const LexerInput &) |
Do not use. |
Definition at line 180 of file scannerbase.h.
|
Do not use.
|
|
Construct lexer input and pass "down" pointer...
Definition at line 131 of file iscannerbase.cc. |
|
Definition at line 146 of file iscannerbase.cc. References _InternalFlexScannerBase::TokenEntry::clear(), Error(), LinkedList< TokenEntry >::first(), fp, LinkedList< TokenEntry >::IsEmpty(), next_toks, LinkedList< TokenEntry >::PopFirst(), prev_toks, and _InternalFlexScannerBase::TokenEntry::token. |
|
Open file for input. File opening errors will be returned in passed SError and indicated via return value -2.
Definition at line 106 of file iscannerbase.cc. References fp, fp_path, and TLString::str(). Referenced by _InternalFlexScannerBase::SetInput(). |
|
Do not use.
|
|
Perform read operation:.
Definition at line 75 of file iscannerbase.cc. References fp, fp_path, ssize_t, and TLString::str(). |
|
The LexerInput one level below:.
Definition at line 183 of file scannerbase.h. Referenced by _InternalFlexScannerBase::SetInput(). |
|
This is where we actually read from:.
Definition at line 186 of file scannerbase.h. Referenced by OpenFile(), read(), and ~LexerInput(). |
|
Definition at line 187 of file scannerbase.h. Referenced by OpenFile(), and read(). |
|
Tell pos_arch (using EndFile()) when reading file done?
Definition at line 199 of file scannerbase.h. |
|
This can be set e.g. when #including from the preprocessor because we then have to push initial state upon inclusion which needs to get popped after reading the included file to be in preprocessor state again. Definition at line 197 of file scannerbase.h. |
|
next tokens (read ahead) There is a little token buffer for each input: NEW toks get added at the END of next_toks. OLDEST toks are at the beginning of prev_toks. Definition at line 212 of file scannerbase.h. Referenced by _InternalFlexScannerBase::LexNextToken(), and ~LexerInput(). |
|
already returned tokens
Definition at line 213 of file scannerbase.h. Referenced by _InternalFlexScannerBase::LexNextToken(), and ~LexerInput(). |
|
Did we read EOF?
Definition at line 202 of file scannerbase.h. Referenced by _InternalFlexScannerBase::_pi_eof(), _InternalFlexScannerBase::_RawYYLex(), and _InternalFlexScannerBase::LexNextToken(). |
|
Stored position when some other LexerInput is being read from (this is not on top of the stack). Definition at line 191 of file scannerbase.h. |
|
Special next token to be returned by next call to lexer function (or -1). (Can be used to bring parser into special state.) Definition at line 207 of file scannerbase.h. Referenced by _InternalFlexScannerBase::_RawYYLex(), and _InternalFlexScannerBase::SetInput(). |