Example #1
0
        public LexerDFA Minimize()
        {
            var minResult = Dfa.Minimize(StatesEquivalent, Combine);

            var modeMap = ModeMap.ToDictionary(e => e.Key, e => minResult.Item1[e.Value]);

            return(new LexerDFA(LexerSpec, modeMap, EquivalenceClasses, minResult.Item2));
        }
Example #2
0
 protected ModeMapTest()
 {
     _vimBuffer = CreateVimBuffer();
     _modeMap = ((VimBuffer)_vimBuffer).ModeMap;
 }
Example #3
0
 public ModeMapTest()
 {
     _vimBuffer = CreateVimBuffer();
     _modeMap   = ((VimBuffer)_vimBuffer).ModeMap;
     _modeMap.Reset((new UninitializedMode(_vimBuffer.VimTextBuffer)));
 }
Example #4
0
 protected ModeMapTest()
 {
     _vimBuffer = CreateVimBuffer();
     _modeMap   = ((VimBuffer)_vimBuffer).ModeMap;
 }