Lexer Class Reference

#include <Parser.h>

Collaboration diagram for Lexer:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 Lexer (istream &is, const string &fn)
TokenType addKeyword (const string &kw)
const TokennextToken ()
const TokencurrentToken ()
void matchCurrent (TokenType type)
void matchNext (TokenType type)


Constructor & Destructor Documentation

Lexer::Lexer ( istream &  is,
const string &  fn 
) [inline]


Member Function Documentation

TokenType Lexer::addKeyword ( const string &  kw  )  [inline]

References std::endl().

Referenced by Parser< Descriptor >::addKeyword().

const Token& Lexer::nextToken (  )  [inline]

const Token& Lexer::currentToken (  )  [inline]

void Lexer::matchCurrent ( TokenType  type  )  [inline]

References std::endl(), Token::line(), and Token::type().

Referenced by matchNext().

void Lexer::matchNext ( TokenType  type  )  [inline]

References matchCurrent(), and nextToken().


The documentation for this class was generated from the following file:

Generated on Wed Mar 16 06:20:18 2011 for FreePOOMA by  doxygen 1.5.9