AddNfaNode() private method

private AddNfaNode ( NfaNode nfa ) : bool
nfa NfaNode
return bool
Beispiel #1
0
 // helper for building DFa
 public void AddTarget(char ch, Dfa next)
 {
     for (int j = 0; j < m_arcs.Count; j++)
     {
         Arc a = (Arc)m_arcs[j];
         if (a.Match(ch))
         {
             next.AddNfaNode(a.m_next);
         }
     }
 }
Beispiel #2
0
 // helper for building DFa
 /// <exclude/>
 public void AddTarget(char ch, Dfa next)
 {
     for (int j=0; j<m_arcs.Count; j++)
     {
         Arc a = (Arc)m_arcs[j];
         if (a.Match(ch))
             next.AddNfaNode(a.m_next);
     }
 }