use std::fmt::Display;
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum TokenizerEnd {
UnexpectedEoF,
ExpectedEof,
}
impl Display for TokenizerEnd {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"{}",
match self {
Self::UnexpectedEoF => "Unexpected EoF",
Self::ExpectedEof => "Expected Eof",
},
)
}
}