char_lex/
error.rs

1use super::utils::Context;
2
3/// `Char-Lex` crate's error type.
4#[derive(Debug, Clone, Copy, PartialEq, Eq)]
5pub enum Error {
6    /// Type that is returned when the content of the `Lexer<'l, T, W>` is emtpy.
7    EndOfFile,
8
9    /// Type that is returned when the `Lexer<'l, T, W>` encounters a `char` that is not matched by any `Token`.
10    Unexpected(Context),
11}