Esempio n. 1
0
 internal static ParseStep Match(Regex regex, State initialState, string matchedText, IList <IList <ParenCapture> > captures)
 {
     return(new ParseStep
     {
         Type = ParseStepType.Match,
         Node = regex,
         MatchedText = matchedText,
         InitialState = initialState,
         Captures = captures
     }.WithMessage(step => regex.GetPassMessage(step.MatchedText, step.InitialState)));
 }
Esempio n. 2
0
 internal static ParseStep Match(Regex regex, State initialState, string matchedText, IList<IList<ParenCapture>> captures)
 {
     return new ParseStep
     {
         Type = ParseStepType.Match,
         Node = regex,
         MatchedText = matchedText,
         InitialState = initialState,
         Captures = captures
     }.WithMessage(step => regex.GetPassMessage(step.MatchedText, step.InitialState));
 }