FlexScanner Class Reference

Inheritance diagram for FlexScanner:

Inheritance graph
[legend]
Collaboration diagram for FlexScanner:

Collaboration graph
[legend]

List of all members.


Detailed Description

Note:
RAII object

Definition at line 101 of file scanner.cc.


Public Member Functions

 FlexScanner (ICharReader *reader, string fileName)
virtual ~FlexScanner ()
virtual bool readNext (Token &token)
virtual bool hasError () const

Private Attributes

PrivateFlexLexerflex_
 superior (flex based) scanner

Constructor & Destructor Documentation

FlexScanner ( ICharReader reader,
string  fileName 
) [inline]

Definition at line 103 of file scanner.cc.

References flex_.

virtual ~FlexScanner (  )  [inline, virtual]

Definition at line 106 of file scanner.cc.

References flex_.


Member Function Documentation

bool readNext ( Token token  )  [virtual]

read next token

Parameters:
token Where to store token to.
Returns:
Return true if token is read, false on EOF.

Implements IScanner.

Definition at line 250 of file scanner.cc.

References Token::args, StreamDecorator::C_LIGHT_BLUE, StreamDecorator::C_NO_COLOR, ET_CMD_PG, ET_CMD_PH, ET_CMD_PL, ET_CMD_PM, ET_CMD_PN, ET_CMD_PS, ET_CMD_PW, flex_, Token::lineno, parsePmArgs(), PrivateFlexLexer::postError(), readHexFromEnd(), PrivateFlexLexer::readNext(), Token::text, and Token::type.

Here is the call graph for this function:

virtual bool hasError (  )  const [inline, virtual]

Return true if any error was detected.

Implements IErrorSensitive.

Definition at line 110 of file scanner.cc.

References flex_, and PrivateFlexLexer::hasError().

Here is the call graph for this function:


Member Data Documentation

PrivateFlexLexer* flex_ [private]

superior (flex based) scanner

Definition at line 114 of file scanner.cc.

Referenced by FlexScanner(), hasError(), readNext(), and ~FlexScanner().


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