public EarleyEngine(Grammar grammar) { Grammar = grammar; DottedRules = new DottedRuleFactory(Grammar.Productions); EarleyItems = new EarleyStateFactory(DottedRules); Location = 0; Chart = new Chart(); Initialize(); }
public DottedRule(DottedRuleFactory factory, Production production, int dot) { this.factory = factory; Production = production; Dot = dot; }
public EarleyStateFactory(DottedRuleFactory dottedRules) { DottedRules = dottedRules; }