using System.Collections.Generic;
namespace Sprache
{
///
/// Represents a parsing result.
///
/// The result type.
public interface IResult
{
///
/// Gets the resulting value.
///
T Value { get; }
///
/// Gets a value indicating whether wether parsing was successful.
///
bool WasSuccessful { get; }
///
/// Gets the error message.
///
string Message { get; }
///
/// Gets the parser expectations in case of error.
///
IEnumerable Expectations { get; }
///
/// Gets the remainder of the input.
///
IInput Remainder { get; }
}
}