FreePOOMA  2.4.1
Public Member Functions
Lexer Class Reference

#include <Parser.h>

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: