|
using System;
using System.Collections.Generic;
using System.Text;
namespace RegularExpression
{
/// <summary>
/// see NfaDiagram.txt file.
/// this class represent a box in that diagram.
/// this class helps constructing the NFA from the regular expression
/// </summary>
class NfaExpression
{
public NfaExpression()
{
m_stateStart = new State();
m_stateFinal = new State();
}
public NfaExpression(State stateFrom, State stateTo)
{
m_stateStart = stateFrom;
m_stateFinal = stateTo;
}
State m_stateStart = null;
State m_stateFinal = null;
public State StartState()
{
return m_stateStart;
}
public State FinalState()
{
return m_stateFinal;
}
}
}
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.