use std::fmt;
pub enum CombinatorError {
Eof,
Recognize,
Verify,
}
impl fmt::Display for CombinatorError {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
match self {
Self::Eof => write!(f, "expecting end of input"),
Self::Recognize => write!(f, "could not match input to required pattern"),
Self::Verify => write!(f, "could not verify input"),
}
}
}