Beispiel #1
0
        protected Token?StartOfRecordDelimiter(ITokenizerStateContext stateContext)
        {
            var intermediateState = new StringMatchingState(StateHolder.Default, "\n", context =>
            {
                context.WasLastTokenInRecord = true;
                return(Token.CreateValueToken(stateContext.ResetToken()));
            });

            stateContext.State = intermediateState;
            return(null);
        }
Beispiel #2
0
 public CatcherState([NotNull] List <Repetition> repetitions, StringMatchingState stringMatchingState)
 {
     Repetitions         = repetitions;
     StringMatchingState = stringMatchingState;
 }