public override void Visit(IInternalTreeNode node) { if (RegexGrammar.Regex == node.Symbol.Value) { Regex = VisitRegexNode(node); } }
public IDfaState Compile(RegexDefinition regex) { var nfa = _regexToNfa.Transform(regex); var dfa = _nfaToDfa.Transform(nfa); return(dfa); }
public INfa Transform(RegexDefinition regex) { return(Expression(regex.Expression)); }