private EarleySet GetEarleySet(int index) { EarleySet earleySet = null; if (_earleySets.Count <= index) { earleySet = new EarleySet(index); _earleySets.Add(earleySet); } else { earleySet = _earleySets[index]; } return(earleySet); }
public bool Enqueue(int index, IState state) { IEarleySet earleySet = null; if (_earleySets.Count <= index) { earleySet = new EarleySet(index); _earleySets.Add(earleySet); } else { earleySet = _earleySets[index]; } return(earleySet.Enqueue(state)); }
public override bool Enqueue(EarleySet set) { return(set.Add(this)); }
public abstract bool Enqueue(EarleySet set);