Beispiel #1
0
 public LexerContext(ISource source, int index, ILexemeCache cache)
 {
     currentIndex = index;
     this.source  = source;
     this.cache   = cache ?? NoCache.Instance;
 }
Beispiel #2
0
 public void GlobalSetup()
 {
     _serial     = new DictionaryCache();
     _concurrent = new ConcurrentDictionaryCache();
 }
Beispiel #3
0
 public LexerContext(ISource source, int index, ILexemeCache?cache)
 {
     _currentIndex = index;
     _source       = source;
     _cache        = cache ?? NoCache.Instance;
 }