Definition at line 41 of file vscan.cc.
Public Member Functions | |
| VFlexLexer (std::istream &stream, 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 *) |
| override default error behavior | |
Private Attributes | |
| string | fileName_ |
| name (or alias) of input file | |
| bool | hasError_ |
| true if any error has been detected | |
| VFlexLexer | ( | std::istream & | stream, | |
| string | fileName | |||
| ) | [inline] |
| bool hasError | ( | ) | const [inline] |
Return true if already read source is not lexically valid.
Definition at line 50 of file vscan.cc.
References hasError_.
Referenced by FlexVScan::hasError().

| EToken readNext | ( | ) | [inline] |
NVI equivalent of virtual method yylex.
Definition at line 54 of file vscan.cc.
Referenced by FlexVScan::readNext().

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


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

| virtual void LexerError | ( | const char * | ) | [inline, protected, virtual] |
override default error behavior
Definition at line 77 of file vscan.cc.
Referenced by LexerOutput(), and postError().

bool hasError_ [private] |
true if any error has been detected
Definition at line 81 of file vscan.cc.
Referenced by hasError().
1.5.4