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

BasicDfaSpec::t_State Struct Reference

#include <basic_dfa_spec.hh>

Collaboration diagram for BasicDfaSpec::t_State:

Collaboration graph
List of all members.

Public Methods

 t_State ()
void addTransition (unsigned char on, unsigned int to)
void dump (ostream &os)

Public Attributes

bool isFinal
int tokId

Detailed Description

This is a DFA state.

Definition at line 94 of file basic_dfa_spec.hh.

Constructor & Destructor Documentation

BasicDfaSpec::t_State::t_State ( ) [inline]

Definition at line 97 of file basic_dfa_spec.hh.

Member Function Documentation

void BasicDfaSpec::t_State::addTransition ( unsigned char on,
unsigned int to ) [inline]

Definition at line 100 of file basic_dfa_spec.hh.

void BasicDfaSpec::t_State::dump ( ostream & os )

Referenced by BasicDfaSpec::dump().

Member Data Documentation

vector< Transition > BasicDfaSpec::t_State::transitions

The "valid" transitions from this state. We assume that if a transitions on a certain input character isn't here then it defaults to the "error" transition.

Definition at line 114 of file basic_dfa_spec.hh.

bool BasicDfaSpec::t_State::isFinal

True if this is an accepting state.

Definition at line 119 of file basic_dfa_spec.hh.

int BasicDfaSpec::t_State::tokId

If this state is an accepting state, this indicates the matched token's id.

Definition at line 125 of file basic_dfa_spec.hh.

The documentation for this struct was generated from the following file:
Generated at Tue Jul 9 21:08:42 2002 for CppCC by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001