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); }
public CatcherState([NotNull] List <Repetition> repetitions, StringMatchingState stringMatchingState) { Repetitions = repetitions; StringMatchingState = stringMatchingState; }