Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

DfaGenerator Class Reference

#include <dfa_generator.hh>

List of all members.

Public Methods

ScannerDfaSpeccreateScannerDfa (PropRegistry &registry, ScannerSpec &scanner, ITokenSpec &tokens)

Detailed Description

This class provides an interface for generating a DFA from a ScannerSpec object. It has a single "do it"-like method, called createScannerDfa, which recieves a ScannerSpec object and returns a newly created ScannerDfa object.

Definition at line 60 of file dfa_generator.hh.

Member Function Documentation

ScannerDfaSpec & DfaGenerator::createScannerDfa ( PropRegistry & registry,
ScannerSpec & scanner,
ITokenSpec & tokens )

Creates a ScannerDfaSpec from the input ScannerSpec object. This is accomplished by instantiating a BasicDfaGenerator and using it to generate a BasicDfaSpec object for each lexical state in the ScannerSpec object. The BasicDfaSpec objects are then bundled together into the ScannerDfaSpec object.

Definition at line 45 of file

Referenced by CppCcDriver::run().

The documentation for this class was generated from the following files:
Generated at Tue Jul 9 21:06:04 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001