FirstOfRest() public method

public FirstOfRest ( SymbolsGen syms ) : SymbolSet
syms SymbolsGen
return SymbolSet
Exemplo n.º 1
0
        public void CheckClosure(ProdItem item)
        {
            CSymbol csymbol = item.Next();

            if (csymbol == null)
            {
                return;
            }
            csymbol.AddStartItems(this, item.FirstOfRest(csymbol.m_parser));
            if (!item.IsReducingAction())
            {
                return;
            }
            this.MaybeAdd(new ProdItem(item.m_prod, item.m_pos + 1));
        }
Exemplo n.º 2
0
		public void CheckClosure(ProdItem item) 
		{
			CSymbol ss = item.Next();
			if (ss!=null) 
			{
				ss.AddStartItems(this,item.FirstOfRest(ss.m_parser));
				if (item.IsReducingAction())
					MaybeAdd(new ProdItem(item.m_prod, item.m_pos+1));
			}
		}