Пример #1
0
        public EarleyItem NextState(EarleyItem state)
        {
            if (state.DottedRule.IsComplete)
            {
                return(null);
            }

            var dottedRule = DottedRuleRegistry.GetNext(state.DottedRule);

            return(NewState(dottedRule, state.Origin));
        }
Пример #2
0
 public bool Enqueue(int location, EarleyItem state)
 {
     return(state.Enqueue(GetEarleySet(location)));
 }