public ParseEngine(Grammar grammar, ParseEngineOptions options) { Grammar = grammar; Options = options; NodeSet = new ForestNodeSet(); StateFactory = new StateFactory(DottedRules); Initialize(); }
public ParseEngine(IGrammar grammar, ParseEngineOptions options) { _dottedRuleRegistry = new GrammarSeededDottedRuleRegistry(grammar); StateFactory = new StateFactory(_dottedRuleRegistry); Options = options; _nodeSet = new ForestNodeSet(); Grammar = grammar; Initialize(); }