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