#include <Lexer.h>
Public Member Functions | |
| Lexer (XRef *xref, Stream *str) | |
| Lexer (XRef *xref, Object *obj) | |
| ~Lexer () | |
| Object * | getObj (Object *obj) |
| void | skipToNextLine () |
| void | skipChar () |
| Stream * | getStream () |
| int | getPos () |
| void | setPos (Guint pos, int dir=0) |
Private Member Functions | |
| int | getChar () |
| int | lookChar () |
Private Attributes | |
| Array * | streams |
| int | strPtr |
| Object | curStr |
| GBool | freeArray |
| char | tokBuf [tokBufSize] |
Definition at line 29 of file Lexer.h.
| Lexer::~Lexer | ( | ) |
| void Lexer::skipToNextLine | ( | ) |
| void Lexer::skipChar | ( | ) | [inline] |
| Stream* Lexer::getStream | ( | ) | [inline] |
Definition at line 53 of file Lexer.h.
References curStr, Object::getStream(), Object::isNone(), and NULL.
Referenced by Parser::getStream().
| int Lexer::getPos | ( | ) | [inline] |
Definition at line 58 of file Lexer.h.
References curStr, Object::isNone(), and Object::streamGetPos().
Referenced by Parser::getPos().
00059 { return curStr.isNone() ? -1 : (int)curStr.streamGetPos(); }
| void Lexer::setPos | ( | Guint | pos, | |
| int | dir = 0 | |||
| ) | [inline] |
Definition at line 62 of file Lexer.h.
References curStr, Object::isNone(), and Object::streamSetPos().
00063 { if (!curStr.isNone()) curStr.streamSetPos(pos, dir); }
| int Lexer::getChar | ( | ) | [private] |
Referenced by skipChar().
| int Lexer::lookChar | ( | ) | [private] |
Array* Lexer::streams [private] |
int Lexer::strPtr [private] |
Object Lexer::curStr [private] |
GBool Lexer::freeArray [private] |
char Lexer::tokBuf[tokBufSize] [private] |
1.5.1