VFlexLexer Class Reference

List of all members.


Detailed Description

FlexLexer wrapper which catches lexical errors
Note:
NVI

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

Constructor & Destructor Documentation

VFlexLexer ( std::istream &  stream,
string  fileName 
) [inline]

Definition at line 43 of file vscan.cc.


Member Function Documentation

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().

Here is the caller graph for this function:

EToken readNext (  )  [inline]

NVI equivalent of virtual method yylex.

Definition at line 54 of file vscan.cc.

Referenced by FlexVScan::readNext().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

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().

Here is the caller graph for this function:


Member Data Documentation

string fileName_ [private]

name (or alias) of input file

Definition at line 80 of file vscan.cc.

bool hasError_ [private]

true if any error has been detected

Definition at line 81 of file vscan.cc.

Referenced by hasError().


The documentation for this class was generated from the following file:
Generated on Fri Jul 10 22:42:19 2009 for rob08 by  doxygen 1.5.4