moxy-token 0.3.2

Rust token types and lexing
Documentation
1
2
3
4
5
6
7
8
9
10
mod cursor;
mod error;

pub use cursor::*;
pub use error::*;

/// Parses one token value from the beginning of a lexer cursor.
pub trait Scan: Sized {
    fn scan(cursor: Cursor<'_>) -> Result<(Cursor<'_>, Self), LexError>;
}