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

BasicDfaSpec Class Reference

#include <basic_dfa_spec.hh>

Collaboration diagram for BasicDfaSpec:

Collaboration graph
[legend]
List of all members.

Public Types

typedef struct BasicDfaSpec::t_Transition  Transition
typedef struct BasicDfaSpec::t_State  State

Public Methods

 BasicDfaSpec (const string &name_)
void dump (ostream &os)

Public Attributes

string name
vector<Statestates

Detailed Description

This class contains the transition table for a DFA that resulted from a scanner lexical state. One such object is created by an instance of BasicDfaGenerator for each regexp parse tree resulted from the scanner's section.

Definition at line 65 of file basic_dfa_spec.hh.


Member Typedef Documentation

typedef struct BasicDfaSpec::t_Transition BasicDfaSpec::Transition
 

Describes a transition in the transition table.

Referenced by BasicDfaSpec::t_State::addTransition().

typedef struct BasicDfaSpec::t_State BasicDfaSpec::State
 

This is a DFA state.


Constructor & Destructor Documentation

BasicDfaSpec::BasicDfaSpec ( const string & name_ ) [inline]
 

Creates a new BasicDfaSpec object with the given name. The name is that of the corresponding scanner lexical state.

Definition at line 132 of file basic_dfa_spec.hh.


Member Function Documentation

void BasicDfaSpec::dump ( ostream & os )
 

Definition at line 47 of file basic_dfa_spec.cc.

Referenced by BasicDfaGenerator::createBasicDfa().


Member Data Documentation

string BasicDfaSpec::name
 

The name of this DFA.

Definition at line 141 of file basic_dfa_spec.hh.

vector< State > BasicDfaSpec::states
 

The transitions table of the DFA. At index i, the State object contains the transitions the automaton can take while in state i.

Definition at line 147 of file basic_dfa_spec.hh.


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