public LeftRecursion(Nonterminal rule, LeftRecursion next, Grammar grammar) { Rule = rule; InvolvedSet = new BooleanSet(grammar.Nonterminals.Count); Next = next; EvalSet = next.EvalSet.Copy(); EvalSet.Add(next.Rule.Index); }
public ICanAddSource <TInput, TOutput> Map <TInput, TOutput>(Func <TInput, bool> canHandleCallback = null) { var evalSet = new EvalSet <TInput, TOutput>() { CanHandle = canHandleCallback }; _evalSets.Add(evalSet); return(evalSet); }