Esempio n. 1
0
        public override void Build(Nfa nfa)
        {
            Nfa sub = new Nfa(nfa.m_tks, m_sub);

            nfa.AddEps(sub);
            nfa.AddEps(nfa.m_end);
            sub.m_end.AddEps(nfa);
        }
Esempio n. 2
0
        public override void Build(Nfa nfa)
        {
            Nfa nfa1 = new Nfa(nfa.m_tks, this.m_sub);

            nfa.AddEps((NfaNode)nfa1);
            nfa.AddEps(nfa.m_end);
            nfa1.m_end.AddEps((NfaNode)nfa);
        }
Esempio n. 3
0
 public virtual void Build(Nfa nfa)
 {
     if (m_sub != null)
     {
         Nfa sub = new Nfa(nfa.m_tks, m_sub);
         nfa.AddEps(sub);
         sub.m_end.AddEps(nfa.m_end);
     }
     else
     {
         nfa.AddEps(nfa.m_end);
     }
 }
Esempio n. 4
0
 public virtual void Build(Nfa nfa)
 {
     if (this.m_sub != null)
     {
         Nfa nfa1 = new Nfa(nfa.m_tks, this.m_sub);
         nfa.AddEps((NfaNode)nfa1);
         nfa1.m_end.AddEps(nfa.m_end);
     }
     else
     {
         nfa.AddEps(nfa.m_end);
     }
 }
Esempio n. 5
0
 public override void Build(Nfa nfa)
 {
     if (m_alt != null)
     {
         Nfa alt = new Nfa(nfa.m_tks, m_alt);
         nfa.AddEps(alt);
         alt.m_end.AddEps(nfa.m_end);
     }
     base.Build(nfa);
 }
Esempio n. 6
0
 public override void Build(Nfa nfa)
 {
     if (this.m_alt != null)
     {
         Nfa nfa1 = new Nfa(nfa.m_tks, this.m_alt);
         nfa.AddEps((NfaNode)nfa1);
         nfa1.m_end.AddEps(nfa.m_end);
     }
     base.Build(nfa);
 }
Esempio n. 7
0
 public override void Build(Nfa nfa)
 {
     if (m_next != null)
     {
         if (m_sub != null)
         {
             Nfa first  = new Nfa(nfa.m_tks, m_sub);
             Nfa second = new Nfa(nfa.m_tks, m_next);
             nfa.AddEps(first);
             first.m_end.AddEps(second);
             second.m_end.AddEps(nfa.m_end);
         }
         else
         {
             m_next.Build(nfa);
         }
     }
     else
     {
         base.Build(nfa);
     }
 }
Esempio n. 8
0
 public override void Build(Nfa nfa)
 {
     if (this.m_next != null)
     {
         if (this.m_sub != null)
         {
             Nfa nfa1 = new Nfa(nfa.m_tks, this.m_sub);
             Nfa nfa2 = new Nfa(nfa.m_tks, this.m_next);
             nfa.AddEps((NfaNode)nfa1);
             nfa1.m_end.AddEps((NfaNode)nfa2);
             nfa2.m_end.AddEps(nfa.m_end);
         }
         else
         {
             this.m_next.Build(nfa);
         }
     }
     else
     {
         base.Build(nfa);
     }
 }
Esempio n. 9
0
 /// <exclude/>
 public virtual void Build(Nfa nfa)
 {
     if (m_sub!=null)
     {
         Nfa sub = new Nfa(nfa.m_tks,m_sub);
         nfa.AddEps(sub);
         sub.m_end.AddEps(nfa.m_end);
     }
     else
         nfa.AddEps(nfa.m_end);
 }
Esempio n. 10
0
 public override void Build(Nfa nfa)
 {
     Nfa sub = new Nfa(nfa.m_tks,m_sub);
     nfa.AddEps(sub);
     nfa.AddEps(nfa.m_end);
     sub.m_end.AddEps(nfa);
 }
Esempio n. 11
0
 public override void Build(Nfa nfa)
 {
     nfa.AddEps(nfa.m_end);
     base.Build(nfa);
 }
Esempio n. 12
0
 /// <exclude/>
 public override void Build(Nfa nfa)
 {
     if (m_next!=null)
     {
         if (m_sub!=null)
         {
             Nfa first = new Nfa(nfa.m_tks,m_sub);
             Nfa second = new Nfa(nfa.m_tks,m_next);
             nfa.AddEps(first);
             first.m_end.AddEps(second);
             second.m_end.AddEps(nfa.m_end);
         }
         else
             m_next.Build(nfa);
     }
     else
         base.Build(nfa);
 }
Esempio n. 13
0
 /// <exclude/>
 public override void Build(Nfa nfa)
 {
     if (m_alt!=null)
     {
         Nfa alt = new Nfa(nfa.m_tks,m_alt);
         nfa.AddEps(alt);
         alt.m_end.AddEps(nfa.m_end);
     }
     base.Build(nfa);
 }
Esempio n. 14
0
 public override void Build(Nfa nfa)
 {
     nfa.AddEps(nfa.m_end);
     base.Build(nfa);
 }