Definition at line 40 of file scanner.cc.
Public Member Functions | |
| PrivateFlexLexer (std::istream &input, 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 | |
| string | fileName_ |
| name (or alias) of input file | |
| bool | hasError_ |
| true if any error has been detected | |
| PrivateFlexLexer | ( | std::istream & | input, | |
| string | fileName | |||
| ) | [inline] |
Definition at line 42 of file scanner.cc.
| bool hasError | ( | ) | const [inline] |
Return true if already read source is not lexically valid.
Definition at line 49 of file scanner.cc.
References hasError_.
Referenced by FlexScanner::hasError().

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


| void postError | ( | const char * | msg | ) | [inline] |
NVI equivalent of virtual method LexerError.
Definition at line 58 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 63 of file scanner.cc.
References LexerError().

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

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