namespace CanonSharp.Combinator.Abstractions;
///
/// 输入流的读取状态
///
/// 输入流元素类型
public interface IReadState
{
public TToken Current { get; }
public bool HasValue { get; }
}
///
/// 输入流的读取状态
///
/// 输入流元素类型
/// 下一个读取状态的类型
public interface IReadState : IReadState, IEquatable
where TState : IReadState
{
///
/// 下一个读取状态
///
TState Next { get; }
}