Example #1
0
 public TextCursor Skip(int count)
 {
     return(_cursor.Skip(count + _count));
 }
Example #2
0
        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));
        }