public TextCursor Skip(int count) { return(_cursor.Skip(count + _count)); }
public Result <TextCursor, char> Parse(TextCursor cursor) { if (cursor.Span.Length > 0 && _condition(cursor.Text[cursor.Span.Start])) { return(new Success <TextCursor, char>(cursor.Text[cursor.Span.Start], cursor.Skip(1))); } return(new Unmatched <TextCursor, char>(cursor)); }