public ENFA_Controller(ParserType parserType) { _parserType = parserType; switch (_parserType) { case ParserType.Regex: _factory = new ENFA_Regex_Factory(this); _tokenizer = Factory.GetTokenizer(); _parser = Factory.GetParser(); break; case ParserType.Grammar: _factory = new ENFA_Grammar_Factory(this); _tokenizer = Factory.GetTokenizer(); _parser = Factory.GetParser(); break; } _patternStart = new ENFA_PatternStart(this); _matchingType = MatchingType.LazyMatching; _inDebugMode = false; }
public ENFA_Grammar_Factory(ENFA_Controller controller) : base(controller) { _grammarTokenizer = new ENFA_Grammar_Tokenizer(controller); _grammarParser = new ENFA_Grammar_Parser(controller); }
public ENFA_Regex_Factory(ENFA_Controller controller) : base(controller) { _regexTokenizer = new ENFA_Regex_Tokenizer(controller); _regexParser = new ENFA_Regex_Parser(controller); }