Archon::Utilities::Lexer::Engine Class Reference

The engine that knowns how to match prefixes of the input character stream with the regular expressions of the lexer rules. More...

#include <archon/util/lexer.H>

Collaboration diagram for Archon::Utilities::Lexer::Engine:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Engine (const RuleSet &, const ActorBase *=0)
 Configure a lexer engine with the given set of rules.

Classes

struct  Rule

Detailed Description

The engine that knowns how to match prefixes of the input character stream with the regular expressions of the lexer rules.

Definition at line 315 of file lexer.H.


Constructor & Destructor Documentation

Archon::Utilities::Lexer::Engine::Engine const RuleSet ,
const ActorBase = 0
 

Configure a lexer engine with the given set of rules.

The RuleSet object can be destroyed after contruction. The ActorBase object on the other hand must not be destroyed before this engine is destroyed. The ActorBase object is optional but can only be left out if none of the rules have methods associated with them.

Definition at line 46 of file lexer.C.

References Archon::Utilities::NFA::altern(), Archon::Utilities::Lexer::RuleSet::rules, and Archon::Utilities::DFA::State::step().


The documentation for this class was generated from the following files:
Generated on Sun Jul 30 22:57:33 2006 for Archon by  doxygen 1.4.4