AddFollow() public method

public AddFollow ( SymbolSet map ) : bool
map SymbolSet
return bool
Ejemplo n.º 1
0
 public void AddFirst(CSymbol s, int j)
 {
     for (; j < this.m_rhs.Count; ++j)
     {
         CSymbol rh = (CSymbol)this.m_rhs[j];
         s.AddFollow(rh.m_first);
         if (!rh.IsNullable())
         {
             break;
         }
     }
 }
Ejemplo n.º 2
0
		public void AddFirst(CSymbol s, int j) 
		{ 
			for (;j<m_rhs.Count;j++) 
			{
				CSymbol r = (CSymbol)m_rhs[j];
				s.AddFollow(r.m_first);
				if (!r.IsNullable())
					return;
			}
		}