
Definition at line 41 of file scanner.cc.
Public Member Functions | |
| PrivateFlexLexer (ICharReader *reader, string fileName) | |
| bool | hasError () const |
| Return true if already read source is not lexically valid. | |
| EToken | readNext () |
| NVI equivalent of virtual method yylex. | |
| void | postError (const char *msg) |
| NVI equivalent of virtual method LexerError. | |
Protected Member Functions | |
| virtual void | LexerOutput (const char *buf, int size) |
| override default output behavior | |
| virtual void | LexerError (const char *msg) |
| override default error behavior | |
Private Attributes | |
| ICharReader * | reader_ |
| instance of reader | |
| string | fileName_ |
| name (or alias) of input file | |
| bool | hasError_ |
| true if any error has been detected | |
| PrivateFlexLexer | ( | ICharReader * | reader, | |
| string | fileName | |||
| ) | [inline] |
Definition at line 43 of file scanner.cc.
| bool hasError | ( | ) | const [inline] |
Return true if already read source is not lexically valid.
Definition at line 56 of file scanner.cc.
References hasError_.
Referenced by FlexScanner::hasError().

| EToken readNext | ( | ) | [inline] |
NVI equivalent of virtual method yylex.
Definition at line 60 of file scanner.cc.
Referenced by FlexScanner::readNext().

| void postError | ( | const char * | msg | ) | [inline] |
NVI equivalent of virtual method LexerError.
Definition at line 68 of file scanner.cc.
References LexerError().
Referenced by FlexScanner::readNext().


| virtual void LexerOutput | ( | const char * | buf, | |
| int | size | |||
| ) | [inline, protected, virtual] |
override default output behavior
Definition at line 73 of file scanner.cc.
References LexerError().

| virtual void LexerError | ( | const char * | msg | ) | [inline, protected, virtual] |
override default error behavior
Definition at line 78 of file scanner.cc.
References StreamDecorator::E_ERROR, fileName_, and hasError_.
Referenced by LexerOutput(), and postError().

ICharReader* reader_ [private] |
string fileName_ [private] |
bool hasError_ [private] |
true if any error has been detected
Definition at line 95 of file scanner.cc.
Referenced by hasError(), and LexerError().
1.5.4