Example #1
0
 private void MarkerProcessing(char symbol, string inputString)
 {
     if (CloseMarkerCollected(symbol, inputString))
     {
         return;
     }
     currentMarkerProcessor.ProcessSymbol(symbol);
 }
Example #2
0
 private void TryStartMarkerProcessing(char symbol)
 {
     currentMarkerProcessor = markerProcessors.FirstOrDefault(mp => mp.OpenMarker == cache.ToString());
     cache = currentMarkerProcessor == null ? cache : "";
     currentMarkerProcessor?.ProcessSymbol(symbol);
 }