Exemple #1
0
 private static IRecognizerFSA QuotePatternRecognizer(string begin, string end)
 {
     return(FSM.ForConstantStringPattern(begin).Concatenation(FSM.ForPredicate(AnyChar).Closure())
            .Concatenation(FSM.ForConstantStringPattern(end)).AsMinRecognizerFSA());
 }
Exemple #2
0
 private static IRecognizerFSA WhitespaceRecognizer()
 {
     return(FSM.ForPredicate(Whitespace).Closure().AsRecognizerFSA());
 }