

Definition at line 82 of file scanner.cc.
Public Member Functions | |
| FlexScanner (std::istream &input, string fileName) | |
| virtual | ~FlexScanner () |
| virtual bool | readNext (Token &token) |
| virtual bool | hasError () const |
Private Attributes | |
| PrivateFlexLexer * | flex_ |
| superior (flex based) scanner | |
| FlexScanner | ( | std::istream & | input, | |
| 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 303 of file scanner.cc.
References ETOKEN_ID, ETOKEN_NUMBER_DOUBLE, ETOKEN_NUMBER_INT, ETOKEN_STRING, flex_, Token::lineno, Token::numberDouble, Token::numberInt, PrivateFlexLexer::postError(), PrivateFlexLexer::readNext(), readNumber(), readString(), Token::text, and Token::type.

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

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