예제 #1
0
        private IScannerTransition MakeScannerTransition(TdfaTransition transition)
        {
            var charSet = container.Alphabet.Decode(transition.Symbols);

            return(new ScannerTransition(
                       charSet.EnumerateIntervals().Select(MakeCharRange),
                       container.GetState(transition.To)));
        }
예제 #2
0
 private IScannerTransition MakeScannerTransition(TdfaTransition transition)
 {
     var charSet = container.Alphabet.Decode(transition.Symbols);
     return new ScannerTransition(
         charSet.EnumerateIntervals().Select(MakeCharRange),
         container.GetState(transition.To));
 }