

Definition at line 101 of file scanner.cc.
Public Member Functions | |
| FlexScanner (ICharReader *reader, string fileName) | |
| virtual | ~FlexScanner () |
| virtual bool | readNext (Token &token) |
| virtual bool | hasError () const |
Private Attributes | |
| PrivateFlexLexer * | flex_ |
| superior (flex based) scanner | |
| FlexScanner | ( | ICharReader * | reader, | |
| string | fileName | |||
| ) | [inline] |
| virtual ~FlexScanner | ( | ) | [inline, virtual] |
| bool readNext | ( | Token & | token | ) | [virtual] |
read next token
| token | Where to store token to. |
Implements IScanner.
Definition at line 250 of file scanner.cc.
References Token::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_NO_COLOR, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, flex_, Token::lineno, parsePmArgs(), PrivateFlexLexer::postError(), readHexFromEnd(), PrivateFlexLexer::readNext(), Token::text, and Token::type.

| virtual bool hasError | ( | ) | const [inline, virtual] |
Return true if any error was detected.
Implements IErrorSensitive.
Definition at line 110 of file scanner.cc.
References flex_, and PrivateFlexLexer::hasError().

PrivateFlexLexer* flex_ [private] |
superior (flex based) scanner
Definition at line 114 of file scanner.cc.
Referenced by FlexScanner(), hasError(), readNext(), and ~FlexScanner().
1.5.4